Semperis, a leader in identity security, has uncovered a critical design flaw in Windows Server 2025 that exposes Delegated Managed Service Accounts (dMSAs) to a novel attack technique dubbed "Golden dMSA." This vulnerability enables attackers to generate service account passwords, facilitating cross-domain lateral movement and persistent access across Active Directory environments.
The Golden dMSA attack exploits a cryptographic weakness in the ManagedPasswordId structure of dMSAs. This structure contains predictable time-based components with only 1,024 possible combinations, making brute-force password generation computationally trivial. By leveraging this flaw, attackers can derive the current password for any dMSA or group Managed Service Account (gMSA) without connecting to the domain controller. This process requires possession of the Key Distribution Service (KDS) root key, typically accessible only to privileged accounts such as Domain Admins, Enterprise Admins, and SYSTEM. Once obtained, the KDS root key allows attackers to generate valid passwords for all managed service accounts, enabling unauthorized access and persistent control over critical resources.
To assist organizations in understanding and mitigating this threat, Semperis researcher Adi Malyanker developed a tool called GoldenDMSA. This tool incorporates the attack's logic, allowing users to efficiently explore, evaluate, and simulate how the technique may be exploited in real-world environments. Malyanker emphasized the importance of proactive assessment, stating, "Golden dMSA exposes a critical design flaw that could let attackers generate service account passwords and persist undetected in Active Directory environments."
The implications of the Golden dMSA attack are profound. By compromising the KDS root key from any single domain within a forest, attackers can breach every dMSA account across all domains in that forest. This means that a single KDS root key extraction can be weaponized to achieve cross-domain account compromise, forest-wide credential harvesting, and lateral movement across domains using the compromised dMSA accounts. Furthermore, the attack completely sidesteps normal Credential Guard protections, which are used to secure NTLM password hashes, Kerberos Ticket Granting Tickets (TGTs), and credentials so that only privileged system software can access them.
Detection of Golden dMSA activity presents significant challenges for enterprise security teams. By default, no security events are logged when KDS root keys are compromised, requiring administrators to manually configure System Access Control Lists (SACLs) on KDS root key objects to audit read access. This configuration gap makes the attack particularly stealthy and difficult to detect in real-time. Organizations can monitor for abnormal volumes of authentication requests targeting service accounts and unusual Ticket-Granting Ticket requests for dMSA accounts. However, these indicators require sophisticated log analysis and may generate false positives in busy enterprise environments.
In response to this vulnerability, organizations are urged to take immediate steps to protect their environments. These include auditing dMSA configurations, reviewing delegation permissions, and employing detection tools such as Semperis' Directory Services Protector (DSP) platform, which has been enhanced with indicators to detect and mitigate such exploits. Until a patch is released, security teams are advised to remain vigilant and proactive. By monitoring dMSA activity and understanding their configuration risks, organizations can reduce their exposure to what could otherwise be a silent but highly impactful method of privilege escalation.
The discovery of the Golden dMSA attack underscores the unintended consequences of convenience features—in this case, dMSAs that were designed to mitigate attacks like Kerberoasting but instead opened a new attack vector for domain-wide privilege escalation. As organizations continue to adopt new technologies and features, it is imperative to remain vigilant and proactive in identifying and mitigating potential security risks.