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

Event ID 4873: A certificate request extension changed

Written by an AD CS certification authority when an extension of a pending certificate request is set or changed before the request is decided. Rare on most CAs, and the mark of a request altered between its arrival and its issuance.

Log source
Windows Security log
Detection value
Supporting
Volume
Low (estimate)
Last updated
Audit subcategory
Audit Certification Services (Object Access, Success and Failure)
Logged on
Certification authority servers only
Event versions
0
Detects
1 attack (1 rule · 1 detection logic)
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 certification authority (CA) running Active Directory Certificate Services writes 4873 to its own Security log when an extension of a certificate request is set or changed through the CA's administration interface. Microsoft's interface for this works only on a request that is still pending, so the event marks a request that was changed after it arrived and before a certificate manager issued or denied it. The event gives the request ID, the object identifier (OID) of the extension, its data type, its flags and the new value; the account that made the change is in the event data, not in the message text.

The CA writes it only when the Audit Certification Services subcategory is enabled on the CA server and the "Issue and manage certificate requests" category is selected in the CA's own audit filter. A domain controller logs it only if it also holds the CA role: collect the Security log of every CA server.

How to turn it on

Advanced audit policy subcategory Audit Certification Services, Success and Failure. Set it in a Group Policy object linked to the computers that write the event:

Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Object Access > Audit Certification Services
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccess if needed and Failure if neededMicrosoft marks every column "IF" (the same in its general and stronger baselines). Enable the subcategory when the server has the Active Directory Certificate Services role installed and you need to monitor AD CS events.
Member serversSuccess if needed and Failure if neededMicrosoft marks every column "IF" (the same in its general and stronger baselines). Enable the subcategory when the server has the Active Directory Certificate Services role installed and you need to monitor AD CS events.
WorkstationsNot loggedMicrosoft says the AD CS role cannot be installed on a client operating system.
Check the current setting
auditpol /get /subcategory:"Certification Services"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Certification Services" /success:enable /failure:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9221-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference

Two settings must both be on, on every CA server:

  1. The Audit Certification Services subcategory, Success and Failure (Microsoft's PKI monitoring guide asks for both).
  2. The Issue and manage certificate requests category in the CA's own audit filter: the Auditing tab of the CA's properties in the Certification Authority console, or bit value 4 of the CA's AuditFilter registry value (all seven categories together are 127). Microsoft's procedure restarts Certificate Services after the filter is changed. To read the current value on the CA: certutil -getreg CA\AuditFilter.

Microsoft notes that the audit filter alone does not make Windows write the event, and the subcategory alone does not either.

Fields

In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.

FieldWhat it holdsSince
Request IDRequestIdA certificate request extension changed.ID of the request in the CA database, a decimal number (shown as Request ID). The same ID appears in the CA's other request events (4886, 4889, 4874, 4887), which links the change to the request and to the certificate issued from it.v0
NameExtensionNameA certificate request extension changed.Object identifier (OID) of the extension that was set (shown as Name), for example 2.5.29.17 for the subject alternative name or 2.5.29.37 for the enhanced key usage.v0
TypeExtensionDataTypeA certificate request extension changed.Data type of the new value (shown as Type). The CA's interface accepts a long number, a date, binary data that is already ASN.1 encoded, or a string that the CA encodes as an IA5 string. Microsoft does not document how the event writes the type.v0
FlagsExtensionPolicyFlagsA certificate request extension changed.Flags of the extension (shown as Flags): critical, disabled (kept out of the certificate), and flags private to the policy module in the high 8 bits. Microsoft does not document the numbers the event writes.v0
DataExtensionDataA certificate request extension changed.New value of the extension (shown as Data). Microsoft does not document how the event renders it, so check an event from your own CA before you parse it.v0
SubjectUserSidSID of the account that made the change. Not shown in the message text; read it from the event data (the XML or the Details tab). Event Viewer resolves it to a name.v0
SubjectUserNameName of the account that made the change. Not shown in the message text.v0
SubjectDomainNameDomain of that account, as a NetBIOS name. Not shown in the message text.v0
SubjectLogonIdLogon ID of the session that made the change, in hexadecimal. Matches the logon event (4624) of that session on the CA server, which gives the source address when the service that received the logon passed it to Windows; Microsoft notes that some logons carry no network details. Not shown in the message text.v0

Values to know

Name ExtensionName

ValueMeaningSignal
2.5.29.17Subject alternative nameA name added to a pending request can be another user or computer than the requester.Attack signal
2.5.29.37Enhanced key usageAdds or changes what the certificate may be used for, for example client authentication.Attack signal
1.3.6.1.4.1.311.21.10Microsoft application policiesMicrosoft's counterpart of the enhanced key usage; changing it changes the permitted uses as well.Attack signal
Any other OIDAnother extensionRead ExtensionData for the new value.Worth knowing

Flags ExtensionPolicyFlags

ValueMeaningSignal
EXTENSION_CRITICAL_FLAGThe extension is marked criticalWorth knowing
EXTENSION_DISABLE_FLAGThe extension is disabled and is not added to the certificateMicrosoft documents the flag names of the interface, not the numbers the event writes.Worth knowing

SubjectUserName

ValueMeaningSignal
A documented certificate manager or registration workflow accountPlanned handling of pending requestsExpected
Any other accountA request changed outside the approval processMatch the RequestId to 4887 to see whether the changed request was then issued.Attack signal

Volume and noise

Low on most CAs. An enterprise CA issues most requests at once from their templates, so few requests are ever pending, and Microsoft's guidance for pending requests is to ask for a new request rather than correct one with a certificate manager action. Where a CA or a registration workflow does edit pending requests on purpose, each edited extension writes one event. Microsoft rates the event medium and notes that where the CA does not use this function, it may point to tampering with a request.

Keeping it manageable

  • Keep every event: the volume is low and the rule matches on the event ID alone.
  • If a known workflow edits pending requests, record the accounts and the extension OIDs it uses, and review the events outside that list instead of excluding the accounts.
  • Collect 4886, 4889 and 4887 from the same CA, so that a changed request can be followed by its RequestId from its arrival to the certificate that was issued from it.

Sample event

Version 0, with made-up values.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
    <EventID>4873</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
    <EventRecordID>1048576</EventRecordID>
    <Correlation />
    <Execution ProcessID="712" ThreadID="2408" />
    <Channel>Security</Channel>
    <Computer>CA01.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="RequestId">4127</Data>
    <Data Name="ExtensionName">2.5.29.37</Data>
    <Data Name="ExtensionDataType">3</Data>
    <Data Name="ExtensionPolicyFlags">0</Data>
    <Data Name="ExtensionData">300a06082b06010505070302</Data>
    <Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1153</Data>
    <Data Name="SubjectUserName">certmgr-anna</Data>
    <Data Name="SubjectDomainName">CORP</Data>
    <Data Name="SubjectLogonId">0x5d2b81</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Why would an extension of a certificate request change on a CA?

A certificate manager or a registration workflow set an extension on a request that was waiting for approval. Microsoft's guidance for pending requests is not to correct a request this way but to require a new request with the approved values, because a changed request bypasses the checks that were made when it arrived. An extension that adds a subject alternative name or a new purpose, followed by issuance, deserves a close look.

How do I find the certificate that came out of a changed request?

Take the RequestId of 4873 and look for event 4887 with the same Request ID on the same CA. Its Subject (and, on CAs that write version 1, its SAN and template) shows what was issued, and the CA database holds the certificate itself.

Why is there no 4873 although Audit Certification Services is enabled?

The CA also needs "Issue and manage certificate requests" in its own audit filter, and Microsoft's procedure restarts Certificate Services after the filter changes. The event is written only on the CA server, and only when someone changes a pending request, which many CAs never do.

References