highCVE-2025-53779CVSS 7.2Windows Server

BadSuccessor: patch the 2025 DCs, then take CreateChild off the OU

The Windows Server 2025 dMSA bug that turned a small OU delegation into Domain Admin. Patch the 2025 DCs, audit the migration links, and take CreateChild away.

Marko ZivanovicNov 19, 202615 min read

01 The Big PictureFor leadership · no jargon

Okay, so BadSuccessor is the one where a researcher found a straight line from "can create an object in a folder" to Domain Admin, Microsoft looked at it and said Moderate, and then shipped a patch less than a week after the DEF CON talk. The setup is a new kind of service account that arrived with Windows Server 2025, called a delegated Managed Service Account, or dMSA. It exists so you can retire an old service account without hand-copying its permissions: you file a migration, the domain moves the keys, done. Think of it as a staff transfer form that also hands over the filing cabinet keys.

The problem is that nobody checked who signed the form. Anyone who could create objects in an Active Directory folder could file a transfer naming the CEO as the person being replaced, and the domain would hand over the CEO's access without the CEO agreeing to anything. Yuval Gordon at Akamai reported it to Microsoft in April 2025, Microsoft confirmed the bug but rated it Moderate, and the two sides disagreed in public until the talk landed and a patch appeared. The exposure is not exotic: Akamai found the required permission, outside Domain Admins, in 91% of the environments it examined.

The practical bit comes in two halves. Patch every Windows Server 2025 domain controller, because that is where the check lives. Then do the part a patch cannot do: work out who can create dMSAs, take that right off everyone below Tier 0, and clean up any dMSA that nobody can account for. Nothing here needs downtime. The permission review is an ACL project, and there is no single command that does it.

02 Technical BreakdownFor engineers

Right, let's get into it. A dMSA is an account class added in the Windows Server 2025 schema (msDS-DelegatedManagedServiceAccount, objectVersion 91). It extends the computer class, and it is designed to replace an existing service account: the old account's SPNs, delegation settings and access come across, the old password stops working, and the new account gets randomised keys held by the domain controller.

The migration is a privileged operation. Start-ADServiceAccountMigration calls an LDAP rootDSE operation called migrateADServiceAccount, which Akamai says is Domain Admins only, as far as it can tell. That operation does four things: sets msDS-DelegatedMSAState to 1, grants the old account read plus write on the dMSA's msDS-GroupMSAMembership, writes the old account's DN into msDS-ManagedAccountPrecededByLink on the dMSA, and writes the dMSA's DN into msDS-SupersededManagedAccountLink on the old account. Complete-ADServiceAccountMigration then sets both state attributes to 2, copies the settings, and disables the old account. The tl;dr is that two objects get pointed at each other, and the state fields say which stage the move has reached.

The flaw is that the KDC trusted one side of that relationship. It builds the dMSA's PAC, which is the ticket's list of who you are and which groups you are in, from the account named in msDS-ManagedAccountPrecededByLink. Akamai's writeup puts it plainly: "when a dMSA authenticates, the PAC is built based solely on this link". So the attack is a pretend migration. Create a dMSA somewhere you have CreateChild, set msDS-DelegatedMSAState to 2, point the link at Administrator or a domain controller, and authenticate. Pre-patch, you did not need write access to the target, and you did not need the target to agree. In Akamai's lab the resulting PAC carried the dMSA's own RID, Administrator's RID 500, Domain Admins (512) and Enterprise Admins (519).

The link is also a credential store. The TGT carries a KERB-DMSA-KEY-PACKAGE with current keys and previous keys, and the previous-keys slot is filled from the superseded account so that a real migration survives ticket continuity. Point the link at a user account and you get that account's keys back. Akamai recovered a type-23 RC4 key matching the lab password Aa123456, because a user account with no msDS-SupportedEncryptionTypes only has RC4. So one write to one attribute buys two things: a ticket as anyone you name, and that account's keys back.

What did you need? Less than it sounds:

  1. At least one Windows Server 2025 domain controller. The KDC enforces this, so member servers and clients are irrelevant.
  2. A KDS root key in the forest. Most mature forests have had one since gMSA arrived in 2012 R2; Get-KdsRootKey tells you.
  3. CreateChild on any OU or container, or the narrower "Create msDS-DelegatedManagedServiceAccount" right. No Domain Admins, no Account Operators, no special group.

Your domain does not need to use dMSAs, and it does not need to be at the 2025 functional level. The feature simply has to exist, and one 2025 DC is enough. As far as I can tell the machine account quota has nothing to do with any of this: no computer account is created through the join path, so zeroing ms-DS-MachineAccountQuota changes nothing here. The right that matters is an ACE on an OU or container.

The adoption numbers are the counterweight here. Tenable's telemetry in June 2025 found only 0.7% of AD domains had at least one Windows Server 2025 DC, which is why plenty of teams filed this under "later". Seventeen months later a lot of those estates have one, and if you have built a 2025 DC since, you are in scope.

Microsoft's first answer was Moderate, and Akamai said so publicly. MSRC confirmed the bug and told Akamai it "does not currently meet the threshold for immediate servicing", according to Akamai's writeup; Gordon told SecurityWeek "we respectfully disagree with the severity assessment". The CVE, CVE-2025-53779, appeared on 12 August 2025, less than a week after DEF CON, with a CVSS of 7.2, CWE-23, "Exploited: No" and a public disclosure flag of Yes. MSRC still labels it Moderate while the same score lands in the High band on the CVSS scale, and this page uses the CVSS band. The CWE does not help either: "relative path traversal" does not describe an authorisation failure in successor validation, so treat it as the label of record rather than an explanation.

The patch is narrower than "fixed". Changes in kdcsvc.dll make the KDC validate the relationship at ticket time, and a one-way link no longer works: the target has to reference the dMSA back, which is what a real migration produces. The attribute itself is still writable. Akamai tested exactly that after patching: the link write succeeded, and the KDC then refused to issue a ticket. So post-patch the bar moves from "CreateChild alone" to "CreateChild plus WriteProperty on the target's migration links". That is a real improvement, and it is a ticket-time check on an attribute that is still writable.

The technique came back in 2026. In May 2026 Huntress, working with Akamai, published dMSA Ouroboros: create the dMSA with both links (satisfying the patch), then use the owner's implicit WriteDACL to plant a Shadow Credential in msDS-KeyCredentialLink and write the dMSA's own SID into its msDS-GroupMSAMembership. The dMSA then authenticates as itself and authorises itself, so the attacker's account is no longer needed. It survives password rotation on both accounts, survives deletion of the attacker, and returns the target's current NT hash on every request. It works on a fully patched Server 2025. MSRC closed it as "does not meet the bar for servicing" and, after appeal, called it "a persistence mechanism that is not dissimilar to existing techniques such as Shadow Credentials". No CVE. Huntress on the cleanup: "There is no partial remediation. You delete the dMSA, or the chain stays alive." The sibling Golden dMSA (Semperis, July 2025) is a different problem with the same answer from Microsoft, no CVE, on the grounds that a stolen KDS root key means the domain controller is already gone.

I found no named in-the-wild intrusion for any of it. CVE-2025-53779 is still absent from CISA's KEV catalogue as of 18 November 2026, and the 2026 research is framed as red-team and persistence risk rather than incident reporting. No named intrusion does not mean none happened; it means nobody has published one.

03 Affected

Windows Server 2025, including Server Core, in the domain controller role. Member servers and clients do not enforce or expose this, so patching them does nothing for the CVE.

Fixed builds, from MSRC's August 2025 remediation records:

  • Windows Server 2025: KB5063878, build 10.0.26100.4946 (supersedes KB5062553).
  • Windows Server 2025 hotpatch: KB5064010, build 10.0.26100.4851.

NVD's CPE clause says < 10.0.26100.4851, which is the hotpatch build rather than the monthly one. That is an explainable difference, not a second bug; the monthly fix is .4946.

Everything else is a precondition rather than a version:

  • Any domain with at least one 2025 DC, whether or not dMSAs are in use, and whatever the functional level.
  • A KDS root key in the forest.
  • A non-Tier-0 principal holding CreateChild on any OU or container, or the dMSA create right. That is the 91% finding.
  • Post-patch, also WriteProperty on the target's msDS-SupersededManagedAccountLink and msDS-SupersededServiceAccountState, so the link can be made mutual, and GenericAll or ownership on the dMSA for Ouroboros.

Two things that do not help, and people keep suggesting them: marking the target "Account is sensitive and cannot be delegated", and putting it in Protected Users. Akamai tested both, along with domain controllers, and the link still worked either way. A mitigation plan built on those two checkboxes changes nothing here.

04 Detection

Before we change anything, let's see what we are dealing with. Start with the DCs, because if none of them are 2025 then this particular CVE is not your problem yet.

Get-ADDomainController -Filter * | Select-Object Name,OperatingSystemVersion

10.0 (26100) is Server 2025. Anything else cannot enforce the dMSA checks, whatever its patch level.

Then the build on each 2025 DC, because OperatingSystemVersion will not show you the revision:

Get-ComputerInfo | Select-Object OsBuildNumber,OsUBR

You want OsBuildNumber 26100 and OsUBR 4946 or above for the monthly update, or 4851 and above on the hotpatch train.

Now the directory side. A dMSA is not returned by Get-ADServiceAccount, because its object class is msDS-DelegatedManagedServiceAccount (a computer subclass). Ask for the class directly:

Get-ADObject -LDAPFilter "(objectClass=msDS-DelegatedManagedServiceAccount)" `
  -Properties msDS-DelegatedMSAState,msDS-ManagedAccountPrecededByLink,
  whenCreated,whenChanged |
  Select-Object Name,whenCreated,whenChanged,msDS-DelegatedMSAState,
  msDS-ManagedAccountPrecededByLink

A healthy estate returns the dMSAs you knowingly created, each with a msDS-ManagedAccountPrecededByLink you can tie to a documented migration. Anything else needs a name and a ticket number. whenCreated is your friend for "this appeared on a Sunday".

The Ouroboros invariants are the two highest-value hunts, and they have near-zero legitimate hits. First, a dMSA that authorises itself:

Get-ADObject -LDAPFilter "(objectClass=msDS-DelegatedManagedServiceAccount)" `
  -Properties msDS-GroupMSAMembership,objectSid | ForEach-Object {
    $dmsa = $_
    $blob = $dmsa.'msDS-GroupMSAMembership'
    if ($blob) {
      $sd = [System.Security.AccessControl.RawSecurityDescriptor]::new(
        [byte[]]$blob, 0)
      $sd.DiscretionaryAcl | ForEach-Object {
        if ($_.SecurityIdentifier.Value -eq $dmsa.objectSid.Value) {
          $dmsa.DistinguishedName
        }
      }
    }
  }

This parses the membership security descriptor and prints any dMSA whose own SID is in its own membership list. There is no legitimate reason for that to exist. I would run it in a lab first, because SD parsing is picky about empty attributes.

Second, a dMSA carrying a certificate it should not have:

$filter = "(&(objectClass=msDS-DelegatedManagedServiceAccount)" +
          "(msDS-KeyCredentialLink=*))"
Get-ADObject -LDAPFilter $filter -Properties msDS-KeyCredentialLink |
  Select-Object Name,DistinguishedName,whenChanged

dMSAs use managed passwords. A populated msDS-KeyCredentialLink is either a deliberate, documented PKINIT setup or a planted Shadow Credential. In most estates it is the latter.

Next, who could do this in the first place. Akamai's read-only scanner needs only domain read rights and lists every non-default principal that can create a dMSA, plus the OUs where they can:

.\Get-BadSuccessorOUPermissions.ps1

It excludes Domain Admins, Enterprise Admins, Administrators and SYSTEM, does not expand groups, and does not evaluate deny ACEs, so it over-reports rather than under-reports. Treat the output as a worklist; expect to discard some rows.

From the attacker's side of the fence, NetExec has a module that answers the same question over LDAP:

nxc ldap <DC> -u <user> -p <password> -M badsuccessor

It fails closed if no 2025 DC is present ("attack not possible"), then lists principals and OUs. Handy for a quick re-check after the ACL cleanup; any ordinary user's creds will do, which is the point.

Then the logs. This is where most people trip up, so read the caveat before you build a rule:

Events 5136 and 5137 only fire when the object or its parent carries a SACL entry for the change you care about. Microsoft is explicit in the event docs: 5136 needs a Write audit on the modified attribute, and 5137 needs a Create audit on the parent object. The Directory Service Changes subcategory is also not configured by default in Microsoft's baseline, and turning it on alone logs nothing for dMSAs. So you need the subcategory, a SACL for Create on dMSA objects (on the parent OUs and containers), and a SACL for Write on msDS-ManagedAccountPrecededByLink and msDS-GroupMSAMembership. One attribute change often produces two 5136 events, Value Deleted then Value Added.

The events to wire up:

  • 5137 in Security: a dMSA object was created. Alert on any creator that is not your service-account tooling.
  • 5136 in Security: msDS-ManagedAccountPrecededByLink, msDS-GroupMSAMembership or msDS-KeyCredentialLink was modified. The link write is the attack; the membership self-write is Ouroboros.
  • 2946 in Directory Service: a TGT was issued with a KERB-DMSA-KEY-PACKAGE. Akamai notes the "Group Managed Service Account Object" field carries the dMSA DN and the caller SID shows S-1-5-7, which is a strange enough pair to alert on.
  • 4662 in Security: access to a dMSA with S4U2Self delegation. Needs a SACL, same as above.
  • 4768 in Security: PKINIT authentication (pre-auth type 0x11) for a dMSA computer account. Huntress's signal for the Shadow Credential leg.
  • 307, 308 and 309 in Microsoft-Windows-Security-Kerberos/Operational: migration, permission-add and key-fetch. Microsoft's own setup doc says logging for this provider is disabled by default, which makes it the cheapest high-value telemetry in the list. Turn it on.
wevtutil sl Microsoft-Windows-Security-Kerberos/Operational /e:true

Enables the channel on the DC. Confirm with wevtutil gl Microsoft-Windows-Security-Kerberos/Operational; enabled: true is what you want.

If you want a starting point, Elastic ships a production rule, Delegated Managed Service Account Modification by an Unusual User (rule 2c74e26b-dfe3-4644-b62b-d0482f124210, updated 2026-09-18). The logic is one attribute match:

event.code:5136 and host.os.type:"windows"
  and winlog.event_data.AttributeLDAPDisplayName:"msDS-ManagedAccountPrecededByLink"

It is a new-terms rule, so it learns the writers per environment rather than hardcoding a list. Port the field names to your SIEM, and remember the SACL requirement: without it, the rule is correct and silent.

The gaps are real: there is no native BloodHound edge for the dMSA create right as of November 2026 (issue #2424 is still open), and I could not find a dMSA-specific analytic in Splunk Security Content or IBM's public QRadar content. You are porting 5136/5137 logic into your own platform; there is no pack to import. Huntress's explanation of why this is hard holds up: every individual operation looks normal in isolation, and most SIEMs do not correlate across the event types.

05 Remediation

01 Patch every Windows Server 2025 domain controller

The August 2025 update is the CVE fix, and it only matters on the DC role. Push it through your normal rings, or let Windows Update do it:

Install-Module PSWindowsUpdate; Get-WindowsUpdate -Install -AcceptAll

KB5063878 lands you on 10.0.26100.4946; the hotpatch train uses KB5064010 and 10.0.26100.4851. Patch member servers for their own sake if you like, but they are not enforcing this check.

02 Find the delegation before you remove it

Run the Akamai scanner and NetExec checks from Detection, then write down every principal and OU pair. This is the worklist for the next step, and it is also your evidence if someone asks why a service account stopped being able to build things.

If you want the graph view, this Cypher finds non-Tier-0 principals with the OU rights that make the attack possible:

MATCH p = (ou:OU)<-[:WriteDacl|Owns|GenericAll|WriteOwner]-(n:Base)
WHERE NOT ((n:Tag_Tier_Zero) OR COALESCE(n.system_tags, '') CONTAINS 'admin_tier_0')
RETURN p
LIMIT 1000

From SpecterOps. It catches the principals a deny ACE cannot stop, because WriteDACL on the OU lets them undo your mitigation. Fix those first.

03 Take CreateChild for dMSAs off everyone below Tier 0

This is the durable fix, and it is the one Microsoft's patch does not do for you. Remove the "Create msDS-DelegatedManagedServiceAccount" ACE, and any "Create all child objects" delegation that quietly grants it, from every OU and container where a non-Tier-0 principal holds it. Keep dMSA creation with the identity team, on a small number of dedicated OUs, and log every use.

There is no tidy one-liner for this, sorry. It is an ACL review. BloodHound, PingCastle's delegation view, or your IAM tooling will get you the list; a change record and a rollback plan will get you through it.

04 Put deny ACEs on the OUs you cannot clean today

Where a delegation is real and removing it needs an application change, SpecterOps published three ACEs per OU as a stopgap: deny Authenticated Users CreateChild for the dMSA class, replace the implicit owner WriteDACL with an explicit OwnerRights list on child dMSAs, and deny Authenticated Users Write on msDS-ManagedAccountPrecededByLink for child dMSAs. Their functions take the OU DN and pipeline input:

Get-ADOrganizationalUnit -Filter * | Add-BadSuccessorOUDenyACEs

Import the functions from JimSycurity/dMSAs first. The default call applies all three ACEs. The authors are clear about the limits: an account with GenericAll, WriteDACL or ownership on the OU can undo this, and a blanket deny at the domain root is preempted by explicit Allows lower down. Apply it per OU and container, and include containers, because dMSAs can be children of both.

05 Turn on the dSHeuristics audit flags, then enforce

KB5008383 has two forest-wide flags that make a CreateChild-only attacker's life harder. Character 28 adds authorisation checks for LDAP Add on computer-derived objects, and character 29 removes the implicit owner WriteDACL on LDAP Modify. 0 is audit, 1 is enforcement, 2 is disabled.

Read the current value first:

$cfg = (Get-ADRootDSE).configurationNamingContext
$dn = "CN=Directory Service,CN=Windows NT,CN=Services,$cfg"
(Get-ADObject -Identity $dn -Properties dsHeuristics).dsHeuristics

Microsoft's documented example for enabling both from a clean forest is 0000000001000000000200000001: character 10 is 1, character 20 is 2, characters 28 and 29 are 1. Merge the flags into whatever is already there rather than pasting over it, because this attribute holds other forest settings too.

Do not jump straight to enforcement. Run in audit mode and watch Directory Service events 3044 to 3046 for blocked adds and modifies. When it has been quiet for long enough to trust it, enforce. SpecterOps' Jim Sykora corrected his own guidance on flag 28 after further testing, so go by his current writeup rather than his first one. And keep expectations straight: flag 28 only stops an attacker who has CreateChild and nothing else. Anyone with WriteProperty on the target, or WriteDACL on the OU, still gets through.

06 Delete the dMSAs nobody can explain

Every dMSA on the inventory needs an owner, a purpose and a matching migration record. Anything else comes out, and for a suspected Ouroboros object there is no partial cleanup: clearing the certificate or the membership can be undone by anyone holding WriteDacl, so delete the object.

Remove-ADObject -Identity "CN=<suspect-dMSA>,OU=<ou>,DC=<domain>" -Recursive

Deleting a legitimate dMSA breaks the service using it, so confirm with the owner first. The superseded account is a different object; do not delete that one to "clean up".

07 Turn on the telemetry you will need next time

Directory Service Changes auditing, the SACLs from Detection, and the Kerberos Operational channel. None of it prevents the attack, all of it is what tells you it happened, and the 2026 research is blunt that current tooling does not cover the dMSA class out of the box.

auditpol /set /subcategory:"Directory Service Changes" /success:enable

Enable on the DCs and forward 5136/5137 to the SIEM. Then add the SACLs; the subcategory on its own is not enough.

06 Verification

Let's prove it rather than assume it.

Get-ADDomainController -Filter * |
  Where-Object OperatingSystemVersion -like "10.0 (26100)*" |
  Select-Object Name,OperatingSystemVersion

Every 2025 DC in this list needs the August 2025 build or later. If the list is empty, this CVE does not apply to your domain yet, and that is an upgrade-planning question.

Get-ADObject -LDAPFilter "(objectClass=msDS-DelegatedManagedServiceAccount)" `
  -Properties msDS-DelegatedMSAState,msDS-ManagedAccountPrecededByLink |
  Select-Object Name,msDS-DelegatedMSAState,msDS-ManagedAccountPrecededByLink

Expect only known dMSAs, each with a link you can explain. A state of 2 with no matching target-side record is the shape of a fake migration.

Rerun the msDS-KeyCredentialLink query from Detection. Expect silence. Any hit is a certificate on a managed account, which needs an owner and a reason.

.\Get-BadSuccessorOUPermissions.ps1

Rerun after the ACL work. Expect only your identity team and the dedicated provisioning OUs. The scanner over-reports by design, so read the pairs; the row count means little.

And the lab regression, if you want to prove the patch end to end: create a dMSA with only the dMSA-side link (bloodyAD's --prepatch flag writes it that way), then ask for a ticket with badS4U2self --dmsa or Rubeus asktgs /dmsa. Patched, the write should succeed and ticket issuance should fail. Unpatched, the ticket comes back with the target's SID in the PAC. Do this in a lab, not in production.

07 Rollback

The realistic rollback here is the hardening. The patch stays where it is. If a legitimate service-account workflow breaks, work out which change broke it before undoing anything.

Get-ADOrganizationalUnit -Filter * | Remove-BadSuccessorOUDenyACEs -RemoveAll

Removes the deny ACEs and the OwnerRights ACE. Without -RemoveAll, only the two deny ACEs go. Re-run the scanner afterwards; the exposure comes straight back.

Roll the dSHeuristics characters back to 0 (audit) or 2 (disabled) if a third-party product that creates computer objects starts failing. Watch 3044 to 3046 to see what enforcement is blocking, and fix that workflow rather than leaving the flag off forever.

Rolling back the August 2025 update is almost never justified: it reopens a documented path from a delegated OU permission to Domain Admin, with public tooling. If a cumulative update breaks a line-of-business app, fix forward, or uninstall that specific KB while keeping the delegation review and the dMSA inventory in place.

wusa /uninstall /kb:5063878 /norestart

Substitute the KB you actually deployed. On the hotpatch train it is KB5064010, and hotpatch rollback has its own dance; check the servicing docs before you touch it.

If you deleted a dMSA that turned out to be legitimate, the object is in the AD Recycle Bin (assuming it is enabled) for the deleted object lifetime, and Restore-ADObject brings it back. If the Recycle Bin is off, you are into an authoritative restore or a rebuild, which is a much longer night. Recreating the account by hand means re-running the migration, which is a change window either way.

08 References

If I've got anything wrong here, or you've hit an edge case I haven't covered, do say, corrections and questions are always welcome :)

exit(0);

// Patched, or stuck?

Ship the fix. Prove it’s closed.

If this runbook doesn’t fit your stack, send the CVE — an operator writes a verified path, usually within a business day. Or contribute your own and get co-authored credit.

// Dispatch

New guides, straight to your inbox.