When it is written
Every certification authority (CA) running Active Directory Certificate Services has its own audit filter, a bitmask of seven categories that decides which CA operations it writes to the Security log. The CA writes 4885 to its own Security log when the filter is changed through the CA's administration interface, for example on the Auditing tab of the CA's properties, with the new filter 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 security settings" category in the filter itself. Microsoft's PKI guide notes that the filter is a registry value (AuditFilter) and that a change made there does not always write a CA event: it lists the value among the registry values to audit (event 4657).
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 security settings category in the CA's own audit filter: the Auditing tab of the CA's properties in the Certification Authority console, or bit value
16of 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.
For changes made directly in the registry, Microsoft's PKI guide adds registry auditing: the Audit Registry subcategory and an auditing entry on HKLM\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration for this key and its subkeys. A change of the AuditFilter value then writes 4657.
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 |
|---|---|---|
FilterAuditFilterThe audit filter for Certificate Services changed. | The audit filter value the change set (shown as Filter), a bitmask of the seven categories. 1 start and stop Certificate Services, 2 back up and restore the CA database, 4 issue and manage certificate requests, 8 revoke certificates and publish CRLs, 16 change CA security settings, 32 store and retrieve archived keys, 64 change CA configuration. Microsoft gives the values in decimal; check how your CA writes them. | 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
Filter AuditFilter
| Value | Meaning | Signal |
|---|---|---|
127 | All seven categoriesThe full filter that Microsoft's current CA auditing guidance sets. | Expected |
0 | No CA operation is audited | Attack signal |
A value without 4 | Requests, issuance, denial and database row deletion are no longer auditedHides, among others, 4886, 4887, 4888, 4889, 4873, 4874 and 4896. | Attack signal |
A value without 16 | Changes to permissions, certificate manager settings, role separation, templates and the filter itself are no longer auditedHides 4882, 4885, 4890, 4897, 4898, 4899 and 4900. | Attack signal |
SubjectUserName
| Value | Meaning | Signal |
|---|---|---|
A PKI administrator with a change record | Planned change of the CA's auditing | Expected |
Any other account | Unplanned change of the CA's auditingReview the CA's events after the change, and the domain controllers' certificate logons (4768 with a certificate), for what the gap may hide. | Attack signal |
Volume and noise
Very low. Microsoft notes that the filter is normally set when the CA is built and not changed afterwards. Microsoft rates the event high and notes that it may indicate an attacker turning off monitoring before acting on certificates.
Keeping it manageable
- Keep every event: the volume is very low and the rule matches on the event ID alone.
- Compare
AuditFilterwith your baseline (127 when all categories are on) and raise the priority when the bit for "Issue and manage certificate requests" (4) or "Change CA security settings" (16) disappears. - Add registry auditing of the CA's configuration key (value
AuditFilter, event 4657) to see a change made outside the CA's administration interface, and watch for Certificate Services restarts (4880, 4881), which apply such a change.
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>4885</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="AuditFilter">127</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
What does the CA audit filter control?
Which of the CA's own operations Windows writes to the Security log, in seven categories (start and stop, backup and restore, requests and issuance, revocation and CRLs, security settings, archived keys, configuration). The Audit Certification Services subcategory must be on as well; Microsoft notes that neither setting works alone.
Why does Microsoft rate event 4885 high?
A narrower filter is a way to make later certificate operations invisible. Microsoft notes that the filter is normally set when the CA is built and not changed after, so an unplanned change, or one that removes categories, is worth an alert on its own.
Can the audit filter change without event 4885?
Microsoft's PKI guide notes that some CA settings can be changed without a CA audit event and lists AuditFilter among the registry values to audit. Registry auditing of the CA's configuration key records such a change as event 4657.
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)
- Secure, delegate, and audit certification authority administration (Microsoft)
- 4624(S): An account was successfully logged on (Microsoft)