Nyx Learning Kerberos · Part 3 of 3
Kerberos · Part 3 of 3

Delegation and trust, the last mile of Kerberos

Delegation, trusts, and hardening

Generated Wednesday, October 7, 2026 · Depth: deep · Delegation behaviors, MachineAccountQuota, Protected Users, and the 2025 guidance checked against Microsoft documentation and Microsoft's December 2025 Active Directory threat-mitigation blog.

01

Start here

Where this closes the series
  1. Part 1: Foundations and roasting. The protocol, keys, encryption types, the 2026 Rivest Cipher 4 (RC4) changes, and offline password attacks.
  2. Part 2: Ticket theft and forgery. Bearer tokens, golden/silver/diamond/sapphire tickets, the Privilege Attribute Certificate (PAC) hardening, Credential Guard, and krbtgt rotation.
  3. Part 3 (this page): Delegation and trust. Why delegation exists, the three kinds (unconstrained, constrained, resource-based), the Service for User (S4U) extensions that power them and the sapphire ticket from Part 2, trusts and Security Identifier (SID) history across domains, and the hardening that ties the whole series together: Protected Users, the "sensitive" flag, and Kerberos armoring.
Highlight key
the term being defined
Key term: bold with a highlighter swash. A concept's defining phrase.
how something works
Mechanism: wavy underline. How a piece works or relates to another.
Risk: what makes an attack possible
Risk: warm highlight with a dashed edge. Attack prerequisites and dangerous conditions.
Fix: the mitigation to apply
Fix: solid green underline. A mitigation or configuration change.
Verify: how to confirm it worked
Verify: green underline with a check. How to prove a fix works.
only if, by default
Qualifier: bold italic. A word that changes the claim.
4769
Technical literal: monospace chip. Commands, settings, event IDs, exactly as typed.

Plain English first

Delegation is Kerberos solving a real business problem. You open a web app; the web app needs to pull your rows from a database on another server, as you, not as itself. Someone has to let the web server reuse your identity on the next hop. That permission is delegation.

It is genuinely useful and genuinely dangerous. If a server can act as you, then Risk: whoever controls that server can act as you, and if the configuration is loose, as anyone. Three designs exist, built over 20 years, each tightening the last:

  • Unconstrained: the oldest and most dangerous. Risk: The server can impersonate you to anything. It caches your master ticket to do so.
  • Constrained: the server can impersonate you, but only to a named list of services.
  • Resource-based (RBCD): the same idea, but the permission is set on the destination, which flips who can configure it, and Risk: that flip is an attack path.

The analogy: the valet, the concierge, and the loading dock

Unconstrained delegation is Risk: handing the valet your whole keyring: they can drive your car, open your house, and get into your office, because you gave them everything "so they can park the car." Constrained delegation is a valet ticket that works on exactly one car in one garage. Resource-based delegation moves the decision to the garage: the garage owner posts a list of which valets may bring cars in. The risk flips with it, because now Risk: anyone who can edit the garage's list can add their own valet.

Why it matters now

Attacker

Delegation is a top escalation route on modern tests. Unconstrained hosts plus a coercion trick Risk: can capture a Domain Controller's (DC) own ticket and lead to full compromise. Resource-based delegation Risk: turns a single misconfigured write permission into domain takeover, often starting from the computer accounts ordinary users can create.

Defender

Microsoft's December 2025 Active Directory (AD) guidance calls out unconstrained delegation specifically, and newer defaults (RC4 off, Local Directory Access Protocol (LDAP) channel binding on in Windows Server 2025) tighten the edges. The levers are concrete: remove unconstrained delegation, close the machine-account quota, protect Tier 0 identities, and turn on armoring.

If you remember only 5 things

  1. Unconstrained delegation is the one to hunt and kill first. It caches users' Ticket Granting Tickets (TGTs), including a DC's if you can coerce one to connect. Fix: Treat any non-DC host with it as near-Tier 0.
  2. Constrained and RBCD both run on S4U. S4U2self gets a ticket "as" a user; S4U2proxy forwards it to a back-end. Understanding those two calls explains constrained, resource-based, and sapphire tickets at once.
  3. RBCD's danger is who can configure it. The permission lives on the target and Risk: anyone with write access to it can set it. Combined with the default machine-account quota of 10, a plain user can often engineer impersonation.
  4. Protect Tier 0 identities from delegation entirely. Add them to Protected Users and mark them "sensitive and cannot be delegated." Fix: No correctly configured delegation can then impersonate them.
  5. Trusts move the blast radius. SID history and weak SID filtering let a compromise in one domain reach another. A forest is one security boundary; a domain is not.
02

Core concepts

Thirteen ideas, each building on the last. Open "Go deeper" for expert detail.

01What delegation is, and why it existsLetting a service reuse a user's identity on a further hop, so multi-tier apps work.
In plain terms

A web server often needs to reach a database as you, not as itself, so your permissions apply. Delegation is the mechanism that lets the first server carry your identity to the second.

Example

You load an intranet report; the web server connects to the SQL database as you to pull only your rows.

TechnicalGo deeper

Without delegation, the "double hop" problem appears: the front-end has your ticket for itself but can't use it onward, so the back-end sees the service account, not you. Delegation solves it, but every solution hands a server the ability to act as users, Risk: which is power that must be scoped. The three models are escalating attempts to scope it.

02Unconstrained delegationA front-end that can impersonate a connecting user to any service, by caching the user's Ticket Granting Ticket (TGT).
In plain terms

The oldest and most dangerous form. A server with this setting receives and stores each user's master ticket, so it can go anywhere as them. Risk: Compromise the server, inherit everyone who connected.

Example

A legacy web server flagged for unconstrained delegation holds the TGTs of everyone who browsed to it today, Risk: including an admin.

TechnicalGo deeper

Set by TRUSTED_FOR_DELEGATION in userAccountControl. The inbound service ticket carries a forwarded TGT and session key, cached in Local Security Authority Subsystem Service (LSASS). All Domain Controllers (DCs) have it inherently; the risk is any other host. Paired with coercion (printer bug, PetitPotam) an attacker forces a DC to authenticate to their unconstrained host and Risk: captures the DC's TGT, leading to DCSync and domain compromise. Microsoft's 2025 guidance calls it out explicitly: Fix: remove it, use Credential Guard, and protect privileged accounts.

03Constrained delegation (KCD)Delegation limited to a named list of target Service Principal Names (SPNs) on the front-end account.
In plain terms

A tighter design: the server may act as you, but only toward a specific list of services an admin approved, not everywhere.

Example

The web server is allowed to delegate only to MSSQLSvc/db01, so a compromise of it can't reach a file server as you.

TechnicalGo deeper

Configured in msDS-AllowedToDelegateTo. It uses S4U2proxy to forward a user's ticket to the listed SPNs. Two modes: protocol transition (TrustedToAuthForDelegation) Risk: lets the front-end mint a ticket for any user via S4U2self; "Kerberos only" requires a ticket the user actually presented. Key weakness: Risk: the service class in the forwarded ticket isn't strongly bound, so delegation to HTTP/host can often reach CIFS/host on the same host.

04Resource-based constrained delegation (RBCD)Delegation configured on the target object, naming who may delegate to it.
In plain terms

Same goal as constrained delegation, but the destination decides who may impersonate users to it. That sounds tidy, and Risk: it moves the risk to whoever can edit the destination's setting.

Example

An attacker with write access to a server's object Risk: sets it to trust a computer account they created, then impersonates an admin to that server.

TechnicalGo deeper

Stored in msDS-AllowedToActOnBehalfOfOtherIdentity on the target. Anyone with write (GenericWrite, GenericAll, WriteDACL) can set it; a machine can set its own. Needs a controllable Service Principal Name (SPN) account, usually a computer account the default MachineAccountQuota of 10 lets any user create. Requires Domain Functional Level (DFL) 2012+. It's a favourite Risk: because the prerequisites are so low, and it pairs naturally with coercion and relay to Lightweight Directory Access Protocol (LDAP).

05The Service for User (S4U) extensionsS4U2self gets a ticket as a user; S4U2proxy forwards it to a back-end.
In plain terms

Two protocol calls do the actual work in constrained and resource-based delegation. One produces a ticket that represents a user; the other hands that ticket to the next service.

Example

A front-end calls S4U2self to get a ticket "as" the CEO to itself, then S4U2proxy to turn that into a ticket to the database.

TechnicalGo deeper

S4U2self enables protocol transition (authenticate the user by other means, then get a Kerberos ticket for them). The ticket's forwardable flag governs whether S4U2proxy will forward it; Common Vulnerabilities and Exposures (CVE) entry CVE-2020-17049, the "bronze bit," abused the ability to flip that flag. S4U2proxy checks the delegation configuration (Kerberos Constrained Delegation (KCD) list or Resource-Based Constrained Delegation (RBCD) attribute). Understanding these two calls explains constrained delegation, RBCD, and the sapphire ticket from Part 2 in one go.

06Coercion and the unconstrained comboForcing a target, even a Domain Controller (DC), to authenticate to an attacker-chosen host.
In plain terms

Unconstrained delegation only pays off if a valuable account connects to the bad server. Coercion removes the waiting: Risk: it makes the target connect on command.

Example

An attacker triggers the printer bug against a DC, pointing it at their unconstrained host, and captures the DC's ticket.

TechnicalGo deeper

Coercion abuses Remote Procedure Call (RPC) interfaces that authenticate outbound: MS-RPRN (printer bug) and MS-EFSRPC (PetitPotam) are the best known. Combined with an unconstrained host it captures a privileged Ticket Granting Ticket (TGT); combined with relay to Lightweight Directory Access Protocol (LDAP) it writes an Resource-Based Constrained Delegation (RBCD) attribute. Mitigations: patch, disable the Print Spooler where unneeded, Extended Protection for Authentication, Server Message Block (SMB)/LDAP signing, and Fix: removing unconstrained delegation so there's nothing to capture into. Adversarial Tactics, Techniques, and Common Knowledge (ATT&CK) T1187.

07Protected Users groupA group whose members get strong, non-negotiable Kerberos protections.
In plain terms

Putting a sensitive account in this group forces safer behavior: Fix: no weak ciphers, no NT LAN Manager (NTLM), no being delegated, and shorter-lived tickets.

Example

Domain admins are added to Protected Users so no delegation can impersonate them and their credentials aren't cached on servers.

TechnicalGo deeper

Members cannot use Rivest Cipher 4 (RC4) or Data Encryption Standard (DES), cannot authenticate with NTLM, cannot be delegated (constrained or unconstrained), cannot use CredSSP/WDigest credential caching, and get a 4-hour non-renewable Ticket Granting Ticket (TGT). Caveats: the built-in Relative Identifier (RID) 500 administrator isn't fully protected, service accounts shouldn't be members (they often need those features), and it requires 2012 R2+ Domain Controllers (DCs). Pair it with the sensitive flag and silos.

08The 'sensitive and cannot be delegated' flagAn account flag that forbids any delegation of that identity.
In plain terms

A per-account switch that says "never let any server act as me." Simple and surgical: it blocks impersonation without changing anything else about the account.

Example

A Tier 0 service account that can't go in Protected Users is marked sensitive so delegation still can't impersonate it.

TechnicalGo deeper

The NOT_DELEGATED bit in userAccountControl (AccountNotDelegated $true). Unlike Protected Users it doesn't touch ciphers, NT LAN Manager (NTLM), or ticket lifetime, so it rarely breaks anything, which makes it the easiest Tier 0 hardening to apply broadly. Fix: Every privileged account should have it unless there's a specific reason not to.

09Trusts and the security boundaryA forest, not a domain, is the real security boundary.
In plain terms

Big organizations link domains and forests with trusts so people in one can use resources in another. Risk: Those links are also how compromise spreads if they're loose.

Example

A compromise in a small acquired domain reaches the parent because an intra-forest trust doesn't filter privileged Security Identifiers (SIDs).

TechnicalGo deeper

Trusts can be intra-forest or cross-forest, one- or two-way, transitive or not. The home Key Distribution Center (KDC) issues a referral Ticket Granting Ticket (TGT) to the trusted domain's KDC, which issues the service ticket. Risk: Intra-forest trusts don't apply SID filtering, so SID history escalation works across them; cross-forest trusts quarantine foreign SIDs by default. Treat the forest as the blast-radius unit when scoping an assessment.

10Security Identifier (SID) history and SID filteringSID history preserves old SIDs; SID filtering strips untrusted ones.
In plain terms

During migrations, accounts keep their old identifiers so they don't lose access. If an attacker can write that field, they can Risk: smuggle in a powerful group's identifier and inherit its access.

Example

An attacker adds the Domain Admins SID to a normal account's SID history, and the account is now effectively a domain admin.

TechnicalGo deeper

sIDHistory is writable only with high privilege or specific APIs, but forged tickets (golden/diamond, Part 2) can embed arbitrary SID history directly, Risk: bypassing the write. SID filtering (quarantine) is the defense, on by default across forest trusts but not intra-forest. Verify: Audit sIDHistory writes (event 5136) and confirm filtering on external trusts.

11Kerberos armoring (FAST) and policies/silosArmoring protects pre-auth; authentication policies and silos restrict where and how long tickets are issued.
In plain terms

Armoring puts the login exchange inside a protected tunnel so it can't be attacked offline. Policies and silos go further, letting you say "Fix: these admin accounts only work from these machines."

Example

A Tier 0 silo means a domain admin's ticket is only issued when they log on from a designated privileged workstation.

TechnicalGo deeper

FAST uses the machine's Ticket Granting Ticket (TGT) to armor the AS exchange, defeating AS-REP roasting and pre-auth attacks and enabling compound (device + user) authentication. It needs client and Domain Controller (DC) support and is enabled by policy, not universally on. Authentication policies can require armor and cap TGT lifetime; silos confine accounts to approved hosts. For Tier 0, silo + Protected Users + sensitive flag is the strongest standing posture Kerberos offers.

12Tiering as the unifying defenseSeparating identities and hosts by privilege level so credentials never mix downward.
In plain terms

The single idea that shrinks every attack in this series: keep powerful accounts and the machines they touch separate from ordinary ones, so a foothold on a workstation never reaches the crown jewels.

Example

Domain admins log on only to domain controllers and privileged workstations, never to user desktops or app servers.

TechnicalGo deeper

Tier 0 (control of Active Directory (AD)), Tier 1 (servers/apps), Tier 2 (workstations), with no credential flowing from a lower tier's host to a higher tier's identity. Delegation, unconstrained hosts, and coercion all become far less useful when privileged tickets never land where an attacker already is. Microsoft's tiered administration (and newer Enterprise Access Model) guidance is the strategic backdrop to every remediation in Parts 1 to 3.

03

Visual map

Step through legitimate Service for User (S4U) delegation, then the two escalation paths. Verify: Each step names the defense that breaks it.

The three delegation models

UnconstrainedConstrained (KCD)Resource-based (RBCD)
IntroducedWindows 2000Windows Server 2003Windows Server 2012
Where configuredOn the front-end account (userAccountControl TRUSTED_FOR_DELEGATION)On the front-end account (msDS-AllowedToDelegateTo)On the target (msDS-AllowedToActOnBehalfOfOtherIdentity)
Who can set itDomain adminDomain admin (the Service Principal Name (SPN) list)Risk: Anyone with write access to the target object
ScopeAny serviceListed SPNs onlyAccounts the target names
Caches user Ticket Granting Tickets (TGTs)?Risk: Yes (the core danger)NoNo
Main riskCompromise of the host = impersonate anyone who connected, including a coerced Domain Controller (DC)Impersonate anyone to the listed services; service-class weakness widens the hopA single write permission becomes impersonation; low barrier to set up

The S4U extensions

ExtensionWhat it doesAttacker relevance
S4U2selfLets a service get a service ticket to itself on behalf of any user, for apps that authenticated the user some other way (protocol transition)Produces a usable ticket for an arbitrary user; the forwardable flag is the hinge the "bronze bit" (Common Vulnerabilities and Exposures (CVE) entry CVE-2020-17049) abused
S4U2proxyLets a service forward a user's ticket to a back-end service it is allowed to delegate toThe step that reaches the back-end; allowed by either the KCD SPN list or the RBCD attribute

Protections for an identity against delegation

ControlEffectCaveat
"Account is sensitive and cannot be delegated" (NOT_DELEGATED flag)Fix: No delegation of any kind can impersonate this accountMust be set per account; easy to miss on a new admin
Protected Users groupBlocks delegation, NT LAN Manager (NTLM), Rivest Cipher 4 (RC4)/Data Encryption Standard (DES), and credential caching; 4-hour non-renewable TGTThe built-in Relative Identifier (RID) 500 administrator is not fully protected; breaks apps needing those features
MachineAccountQuota = 0Fix: Ordinary users can no longer create computer accounts for RBCDSPN-less RBCD variants can still work; doesn't fix the write-ACL root cause
Kerberos armoring (FAST)Protects the pre-auth exchange and enables compound authenticationNeeds client and DC support; enabled via policy, not on everywhere by default
04

Technical deep dive

Technical

Under the hood

Unconstrained delegation

A front-end account flagged TRUSTED_FOR_DELEGATION receives, inside each inbound service ticket, Risk: a forwarded copy of the user's Ticket Granting Ticket (TGT) plus its session key. The server caches that TGT in memory (in the Local Security Authority Subsystem Service, Local Security Authority Subsystem Service (LSASS)) and can present it to any service as the user. All Domain Controllers (DCs) are trusted for delegation by design; Risk: the danger is any other host that carries the flag.

  • The escalation: if an attacker controls an unconstrained host, Risk: they wait for, or coerce, a privileged account to authenticate to it, then lift that account's cached TGT.
  • Coercion turns waiting into forcing. Techniques that make a server authenticate on command (the long-known "printer bug" via the Print System Remote Protocol, and the later PetitPotam over the Encrypting File System Remote Protocol) can point a DC's authentication at the attacker's unconstrained host, Risk: capturing the DC's own TGT. From there, DCSync (Part 2) yields the domain.
  • Why it's so dangerous: no weak password, no Access Control List (ACL) mistake, just one over-trusted host and a way to make a target connect to it.

Constrained delegation (KCD) and its two flavors

  • Protocol transition (TrustedToAuthForDelegation, "use any authentication protocol"): the service may call S4U2self to obtain a ticket for a user who never authenticated with Kerberos, then forward it. Powerful, because Risk: the front-end can mint a usable ticket for any user at will.
  • Kerberos only ("use Kerberos only"): the front-end can only forward a ticket the user genuinely presented, so it cannot conjure arbitrary users.
  • The classic widening: msDS-AllowedToDelegateTo lists Service Principal Names (SPNs), but Risk: the service class in the forwarded ticket is not strongly bound. A front-end allowed to delegate to HTTP/host can often reach CIFS/host or LDAP/host on the same host, because the ticket targets the account, not the specific service. Delegating to a DC's services this way can mean full control.

Resource-based constrained delegation (RBCD)

RBCD inverts where trust is declared. Instead of a domain admin listing targets on the front-end, the target names who may delegate to it, in msDS-AllowedToActOnBehalfOfOtherIdentity. The practical consequence is who can configure it.

  1. An attacker who can write that attribute on a target (via a misconfigured ACL, GenericWrite, GenericAll, WriteDACL, or control of the computer's own account) points it at an account they control.
  2. They need a controlled account Kerberos treats as a service, which means an SPN. Because MachineAccountQuota defaults to 10, Risk: an ordinary user can usually just create a computer account to serve as that principal.
  3. They then use S4U2self and S4U2proxy to obtain a ticket impersonating a privileged user to the target.

RBCD requires a Windows Server 2012 or higher domain functional level. Relay attacks tie in here: an authentication relayed to Lightweight Directory Access Protocol (LDAP) can write the attribute, which is why coercion plus relay plus RBCD is a common chain.

Trusts and Security Identifier (SID) history

  • A forest is the security boundary, not a domain. Within a forest, the shared krbtgt-equivalent trust and the lack of SID filtering mean a compromise in one domain can often reach others.
  • SID history (sIDHistory) exists to preserve access during migrations by carrying old SIDs. An attacker who can write it can insert a privileged SID (for example, a Domain or Enterprise Admin group) Risk: so a low-privileged account inherits that access. Golden and diamond tickets can embed SID history directly.
  • SID filtering is the countermeasure: it strips SIDs that don't belong to the trusted domain. It is applied by default on cross-forest trusts (quarantine), but intra-forest trusts don't filter, which is why intra-forest escalation via SID history works.
  • Referral tickets carry a client across trusts: the home Key Distribution Center (KDC) issues a referral TGT to the trusted domain's KDC, which then issues the service ticket. This is the machinery attackers ride when moving between domains with forged or SID-history-laden tickets.

Kerberos armoring (FAST)

Flexible Authentication Secure Tunneling (FAST) wraps the pre-authentication exchange inside an "armor" protected by the machine's TGT, so the timestamp and errors aren't exposed to offline attack, and it enables compound authentication (device plus user claims). It raises the cost of AS-REP roasting and pre-auth attacks from Part 1 and underpins authentication policies and silos. It needs both client and DC support and is turned on through Group Policy; it is not universally on by default, so Fix: treat it as a deliberate hardening project.

Authentication policies and silos

These are the opt-in controls that actually restrict ticket issuance by context: an authentication policy can require armor and cap TGT lifetime, and a silo can confine a set of accounts so their tickets are only issued when they authenticate from designated hosts. For Tier 0, Fix: a silo plus Protected Users is the strongest standing configuration Kerberos offers.

Common misconceptions

MisconceptionReality
"Constrained delegation is safe because it's a fixed list."The service-class isn't strongly bound, so Risk: delegation to one SPN can reach other services on the same host. Scope and target carefully.
"RBCD needs admin rights to exploit."It needs write access to one attribute plus a controllable SPN account, Risk: which the default machine-account quota usually provides.
"Only DCs have unconstrained delegation."DCs always do, but legacy app and web servers are often flagged too, and Risk: those are the dangerous ones.
"A domain is a security boundary."The forest is. Trusts and SID history move compromise between domains.
"Protected Users protects everyone important."The built-in Relative Identifier (RID) 500 administrator isn't fully covered, and service accounts can't be members. Use the sensitive flag and silos too.
"Marking an account sensitive breaks its logins."It only blocks delegation of that account. It does not stop normal interactive or network logon.

Finding and verifying delegation

# Unconstrained (non-DC hosts flagged for delegation)
Get-ADComputer -Filter {TrustedForDelegation -eq $true -and PrimaryGroupID -ne 516} -Properties TrustedForDelegation
Get-ADUser -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation

# Constrained (KCD)
Get-ADObject -Filter {msDS-AllowedToDelegateTo -like '*'} -Properties msDS-AllowedToDelegateTo

# Resource-based (RBCD): targets that name a delegate
Get-ADComputer -Filter * -Properties msDS-AllowedToActOnBehalfOfOtherIdentity |
  Where-Object {$_.'msDS-AllowedToActOnBehalfOfOtherIdentity'}

# Machine account quota
(Get-ADObject (Get-ADDomain).DistinguishedName -Properties ms-DS-MachineAccountQuota).'ms-DS-MachineAccountQuota'

# Accounts protected from delegation
Get-ADUser -Filter {AccountNotDelegated -eq $true} -Properties AccountNotDelegated
Get-ADGroupMember 'Protected Users'
05

Attacker's view

Attacker

Attacker's view, for defenders

Covered at the level needed to recognise, test for, and explain each path. Focus on prerequisites, what makes an environment vulnerable, the evidence left, and how it reads as a finding. Tools are named so you can build detections and a lab.

Unconstrained delegation abuse (with coercion)ATT&CKT1558 Steal or Forge Kerberos Tickets · T1187 Forced Authentication
How it works

An attacker who controls a host flagged for unconstrained delegation Risk: captures the Ticket Granting Tickets (TGTs) of accounts that authenticate to it. Coercion forces a chosen target, including a Domain Controller (DC), to authenticate on command, so the attacker can capture a privileged TGT at will.

Prerequisites

Risk: Control of a non-DC host trusted for unconstrained delegation, plus a way to make a valuable account connect (a coercion trigger, or simply waiting).

What makes an environment vulnerable

Risk: Legacy servers left flagged for unconstrained delegation; reachable coercion interfaces (print spooler, Encrypting File System (EFS) Remote Procedure Call (RPC)); privileged accounts that aren't in Protected Users or marked sensitive.

Tools

Rubeus (monitor/harvest modes) and Mimikatz for the TGT capture; coercion tools such as SpoolSample/Coercer/PetitPotam are the referenced triggers. Name them for lab and detection work.

DefenderEvidence it leaves

Verify: A DC or privileged account authenticating to a non-DC unconstrained host (4768/4769), outbound DC authentication to an unexpected host, and the coercion RPC calls on the wire or in Microsoft Defender for Identity (MDI).

ExecutiveAs a pentest finding

"Unconstrained delegation enables domain compromise via coercion." Typically critical, because it yields a DC's TGT and then the domain. Retest: no non-DC unconstrained hosts remain, coercion mitigations applied, and the path fails.

Resource-based constrained delegation abuseATT&CKT1134 Access Token Manipulation · T1098 Account Manipulation
How it works

With write access to a target object, the attacker sets its msDS-AllowedToActOnBehalfOfOtherIdentity to Risk: an account they control, then uses S4U2self and S4U2proxy to obtain a ticket impersonating a privileged user to that target.

Prerequisites

Risk: Write access to the target's attribute (via Access Control List (ACL) misconfig or relayed authentication), and a controllable Service Principal Name (SPN) account, usually a computer account created under the default MachineAccountQuota of 10.

What makes an environment vulnerable

Over-broad write permissions on computer/user objects, Risk: a non-zero machine-account quota, Domain Functional Level (DFL) 2012+, and no monitoring of the delegation attributes.

Tools

Impacket (for the account creation and Service for User (S4U) steps), PowerView/StandIn for the attribute write, and Rubeus for the S4U exchange. Often chained with relay tools after coercion.

DefenderEvidence it leaves

4741 computer account creation from a non-admin, Verify: 5136 modification of the Resource-Based Constrained Delegation (RBCD) attribute, and 4769 with a populated Transited Services field during the impersonation.

ExecutiveAs a pentest finding

"Excessive permissions allow RBCD-based impersonation." Severity follows the target's privilege; a path to a Domain Controller (DC) is critical. Retest: Verify: machine-account quota 0, the ACL edge removed, the attribute cleared, and the 5136/4741 alerts firing.

Constrained delegation abuse (incl. protocol transition)ATT&CKT1558 Steal or Forge Kerberos Tickets
How it works

If the attacker controls an account configured for constrained delegation, protocol transition lets them Risk: mint a ticket for any user via S4U2self and forward it to the allowed Service Principal Names (SPNs). Service-class weakness often lets them reach other services on the same target host.

Prerequisites

Control of an account with msDS-AllowedToDelegateTo set (and ideally protocol transition), Risk: obtained by compromising that service account.

What makes an environment vulnerable

Service accounts configured with protocol transition, Risk: delegation targets that include sensitive hosts, and the unbound service-class behavior letting one allowed SPN reach others.

Tools

Rubeus and Impacket for the Service for User (S4U) exchange and the service-class swap.

DefenderEvidence it leaves

4769 with Transited Services populated, especially Verify: tickets for service classes not in the configured list, on the delegating account.

ExecutiveAs a pentest finding

"Over-scoped constrained delegation enables impersonation to sensitive services." Severity depends on the reachable targets. Retest: delegation scoped narrowly, protocol transition removed where possible, and Fix: no delegation to Tier 0.

Trust and Security Identifier (SID) history abuseATT&CKT1134.005 SID-History Injection
How it works

An attacker who can write sIDHistory, or who forges a ticket (golden/diamond) embedding it, inserts a privileged group's SID so Risk: a low-privileged account inherits that access, and rides referral tickets across trusts where SID filtering doesn't apply.

Prerequisites

High privilege to write sIDHistory directly, or Risk: the krbtgt key to embed it in a forged ticket (Part 2); an intra-forest trust, or a cross-forest trust without proper filtering.

What makes an environment vulnerable

Risk: Intra-forest trusts (no SID filtering by default), misconfigured cross-forest trust filtering, and unaudited sIDHistory changes.

Tools

Mimikatz and Impacket for SID-history injection and cross-trust ticket use.

DefenderEvidence it leaves

5136 writes to sIDHistory, and Verify: tickets presenting SIDs that don't match the account's home domain. Microsoft Defender for Identity (MDI) flags some cross-trust anomalies.

ExecutiveAs a pentest finding

"Trust configuration allows cross-domain privilege escalation." Scope and severity depend on what the trust reaches. Retest: Verify: SID filtering confirmed on external trusts, unnecessary trusts removed, sIDHistory writes alerting.

How delegation findings usually chain

  1. Discovery: Lightweight Directory Access Protocol (LDAP) and BloodHound enumerate delegation flags, the msDS-Allowed* attributes, Risk: write permissions on computer objects, and the machine-account quota.
  2. Setup: for Resource-Based Constrained Delegation (RBCD), create or commandeer a controllable Service Principal Name (SPN) account and write the target attribute; for unconstrained, identify a flagged host and a coercion target.
  3. Impersonation: Service for User (S4U) calls (constrained/RBCD) or a captured Ticket Granting Ticket (TGT) (unconstrained) Risk: yield access as a privileged user.
  4. Objective: access to the target service, and frequently Risk: a direct path to Tier 0, especially when a Domain Controller (DC) is involved.
06

Defender's playbook

Defender

The strategy: eliminate unconstrained delegation, scope the other two tightly, close the machine-account quota, protect Tier 0 identities from delegation, and Verify: alert on the few attribute changes that signal abuse.

Quick wins (days)

  1. Hunt unconstrained delegation on non-DC hosts and remove it, or convert those apps to constrained or resource-based delegation. Fix: Treat each flagged host as near-Tier 0 until fixed.
    Get-ADComputer -Filter {TrustedForDelegation -eq $true -and PrimaryGroupID -ne 516} -Properties TrustedForDelegation |
      Select Name,DNSHostName
  2. Set MachineAccountQuota to 0 and Fix: grant computer-join rights only to a delegated group.
    Set-ADDomain (Get-ADDomain) -Replace @{'ms-DS-MachineAccountQuota'=0}
  3. Protect Tier 0 identities: Fix: add them to Protected Users and set the sensitive flag.
    Set-ADAccountControl -Identity adm_tier0 -AccountNotDelegated $true
    Add-ADGroupMember 'Protected Users' adm_tier0
  4. Review Resource-Based Constrained Delegation (RBCD) attributes already present; Verify: any unexpected msDS-AllowedToActOnBehalfOfOtherIdentity is suspicious.
  5. Audit write permissions on computer objects (GenericWrite, GenericAll, WriteDACL, WriteProperty) and Fix: remove over-broad grants. BloodHound maps these edges well.
  6. Mitigate coercion: patch, Fix: disable the Print Spooler where it isn't needed, and apply the recommended registry and Extended Protection for Authentication settings against PetitPotam-style relays.

Longer-term fixes (weeks to months)

  1. Deploy authentication policies and silos for Tier 0, Fix: confining those accounts to designated admin hosts and requiring armor.
  2. Turn on Kerberos armoring (FAST) by policy across clients and Domain Controllers (DCs), after testing. It hardens the pre-auth attacks from Part 1 and supports compound authentication.
  3. Enforce Server Message Block (SMB) signing, Lightweight Directory Access Protocol (LDAP) signing, and LDAP channel binding (default-on in Windows Server 2025) to blunt the relay half of RBCD chains.
  4. Review trusts: confirm Security Identifier (SID) filtering / quarantine on cross-forest trusts, remove unnecessary trusts, and Verify: alert on sIDHistory writes.
  5. Scope constrained delegation precisely, prefer "Kerberos only" over protocol transition, and never delegate to Tier 0 services.
  6. Migrate front-end services to group Managed Service Accounts (gMSAs) Fix: so their keys are strong and managed, shrinking both roasting and silver-ticket exposure on the delegating host.

Detection signals

SignalSourceWhy it matters
4741 / 4742: computer account created or changedDC Security logA new computer account from a non-admin, especially paired with an attribute write, Verify: is a hallmark of RBCD setup.
5136: directory object modified for msDS-AllowedToActOnBehalfOfOtherIdentity, msDS-AllowedToDelegateTo, or sIDHistoryDC Security log (directory service changes auditing)Direct evidence of delegation or SID-history tampering. Verify: Among the highest-value alerts in this part.
4769 with a populated "Transited Services" fieldDC Security logVerify: Marks S4U2proxy activity, the forwarding step of constrained and resource-based delegation.
4768 / 4769 to or from a host flagged for unconstrained delegationDC Security logPrivileged accounts, especially DCs, authenticating to such a host Risk: is the capture scenario.
Coercion traffic: a DC making outbound authentication to an unexpected host; Remote Procedure Call (RPC) calls to the printer or Encrypting File System (EFS) interfacesNetwork, Microsoft Defender for Identity (MDI)Risk: The trigger that makes unconstrained delegation dangerous.
MDI alerts for delegation and coercionMicrosoft Defender for IdentityBuilt-in analytics for several of these paths, including unconstrained-delegation exposure.

Verify the fix worked

  1. Re-run the discovery queries: no unexpected unconstrained hosts, Verify: machine-account quota is 0, and no stray RBCD attributes.
  2. Confirm Tier 0 accounts show AccountNotDelegated = true and Verify: are in Protected Users.
  3. Have testers attempt the RBCD chain against a hardened target and Verify: confirm it fails and that 4741/5136 alerts fire.
  4. Confirm coercion attempts Verify: no longer capture a DC Ticket Granting Ticket (TGT) (no unconstrained non-DC hosts remain) and that patches/registry settings are applied.
  5. Where armoring was enabled, confirm clients and DCs negotiate it and that Verify: authentication policies apply to the Tier 0 silo.

Why remediation stalls, and workable compromises

ObjectionWorkable compromise
"Our legacy app needs unconstrained delegation."Migrate it to constrained or resource-based delegation scoped to the exact back-end Service Principal Names (SPNs). If truly stuck, isolate the host, treat it as Tier 0, and never let privileged accounts authenticate to it.
"We can't set MachineAccountQuota to 0; teams self-provision."Set it to 0 and delegate computer-join rights to a specific provisioning group or process, Fix: so creation is controlled rather than open to every user.
"Protected Users breaks an admin's tooling."Identify the dependency (often Rivest Cipher 4 (RC4), NT LAN Manager (NTLM), or delegation). Fix the tool; meanwhile Fix: use the sensitive flag and a silo, which block delegation without all of Protected Users' constraints.
"Armoring is a big project."Fix: Start with DCs and Tier 0 admin hosts, then expand. Even partial coverage protects the most valuable authentications.
"We have lots of trusts we don't understand."Inventory them, confirm SID filtering on external/forest trusts, and Fix: remove any with no current business purpose. Alert on sIDHistory writes in the meantime.
07

Executive brief

Executive

The risk in plain language

To work smoothly, our network lets some servers act "on behalf of" a user, so that, for example, a web application can fetch your data from a database as you. This is normal and useful. The risk is that if one of those servers is set up too loosely, or if the permission controlling it can be edited by the wrong person, Risk: an attacker can use it to impersonate anyone, including our most powerful administrators.

One older form of this feature is especially dangerous: a server set up with it Risk: can be tricked into capturing the credentials of a domain controller, one of the servers that vouches for every login, which leads to control of the whole network.

Business impact

  • A path from a modest foothold to full control of the Windows environment, Risk: often without cracking a single password.
  • Impersonation of specific high-value users, Risk: undermining the trustworthiness of our access logs.
  • In networks connected by trust relationships, Risk: compromise can spread from one business unit or acquisition to another.

What drives likelihood

  • Risk: Old, over-trusted servers left configured with the dangerous legacy form of this feature.
  • Loose permissions that Risk: let ordinary users create machine accounts or edit delegation settings.
  • Unprotected administrator accounts that Risk: aren't marked as off-limits to this feature.
  • Risk: Unmanaged trust relationships between parts of the organization.

Cost of inaction

The fixes are configuration and permission changes, not purchases: removing the legacy feature where it isn't needed, tightening who can create machine accounts, protecting administrator accounts, and reviewing trusts. The cost of leaving it is Risk: a reliable, quiet route to total compromise that doesn't trip the defenses aimed at passwords.

What good looks like

  • The dangerous legacy form of delegation exists Fix: only where it's unavoidable, on isolated and closely watched servers.
  • Fix: Ordinary users can't create machine accounts or edit delegation settings.
  • Administrator accounts are Fix: explicitly protected from being impersonated this way.
  • Trust relationships are Fix: inventoried, justified, and filtered.
  • Verify: We're alerted when someone changes a delegation setting or creates a machine account unexpectedly.

Questions executives ask

Is this as serious as the password and ticket attacks?

Often more, because Risk: it frequently needs no password at all. A loose server setting or a single over-broad permission can be turned into impersonating an administrator. The upside is that the fixes are configuration changes we control, not a race to patch.

What's the one change with the biggest effect?

Fix: Removing the dangerous legacy form of delegation from any server that isn't a domain controller, and treating anything we can't remove it from as highly sensitive. That closes the path that leads most directly to full compromise.

Can ordinary employees really create accounts that enable this?

By default, yes. A standard setting lets any user create up to ten machine accounts, which is enough to set up one version of this attack. Turning that off, and limiting who can change delegation settings, removes the easy route.

Does this spread between our different networks?

It can, through the trust relationships that link them. A compromise in a smaller or acquired network can reach the main one Risk: if those trusts aren't filtered. That's why we recommend inventorying and tightening trusts.

How would we detect it?

The strongest signals are changes to delegation settings and unexpected machine-account creation, both of which our domain controllers can log. Those changes are rare in normal operation, so Verify: they make clean alerts.

What does fixing it cost?

Mostly staff time to find and remove the legacy setting, tighten permissions, protect admin accounts, and review trusts. The features we'd turn on are already part of Windows.

Presenting this finding to leadership

  1. Headline: "A loose server setting let us impersonate an administrator and reach full control, Risk: without guessing any password."
  2. Make it concrete: name the server or permission involved and what it let us reach.
  3. Stress the fix is cheap: configuration changes, not new products.
  4. The ask: remove the legacy feature where unneeded, lock down machine-account creation, protect admin accounts, and fund the monitoring.
08

Talk the talk

Jargon decoder

Delegation

Letting a service act as a user on a further hop.

"Which servers have delegation, and is the list as short as it should be?"

Unconstrained delegation

The legacy form that Risk: caches users' Ticket Granting Tickets (TGTs) and can impersonate them anywhere.

"That app server is unconstrained, so treat it like a domain controller."

Constrained delegation (KCD)

Delegation limited to a named list of target Service Principal Names (SPNs).

"It's constrained to the SQL SPN, but watch the service-class widening."

Resource-Based Constrained Delegation (RBCD)

Delegation set on the target, naming who may delegate to it.

"We got write on the computer object, so RBCD gives us impersonation."

S4U2self / S4U2proxy

The two calls that get a user ticket and forward it.

"S4U2self for the admin, S4U2proxy to the target, done."

Protocol transition

Constrained delegation that Risk: can mint a ticket for any user.

"It's got protocol transition, so it can impersonate anyone to those Service Principal Names (SPNs)."

Coercion

Forcing a target to authenticate to a host you choose.

"Coerce the Domain Controller (DC) to our unconstrained host and we capture its Ticket Granting Ticket (TGT)."

Printer bug / PetitPotam

Well-known coercion triggers over Remote Procedure Call (RPC) interfaces.

"PetitPotam still works here; Encrypting File System (EFS) RPC isn't mitigated."

MachineAccountQuota

How many computer accounts a normal user can create; Risk: default 10.

"Quota's still 10, so we can spin up our own delegation principal."

Protected Users

A group giving members Fix: strong Kerberos protections.

"Put Tier 0 in Protected Users and mark them sensitive."

Sensitive / NOT_DELEGATED

A flag Fix: forbidding delegation of an account.

"Marking it sensitive is the surgical fix; it won't break their logins."

Security Identifier (SID) history

Carrying old identifiers; Risk: abusable to inherit privileged access.

"Check sIDHistory writes; that's how they jumped domains."

Security Identifier (SID) filtering

Fix: Stripping untrusted SIDs across a trust.

"Intra-forest doesn't filter, so the SID-history path is open."

Flexible Authentication Secure Tunneling (FAST) / armoring

Fix: Wrapping pre-auth in a protected channel.

"Armoring on the Tier 0 silo, then expand to the fleet."

Silo

A boundary Fix: confining accounts to designated hosts.

"The Tier 0 silo means that ticket only issues from a Privileged Access Workstation (PAW)."

Tiering

Separating identities and hosts by privilege level.

"None of this bites if admins stop logging on to workstations; that's tiering."

Smart questions to ask

Sysadmins

  • Which non-DC hosts are trusted for unconstrained delegation, and why?
  • What is MachineAccountQuota set to, and Risk: who can create computer accounts?
  • Are Tier 0 accounts Fix: in Protected Users and marked sensitive?
  • Do you audit changes to the delegation attributes and to sIDHistory Verify: (event 5136)?
  • Is constrained delegation scoped to specific Service Principal Names (SPNs), and Fix: do you use "Kerberos only" where possible?
  • Have you enabled Kerberos armoring, and do you have Fix: authentication policies and silos for Tier 0?

Executives

  • Do we know which servers can impersonate our users, and is that list as short as it should be?
  • Are our administrator accounts Fix: explicitly protected from impersonation?
  • Do we have a current inventory of our trust relationships with other networks?

Coworkers

  • Does scope cover coercion and relay, or just the delegation config itself?
  • Is the machine-account quota in play, or Risk: do we already hold write on a target?
  • Are we testing across a trust, and is Security Identifier (SID) filtering in the way?

Say this, not that

Not this

They used delegation to hack us.

Say this

A server configured for unconstrained delegation let us capture a domain controller's ticket after coercing it to authenticate.

Not this

Resource-Based Constrained Delegation (RBCD) is a vulnerability in Windows.

Say this

RBCD is a feature; the finding is an over-broad write permission plus an open machine-account quota that let us configure it.

Not this

Constrained delegation is safe.

Say this

Constrained delegation is tighter, but the service class isn't strongly bound, so one allowed Service Principal Name (SPN) can reach others on the same host.

Not this

Just remove all delegation.

Say this

Remove unconstrained delegation; convert needed cases to tightly scoped constrained or resource-based delegation.

Not this

Add everyone to Protected Users.

Say this

Add Tier 0 humans to Protected Users and mark accounts sensitive; don't add service accounts, which often break.

Not this

A domain is our security boundary.

Say this

The forest is the boundary; trusts and Security Identifier (SID) history move compromise between domains, so we scope to the forest.

Not this

We set the quota to zero, so Resource-Based Constrained Delegation (RBCD) is impossible.

Say this

That closes the easy computer-account route; the root cause is still the write permission, and SPN-less variants exist.

Same point, two audiences

Unconstrained delegation on an app server
Executive

"One of our application servers is set up so it can impersonate anyone who connects to it, including administrators. If an attacker takes that server, Risk: they inherit those identities. We should remove that setting or isolate the server."

Sysadmin

"SRV-APP03 has TRUSTED_FOR_DELEGATION and isn't a Domain Controller (DC). Fix: Convert its app to Resource-Based Constrained Delegation (RBCD) scoped to the exact back-end Service Principal Names (SPNs), or isolate it as Tier 0. Until then, coercion to it captures any Ticket Granting Ticket (TGT), including a DC's via PetitPotam."

Open machine-account quota enables Resource-Based Constrained Delegation (RBCD)
Executive

"A default setting lets any employee create computer accounts, which is one of the ingredients an attacker needs to impersonate an administrator. Fix: We recommend turning that off and limiting who can create them."

Sysadmin

"ms-DS-MachineAccountQuota is 10. Fix: Set it to 0 and delegate SeMachineAccountPrivilege to a provisioning group. Combined with tightening write Access Control Lists (ACLs) on computer objects, that breaks the common RBCD chain."

Tier 0 accounts aren't protected from delegation
Executive

"Our most powerful accounts aren't marked as off-limits to this impersonation feature. Flagging them is a quick, low-risk change that blocks a whole class of attack."

Sysadmin

"Set AccountNotDelegated on all Tier 0 accounts and add the human ones to Protected Users. That Fix: makes S4U-based impersonation of them fail outright, regardless of delegation config elsewhere."

09

Keep going

You've finished the three-part core. What to learn next, in order

  1. Active Directory Certificate Services (AD CS) abuse. Certificate templates and enrollment flaws (the well-known certificate-escalation paths) turn into Kerberos tickets through Public Key Cryptography for Initial Authentication (PKINIT). It's the largest adjacent surface and a natural next topic.
  2. NT LAN Manager (NTLM), relay, and coercion in depth. The other half of Windows authentication, and the relay engine behind many Resource-Based Constrained Delegation (RBCD) chains.
  3. Reading attack paths as graphs. BloodHound fluency, so you can explain delegation and Access Control List (ACL) edges to a client visually.
  4. Active Directory (AD) incident response and forest recovery. Tying Parts 2 and 3 together into a Fix: containment and rebuild runbook.
  5. Detection engineering for identity. Writing and tuning the 5136, 4741, and Transited-Services rules in your Security Information and Event Management (SIEM).

Resources worth seeking out

  • Specifications: [MS-SFU] for the Service for User (S4U) extensions, [MS-PAC] for authorization data, and [MS-KILE] for Windows Kerberos.
  • Microsoft: the December 2025 "guidance to help mitigate critical threats to Active Directory Domain Services" blog, the Protected Users and authentication-policies/silos documentation, and the KB articles on coercion mitigations and Extended Protection for Authentication.
  • MITRE Adversarial Tactics, Techniques, and Common Knowledge (ATT&CK): T1558 (Steal or Forge Kerberos Tickets), T1134 (Access Token Manipulation), and T1187 (Forced Authentication) for coercion.
  • Reference writeups: the delegation sections of the-hacker-recipes and the Compass Security "Kerberos Deep Dive" series, which are written clearly enough to double as defender references.
  • Defender reading: Elad Shamir's foundational article on resource-based constrained delegation, and Sean Metcalf's ADSecurity.org delegation and trust articles.
  • Hands-on labs: the Game of Active Directory (GOAD) (Game of Active Directory) project includes delegation scenarios; run each, Verify: then find the 5136 and 4741 traces in the Domain Controller (DC) logs.

That's the series. Across three parts you now have the protocol, the offline password attacks, ticket theft and forgery, and delegation and trust, each with the detection and remediation a sysadmin needs and the framing an executive will understand. For a review session, the flashcards and quizzes from all three parts make a solid end-to-end drill.

My private notebook

Personal notes and bookmarks are private. Unsaved text is temporarily kept in this tab’s browser storage to recover supported sign-in redirects and reloads. Closing the tab may lose unsaved text.

Checking sign-in…

Sign in in another tab Sign in in this tab All my notes