Part 7 of our Windows Credential Protection series: what breaks when a control is off, how an attacker abuses that gap, and how to turn it on and keep it on. Earlier in the series: WDigest, Credential Guard, LSA Protection, Protected Users & tiering, LAPS & local admin, Cached logons & DCSync. This post covers the identity attacks that never need a stored secret at all.
Two attacks that live inside Kerberos itself
Every post before this one dealt with a secret sitting somewhere, in LSASS, in the registry cache, in the directory, and the controls that keep it unreadable. This post is different. Kerberoasting and delegation are not about reading a stored secret at all. They are about asking Kerberos to do exactly what it was designed to do, and walking away with something you should never have had.
The two share a root cause: service accounts. A service account is an identity a program runs as, and Active Directory ties services to them through a servicePrincipalName (SPN). Kerberos uses that SPN to decide which account's key encrypts a service ticket, and which accounts are allowed to impersonate users for a service. Both decisions are made on the attacker's behalf, by the KDC, as a legitimate protocol operation.
Kerberoasting abuses the first decision. Any authenticated user can request a service ticket for any SPN, and that ticket is encrypted with the service account's own password-derived key. Request it, take it offline, and crack it. If the service account has a human-chosen password, it falls. Delegation abuses the second. A service trusted to delegate can obtain tickets as other users, and when that trust is too broad, or granted to the wrong object, it becomes a lever to impersonate anyone, up to Domain Admin, with no password-cracking required at all.
We will take them in that order: roast first, then the three flavours of delegation, then the managed-service-account story (gMSA vs dMSA) that is supposed to end the whole problem, and why it has its own sharp edge.
Part A: Kerberoasting
Why a service ticket leaks a password
When a user wants to use a Kerberos service, they send their TGT and the target service's name to the KDC and get back a service ticket (also called a TGS, from the TGS-REP message). The important part for an attacker is how that ticket is encrypted: the KDC encrypts the service ticket with the long-term key of the service account that owns the SPN. That key is derived directly from the account's password.
The attacker does not need any access to the service, the host it runs on, or the account. They just need a valid TGT, which every authenticated domain user has, and the name of a service. The KDC hands back a ticket encrypted with the service account's key, and the attacker takes that ciphertext offline and brute-forces the password against it. Guess the password, derive the key, decrypt the ticket successfully, and you have the service account's plaintext password. This whole process happens offline. The domain controller sees one ordinary ticket request and nothing else.
The entire security of this comes down to one thing: the strength of the service account's password and the encryption type of the ticket.
- Machine accounts have 120-character random passwords that rotate automatically. Their tickets are effectively uncrackable, which is why Kerberoasting targets user accounts that happen to have an SPN.
- A user account with an SPN almost always has a password a human typed, and humans pick crackable passwords. That is the whole attack surface.
- Encryption type matters enormously. An RC4-HMAC ticket (
etype 23, the$krb5tgs$23$format) cracks on commodity GPUs at over a billion guesses per second. AES tickets (etype 17/18) are far slower to attack. Attackers specifically request RC4 when they can, even in AES-enabled domains, because it is the cheaper crack.
Why this belongs in a credential-protection series. Kerberoasting needs no code execution, no admin rights, no LSASS access, and no foothold on the service's host. One low-privileged domain account is the only prerequisite. It is the quietest way in the book to turn an unprivileged user into a service-account credential, and service accounts are very often over-privileged. CrowdStrike and others consistently rank it among the most-used techniques in real intrusions because the cost to the attacker is almost zero and the payoff is a reusable password.
The attack in practice
Everything below runs in CYTOMATE.LOCAL, a lab we own. The attacker has one thing: valid credentials for obaida, an ordinary domain user with no special rights.
1. Find the roastable accounts
First, enumerate accounts that have an SPN. These are the candidates, user accounts with a service principal name attached.
2. Request the tickets and extract the hashes
With the targets known, request a service ticket for each and write the crackable material to a file. Impacket's GetUserSPNs.py -request does the enumeration and the ticket requests in one shot.
$krb5tgs$23$ prefix marks RC4-HMAC (etype 23), the format that cracks fastest.The $krb5tgs$23$ prefix is the tell: etype 23 is RC4-HMAC. If the domain enforced AES-only, you would see $krb5tgs$18$ instead, and the crack would be far more expensive. Tools like pypykatz kerberos spnroast -e 23 will deliberately ask for RC4 even where AES is available, as long as the KDC still offers it.
3. The same attack from Windows
From a domain-joined host, Rubeus does it natively. Rubeus.exe kerberoast enumerates SPNs, requests tickets, and writes the hashes, all in one command.
4. Crack it offline
Now the part the domain controller never sees. hashcat mode 13100 handles RC4 TGS-REP (use 19600/19700 for AES128/AES256). Point it at a wordlist and rules.
Summer2021! in seconds; the KDC never sees the attempt.The 1.8 GH/s speed against RC4 is the whole problem: a service account whose password is Summer2021!, or anything in a wordlist with mangling rules, falls in seconds to minutes. If svc_backup from Figure 1 cracks, the attacker inherits a Backup Operators credential, which is a direct path to a DC. The payoff of a roast is only as bad as the privileges of the account you crack, and service accounts are notoriously over-entitled.
Targeted Kerberoasting: when you don't have to wait for a weak account
Standard Kerberoasting is opportunistic, you roast whatever already has an SPN. Targeted Kerberoasting is deliberate. If the attacker controls an account with GenericWrite or GenericAll over another account, they can add an SPN to that account, roast it, then remove the SPN. The victim did not have a service principal name a minute ago; the attacker gave it one just long enough to request a ticket.
This turns any write-access DACL finding into a credential-theft primitive, and it is why ACL hygiene (the subject of so much of this series) and Kerberoasting defense are the same problem. A member of Account Operators, for instance, can do this across almost the whole domain.
Kerberoasting without pre-authentication
In 2022, Charlie Clark showed that service tickets can be pulled through AS-REQ messages rather than the usual TGS-REQ. The practical consequence: if there is an account in the domain that does not require Kerberos pre-authentication (an AS-REP-roastable account), an attacker can request service tickets without controlling any domain account at all. It collapses the "you need a foothold" prerequisite in exactly the environments that already have one bad setting (pre-auth disabled). It is a reminder that these weaknesses compound: one AS-REP-roastable account plus one weak service account is a pre-authentication-free path to a crackable credential.
Where Kerberoasting still goes wrong
- Human passwords on service accounts. The single root cause. Any user account with an SPN and a memorable password is a free credential waiting to be taken.
- RC4 still enabled. As long as the KDC will issue RC4 tickets, attackers will request them, because they crack orders of magnitude faster than AES.
- Over-privileged service accounts. A cracked
svc_sqlthat happens to be a Domain Admin (far more common than it should be) is instant game over, not just one service compromised. - Stale SPNs. SPNs left on accounts for services that were decommissioned years ago are pure liability, crackable for no operational benefit.
Hardening Kerberoasting
- Use managed service accounts (gMSA/dMSA) wherever possible. This is the real fix and the subject of a dedicated section below. A gMSA has a 120-character random password that AD rotates automatically; it is as uncrackable as a machine account, which removes the attack entirely for that account.
- Where a human-managed service account is unavoidable, make the password long and random. 25+ characters, generated, never reused. The crack time against even an RC4 ticket of a 25-character random password is astronomical. A fine-grained password policy (PSO) can enforce this on just the service-account OU without punishing everyone.
- Enforce AES and kill RC4. Set service accounts to AES-only (
msDS-SupportedEncryptionTypes) and work toward disabling RC4 domain-wide. This does not stop roasting of a weak password, but it raises the crack cost and makes the RC4 request itself a high-fidelity detection signal. - Remove unnecessary SPNs. Audit every account with a
servicePrincipalName. If the service is gone, remove the SPN. If a human account has an SPN it does not need, remove it. - Put privileged service accounts in Protected Users and apply least privilege. A roasted credential is only as dangerous as what it can do. Tier your service accounts (the model from Part 4), strip Domain Admin from anything that does not truly need it, and add the most sensitive to Protected Users so a cracked password buys less.
- Detect the roast. Because cracking is offline, detection has to catch the request. Watch Event 4769 (service ticket requested) for RC4 tickets (
0x17) to user-owned SPNs, and for one account requesting an unusual volume of distinct service tickets in a short window. - Test it on a schedule. Roast your own domain in a controlled run, confirm your AES enforcement holds, your weak-password PSO is applied, and your 4769 RC4 alert fires. That is what breach and attack simulation is for: run the technique, measure what the stack catches, close the gap before someone else finds it.
RC4 service-ticket requests
A 4769 with Ticket Encryption Type 0x17 (RC4-HMAC) for a service whose account is a user is the classic Kerberoasting signal. In an AES-first domain, RC4 TGS requests should be rare; alert on them, filtering known legacy services. Splunk, Sigma and most SIEMs ship a rule for exactly this.
Anomalous ticket volume
A normal user requests a handful of service tickets a day. One account suddenly requesting tickets for dozens of distinct SPNs is roasting. A 3-sigma / standard-deviation analytic on 4769 per source account catches the bulk-request pattern even when RC4 is not used.
SPN discovery
Roasting is preceded by SPN enumeration. PowerShell script-block logging (4104) catches Get-DomainUser -SPN / PowerView, and process creation catches setspn.exe -Q */*. These precursors give you earlier warning than the ticket request itself.
Targeted-roast SPN changes
Targeted Kerberoasting writes then removes a servicePrincipalName. Directory-object-modification auditing (5136) on the servicePrincipalName attribute catches an SPN appearing on an account that never had one, especially a quick add-then-remove, which is the targeted-roast fingerprint.
Part B: Delegation
What delegation is, and why it is dangerous
Kerberos delegation exists to solve a real problem. A user authenticates to a front-end service, say a web application, and that service needs to reach a back-end on the user's behalf, say a database, as that user so the back-end's own access controls apply. Delegation lets the front-end obtain tickets as the user to the back-end. It is the Kerberos answer to the "double-hop" problem.
The danger is that "obtain tickets as the user" is an enormous power, and Active Directory offers three ways to grant it, each broader or placed differently than it looks:
| Type | Where the trust lives | What it allows | Core risk |
|---|---|---|---|
| Unconstrained (KUD) | On the delegating account (TrustedForDelegation UAC flag) | Impersonate the user to any service, anywhere | Captures the user's full TGT. Coerce a DC and you get the DC's TGT. |
| Constrained (KCD) | On the delegating account (msDS-AllowedToDelegateTo) | Impersonate the user, but only to a named list of services | With protocol transition, impersonate anyone to those services, no password needed. |
| Resource-based (RBCD) | On the target resource (msDS-AllowedToActOnBehalfOfOtherIdentity) | The resource names who may impersonate users to it | Write access to one computer object becomes full takeover of that computer. |
The mechanism underneath all three is the S4U (Service-for-User) extension set: S4U2self lets a service obtain a ticket to itself as any user, and S4U2proxy lets it use that ticket to reach another service as that user. How those two combine, and what guards them, is where each delegation type lives or dies.
One query maps the whole picture.
The Protected Users / "sensitive and cannot be delegated" caveat. An account marked "Account is sensitive and cannot be delegated", or placed in the Protected Users group, cannot have its TGT delegated and cannot be impersonated through delegation. This is a key defense. But as SensePost showed, the built-in RID 500 Administrator does not get this protection even inside Protected Users. Use a named break-glass admin and mark it sensitive; do not rely on the built-in Administrator being safe here.
Unconstrained delegation: the crown-jewel misconfiguration
Unconstrained delegation is the oldest and worst. When an account is trusted for unconstrained delegation and a user authenticates to it over Kerberos, the KDC embeds a copy of the user's own forwardable TGT inside the service ticket. The delegating service decrypts the ticket with its own key, extracts that TGT, and can now request tickets as the user to anything, anywhere. It is not scoped to any service. It is the user's full identity, handed over.
On a compromised unconstrained host, the attacker runs a monitor and waits for, or forces, a privileged account to authenticate. And it can be forced: coercion techniques like PrinterBug (MS-RPRN), PetitPotam (MS-EFSR), and DFSCoerce make a target, including a domain controller, authenticate back to a host of the attacker's choosing. Coerce a DC to an unconstrained host and you capture the DC's TGT.
With the DC's own TGT, the endgame is immediate: DCSync the domain (the exact technique from Part 6), or use S4U2self abuse to get local admin over the DC. One unconstrained-delegation host plus one coercion equals full domain compromise.
The coercion angle (PetitPotam / PrinterBug / DFSCoerce)
Partially mitigatedThe reason unconstrained delegation is lethal is that the attacker does not have to wait for a privileged login, they force one. Microsoft has hardened several coercion vectors over time (Print Spooler can be disabled, some MS-EFSR paths are patched), but new coercion primitives keep appearing, and the Print Spooler still runs on far too many DCs. Treat coercion as always-available and remove the unconstrained delegation that makes it catastrophic, rather than trying to block every coercion path.
Constrained delegation (KCD): impersonate anyone, to a fixed list
Constrained delegation was Microsoft's first attempt to rein unconstrained delegation in. Instead of handing over the full TGT, the delegating account lists exactly which services it may delegate to, in msDS-AllowedToDelegateTo. The account can only reach those named SPNs. Better, but the devil is in the protocol transition setting.
- With protocol transition ("Use any authentication protocol", the
TrustedToAuthForDelegationflag): the service can call S4U2self to mint a forwardable ticket to itself as any user it chooses, then S4U2proxy to the allowed service. The user never has to authenticate at all. This means a compromised service account with protocol transition can impersonate Administrator (or any non-protected user) to its allowed services. - Without protocol transition ("Kerberos only"): S4U2self produces a non-forwardable ticket, which S4U2proxy normally rejects, so the simple attack fails with
KDC_ERR_BADOPTION. Attackers bypass this by chaining an RBCD attack on the service to obtain the forwardable ticket they need.
The abuse, with protocol transition, is one command.
Two details make this worse than it first looks. First, the impersonation target is attacker-chosen, so it is always Administrator or another Domain Admin. Second, the AnySPN / "alternate service name" trick: the service class in the resulting ticket (cifs, say) can be rewritten to another service on the same host (host, ldap, http, mssqlsvc) without the KDC re-checking, because the ticket's encrypted part binds to the host account, not the service string. So "delegation to time/dc01", which sounds harmless, can become a cifs/dc01 or ldap/dc01 ticket, which is a DC takeover.
Resource-based constrained delegation (RBCD): write access becomes takeover
RBCD flips the direction of trust. Instead of the delegating account listing where it can go, the target resource lists who is allowed to impersonate users to it, in its msDS-AllowedToActOnBehalfOfOtherIdentity attribute. This was meant to let resource owners manage their own delegation. In practice it created one of the most reliable privilege-escalation primitives in Active Directory, because of what controls that attribute.
The attack needs two things that are shockingly common:
- Write access over the target computer object (
GenericWrite,GenericAll,WriteDACL, orWritePropertyon that attribute). ACL sprawl means huge numbers of accounts have this somewhere. - An account the attacker controls with an SPN to be the "delegate-from" principal. By default, MachineAccountQuota lets any domain user create up to ten computer accounts, and a computer account has an SPN. So this prerequisite is usually free.
Chain them: create a computer account, write it into the target's RBCD attribute, then run a full S4U chain impersonating Administrator to the target.
msDS-AllowedToActOnBehalfOfOtherIdentity.
The result is SYSTEM on the target computer, from nothing more than write access to its AD object and the default ability to add a machine account. Note the scope: the compromise is of that specific target, the one whose attribute you wrote. But chain it against the right target (a server holding privileged sessions, or a DC if you have write over a DC object) and it is domain-ending.
The AnySPN trick (applies to KCD and RBCD alike)
By designIn both Figure 9 and Figure 11, the SPN you request a ticket for is not binding. The encrypted ticket is validated against the target host's account key, and Windows services do not strictly verify the service class in the SPN. So a ticket minted for http/target can be replayed as cifs/target or host/target (Rubeus /altservice:cifs,host). This is why "delegation to a harmless-sounding service" is never harmless, any delegation to a host is effectively delegation to every service on that host.
Where delegation goes wrong
- Any unconstrained delegation outside domain controllers. DCs are unconstrained by necessity; almost nothing else should be. Every other unconstrained account is a crown-jewel exposure.
- Protocol transition on service accounts. "Use any authentication protocol" turns constrained delegation into "impersonate anyone to these services". It should be rare and justified.
- MachineAccountQuota > 0. The default of 10 is what makes RBCD (and many other attacks) free. Most environments never need users adding their own computers.
- ACL sprawl over computer objects. Every account with write access to a computer object is a latent RBCD takeover of that computer.
- Delegation left on decommissioned or forgotten accounts. Like stale SPNs, stale delegation is pure liability.
Hardening delegation
- Eliminate unconstrained delegation everywhere except DCs. Enumerate every account with the
TrustedForDelegationflag. For any that are not domain controllers, migrate them to constrained/RBCD or remove delegation entirely. Where a legacy app genuinely needs it, isolate the host hard. - Protect privileged accounts from delegation. Mark every Tier 0 and high-value account "Account is sensitive and cannot be delegated" and add it to Protected Users (Part 4). This stops their TGTs being captured by unconstrained delegation and blocks their impersonation through KCD/RBCD. Remember the RID 500 caveat, use named admins.
- Set MachineAccountQuota to 0. Unless you have a specific need for users to join their own machines, set
ms-DS-MachineAccountQuotato 0. This removes the free "delegate-from" account that RBCD (and sAMAccountName spoofing, and more) rely on.# Set the domain-wide quota to zero Set-ADDomain -Identity CYTOMATE.LOCAL -Replace @{"ms-DS-MachineAccountQuota"="0"} - Prefer constrained over unconstrained, and Kerberos-only over protocol transition. Where delegation is required, use constrained delegation without protocol transition ("Kerberos only"). It is not bulletproof (the RBCD-chaining bypass exists) but it is a far smaller surface than either unconstrained or protocol transition.
- Lock down ACLs on computer objects. Audit who has write access to computer objects, this is your RBCD exposure. BloodHound's
AddAllowedToAct/GenericWrite/GenericAlledges to computers map it. Remove unnecessary write rights, and alert on changes tomsDS-AllowedToActOnBehalfOfOtherIdentity. - Watch the delegation attributes themselves. Changes to
msDS-AllowedToDelegateTo,msDS-AllowedToActOnBehalfOfOtherIdentity, and theuserAccountControldelegation flags are rare in a stable domain and high-signal when they happen. Audit them (Event 5136) and alert. - Prove it. Run the unconstrained-coercion, KCD, and RBCD chains in a lab on a schedule and confirm each control (sensitive flag, MAQ=0, ACL hygiene, detection) holds. Delegation is exactly the kind of configuration that drifts silently as new servers and apps are added.
Delegation discovery
Attackers enumerate delegation before abusing it. PowerShell script-block logging (4104) catches Get-DomainComputer -Unconstrained, Get-NetComputer -TrustedToAuth, and the Get-ADComputer -Filter {TrustedForDelegation -eq $true} patterns. These precede the attack and give early warning.
S4U ticket activity
KCD and RBCD abuse generate S4U2self and S4U2proxy exchanges. A 4769 where the account requesting a ticket is impersonating another user to a service, especially with the requesting account being a machine account you just saw created, is the delegation-abuse fingerprint. Correlate with the Administrator account appearing as the target of an S4U request.
Delegation attribute writes
Directory-object-modification auditing (5136) on msDS-AllowedToActOnBehalfOfOtherIdentity and msDS-AllowedToDelegateTo catches RBCD and KCD being set up. A write to a computer's "allowed to act on behalf" attribute by a non-admin is a strong RBCD-attack signal, catchable before any ticket is minted.
Machine account creation + coercion
RBCD often starts with a new machine account (4741). Unconstrained abuse shows up as a DC or server machine account authenticating (4624 type 3) to an unexpected host, the coercion. A new computer account followed by S4U activity, or a DC authenticating to a workstation, both warrant investigation.
The real fix: managed service accounts (gMSA vs dMSA)
Everything in Part A comes down to one thing, service accounts with human-chosen passwords. The structural answer is to stop using them. Active Directory offers managed service accounts whose passwords are generated and rotated by the directory itself, with no human ever knowing or choosing them. There are two you need to understand, and they are frequently confused.
Group Managed Service Accounts (gMSA)
A gMSA, introduced with Windows Server 2012, has a password that is a 240-byte (effectively ~120-character) cryptographically random blob, generated by the KDC and rotated automatically every 30 days by default. No administrator ever sees or sets it. Because the password is maximum-entropy random, a Kerberoasting attack against a gMSA is computationally hopeless, the roasted ticket is as uncrackable as a machine account's. gMSAs can run on multiple hosts, and the set of machines allowed to retrieve the password is controlled by the PrincipalsAllowedToRetrieveManagedPassword property.
gMSA neutralizes Kerberoasting by construction. But it has its own weak point, and it is an authorization weak point, not a cracking one. The managed password is stored in the msDS-ManagedPassword attribute, and any principal in the account's "allowed to retrieve" list, or any attacker who can add themselves to it, can read the NT hash directly over LDAP. No cracking, just read it.
PrincipalsAllowedToRetrieveManagedPassword can read the NT hash directly.So gMSA changes the game from "crack a weak password" to "control who can read the managed password". That is a much smaller, much more defensible surface, as long as you watch the PrincipalsAllowedToRetrieveManagedPassword membership and the ACL on the gMSA object. It is a genuine, large improvement, not a silver bullet.
Delegated Managed Service Accounts (dMSA)
dMSA is new in Windows Server 2025. It builds on gMSA, AD still manages and rotates the random password, but adds two things: tighter binding to specific machines, and, crucially, a migration path. dMSA was designed partly as a Kerberoasting mitigation: it lets you replace an existing legacy user-based service account with a managed one, so that applications already running under a human-password account can be moved to a managed identity. Unlike gMSA, it does not require a new domain functional level, only at least one Server 2025 DC.
During a legitimate migration, a dMSA is linked to the old account (msDS-ManagedAccountPrecededByLink), the migration state is tracked (msDS-DelegatedMSAState), and when complete the dMSA inherits the old account's identity and the legacy account is disabled. That inheritance is the convenience, and it became the vulnerability.
BadSuccessor (CVE-2025-53779)
Patched Aug 2025Akamai's Yuval Gordon found that the privilege inheritance hinges on a single attribute the KDC trusts. An attacker who can create or write to a dMSA, with no rights at all over the target account, can set msDS-ManagedAccountPrecededByLink to point at any account (Administrator included) and set msDS-DelegatedMSAState to 2 ("migration completed"). The KDC then issues tickets for the dMSA that carry the target's identity and keys. Akamai found that in 91% of environments they examined, non-admin users had the OU permissions needed to pull this off. Microsoft patched it in August 2025, but the dMSA delegation model remains security-sensitive and unpatched Server 2025 DCs are still exposed.
gMSA vs dMSA, side by side
| gMSA | dMSA | |
|---|---|---|
| Introduced | Windows Server 2012 | Windows Server 2025 |
| Password | ~120-char random, AD-managed | ~120-char random, AD-managed |
| Rotation | Automatic (30 days default) | Automatic, AD-managed |
| Scope | Runs on multiple hosts (a group) | Intended for a specific host; tighter machine binding |
| Requirement | KDS root key; supported DFL | No new DFL; needs a Server 2025 DC |
| Migration from a user account | Not supported (create fresh) | Yes, its headline feature |
| Kerberoasting resistance | Immune (random password) | Immune (random password) |
| Main attack surface | Who can read msDS-ManagedPassword (ReadGMSAPassword) | OU delegation / migration-attribute abuse (BadSuccessor) |
The one-line version: both defeat Kerberoasting outright because neither has a human-chosen password. gMSA is the mature, multi-host workhorse whose risk is authorization (who may read the password). dMSA is the newer, migration-focused, machine-bound successor whose risk is its migration machinery (BadSuccessor). Deploy gMSA broadly today; use dMSA where you are on Server 2025 and migrating legacy accounts, and only on patched DCs with tight OU delegation.
Hardening managed service accounts
- Migrate human-password service accounts to gMSA. This is the single highest-impact Kerberoasting fix. Inventory every user account with an SPN and move it to a gMSA (or dMSA on Server 2025). Each migration permanently removes one roastable credential.
- Lock down who can read the gMSA password. Keep
PrincipalsAllowedToRetrieveManagedPasswordto the minimum set of hosts that actually run the service, and audit the gMSA object's ACL. Alert on changes to that membership, it is how an attacker converts write access into the NT hash. - For dMSA: patch CVE-2025-53779 and audit OU create/write rights. Apply the August 2025 update to every Server 2025 DC. Run Akamai's
Get-BadSuccessorOUPermissions.ps1to find who can create or write dMSAs in each OU, and strip delegation that is not deliberate. Delegate service-account management only to trusted roles. - Monitor dMSA migration attributes. Watch Event 5136 on
msDS-DelegatedMSAStateandmsDS-ManagedAccountPrecededByLink, and 5137 (object creation) for new dMSAs. A dMSA appearing linked to a privileged account, or a migration state jumping to2outside a planned migration, is BadSuccessor in progress.
The short version
Kerberoasting and delegation are not about reading a stored secret, they are about asking Kerberos to do its job and keeping what falls out. Kerberoasting cracks a human-chosen service-account password offline from one ticket request the DC barely notices; you beat it with managed service accounts, long random passwords where you can't use them, AES over RC4, fewer SPNs, and 4769 RC4 detection. Delegation lets a trusted service act as other users, and in its three forms (unconstrained captures full TGTs and turns a coerced DC into domain compromise; constrained with protocol transition impersonates anyone to its allowed services; RBCD turns write access over a computer into SYSTEM on it) it impersonates up to Domain Admin with no cracking at all. You beat it by removing unconstrained delegation off DCs, marking privileged accounts sensitive and Protected, setting MachineAccountQuota to 0, cleaning ACLs on computer objects, and watching the delegation attributes. gMSA and dMSA end the Kerberoasting problem by construction, but each trades a cracking weakness for an authorization one (ReadGMSAPassword, and dMSA's BadSuccessor). Stop using human passwords for services, constrain or remove every delegation, watch the few attributes that matter, and test the whole thing on a schedule.
The series so far
This is the seventh post in the series. So far we have taken Windows credential protection one control at a time, through the same lens each time: what breaks when it is off, exactly how an attacker abuses the gap, and how to turn it on and keep it on.
- WDigest: one registry flip turning every logon into a plaintext password.
- Credential Guard: lifting secrets into a hardware-isolated enclave the OS cannot reach.
- LSA Protection (RunAsPPL): wrapping LSASS so ordinary tools cannot read it, and the driver bypasses that defeat it.
- Protected Users & tiering: shrinking the sensitive account and pinning it to safe ground.
- LAPS & local admin: killing local-admin password reuse that collapses lateral movement.
- Cached logons & DCSync: the last at-rest credential stores, on the laptop and in the directory.
- Kerberoasting & delegation: the identity attacks that never touch a stored secret at all.
The thread running through them: credential protection is not one control, it is a stack, and the stack only holds when you enforce each layer, watch the few signals that matter, and test that it all still fires on a schedule. A control you set once and never exercise is a control you no longer have. That continuous, adversary-emulating validation is exactly what breach and attack simulation is built for, and it is how a hardening checklist becomes a defense that actually catches attackers.
Sources & Further Reading
The Hacker Recipes, Kerberoast, Unconstrained / Constrained / Resource-based delegation, and Targeted Kerberoasting (attack theory, Impacket / Rubeus / pypykatz commands)
ired.team, Resource-Based Constrained Delegation: Computer Object Takeover and Abusing Kerberos Constrained Delegation (Powermad, PowerView, Rubeus s4u, AnySPN)
Microsoft Learn, Kerberos Constrained Delegation overview and managed service account documentation
CrowdStrike, Picus, SentinelOne, Rapid7, BeyondTrust, Kerberoasting explained (MITRE ATT&CK T1558.003, RC4 vs AES, hashcat modes)
Netwrix, JumpCloud, Silverfort, nhimg, gruve.ai, Kerberos delegation overviews
HackTheBox, 8 Powerful Kerberos Attacks | Trimarc, Unconstrained Delegation | RedFox, SecureLayer7, HackingArticles, delegation & ACL abuse
SANS, Hunting the Hound of Hades: Kerberos Delegation Attacks, Detections & Defenses
Splunk, Detecting Active Directory Kerberos Attacks (Events 4768/4769/4771, RC4 0x17, S4U, delegation-discovery analytics) | Tenable, Dangerous Kerberos Delegation IoE
Akamai (Yuval Gordon), BadSuccessor: Abusing dMSAs for AD Domination (CVE-2025-53779) | cyberdom.blog, CovertSwarm, HackTricks, dMSA internals and detection
MITRE ATT&CK: T1558.003 (Kerberoasting), T1558 (Steal or Forge Kerberos Tickets), T1134 / T1484 (delegation & OU abuse)
Everything shown here was performed in an isolated lab domain we own (CYTOMATE.LOCAL), for defensive research and authorised testing. Kerberoasting and delegation abuse target the authentication backbone of a domain, so never run any of this against a domain you do not have explicit written permission to test.
