Non-DC computers with constrained delegation count should be investigated
AD-DCOMP-03InfoActive DirectoryComputers
Part of Active Directory · Active Directory · Computers · All checks
Invoke-Maester -TestId AD-DCOMP-03Overview
Section titled “Overview”- Constrained delegation (also known as “protocol transition” or S4U2Proxy) is safer than unconstrained delegation but still carries security risks. It allows a service to impersonate a user to specific services only, rather than any service in the domain.
Security Considerations:
- Limited Scope: Safer than unconstrained but still enables impersonation
- Configuration Complexity: Easy to misconfigure and accidentally grant excessive permissions
- Attack Surface: Each computer with constrained delegation expands the attack surface
- Legacy Protocol: Some implementations may fall back to less secure methods
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”-
Minimize Usage:
- Use only where absolutely necessary
- Regular review of all constrained delegation configurations
- Document business justification for each instance
-
Secure Configuration:
- Limit to specific SPNs (Service Principal Names)
- Use protocol transition only when required
- Regular auditing of delegation settings
-
Consider Modern Alternatives:
- Resource-Based Constrained Delegation: More flexible and easier to manage
- Group Managed Service Accounts (gMSA): Automatic password management
- Managed Identity: For cloud and hybrid scenarios
How the Test Works
Section titled “How the Test Works”This test counts non-DC computers with the TrustedToAuthForDelegation flag enabled, which indicates:
- Constrained delegation is configured
- Protocol transition may be enabled
Related Tests
Section titled “Related Tests”Test-MtAdComputerUnconstrainedDelegationCount- Overall unconstrained delegationTest-MtAdComputerNonDcUnconstrainedDelegationCount- Critical non-DC unconstrained delegationTest-MtAdUserDelegationConfiguredCount- User account delegation settings
Related links
Section titled “Related links”- Microsoft Defender for Identity: Unsecure Kerberos delegation
- ANSSI Active Directory checkpoints: Constrained authentication delegation to privileged service
- ANSSI Active Directory checkpoints: Constrained delegation with protocol transition to a privileged service
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-DCOMP-03 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Computers |
| Area | Authentication |
| Resource type | Computer |
| MITRE ATT&CK | T1558 Steal or Forge Kerberos Tickets, T1550.003 Pass the Ticket |
| PowerShell test | Test-MtAdComputerNonDcConstrainedDelegationCount |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:computer:ReadProperty, ActiveDirectory:Ldap:nTDSDSA:ReadProperty |
Source
Section titled “Source”- Test:
tests/ad/security/Test.AD-DCOMP-03.ps1 - Documentation:
tests/ad/security/Test.AD-DCOMP-03.md
About this check
- Severity
- Info
- Product
- Active Directory
- Feature
- Computers
- Area
- Authentication
- Suite
- Active Directory