Misconfigured templates can let low-privilege systems request certificates with dangerous combinations such as enrollee-supplied subjects and client authentication. That can let an attacker mint a certificate that authenticates as another identity, including a privileged user. The risk is highest when template permissions, machine account creation, and AD CS trust are not tightly governed.
Why This Matters for Security Teams
active directory certificate services becomes dangerous when a template is treated like a convenience feature instead of an authentication boundary. If a low-privilege principal can request a certificate that maps to a stronger identity, the certificate can outlive the original mistake and bypass normal password, lockout, and MFA controls. That is why this path is routinely abused for privilege escalation, especially in environments where template permissions and enrollment rules drift over time.
This is not just a PKI hygiene issue. Misused certificates can become durable machine credentials, similar to the broader risks highlighted in the Ultimate Guide to NHIs — Key Challenges and Risks. NHI Management Group research also shows that NHIs outnumber human identities by 25x to 50x in modern enterprises, which means certificate abuse rarely stays isolated to one template. The attack surface expands when service accounts, computer accounts, and AD CS trust are linked without strong governance. The OWASP Non-Human Identity Top 10 frames this as an identity lifecycle and authorization problem, not just a certificate issuance problem. In practice, many security teams discover the abuse only after a certificate has already been minted and used to impersonate a privileged identity.
How It Works in Practice
The escalation path usually depends on three things: a template that allows unsafe subject or SAN control, enrollment rights that are broader than intended, and a mapping path that lets the issued certificate authenticate to Active Directory. Once those conditions exist, an attacker does not need to steal a privileged password. They only need to request a certificate that AD will accept as proof of identity.
Operationally, the risky patterns are well known. Templates that allow enrollee-supplied subjects, client authentication, or overly broad EKUs can let a requester influence who the certificate represents. If the requester can also create or control a machine account, or exploit a weak template-to-account mapping, the certificate can be used to request Kerberos tickets or other authenticated access as the impersonated identity. Microsoft documents the underlying PKI controls in its NIST SP 800-53 Rev. 5 Security and Privacy Controls, but the practical issue is that many environments do not enforce the combination of template restrictions, issuance approval, and least privilege consistently.
A defensible approach is to treat AD CS as part of identity governance:
- Inventory every template, enrollment permission, and autoenrollment rule.
- Remove client authentication from templates that do not explicitly require it.
- Disable enrollee-supplied subject fields unless there is a documented business need.
- Restrict who can enroll, who can approve, and which identities can be mapped from the certificate.
- Review computer account creation rights and delegated admin paths together, not separately.
These controls tend to break down in large, legacy-heavy domains because template sprawl and delegated administration create hidden trust paths that are hard to see in a single review cycle.
Common Variations and Edge Cases
Tighter certificate control often increases operational overhead, requiring organisations to balance authentication reliability against enrollment friction. That tradeoff is especially visible in hybrid AD environments, where domain controllers, legacy applications, and automation pipelines still depend on certificates for mutual TLS or machine authentication.
Best practice is evolving, but current guidance suggests separating templates for human, server, and machine use cases so that a template designed for one purpose cannot be repurposed for privilege escalation. Where possible, issuance should be bound to workload identity and short-lived credentials rather than long-lived certificates that can be reused indefinitely. This is one reason machine identity governance matters so much: NHI Management Group reports that only 38% have automated certificate lifecycle management in place, which leaves many organisations unable to spot unsafe templates or stale certificates quickly enough.
Edge cases also matter. Some enterprises rely on offline root CAs, cross-forest trust, or third-party enrollment portals, each of which can widen the trust boundary if controls are inconsistent. The safest interpretation is that a certificate template should never grant an identity assertion that the requester cannot already prove through stronger governance. The Sisense breach and other identity-driven incidents show how quickly a single credential path can become an enterprise-wide compromise when secret and identity governance are weak.
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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Covers weak certificate and secret lifecycle controls that enable escalation. |
| OWASP Agentic AI Top 10 | Highlights dynamic authorization and workload identity patterns that limit abuse paths. | |
| CSA MAESTRO | Addresses governance for machine and agent identities across complex trust chains. | |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access control is central to preventing template abuse. |
| NIST AI RMF | Governance and accountability principles apply to identity systems that make high-impact auth decisions. |
Review AD CS templates and revoke any certificate path that can impersonate a higher-privilege identity.
Related resources from NHI Mgmt Group
- Why do misconfigured replication permissions create such a high-risk Active Directory exposure?
- Why does SID History injection create such a dangerous privilege escalation path in Windows domains?
- Why do non-transitive trusts create unexpected privilege risk in Active Directory forests?
- Why do privileged service accounts and domain controller access create such high risk in Active Directory?