TL;DR: Golden dMSA lets attackers derive passwords for delegated Managed Service Accounts and group Managed Service Accounts after obtaining the KDS root key, enabling authentication bypass, lateral movement, and indefinite persistence, according to Semperis. The flaw shows that machine-bound authentication still depends on a single privileged cryptographic root, so lifecycle controls and key protection become the real control plane.
At a glance
What this is: Semperis analysed Golden dMSA, a Windows Server 2025 design flaw that can let an attacker generate valid passwords for dMSAs and gMSAs after compromising the KDS root key.
Why it matters: Service account governance cannot assume machine-bound authentication is self-protecting, because a single cryptographic root can still collapse forest-wide trust and persistence boundaries.
Context
Golden dMSA is a service account governance problem, not just a protocol flaw. It matters because delegated Managed Service Accounts are intended to reduce password risk by binding authentication to machines, yet the design still depends on a privileged cryptographic root that can be abused if exposed.
The article argues that this changes how teams should think about non-human identity trust. When a single root key can generate credentials for multiple managed account types across a forest, the control plane shifts from password rotation alone to key custody, account inventory, and offboarding discipline.
Key questions
Q: What breaks when a KDS root key is exposed in a managed service account environment?
A: When the KDS root key is exposed, the attacker can derive valid passwords for dMSAs and gMSAs instead of targeting each account individually. That collapses the trust model for machine-bound authentication and turns managed identity into a forest-wide persistence path. The failure is at the root of the credential derivation chain, not at the account level.
Q: Why does Golden dMSA create forest-wide risk instead of a single-account compromise?
A: Because the KDS root key underpins password generation for managed service accounts across the forest, compromise of that key can affect every linked dMSA and gMSA. The risk is not limited to one host or one service. It becomes a cross-domain access problem with lasting persistence and lateral movement potential.
Q: What are the signs that service account governance is failing in an organisation?
A: Common warning signs include accounts with no clear owner, broad permissions that exceed job need, credentials stored in insecure places such as code or configuration, and service accounts that survive staff departures without reassignment. Another sign is the inability to answer who uses the account, when it was last reviewed, or whether its access still matches the application it supports.
A: They should treat the cryptographic root as the primary control point, not the individual password. That means limiting who can access the root, auditing reads, maintaining a complete account inventory, and reviewing whether shared derivation creates unnecessary forest-wide blast radius. The goal is to reduce the number of identities exposed by one compromise.
Technical breakdown
Why the KDS root key becomes the trust root
Managed Service Accounts rely on the Key Distribution Services root key to derive passwords and validate managed identity state. Golden dMSA works because that root key sits beneath both dMSA and gMSA derivation, so compromise of the key breaks the trust boundary that machine-bound authentication is supposed to enforce. The article’s point is not that password rotation failed in isolation, but that the rotation model still depends on a single cryptographic root with forest-wide reach. Once that root is exposed, the attacker no longer needs to break each account individually.
Practical implication: treat KDS root key custody as a forest-level control, not a routine account setting.
How predictable ManagedPasswordId structure lowers attack cost
The attack leverages the ManagedPasswordId structure, which includes time-based fields and a limited combination space that can be brute-forced far more easily than a random secret. That means the attacker does not need to discover each managed password directly if they can reconstruct the derivation inputs from predictable metadata and the root key. In identity terms, the flaw turns a supposedly opaque, machine-managed password lifecycle into a computable derivation problem. The security model depends on secrets remaining unobservable and unguessable, and this design weakens both assumptions.
Practical implication: review managed password derivation inputs for predictability, not just password length or rotation cadence.
Why enumeration and cross-domain reach matter
Semperis shows that dMSA discovery can be expanded beyond normal directory visibility, including cross-domain enumeration and account identification at scale. That matters because the attack is not limited to a single service account or a single workload. Once the root key is compromised, the attacker can generate valid passwords for all linked managed accounts and move laterally across the forest. The architecture therefore creates an enterprise-wide blast radius, which is far larger than the local scope implied by a single managed identity.
Practical implication: map managed account inventory to forest boundaries and assume compromise propagates across domains.
Threat narrative
Attacker objective: The attacker wants durable, forest-wide access to managed service accounts and the systems they control.
- Entry begins with compromise of a highly privileged context that can access KDS root key material, which the article says is available only to the most privileged accounts and SYSTEM.
- Escalation follows when the attacker extracts the root key and uses it to compute valid passwords for dMSAs and gMSAs through the predictable ManagedPasswordId structure.
- Impact is forest-wide authentication bypass, cross-domain lateral movement, and persistent access to managed service accounts and their resources without expiration.
Breaches seen in the wild
- LiteLLM MCP auth bypass 2026: An exploited LiteLLM MCP auth bypass and default sk-1234 master keys let attackers steal AI gateway master and provider API keys.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Golden dMSA is a trust-root failure, not just a service account bug: the security model for delegated Managed Service Accounts assumes the KDS root key remains an exceptional, tightly held root of trust. That assumption fails once an attacker can extract the key and compute valid passwords for multiple managed identities. The implication is that managed identity programmes must be governed as cryptographic trust systems, not as isolated account configurations.
Predictable password derivation creates identity blast radius: the article shows that the ManagedPasswordId structure contains time-based elements and a small enough search space to make brute-force derivation practical. That is not the same as ordinary credential theft, because the attacker is converting metadata into access at scale. For practitioners, the real risk is that one derivation path can now govern an entire forest of managed identities.
Machine-bound authentication does not remove lifecycle obligation: dMSAs still require ownership, inventory, scope review, and revocation discipline even when passwords are not manually handled. The governance gap is assuming that machine binding alone eliminates the need for oversight. In practice, the control plane shifts from human password handling to root-key custody, account lifecycle, and blast-radius containment.
Service account security now depends on cryptographic custody discipline: this article sharpens a named concept we should use more often, identity blast radius. When a single secret can unlock many managed identities across domains, access scope is no longer measured account by account but by the trust root that binds them together. Practitioners should judge service account governance by the damage a single root compromise can unlock.
Forest-wide persistence shows why non-human identity governance is a lifecycle problem: the article demonstrates that managed identities can outlive the assumptions baked into their design. If the root key is exposed, the attacker inherits durable access that rotation alone cannot neutralise. The practitioner conclusion is to treat managed account governance as a continuous lifecycle and trust-root problem, not a one-time deployment choice.
From our research library:
- Only 5.7% of organisations have full visibility into their service accounts, according to the Ultimate Guide to NHIs.
- Read next: Ultimate Guide to NHIs — Key Challenges and Risks
What this signals
Identity blast radius: managed service account security now has to be measured by how many identities a single cryptographic root can expose, not by how often individual passwords rotate. If the root key is reachable by a privileged compromise path, the governance failure is already systemic.
The practical signal for programme owners is that service account inventory, root key custody, and directory auditing belong in the same control conversation. Access review cycles that focus only on account owners will miss the real dependency, which is the trust root that makes those accounts usable in the first place.
For practitioners
- Audit KDS root key custody Identify every account and process that can read, export, or administer KDS root key material, then review whether those privileges are justified at forest scope.
- Inventory delegated managed service accounts Build a complete inventory of dMSAs and gMSAs across all domains so you can understand which systems inherit the same cryptographic trust root.
- Harden directory auditing for root key reads Configure auditing on msKds-RootKeyData access and validate that security event 4662 is generated and reviewed for unexpected reads by non-DC accounts.
- Review managed password derivation assumptions Test whether your service account model depends on predictable metadata or reusable derivation inputs that could be reconstructed if the root key is exposed.
- Contain forest-wide blast radius Segment administrative trust, limit cross-domain privilege paths, and rehearse revocation steps for managed identities that rely on the same root key lineage.
Key takeaways
- Golden dMSA turns a managed identity design into a forest-wide backdoor when attackers can derive passwords from the KDS root key.
- Semperis says the attack can reach all dMSAs and gMSAs in the forest, which makes the blast radius much larger than a single service account.
- The limiting control is custody and audit of the cryptographic root, because password rotation alone does not neutralise a compromised derivation path.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | The attack depends on excessive forest-wide reach from a single cryptographic root. |
| NHI-07 — Long-Lived Secrets | The KDS root key has no expiration date, which makes compromise durable. | |
| Recommendation — Reduce the blast radius of managed identities by limiting who can access the root trust material. Treat long-lived root keys as high-risk secrets and place them under exceptional custody and monitoring. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Password derivation and rotation for managed accounts fall under authenticator lifecycle control. |
| Recommendation — Apply authenticator lifecycle governance to managed account derivation and recovery processes. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | The attack uses key extraction for credential generation and then moves across domains. |
| Recommendation — Map KDS root key compromise to credential access and lateral movement detections across the forest. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The issue is ultimately about who can reach the cryptographic root that governs managed identities. |
| Recommendation — Review and restrict entitlements that can reach KDS root key material and managed account administration. | ||
Key terms
- Delegated Managed Service Account (dMSA): A dMSA is a Windows service identity tied to a specific machine and designed to replace older service accounts through migration. In practice, it is a non-human identity whose trust relationship can change during migration, which makes its lifecycle state a security control, not just an administration detail.
- KDS Root Key: The KDS root key is the cryptographic foundation used by Active Directory to derive managed service account passwords. If an attacker can access it, they may be able to compute credentials for multiple related accounts, which makes it a tier-0 secret rather than a routine configuration object.
- ManagedPasswordId: ManagedPasswordId is the metadata structure used to derive managed service account passwords. It contains fields that help compute current or future passwords, which means its protection is as important as protecting the account itself when defenders rely on automated credential generation.
- Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on June 24, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org