When it is written
A certification authority (CA) running Active Directory Certificate Services writes 4882 to its own Security log when its security settings are changed through the CA's administration interface, for example on the Security tab of the CA's properties. These permissions decide who holds Manage CA (CA administrator), Issue and Manage Certificates (certificate manager), Request Certificates and Read on the CA. The event carries the CA's permissions as text; 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 "Change CA security settings" category is selected in the CA's own audit filter. Microsoft's PKI guide warns that some CA settings can be changed without a CA audit event: the permissions are kept in the CA's registry configuration (the Security value), and Microsoft recommends registry auditing of that key to catch a change made there.
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 Security 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 |
|---|---|---|
SecuritySettings | The CA's permissions as text (the message shows them below its first line). Microsoft does not document the layout of this text or say whether it holds only the new settings, so check an event from your own CA before you parse it, and compare it with your last approved copy to find what changed. | 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
SecuritySettings
| Value | Meaning | Signal |
|---|---|---|
Manage CA granted to a new principal | A new CA administratorManage CA lets its holder change the CA's configuration, policy flags and audit filter, and grant itself the certificate manager right. | Attack signal |
Issue and Manage Certificates granted to a new principal | A new certificate managerA certificate manager can approve pending requests, including requests for templates that need approval. | Attack signal |
Request Certificates for Authenticated Users or Domain Users | Broad enrollment on the CACommon on enterprise CAs, where the template permissions then decide which certificates a user can obtain. | Expected |
Read | Read access to the CA | Worth knowing |
SubjectUserName
| Value | Meaning | Signal |
|---|---|---|
A PKI administrator with a change record | Planned delegation | Expected |
Any other account | Unplanned change of the CA's permissionsCheck how the account obtained Manage CA or local administrator rights on the CA server. | Attack signal |
Volume and noise
Very low. CA permissions change only when PKI roles are delegated, reviewed or cleaned up. Microsoft rates the event high and notes that it may indicate an attacker granting other accounts permission to enroll.
Keeping it manageable
- Keep every event: the volume is very low and the rule matches on the event ID alone.
- Store a copy of the CA's permissions after each approved change, so that the next 4882 can be compared with it and the added principal or right stands out.
- Add registry auditing of the CA's configuration key (Microsoft's PKI guide, value
Security, event 4657) if you need to see changes made outside the CA's administration interface.
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>4882</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="SecuritySettings">Allow BUILTIN\Administrators CA Administrator, Certificate Manager
Allow CORP\Domain Admins CA Administrator, Certificate Manager
Allow CORP\Enterprise Admins CA Administrator, Certificate Manager
Allow CORP\PKI-Cert-Managers Certificate Manager
Allow NT AUTHORITY\Authenticated Users Enroll</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
Which change in event 4882 should I look at first?
A principal that gained Manage CA or Issue and Manage Certificates. Manage CA controls the CA's configuration, policy flags and audit filter, and Issue and Manage Certificates lets an account approve pending requests. Either one in the wrong hands lets the CA issue certificates that authenticate as other accounts.
Does 4882 show the permissions before the change?
The event carries the CA's permissions as text, and Microsoft does not document the layout or say whether the old settings are included. Keep a copy of the approved permissions after every planned change and compare each new 4882 with it.
Can the CA's permissions change without event 4882?
Microsoft's PKI guide notes that some CA settings can be changed without a CA audit event, and lists the registry value that holds the CA's permissions among the values to audit. Registry auditing of the CA's configuration key gives event 4657 for such a change.
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)
- Configure and govern certification authority policy and exit modules (Microsoft)
- 4624(S): An account was successfully logged on (Microsoft)