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

Event ID 41: The Key Distribution Center (KDC) encountered a user certificate that was valid but contained a different SID

Written by a domain controller when a certificate sign-in fails because the SID in the certificate's SID extension is not the SID of the account it maps to: a certificate issued to another account. An error in every enforcement mode.

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 41 when a sign-in with a certificate (PKINIT) reaches its Key Distribution Center (KDC) with a certificate that is valid and carries the security identifier (SID) extension, but the SID in it is not the SID of the account the certificate mapped to. Microsoft reads this as a certificate issued to another user, and the request fails. The event lists the account and its SID, the certificate's subject, issuer, serial number, thumbprint and issuance policies, and the SID found in the certificate. It has no client address.

Enterprise CAs add the extension (OID 1.3.6.1.4.1.311.25.2) to certificates issued against online templates from the May 10, 2022 update on, and the KDC validates it in Compatibility and in Full Enforcement mode alike, so the event is an Error and the sign-in fails in both. It is not written when the account has a strong explicit mapping, which the KDC checks first, or when the KDC does not use the extension (UseSubjectAltName set to 0). The event template has a line for the certificate's issuance policies that KB5014754's event text does not show.

Event 41 has other meanings. On Windows Server 2008 SP2 and Windows Server 2008 R2 SP1 domain controllers it is the event later versions write as 39 (no strong mapping), and their SID mismatch event is 49. And the System log of every Windows computer uses 41 for an unrelated Kernel-Power event, written after a restart without a clean shutdown: always match the provider.

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). The KDC validates the SID extension in both modes of StrongCertificateBindingEnforcement (1, Compatibility, and 2, Full Enforcement), and domain controllers with the September 9, 2025 or a later update always enforce.

The KDC uses the extension only when UseSubjectAltName under its key is absent or 1. To read it:

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

Set to 0, the KDC ignores the extension, the SID check does not happen and event 41 is not written. On the CA side, the extension is left out of a template's certificates when the 0x00080000 bit of its msPKI-Enrollment-Flag is set; Microsoft says this removes the protection the extension gives.

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
User SIDAccountSidSID of the account the certificate was mapped to (User SID), the authenticating principal.v0
Certificate SubjectSubjectSubject name of the certificate (Certificate Subject), written in forward order (a mapping in altSecurityIdentities needs it reversed).v0
Certificate IssuerIssuerName of the CA that issued the certificate (Certificate Issuer).v0
Certificate Serial NumberSerialNumberSerial number of the certificate (Certificate Serial Number), which identifies it on the issuing CA.v0
Certificate ThumbprintThumbprintThumbprint of the certificate (Certificate Thumbprint).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
Certificate SIDCertificateSidSID found in the certificate's SID extension (Certificate SID, OID 1.3.6.1.4.1.311.25.2): the account the CA issued the certificate to. Different from AccountSid in this event.v0
Binary dataBinaryBinary data the KDC attaches to the event. Microsoft does not document what it holds for event 41; rules do not need it.v0

Values to know

Certificate SID CertificateSid

ValueMeaningSignal
Differs from AccountSidThe certificate was issued to another accountWhat the rule reports. Find which account holds the CertificateSid: that account, or someone acting for it, enrolled the certificate.Attack signal
SID of a deleted accountThe account was deleted and created again under the same nameA new account never gets the old SID, so a certificate issued before the deletion no longer matches. Reissue it.Noise

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 $. A computer certificate carrying another account's SID needs investigation.Attack signal
A privileged accountDomain admins, the built-in Administrator (AccountSid ending with -500), domain controllersA certificate of another account presented for a privileged one. Look for name changes on the account whose SID the certificate carries.Attack signal

Volume and noise

Rare. Two ordinary causes are worth ruling out. A certificate used to sign in to several accounts holds one SID: Microsoft's troubleshooting steps say each account then needs its own strong explicit mapping. And an account deleted and created again under the same name gets a new SID (Microsoft notes that a SID is never reused), so a certificate issued to the old account no longer matches.

Outside those cases the event is the trace of a certificate that names one account while it was issued to another, for example after a name on the enrolling account was changed to match the target. Microsoft's article describes such conflicts between names (user principal name, sAMAccountName, machine names) as the spoofing the May 2022 changes address, and the detection rule rates the event high.

Keeping it manageable

  • Always match the provider: System event 41 from Microsoft-Windows-Kernel-Power (an unexpected restart) is common on every computer. The template writes the KDC's provider as 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 domain controllers only for this event: Windows Server 2008 and 2008 R2 domain controllers aside, there it always means a SID mismatch.
  • Alert on every event. For a confirmed shared certificate or a re-created account, fix the cause (a strong explicit mapping per account, or a new certificate) instead of excluding the 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">41</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="AccountSid">S-1-5-21-1004336348-1177238915-682003330-1104</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">4c0000003e91a7d25bf06c8400000000003e</Data>
    <Data Name="Thumbprint">5e2a9c7d1f4b8e3a6c0d2f9b7a1e4c8d3b6f0a25</Data>
    <Data Name="IssuancePolicies"></Data>
    <Data Name="CertificateSid">S-1-5-21-1004336348-1177238915-682003330-1187</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Is event 41 in the System log always a Kerberos event?

No. On every Windows computer, event 41 from Microsoft-Windows-Kernel-Power means the system restarted without a clean shutdown. Only event 41 from the Key Distribution Center (provider Microsoft-Windows-Kerberos-Key-Distribution-Center, source Kdcsvc in Microsoft's article) on a domain controller is the certificate SID mismatch, and on Windows Server 2008 and 2008 R2 domain controllers that KDC event means a certificate without a strong mapping instead.

What does a SID mismatch in event 41 mean?

The certificate carries the SID of the account the CA issued it to, and that SID is not the SID of the account the certificate mapped to at sign-in. Microsoft reads it as a certificate issued to another user, and the sign-in fails. Rule out a certificate shared between accounts and an account re-created under the same name, then treat it as an impersonation attempt.

Can the SID check be switched off?

Two settings remove it. On the domain controller, UseSubjectAltName set to 0 under the Kdc key makes the KDC ignore the SID extension. On the CA, the 0x00080000 bit of a template's msPKI-Enrollment-Flag stops the extension from being added to its certificates. Microsoft warns that leaving the extension out removes its protection, so watch for either change.

References