ACL (Access Control List)
Cheat sheet · https://pcornel.dk/topic.php?topic=2995
Answer
An ACL is an ordered list of ACEs in a Windows security descriptor. The DACL controls discretionary access; the SACL primarily controls auditing and related security information. The DACL’s presence and contents directly influence access checks.
Remember
- DACL and SACL are different ACLs with different purposes.
- A DACL contains allow/deny ACEs used for discretionary access decisions.
- A SACL can request auditing of selected access attempts.
- A NULL DACL is not the same as an empty DACL: NULL permits unrestricted access; empty grants no discretionary access.
- ACE order and applicability matter.
First checks
Get-Acl <path> | fl— owner and ACLicacls <path>— ACEs with inheritance flagswhoami /groups— groups in the current tokenGet-SmbShareAccess <share>— share permissions
Verify in this order
security descriptor → owner, DACL, SACL → ACEs evaluated
Where it usually breaks
First mismatch in identity/token/certificate → policy source → security provider/enforcement → target resource → audit/detection evidence; preserve identity/native error/pre-state before mutation.
DACL vs SACL
| Item | Meaning | Boundary |
|---|---|---|
| DACL | Discretionary authorization | allow/deny access ACEs |
| SACL | Security auditing | audit ACEs and related security semantics |
| NULL DACL | No DACL present | unrestricted discretionary access |
| Empty DACL | DACL present with no ACEs | no discretionary access granted |
| ACE order | Ordered entries | affects access evaluation semantics |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2995