AD-DCOMP-01 - Computers with unconstrained delegation count should be retrievable
Overviewโ
- Unconstrained delegation is one of the most dangerous configurations in Active Directory. When enabled on a computer, it allows services on that computer to impersonate authenticated users to ANY service on ANY computer in the domain.
Security Risks:
- Complete Impersonation: Attackers can impersonate any user who authenticates to the computer
- Lateral Movement: Compromising one computer with unconstrained delegation enables access to all domain resources
- Privilege Escalation: Can be used to escalate from standard user to domain admin
- Ticket Theft: Attackers can harvest TGTs from memory on these computers
Security Recommendationโ
-
Eliminate unconstrained delegation:
- Replace with constrained delegation or resource-based constrained delegation
- Audit all computers with this setting
- Prioritize non-DC computers for remediation
-
Protect computers that require delegation:
- Limit to absolute minimum necessary
- Place in isolated OU with strict access controls
- Monitor for compromise indicators
-
Use alternatives:
- Constrained Delegation: Limits impersonation to specific services
- Resource-Based Constrained Delegation: More flexible and secure approach
- Protocol Transition: When combined with constrained delegation
How the Test Worksโ
This test counts computers with the TrustedForDelegation flag enabled and categorizes them by:
- Domain Controllers vs. non-DC computers
- Total count and percentage
Related Testsโ
Test-MtAdComputerNonDcUnconstrainedDelegationCount- Focuses on non-DC computers (critical risk)Test-MtAdComputerNonDcConstrainedDelegationCount- Reviews constrained delegationTest-MtAdUserDelegationConfiguredCount- Reviews user account delegation
Related linksโ
- Microsoft Defender for Identity: Unsecure Kerberos delegation
- ANSSI Active Directory checkpoints: Unconstrained authentication delegation
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-DCOMP-01 |
| Severity | Critical |
| Suite | Active Directory |
| Category | AD.Security |
| PowerShell test | Test-MtAdComputerUnconstrainedDelegationCount |
| Tags | AD, AD-DCOMP-01, AD.Security |
Sourceโ
- Pester test:
tests/ad/security/Test-MtAdComputerUnconstrainedDelegationCount.Tests.ps1 - PowerShell source:
powershell/public/ad/security/Test-MtAdComputerUnconstrainedDelegationCount.ps1


