T The Triage ManualTechnical Guides for IT Emergencies
P1 · Active Directory

dMSA Ouroboros: Self-Sustaining Credential Extraction via Delegated Managed Service Accounts in Windows Server 2025

Windows Server 2025 domains are vulnerable to a credential extraction technique called 'dMSA Ouroboros' that abuses delegated Managed Service Account permissions to extract privileged credentials without Domain Admin rights. The attack exploits the dMSA credential migration mechanism by linking attacker-controlled dMSA objects to privileged accounts via msDS-ManagedAccountPrecededByLink attributes, causing the DC to provision those credentials to the attacker. The technique is self-sustaining and persists even after standard cleanup attempts. Remediation requires auditing and restricting dMSA delegation, removing malicious dMSA objects, and rotating compromised credentials.

Indicators

Likely causes

Diagnostic steps

  1. Enumerate all dMSA objects in the domain and review their creation timestamps, creators, and linked predecessor accounts
    Identify dMSA objects that may have been created by non-privileged accounts or that reference privileged accounts via supersession attributes, indicating potential Ouroboros exploitation
  2. Review Active Directory delegation permissions on all Organizational Units to identify accounts or groups granted rights to create dMSA objects
    Determine the scope of who can create dMSA objects, which represents the minimum privilege level required to execute this attack
  3. Inspect msDS-ManagedAccountPrecededByLink and msDS-SupersededManagedAccountLink attributes on all dMSA objects to detect circular or unexpected account linkages
    Identify the self-referencing or privilege-escalating link structure that enables sustained credential extraction without requiring re-exploitation
  4. Search Security event logs on domain controllers for dMSA-related creation (Event ID 5137) and modification (Event ID 5136) events generated by non-administrative accounts
    Confirm whether exploitation has occurred and establish a timeline of attacker activity for incident response
  5. Verify whether any dMSA objects have been granted logon rights or deployed to systems where credential extraction from LSASS or the KDC response could yield privileged tickets
    Assess the practical impact of any identified Ouroboros-configured dMSA objects and determine which privileged credentials may have been compromised

Resolution path

Prevention

Tools

References

active-directorywindows-server-2025credential-extractiondMSAdelegated-managed-service-accountprivilege-escalationlateral-movementkerberosidentity-securityincident-responsedetectionhardeningzero-dayhuntressP1