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| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success if needed and Failure if needed | Microsoft 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 servers | Success if needed and Failure if needed | Microsoft 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. |
| Workstations | Not logged | Microsoft says the AD CS role cannot be installed on a client operating system. |
auditpol /get /subcategory:"Certification Services"auditpol /set /subcategory:"Certification Services" /success:enable /failure:enableauditpol /get /subcategory:"{0CCE9221-69AE-11D9-BED3-505054503030}"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:
- The Audit Certification Services subcategory, Success and Failure (Microsoft's PKI monitoring guide asks for both).
- 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
4of the CA'sAuditFilterregistry value (all seven categories together are127). 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.
| Field | What it holds | Since |
|---|---|---|
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 |
SubjectUserSid | SID 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 |
SubjectUserName | Name of the account that made the change. Not shown in the message text. | v0 |
SubjectDomainName | Domain of that account, as a NetBIOS name. Not shown in the message text. | v0 |
SubjectLogonId | Logon 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
| Value | Meaning | Signal |
|---|---|---|
2.5.29.17 | Subject alternative nameA name added to a pending request can be another user or computer than the requester. | Attack signal |
2.5.29.37 | Enhanced 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.10 | Microsoft application policiesMicrosoft's counterpart of the enhanced key usage; changing it changes the permitted uses as well. | Attack signal |
Any other OID | Another extensionRead ExtensionData for the new value. | Worth knowing |
Flags ExtensionPolicyFlags
| Value | Meaning | Signal |
|---|---|---|
EXTENSION_CRITICAL_FLAG | The extension is marked critical | Worth knowing |
EXTENSION_DISABLE_FLAG | The 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
| Value | Meaning | Signal |
|---|---|---|
A documented certificate manager or registration workflow account | Planned handling of pending requests | Expected |
Any other account | A 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
RequestIdfrom 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
- Audit Certification Services (Microsoft)
- Securing PKI: Appendix A: Events to Monitor (Microsoft)
- Securing PKI: Appendix B: Certification Authority Audit Filter (Microsoft)
- Securing PKI: Monitoring Public Key Infrastructure (Microsoft)
- ICertAdmin::SetCertificateExtension method (Microsoft)
- Review and dispose of pending certificate requests (Microsoft)
- Supported extensions of Microsoft certification authorities (Microsoft)
- 4624(S): An account was successfully logged on (Microsoft)