When it is written
A certification authority (CA) that is configured for key archival keeps the private keys of the certificates it issued from archival templates in its database, encrypted for its key recovery agents (KRAs). It writes 4883 to its own Security log when one of these archived keys is retrieved, with the request ID of the certificate whose key it is. Microsoft describes what is retrieved as the encrypted key, wrapped with the user certificate, the KRA certificates and the CA's chain: a KRA's private key is still needed to decrypt it, so the event is the first half of a recovery.
Only CAs with key archival write it. It needs the Audit Certification Services subcategory on the CA server and the "Store and retrieve archived keys" category in the CA's own audit filter. The account that retrieved the key is in the event data, not in the message text.
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 Store and retrieve archived keys category in the CA's own audit filter: the Auditing tab of the CA's properties in the Certification Authority console, or bit value
32of 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.
The same category also covers archiving a key (4893) and importing and archiving one (4894).
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 IDRequestIdCertificate Services retrieved an archived key. | ID of the request in the CA database whose archived key was retrieved (shown as Request ID). Look it up in the CA database or in the CA's earlier events (4887, 4893) to find the certificate and its owner. | v0 |
SubjectUserSid | SID of the account that retrieved the key. 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 retrieved the key. 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 retrieved the key, 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
Request ID RequestId
| Value | Meaning | Signal |
|---|---|---|
The request of a user with an open recovery request | Planned key recovery | Expected |
The request of a privileged account, a service account, or a user with no recovery request | Recovery outside the processWith a key recovery agent's private key, the retrieved blob gives the private key of that certificate, so its holder can decrypt data or sign as its owner. | Attack signal |
SubjectUserName
| Value | Meaning | Signal |
|---|---|---|
The certificate manager or recovery operator named in the request | Planned key recovery | Expected |
Any other account | Unplanned retrievalCheck whether the same account also holds a key recovery agent certificate. | Attack signal |
Volume and noise
Very low. Microsoft describes key recovery as decrypting archived encryption keys after an approved recovery request, so each event should belong to such a request. Microsoft rates the event medium. CAs without key archival never write it.
Keeping it manageable
- Keep every event and match each one to a recovery request: the rule fires on the event ID alone.
- Look up the
RequestIdin the CA database to see whose key was retrieved; a key of a privileged or service account needs a closer look than a user's encryption key. - Watch 4892 as well: a change to the CA's key recovery agent certificates decides who can decrypt archived keys from then on.
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>4883</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">3812</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
Does event 4883 mean that a private key was exposed?
Not yet. The CA hands out the archived key encrypted for its key recovery agents, so someone still needs a key recovery agent's private key to read it. Treat it as the first step of a recovery and confirm that a recovery request exists for that certificate.
How do I find out whose key was retrieved?
Look up the RequestId in the CA database (the Issued Certificates view of the Certification Authority console shows the Request ID) or find event 4887 with the same Request ID on the same CA.
Why does our CA never write 4883?
Either the CA does not archive keys, or no key has been retrieved, or the "Store and retrieve archived keys" category is not selected in the CA's audit filter.
References
- Audit Certification Services (Microsoft)
- Securing PKI: Appendix A: Events to Monitor (Microsoft)
- Securing PKI: Appendix B: Certification Authority Audit Filter (Microsoft)
- ICertAdmin2::GetArchivedKey method (Microsoft)
- Secure, delegate, and audit certification authority administration (Microsoft)
- 4624(S): An account was successfully logged on (Microsoft)