Skip to content

Lesson 8 of 13 · 15m

ACL Abuse: WriteDACL, GenericAll, and the Ownership Rewrite

How directory object permissions — not group membership — carry most escalation paths, and how ForceChangePassword plus WriteDACL chains reach DA.

Ask most admins how privilege works in AD and they will point at group membership. That is the wrong mental model. AD objects are secured by ACLs on the objects themselves — GenericAll, WriteDACL, WriteOwner, WriteProperty, ExtendedRight ACEs attached to every user, group, computer, GPO, and the domain object. Group membership is just one edge. The ACL graph is the rest of the map, and attackers walk it because defenders rarely audit it.

The primitives that matter

  • GenericAll — full control. On a user: reset the password, add SPNs, write msDS-AllowedToActOnBehalfOfOtherIdentity. On a group: add yourself as a member (net group "Domain Admins" attacker /add works — the AddMember right is inside it). On a computer: RBCD.
  • WriteDACL — rewrite the object's DACL. Grant yourself GenericAll. One hop to full control.
  • WriteOwner — take ownership of the object; owners can rewrite the DACL regardless of its contents. Same outcome as WriteDACL by a longer path.
  • ExtendedRight: ForceChangePassword (DS-Replication-Get-Changes is a different ER — see DCSync) — reset a user's password without knowing the old one. Helpdesk gets this legitimately. Helpdesk group misconfigurations are how attackers take DA accounts.
  • GenericWrite / WriteProperty on GPOs — edit the GPO, link applies to the OU, code runs as every computer in scope. GPO abuse is ACL abuse with extra reach.

PowerSploit's PowerView (Find-InterestingDomainAcl, Get-DomainObjectAcl) and BloodHound's ingest both surface these edges. Mimikatz lsadump::dcsync needs the replication ERs — which arrive here via ACL grants, not group membership.

A real chain

Finance-Helpdesk has ForceChangePassword on all OU=Users objects — common, legitimate. JDoe is in Finance-Helpdesk. JDoe also has WriteDACL on GG-ServerMgmt because someone gave him rights to "fix delegation" in 2020 and the ACE never got cleaned. GG-ServerMgmt has GenericAll on svc-backup. svc-backup is in Backup Operators — read any DC volume, copy ntds.dit. Four hops, zero vulnerabilities, all ACLs. This is what BloodHound exists to show you, and why "we don't have unconstrained delegation" misses the point — your DACL graph is the actual privilege map.

Evidence from the field

ACL paths are the backbone of nearly every BloodHound-published escalation — the SpecterOps team's "An ACE Up the Sleeve" (2017) documented the abuse surface, and DCSync via granted replication rights (Mimikatz, 2015) is the canonical endpoint of most chains. Ransomware crews — Conti playbook leaks in 2021 literally included WriteDACL instructions — walk this graph to domain dominance before deploying.

The abuse itself is plain LDAP writes. PowerView's Add-DomainObjectAcl -Rights All or Set-DomainObjectOwner, plus Add-DomainGroupMember, cover the common cases — no exploit code, just directory edits the DC accepts because the ACE says the caller may.

Breaking the chains

  1. Audit DACLs, not just groups. Get-DomainObjectAcl exports; BloodHound maps. Look for non-admin objects holding WriteDACL, GenericAll, ForceChangePassword on high-value targets (DA users, the domain head, GPOs covering Tier 0).
  2. Prune stale ACEs — the grant nobody removed is the adversary's next hop.
  3. AdminSDHolder awareness: AD's SDProp runs every 60 minutes and copies the AdminSDHolder object's ACL onto protected groups' members. An attacker with WriteDACL on AdminSDHolder effectively owns every protected account — check who holds rights on CN=AdminSDHolder,CN=System,DC=corp,DC=local.
  4. Delegate the minimum. Helpdesk ForceChangePassword scoped to non-privileged OUs only; never on DA/Protected Users objects.

Reading raw ACEs is tedious but doable: Get-Acl "AD:\CN=JDoe,OU=Users,DC=corp,DC=local" | Select -ExpandProperty Access lists each ActiveDirectoryRights entry with its trustee. ObjectAceType GUIDs distinguish ForceChangePassword (00289570-…) from generic writes — the GUID is the right, not the flag name. That is also how PowerView and SharpHound decode the graph: LDAP read of ntSecurityDescriptor on every object, GUID-to-edge translation, done.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.