AD CS certificate template abuse
A certificate template with permissive enrollment rights or a misconfigured extension turns Active Directory Certificate Services into a path to domain compromise, no password or Kerberos ticket required.
AD CS certificate template abuse is the use of a misconfigured Active Directory Certificate Services template, or the enrollment service around it, to obtain a certificate that authenticates as someone more privileged. A domain controller accepts that certificate through PKINIT and issues a Kerberos ticket-granting ticket for the named account, so the attacker never needs that account's password and never meets its MFA. Will Schroeder and Lee Christensen of SpecterOps catalogued the class as ESC1 to ESC8 in Certified Pre-Owned in June 2021 and Microsoft described two intrusions using ESC1 and ESC8 on October 30, 2026.
How it works
AD CS issues X.509 certificates from templates that define who may enroll, what the certificate may be used for (its extended key usages, or EKUs), and where the subject name comes from. The most common abuse, ESC1, needs all of the following on one template: an enterprise CA that lets low-privileged users request certificates, manager approval disabled, no authorized signatures required, enrollment rights granted to a broad group, an EKU that allows client authentication, and the setting that lets the requester supply the subject alternative name in the request.
A typical ESC1 chain:
- Foothold. Any domain user session; in Microsoft's 2026 cases, a fake IT support call on Teams and Quick Assist.
- Enumerate. The attacker reads the PKI objects over LDAP, which any authenticated user can do, and finds an ESC1 template.
- Request. They submit a certificate request on that template naming a Domain Admin in the subject alternative name. The CA checks that the requester may enroll, which they may, and signs.
- Authenticate. The certificate goes to the domain controller through PKINIT, which returns a TGT for the Domain Admin.
- Act. DCSync, persistence, data theft, in one 2026 case within seconds of receiving the certificate.
Other paths reach the same outcome. ESC8 relays a coerced NTLM authentication, for example from a domain controller forced to authenticate by PetitPotam, to the CA's HTTP web enrollment endpoint and receives a certificate for the relayed machine. ESC4 is write access on the template itself, which lets an attacker make it ESC1. ESC6 is the CA-wide EDITF_ATTRIBUTESUBJECTALTNAME2 flag, which lets any request carry an arbitrary SAN. CVE-2022-26923 (Certifried) abused how the domain controller mapped a certificate to an account through an attacker-controllable DNS host name on a computer object. CVE-2024-49019 (ESC15, EKUwu) let an Application Policy extension in a request to a schema version 1 template override the EKUs the administrator intended. CVE-2025-26647 was a PKINIT gap in NTAuth checks defenders assumed were enforced.
Why it works
A certificate signed by the enterprise CA and present in NTAuth is treated as strong proof of identity, by design. The control assumption that fails is that every template the CA publishes was reviewed with the rigor of domain security policy. Templates accumulate and keep permissions nobody re-examines. Two further assumptions fail during response. A password reset does not revoke a certificate; SpecterOps noted in 2021 that maliciously enrolled certificates "will still be usable even if the user (or computer) resets their password." And revocation does not reach back: Microsoft's 2026 write-up warns that "revoking a certificate does not retroactively invalidate TGTs or service tickets that were already issued." Certificate abuse lives in the MFA blind zone: the privileged account never performs an interactive login that MFA could guard.
How to detect it
All of the following require the CA's Audit Certification Services subcategory and the CA audit filter to be enabled. Neither is on by default, and without them there is nothing to review after the fact.
- 4886 and 4887 on the CA. Event 4886 records a received certificate request and 4887 an approved and issued one, with requester and subject fields. The ESC1 tell is a 4887 where the requester and the subject or SAN are different accounts, especially when the subject is privileged.
- Template and CA changes. 4899 (template updated), 4900 (template security updated), 4882 (CA security permissions changed), and 4885 (audit filter changed) indicate someone turning a template into ESC1 or switching off logging. Microsoft's Securing PKI appendix rates 4882 and 4885 high: one occurrence is worth investigating. A registry audit event 4657 on
EditFlagsthat setsEDITF_ATTRIBUTESUBJECTALTNAME2is ESC6 being enabled. - Mapping events on domain controllers. Since KB5014754, Kdcsvc event 39 logs a certificate with no strong mapping, and event 41 logs a certificate whose SID extension does not match the account it is being used for, which is the certificate-issued-to-someone-else pattern.
- First-time certificate logon. A 4768 TGT request with Pre-Authentication Type 15 or 16 (smart card or certificate) and the certificate issuer, serial, and thumbprint fields populated, for an account that has never used certificate logon before. Microsoft also suggests alerting when the issuer is not a CA authorized to issue logon certificates.
- ITDR alerts. Microsoft Defender for Identity raised ESC1, ESC8, PKINIT, and DCSync alerts in the 2026 cases, and its AD CS posture assessments flag vulnerable templates before they are used.
The honest gap: many organizations discover mid-incident that CA auditing was never on, and 4886 and 4887 volume on a busy CA leaves the requester-versus-subject mismatch as the only usable alert.
How to stop it
Ranked by effect:
- Remove requester-supplied subjects from authentication templates. Any template with a client authentication EKU and "supply in the request" should be changed to build the subject from Active Directory, or require manager approval. This kills ESC1.
- Remove broad enrollment and write rights. Domain Users, Authenticated Users, and Domain Computers should not hold Enroll on privileged-capable templates or any write right on any template (ESC4).
- Harden or remove HTTP enrollment. Microsoft recommends removing unneeded Web Enrollment endpoints, requiring HTTPS with Extended Protection for Authentication, and disabling NTLM on enrollment services (KB5005413), which closes ESC8.
- Run strong certificate mapping. KB5014754 moved domain controllers to Full Enforcement on February 11, 2025, and the September 9, 2025 update removed the option to return to Compatibility mode. Confirm you are not running an older or exempted configuration.
- Patch for Certifried, ESC15 (and inventory schema version 1 templates that allow requester-supplied subjects), and the April 2025 PKINIT fix, then audit the NTAuth store so only intended CAs are in it.
- Enable CA auditing and retain it as long as domain controller logs.
- Plan certificate-aware response. Revoke unauthorized certificates, publish a fresh CRL, and separately deal with Kerberos tickets already issued from them; reset
krbtgttwice if DCSync occurred. Treat AD CS as tier zero. See the identity incident response runbook, PKI, and certificate lifecycle management.
Seen in the wild
- Fake Teams help desk contacts lead to AD CS certificates for privileged accounts (disclosed October 30, 2026): in one intrusion an ESC1 template yielded sign-in certificates for 11 privileged accounts over two waves about 90 minutes apart, and a privileged account excluded from automated response was used to copy file-server data out. In the second, PetitPotam coercion relayed to web enrollment (ESC8) produced a domain controller certificate before the workstation was isolated. The initial access is covered in help desk social engineering.
- Certifried, AD CS certificate mapping privilege escalation: CISA added CVE-2022-26923 to its Known Exploited Vulnerabilities catalog on August 18, 2022, confirming real exploitation even without a public victim writeup.
- ESC15 / EKUwu, AD CS V1 template Application Policy precedence
- Windows Kerberos PKINIT / NTAuth certificate logon bypass
Sources
- MITRE ATT&CK T1649: Steal or Forge Authentication Certificates
- SpecterOps: Certified Pre-Owned (June 2021)
- Microsoft Security Blog: From help desk impersonation to AD CS abuse, ESC1 and ESC8 intrusion paths (October 30, 2026)
- Microsoft KB5014754: Certificate-based authentication changes on Windows domain controllers
- Microsoft: Audit Certification Services
- Microsoft: Securing PKI, Appendix A: Events to Monitor
Related identity CVEs and breaches
In the Identity Breach Database
Real incidents in our sourced breach database where this technique was used.
- Fake Teams help desk contacts lead to AD CS certificates for privileged accounts 2026 · Help desk social engineering
Related on Start with Identity
- CVEAD FS elevation of privilege exploited as a zero-day
A low-privileged local user on an AD FS server could become administrator on the box that holds the federation token-signing keys. Microsoft saw exploitation be
- CVEFreeIPA anonymous LDAP write plants a Kerberos principal in the admins group
FreeIPA's self-managed OTP token ACI let an anonymous LDAP client create a token entry with extra attributes, which combined with a 389 Directory Server ACI fla
- CVEIvanti Connect Secure root escalation, the last link in the UTA0576 chain
The privilege escalation UTA0576 chained with CVE-2026-104935 to reach root on fully patched Ivanti Connect Secure VPNs, then mine Active Directory. Patched Oct
- GlossaryACME (Automated Certificate Management Environment)
ACME (Automated Certificate Management Environment) is the IETF protocol, [RFC 8555](https://www.rfc-editor.org/rfc/rfc8555) (March 2019, Proposed Standard), th
- GlossaryCertificate Authority (CA)
A certificate authority (CA) is the trusted party in a [PKI](/glossary/pki/) that verifies a requester's identity or control of a name and then signs an [X.509]
- GuideCertificate Lifecycle Management Guide
A complete guide to managing the certificate lifecycle, covering PKI fundamentals, certificate issuance, automated renewal, revocation strategies, monitoring fo