1. Resources
  2. Identity Threats
  3. Active Directory

Kerberos NTAuth Bypass with SKI Mapping (CVE-2025-26647)

Also known as: CVE-2025-26647, NTAuth store bypass, SKI mapping certificate logon, AllowNtAuthPolicyBypass

A certificate from a CA that domain controllers trust but that is not in the NTAuth store could be used to sign in as any account that has a matching SKI mapping in altSecurityIdentities.

Platform
Active Directory
Impact
High
Last updated
Attack difficulty
High
Detection difficulty
Medium
Privileges required: Specific rights or roles
A domain account, a certificate with the target's Subject Key Identifier from a CA the domain controllers trust outside NTAuth, or write access to altSecurityIdentities on the target.
What the attacker gains
A Kerberos TGT as the mapped account, including privileged accounts, issued on the strength of a CA that was never approved for domain logon.
Threat groups
APT29NIMBUS MANTICOREAgriusAPT28APT3APT32APT33APT5Aquatic PandaBITTERBlackByteChimeraCinnamon TempestCobalt Groupand 27 more in MITRE ATT&CKGroups that MITRE ATT&CK records using T1649, T1068, T1078.002.

How it works

When a domain controller accepts a certificate for Kerberos logon (PKINIT), it makes two separate decisions:

  1. Which account does this certificate belong to? The KDC maps the certificate to an account: through the SID in the certificate, or through an explicit mapping stored on the account in altSecurityIdentities. KB5014754 (2022) hardened this decision and classes some explicit mappings as strong, among them the Subject Key Identifier mapping, written as X509:<SKI> followed by the key identifier.
  2. Was this certificate issued by a CA that is approved for logon? The certificate must chain to a CA in the NTAuth store, the forest's list of authorities allowed to issue logon certificates. A domain controller trusts many more CAs than that for other purposes: public roots, a CA for TLS inspection, a partner's CA, a CA for device or Wi-Fi certificates.

CVE-2025-26647 is a gap in the second decision. Microsoft describes the affected case as follows: the certificate was issued by an authority the domain controller trusts but that isn't in the NTAuth store, and the account has an SKI mapping in altSecurityIdentities. In that case the KDC accepted the logon. The strong mapping answered the first question, and the second question wasn't asked.

The key identifier in a certificate is a value in an extension. According to Microsoft's advisory, an authenticated attacker exploits the flaw by obtaining a certificate that contains the target's SKI value from a certification authority, and then uses that certificate to get a TGT for the target user. The attacker doesn't need the target's private key: the certificate carries the attacker's own key pair and the victim's key identifier.

Two situations make this practical:

  • An existing SKI mapping. Accounts mapped by SKI exist where certificates come from a third-party or offline PKI. If any CA the domain controllers trust will issue a certificate with a requester-chosen key identifier, that CA becomes a logon authority for those accounts.
  • A mapping the attacker writes. An attacker with write access to altSecurityIdentities on a target can add an SKI mapping for a certificate they already hold. That is the ESC14 pattern; this flaw removed the remaining requirement that the certificate come from an NTAuth CA.

This is different from rogue CA persistence through NTAuth, where the attacker adds their own CA to the store. Here the store is untouched and simply wasn't consulted.

Prerequisites

  • A valid domain account.
  • A domain controller that doesn't enforce the NTAuth check: one without the April 8, 2025 or later updates, or one in audit mode (AllowNtAuthPolicyBypass 1) or with the check disabled (0) while those values were still honoured.
  • A CA whose certificates chain to a root the domain controllers trust, that isn't in the NTAuth store, and from which the attacker can obtain a client authentication certificate.
  • A target account with an X509:<SKI> mapping whose value the certificate carries, or write access to the target's altSecurityIdentities.
  • Domain controllers that support PKINIT.

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 accounts with SKI mappings

Any domain user can read the attribute:

Get-ADObject -LDAPFilter '(altSecurityIdentities=X509:<SKI>*)' -Properties altSecurityIdentities, adminCount |
    Select-Object Name, ObjectClass, adminCount, altSecurityIdentities

2. Compare the trusted CAs with the NTAuth store

On a domain-joined machine, list the logon authorities and the CAs the machine trusts:

certutil -store -enterprise NTAuth
certutil -store Root
certutil -store CA

A CA that appears in the machine stores of the domain controllers but not in NTAuth, and that issues certificates to requesters, is a candidate issuer.

3. Check the enforcement state of the domain controllers

With administrative read access, or from a configuration export:

reg query HKLM\SYSTEM\CurrentControlSet\Services\Kdc /v AllowNtAuthPolicyBypass

0 disables the check, 1 audits (event 45, logon allowed) and 2 enforces. The value isn't created by the update. With no value, updates from April 2025 audit and updates from July 2025 enforce.

4. Obtain a certificate that carries the mapped key identifier

Request a client authentication certificate from the candidate CA with a Subject Key Identifier equal to the value in the target's mapping. Then read the certificate back and confirm the extension:

certutil -dump alice-ski.cer

In the variant with write access, the direction is reversed: take the key identifier of a certificate the attacker already holds from that CA and write it to the target.

Set-ADUser -Identity svc-sql -Add @{ altSecurityIdentities = 'X509:<SKI>0123456789abcdef0123456789abcdef01234567' }

5. Request a TGT as the target

certipy auth -pfx alice-ski.pfx -username svc-sql -domain corp.example.com -dc-ip 192.0.2.10
.\Rubeus.exe asktgt /user:svc-sql /certificate:C:\Temp\alice-ski.pfx /password:PfxPassword1 /domain:corp.example.com /dc:DC01.corp.example.com /nowrap

Against a domain controller in audit mode the request succeeds and event 45 is written. Against an enforcing domain controller it fails and event 21 is written.

Impact

The attacker gets a TGT as the mapped account and everything that follows from it: the account's group memberships and rights, and with PKINIT the account's NT hash. If the mapped account is privileged, this is direct privilege escalation to that level. Microsoft's advisory puts it as the KDC assigning much greater rights to the certificate than intended.

The wider effect is on trust boundaries. Every CA in the domain controllers' trusted stores, including ones run by other teams or other companies, was in effect a logon authority for SKI-mapped accounts. Access through the certificate lasts until the certificate expires or the mapping is removed, and survives password changes.

OPSEC and artifacts

  • Target a domain controller that doesn't log. An unpatched domain controller issues the TGT without any NTAuth event. An operator who can choose aims PKINIT at that one. The request still writes event 4768 with the certificate's issuer name, serial number and thumbprint, and the issuer isn't one of the organization's logon CAs.
  • Audit mode is not silent. A domain controller with the April 2025 updates writes event 45 with the user and the certificate's subject, issuer, serial number and thumbprint, and lets the logon through.
  • Enforcement turns the attempt into a failure. Event 21 on the domain controller, and a failed pre-authentication for the account.
  • Writing a mapping leaves a directory change. Event 5136 for altSecurityIdentities where directory change auditing and a SACL cover the account, and the value stays on the object until someone removes it.
  • The issuing CA has a record of the request and of the unusual key identifier, if that CA is one the defenders can query. For an external CA they usually can't.
  • Legitimate noise exists. Windows Hello for Business key trust and device public key logons use self-signed certificates and can raise the same events, which operators count on when an environment has many of them.

Detection

  • Certificate logon from outside NTAuth. The NTAuth certificate rules read KDC events 45 and 21 in the System log of domain controllers. In event 45, look at the issuer: a CA that the PKI team doesn't run, for a privileged account, is the finding. Microsoft documents two patterns that can be ignored: Windows Hello for Business logons whose subject and issuer have the form <SID>/<UID>/login.windows.net/<tenant ID>/<UPN>, and machine PKINIT logons where subject and issuer are the same computer and the serial number is 01.
  • Explicit mappings being written. The explicit certificate mapping rules alert on event 5136 for altSecurityIdentities.
  • Issuer baseline on 4768. Certificate-based TGT requests whose CertIssuerName isn't in the list of NTAuth CAs. This works on unpatched domain controllers too.
  • Changes to the trust stores. The NTAuth and PKI trust object rules cover the directory side of what domain controllers trust.
// KDC decisions about certificates that do not chain to the NTAuth store
WindowsEvent
| where Channel == "System"
| where Provider == "Microsoft-Windows-Kerberos-Key-Distribution-Center"
| where EventID in (21, 45)
| project TimeGenerated, Computer, EventID, EventData
| order by Computer asc, TimeGenerated asc
// Certificate-based TGTs by issuer: compare the list with the CAs in NTAuth
WindowsEvent
| where Channel == "Security" and EventID == 4768
| extend Issuer = tostring(EventData.CertIssuerName), Account = tostring(EventData.TargetUserName)
| where isnotempty(Issuer)
| summarize Logons = count(), Accounts = dcount(Account), LastSeen = max(TimeGenerated) by Issuer
| order by Logons desc

Event 21 has several causes besides this one, so read the message and check the chain before attributing a failure to the NTAuth check. The System log has to be collected from every domain controller; these events aren't in the Security log.

Mitigation

  • Update every domain controller. The NTAuth check is enforced by default from the July 2025 updates and can't be relaxed from the October 2025 updates. One domain controller behind on updates is the one an attacker will use.
  • Clear event 45 before it becomes event 21. For each certificate in the audit events, either move the account to a certificate from an NTAuth CA or, if the issuer really is a logon authority, add it to NTAuth deliberately. Don't publish a CA to NTAuth just to silence the event: that makes it a logon authority for the whole forest.
  • Inventory explicit mappings. List every account with altSecurityIdentities, remove mappings nobody owns, and prefer certificates that carry the account's SID over explicit mappings.
  • Restrict who can write altSecurityIdentities, above all on privileged accounts.
  • Keep the NTAuth store and the domain controllers' trusted stores small. Review both regularly; every entry is a party that can vouch for identities in some form.
  • Collect the System log of domain controllers and audit directory changes. The audit policy guide covers the settings, and how to secure the Kerberos authentication protocol covers the rest of the Kerberos baseline.

Detection rules for this attack

Log events to collect

FAQ

What is the NTAuth store?

It is the forest-wide list of certification authorities that are allowed to issue certificates for logon. It is separate from the list of CAs a domain controller trusts for other purposes such as TLS. A CA can be trusted by Windows and still not be approved for domain logon. CVE-2025-26647 is a case where the KDC didn't apply that second check.

Which accounts were exposed to CVE-2025-26647?

Accounts whose altSecurityIdentities attribute holds an explicit Subject Key Identifier (SKI) mapping. Microsoft describes the affected case as a certificate issued by a trusted authority that isn't in the NTAuth store, presented for an account with such a mapping. An attacker who obtained a certificate with the mapped SKI value from one of those authorities could get a TGT as the account.

Is CVE-2025-26647 still exploitable?

Not on domain controllers with current updates. Updates from April 8, 2025 added the NTAuth check in audit mode, updates from July 2025 enforce it by default, and since the October 2025 updates the AllowNtAuthPolicyBypass registry value that relaxed it is no longer supported. A domain controller without those updates, or still held in audit mode before October 2025, accepted the logon.

What do KDC events 45 and 21 mean?

Event 45 is the audit event: the KDC saw a client certificate that was valid but didn't chain to a CA in the NTAuth store, and it allowed the logon. Event 21 is the general failure for a client certificate that isn't valid, which in enforcement mode includes this case. Both are in the System log of the domain controller.

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.