When it is written
A certification authority (CA) has a small set of properties that can be set through its administration interface. Microsoft documents five: the key recovery agent (KRA) certificates, the number of KRA certificates and the number the CA uses, whether role separation is on, and the list of templates the CA supports. The CA writes 4892 to its own Security log when a property is set, with the property, its index (for a property with several values, such as the KRA certificates), its data type and the new value. The account that made the change is in the event data, not in the message text.
The event needs the Audit Certification Services subcategory on the CA server and the "Change CA configuration" category in the CA's own audit filter. A domain controller logs it only if it also holds the CA role.
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 Change CA configuration category in the CA's own audit filter: the Auditing tab of the CA's properties in the Certification Authority console, or bit value
64of 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's PKI guide also lists the registry value that holds the KRA certificate hashes (KRACertHash) among the values to audit with registry auditing (event 4657), for changes made outside the CA's administration interface.
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 |
|---|---|---|
PropertyPropertyNameA property of Certificate Services changed. | Property that was set (shown as Property). Microsoft documents five settable properties, the KRA certificates, their number, the number used, role separation and the template list, but not how the event names them. | v0 |
IndexPropertyIndexA property of Certificate Services changed. | Index of the value that was set (shown as Index), zero-based. Used for properties with several values, such as the KRA certificates; ignored for the others. | v0 |
TypePropertyTypeA property of Certificate Services changed. | Data type of the value (shown as Type), a long number, binary data or a string. Microsoft does not document how the event writes the type. | v0 |
ValuePropertyValueA property of Certificate Services changed. | New value of the property (shown as Value), for example a certificate for a KRA certificate or a list for the templates. Microsoft does not document how the event renders 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
Property PropertyName
| Value | Meaning | Signal |
|---|---|---|
CR_PROP_KRACERT | A key recovery agent certificate of the CAMicrosoft documents the property identifiers of the interface, not how the event writes them. Check an event from your own CA. | Attack signal |
CR_PROP_KRACERTCOUNT or CR_PROP_KRACERTUSEDCOUNT | How many KRA certificates the CA has, and how many of them it uses | Worth knowing |
CR_PROP_TEMPLATES | The templates the CA supportsA template added here becomes available for enrollment on this CA. | Worth knowing |
CR_PROP_ROLESEPARATIONENABLED | Whether role separation is onSee also event 4897. | Worth knowing |
SubjectUserName
| Value | Meaning | Signal |
|---|---|---|
A PKI administrator with a change record | Planned change | Expected |
Any other account | Unplanned change of the CA's properties | Attack signal |
Volume and noise
Low. Properties change when the KRA configuration changes, for example when a KRA certificate is added or renewed, and possibly when the CA's template list changes (see the questions below). Microsoft rates the event medium and suggests it for following changes to the key recovery agent configuration.
Keeping it manageable
- Keep every event: the volume is low and the rule matches on the event ID alone.
- Raise the priority for the KRA certificates: Microsoft notes that whoever controls a KRA certificate assigned to the CA can reach every private key archived from then on.
- Compare a change of the CA's template list with the templates you expect it to issue; Microsoft lists templates that are not normally issued by the CA among the activities to monitor.
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>4892</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="PropertyName">CR_PROP_TEMPLATES</Data>
<Data Name="PropertyIndex">0</Data>
<Data Name="PropertyType">4</Data>
<Data Name="PropertyValue">CorpWebServer
User
Machine
DomainController</Data>
<Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1150</Data>
<Data Name="SubjectUserName">pkiadmin</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x4c19e2</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
Why does a key recovery agent change in 4892 matter?
A CA with key archival encrypts each archived private key for its KRA certificates. Microsoft notes that an attacker who controls a valid KRA certificate and assigns it to the CA gets access to every private key archived afterwards, so a new KRA certificate on the CA should match a planned change.
Is publishing a template to a CA recorded in 4892?
The list of templates a CA supports is one of the CA properties Microsoft documents for this interface, so a change made that way can appear as 4892. Microsoft does not document which console actions write the event, so test it once on your CA before you rely on it.
Why is there no 4892 although Audit Certification Services is enabled?
The CA also needs "Change CA configuration" in its own audit filter, and Microsoft's procedure restarts Certificate Services after the filter changes. A domain controller logs it only if it also holds the CA role.
References
- Audit Certification Services (Microsoft)
- Securing PKI: Appendix A: Events to Monitor (Microsoft)
- Securing PKI: Appendix B: Certification Authority Audit Filter (Microsoft)
- ICertAdmin2::SetCAProperty method (Microsoft)
- Securing PKI: Monitoring Public Key Infrastructure (Microsoft)
- ICertAdmin2::GetArchivedKey method (Microsoft)
- 4624(S): An account was successfully logged on (Microsoft)