Domain Controller Delegation Exemptions Hide Real Risk
Overview
Writable domain controllers carry TRUSTED_FOR_DELEGATION by default, and audit tooling that silences this often keys exclusions on OU path or naming pattern rather than DC identity, so a member server in the same OU can hide unconstrained delegation from later sweeps.
At a glance
- Symptom
- A member server is moved into the Domain Controllers OU or matches the DC naming convention, inheriting the audit exclusion meant only for real…
- Likely cause
- Domain controller Kerberos delegation audits are excluded by OU path or naming pattern rather than by primaryGroupID or isCriticalSystemObject.
- Impact
- Genuine unconstrained delegation on a compromised member server stops appearing in BloodHound or PingCastle sweeps with no alert or audit trail.
- Verification signal
- Re-run the detection test and a controlled negative-path test.
- Safe correction
- Filter delegation audits on primaryGroupID 516/521 and diff results against a stored objectGUID baseline on every run, alerting on any drift.
- Rollback or recovery
- Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.
The Trap
Every writable domain controller gets the TRUSTED_FOR_DELEGATION bit (0x80000) set in userAccountControl the moment dcpromo or Install-ADDSDomainController finishes, as part of the default DC computer account flags (userAccountControl 532480, SERVER_TRUST_ACCOUNT plus TRUSTED_FOR_DELEGATION). This is expected and is not the finding to fix. The trap is what happens next, when someone builds an audit query to stop that expected finding from drowning out real ones.
The Default State
Security teams running BloodHound, PingCastle, or a custom LDAP query against (userAccountControl:1.2.840.113556.1.4.803:=524288) get one critical finding per domain controller on day one. Rather than filtering on primaryGroupID=516 or isCriticalSystemObject=TRUE, which correctly identify DCs regardless of location, the common shortcut is an OU-path exclusion such as NOT (distinguishedName -like "*OU=Domain Controllers*") or a name-pattern exclusion like NOT (name -like "DC*"). Both get pasted into the recurring audit script and forgotten.
The Blast Radius
Admins consolidating GPO scope routinely relocate print servers, backup proxies, and jump hosts into the Domain Controllers OU to inherit hardened baseline policies, or they name new build servers with a DC-prefixed convention for asset tracking. Either move now satisfies the exclusion filter written months earlier.
A member server carrying real unconstrained delegation, reachable by any user with local admin who can coerce authentication from a privileged account, silently drops out of every subsequent sweep.
There is no scan failure, no alert, and no audit trail showing the exemption was ever applied to that object, because the exemption logic lives inside the query itself rather than as a documented risk acceptance against a specific object GUID.
The Lead Mechanic Fix
Rewrite delegation audits to key exclusions on role, not location or naming: filter on (primaryGroupID=516 OR primaryGroupID=521) AND (userAccountControl:1.2.840.113556.1.4.803:=524288), then explicitly diff the remaining unconstrained-delegation object list against a stored objectGUID baseline of known DCs on every run: Get-ADComputer -LDAPFilter "(userAccountControl:1.2.840.113556.1.4.803:=524288)" -Properties primaryGroupID | Where-Object { $_.primaryGroupID -notin 516,521 }. Any drift against the prior baseline should page, not silently absorb into the exclusion.
Related reading
Apply the safer control
Before you change production
Confirm the affected scope, export the current configuration, and test the replacement control in a non-production environment first.
Filter delegation audits on primaryGroupID 516/521 and diff results against a stored objectGUID baseline on every run, alerting on any drift.
Validate the vendor-specific syntax in official documentation before applying it.
Verify, roll back or escalate
Verify
Re-run the detection test and a controlled negative-path test. Confirm the unsafe behaviour is blocked while approved traffic still succeeds.
Rollback
Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.
Escalate
Escalate when the blast radius is uncertain, the control cannot be tested safely, or remediation requires an outage or security exception.
Fixed? Get the next one before it hits you: The KBY Brief
Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.
About this page
Credited to
Dates
Published
Last updated
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
