1. Resources
  2. Detection sources
  3. Event ID 39

Event ID 39: The Key Distribution Center (KDC) encountered a user certificate that was valid but could not be mapped to a user

Written by a domain controller when a valid sign-in certificate has no strong mapping to its account and no SID extension. A warning when Compatibility mode let the sign-in through, an error when enforcement refused it.

Log source
Windows System log
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
System log (Microsoft-Windows-Kerberos-Key-Distribution-Center, on by default)
Logged on
Domain controllers only
Event versions
0
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 1 tactic
Threat groups
2 groups that MITRE ATT&CK records using these techniques
Fields the rules read
The event ID and the provider only

When it is written

A domain controller writes event 39 when its Key Distribution Center (KDC) receives a sign-in with a certificate (PKINIT) and the certificate is valid but cannot be tied to the account in a secure way: the account has no strong explicit mapping in altSecurityIdentities, there is no key trust mapping, and the certificate has no security identifier (SID) extension the KDC could validate. The event names the account and the certificate's subject, issuer, serial number, thumbprint and issuance policies. It has no client address.

The level tells what happened to the sign-in. In Compatibility mode the event is a Warning and the sign-in went ahead: Microsoft added it in the May 10, 2022 update so that administrators could find the certificates that Full Enforcement would refuse. In Full Enforcement mode it is an Error and the sign-in was refused. Domain controllers with the September 9, 2025 or a later update no longer support the registry value that selected Compatibility mode, so on current domain controllers the event reports a refused sign-in.

The event template that ships with the KDC words the condition as a certificate that could not be mapped "in a secure way" and adds a line for the certificate's issuance policies; KB5014754 prints the same text with "in a strong way" and without that line. Windows Server 2008 SP2 and Windows Server 2008 R2 SP1 domain controllers write the same condition as event 41, which on later versions means a SID mismatch. For TLS client certificate mapping (an IIS intranet application, for example) the request reaches the domain controller from the application server through the Kerberos certificate S4U protocol, and Microsoft says to look for the related events on the application server.

How to turn it on

Microsoft-Windows-Kerberos-Key-Distribution-Center writes the event to the System log (Event Viewer > Windows Logs > System), which is on by default. Microsoft

The event exists on domain controllers with the May 10, 2022 or a later Windows update (KB5014754, for CVE-2022-26923, CVE-2022-26931 and CVE-2022-34691). What the domain controller does with a certificate that has no strong mapping depends on the StrongCertificateBindingEnforcement value of the KDC. To read it:

reg query "HKLM\SYSTEM\CurrentControlSet\Services\Kdc" /v StrongCertificateBindingEnforcement

Value Mode A certificate without a strong mapping
1 Compatibility The KDC looks for the SID extension and validates it. Without it, the sign-in is allowed if the account is older than the certificate (39 as a warning) and refused otherwise (40).
2 Full Enforcement The KDC looks for the SID extension and validates it. Without it, the sign-in is refused (39 as an error).
0 Disabled No strong mapping check. Ignored since the April 11, 2023 updates.

The May 10, 2022 update put domain controllers in Compatibility mode. The February 11, 2025 update moved them to Full Enforcement, and setting the value to 1 could still bring Compatibility mode back. The September 9, 2025 update ends support for the value, so domain controllers with that update or a later one enforce, whatever the registry says.

The SID extension is used only when the KDC value UseSubjectAltName is absent or 1; set to 0, the KDC ignores the extension and more certificates end up without a strong mapping.

Fields

In Event Viewer order. The field names are those of the event XML, from the event template of Windows Server 2025 (build 26100.32230, January 13, 2026): the provider belongs to a server role, so the template comes from the provider manifests that the EVTX-ETW-Resources project exported from that release.

FieldWhat it holdsSince
UserAccountNameAccount the certificate was mapped to (User), by its principal name in Microsoft's placeholder. Computer accounts end with $.v0
Certificate SubjectSubjectSubject name of the certificate (Certificate Subject). Microsoft notes that subject, issuer and serial number are written in forward order, while a mapping in altSecurityIdentities needs them reversed.v0
Certificate IssuerIssuerName of the CA that issued the certificate (Certificate Issuer), in forward order.v0
Certificate Serial NumberSerialNumberSerial number of the certificate (Certificate Serial Number). With the issuer it makes the X509IssuerSerialNumber mapping, the strong mapping Microsoft recommends; reverse the bytes, not the digits, when you write it.v0
Certificate ThumbprintThumbprintThumbprint of the certificate (Certificate Thumbprint). Event 4768 records the same thumbprint for a certificate sign-in that got a ticket, together with the client address.v0
Certificate Issuance PoliciesIssuancePoliciesIssuance policies of the certificate (Certificate Issuance Policies): the policy object identifiers a CA puts in a certificate to say how far its identity can be trusted. The template has this line, KB5014754's event text does not, and Microsoft does not document its format; the sample leaves it empty.v0
Binary dataBinaryBinary data the KDC attaches to the event. Microsoft does not document what it holds for event 39; rules do not need it.v0

Values to know

Certificate Issuer Issuer

ValueMeaningSignal
An enterprise CA of your forestA certificate your own PKI issuedUpdated enterprise CAs add the SID extension to certificates issued against online templates. A 39 for their certificate points to an older certificate, an offline template or a template with the extension turned off.Worth knowing
A non-Microsoft CAA certificate the SID extension does not protectMicrosoft says these certificates need one of the strong explicit mappings instead.Worth knowing
A CA that does not issue your sign-in certificatesAn unexpected issuerA valid certificate from an issuer you do not use for sign-in that names one of your accounts. Microsoft suggests watching for such issuers in event 4768 too.Attack signal

User AccountName

ValueMeaningSignal
Ends with $A computer accountThe May 2022 fix covered certificates for machine names, which the KDC used to match without the trailing $. Reissue the computer's certificate so that it carries the SID extension.Worth knowing
Any other accountA user accountReissue the certificate or add a strong explicit mapping, and give priority to privileged accounts.Worth knowing

Volume and noise

In a domain where every sign-in certificate carries the SID extension or has a strong mapping, the event does not appear. It comes from the certificates the May 2022 changes did not cover. Microsoft says enterprise CAs add the extension, from the May 10, 2022 update on, to certificates issued against online templates, and that certificates from non-Microsoft CAs are not protected by it. That leaves certificates issued before the CA was updated, certificates from offline templates, certificates from templates on which the extension was turned off (the 0x00080000 bit of msPKI-Enrollment-Flag) and certificates from other CAs.

Microsoft's rollout advice was to install the update and move to Full Enforcement once no such event had been logged for a month. Under enforcement every event is a failed sign-in that a user or a device will notice, so the event rarely stays frequent for long.

Keeping it manageable

  • Match the provider as well as the event ID: IDs in the System log repeat across providers. The template writes the provider Microsoft-Windows-Kerberos-Key-Distribution-Center with the event source name KDC; KB5014754 gives the source as Kdcsvc. The rules accept both names.
  • Collect the System log of every domain controller that handles certificate sign-ins: only the domain controller that answered writes the event. In Compatibility mode, find the device through event 4768, which carries the same certificate thumbprint and the client address.
  • Fix the certificate instead of filtering the event: reissue it from a template that adds the SID extension, or add a strong explicit mapping to the account. Do not exclude accounts by AccountName: an attempt with a weakly mapped certificate that names an excluded account would go unseen.
  • Keep both levels. A warning says a weakly mapped certificate signed in successfully, an error says one was refused; both are worth a look on a privileged account.

Sample event

Version 0, with made-up values.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Kerberos-Key-Distribution-Center" Guid="{3FD9DA1A-5A54-46C5-9A26-9BD7C0685056}" EventSourceName="KDC" />
    <EventID Qualifiers="32768">39</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
    <EventRecordID>1048576</EventRecordID>
    <Correlation />
    <Execution ProcessID="712" ThreadID="2408" />
    <Channel>System</Channel>
    <Computer>DC01.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="AccountName">alice</Data>
    <Data Name="Subject">CN=alice, OU=Staff, DC=corp, DC=example, DC=com</Data>
    <Data Name="Issuer">CN=CORP-CA01, DC=corp, DC=example, DC=com</Data>
    <Data Name="SerialNumber">1f000000082d6a4cb1e9f37a000000000008</Data>
    <Data Name="Thumbprint">3d9f2a7c41b8e6052c7f9a1d4e6b8c0a2f5d7e91</Data>
    <Data Name="IssuancePolicies"></Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

What is the difference between event 39 as a warning and as an error?

The level follows the KDC's mode. In Compatibility mode event 39 is a warning and the certificate sign-in succeeded, because the account was older than the certificate. In Full Enforcement mode it is an error and the sign-in was refused. Domain controllers with the September 9, 2025 or a later update always enforce, so there it means a refused sign-in.

Why does event 39 appear for certificates from our own enterprise CA?

Microsoft's CAs add the SID extension only from the May 10, 2022 update on, and only to certificates issued against online templates. Certificates issued earlier, from offline templates or from templates where the extension was switched off with the 0x00080000 bit of msPKI-Enrollment-Flag have no extension, and without a strong explicit mapping the KDC cannot map them strongly.

How do I make event 39 stop?

Replace the certificate with one that carries the SID extension, or map it to the account through altSecurityIdentities with one of the strong mapping types: X509IssuerSerialNumber (Microsoft's recommendation), X509SKI or X509SHA1PublicKey. The issuer and subject, subject only and email (RFC822) mappings are weak and do not help.

Is event 39 written on Windows Server 2008 domain controllers?

No. Windows Server 2008 SP2 and Windows Server 2008 R2 SP1 domain controllers report the same condition as event 41, and use 48 and 49 for the other two certificate mapping events. On later versions event 41 is the SID mismatch event, so the version of the domain controller decides what 41 means.

References