When it is written
A certification authority (CA) that is configured for key archival keeps a protected copy of the private keys of certificates issued from templates that require archival. During enrollment the client encrypts its private key to the CA's exchange certificate in a CMC request; the CA decrypts it, checks that it matches the public key in the request, encrypts it once with the public key of each available key recovery agent (KRA) certificate and stores the result in its database. The CA writes 4893 to its own Security log when it archives a key, with the Request ID, the Requester and the hashes of the KRA certificates the key was encrypted for.
Only CAs with key archival and at least one KRA certificate write it. Retrieving an archived key later writes 4883. The event 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. 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 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 covers retrieving an archived key (4883) and importing and archiving one (4894). To read the CA's current KRA configuration, Microsoft's key archival guide uses certutil -CAInfo kracount, certutil -CAInfo kra and certutil -CAInfo kraused.
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 archived a key. | ID of the request in the CA database, a decimal number (shown as Request ID). The same ID appears in 4886 and 4887 for the request and its certificate, and in 4883 if the key is retrieved later. | v0 |
RequesterCertificate Services archived a key. | Account that submitted the request whose key was archived, as DOMAIN\name. | v0 |
KRA HashesKRAHashesCertificate Services archived a key. | Hashes of the key recovery agent certificates the archived key was encrypted for (shown as KRA Hashes); the CA encrypts the key once for each KRA certificate it uses. Microsoft does not document the hash algorithm or the format; the CA's KRA certificate hashes are also kept in its KRACertHash registry value. | v0 |
Values to know
KRA Hashes KRAHashes
| Value | Meaning | Signal |
|---|---|---|
Hashes of the KRA certificates you approved for this CA | The key can be recovered by your key recovery agents | Expected |
A hash that is not one of your approved KRA certificates | Another KRA certificate is assigned to the CAMicrosoft notes that an attacker who controls a valid KRA certificate and assigns it to the CA gets access to every private key archived afterwards. Find the change (4892, or 4657 on the KRACertHash registry value). | Attack signal |
Requester
| Value | Meaning | Signal |
|---|---|---|
A user or computer enrolling on an archival template | Ordinary archival | Expected |
An account enrolling for a template that should not archive keys | Archival outside the intended templates | Worth knowing |
Volume and noise
Low. One event per enrollment on a template that requires archival, which Microsoft's guidance limits to encryption keys whose loss would make data unrecoverable. CAs without key archival never write it. Microsoft rates the event low.
Keeping it manageable
- Keep every event: there are few, and the KRA hashes in each one record who can recover that key.
- Compare
KRAHasheswith the thumbprints of your approved KRA certificates, which Microsoft asks you to record. A hash you do not know means another KRA certificate is assigned to the CA (look for 4892): Microsoft notes that whoever controls a KRA certificate assigned to the CA can reach every private key archived afterwards. - Check the templates behind the archived keys: Microsoft's guidance is to archive encryption keys only and not signing-only keys, so archival on a template whose certificates sign or authenticate needs a review.
- Keep the Request IDs: a later 4883 with the same ID is the retrieval of that key, and it should match a recovery request.
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>4893</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="Requester">CORP\carol</Data>
<Data Name="KRAHashes">4b7e2c90d15a38f6e0c9a17b3d52e84f6a91c0d2
9f03a6d8e2b471c5f90e3a6d18b7c42e5d06f9a1</Data>
</EventData>
</Event>Attacks this event reveals
No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).
Frequently asked questions
Does event 4893 mean that a private key left the CA?
No. The CA stores the key in its own database, encrypted for its key recovery agents, and Microsoft documents that it then releases and clears its own copy of the plain key. Taking the key out of the database is event 4883, and a key recovery agent's private key is still needed to decrypt it.
What are the KRA hashes in 4893 for?
They identify the key recovery agent certificates the key was encrypted for. Any one of those agents can recover it, so compare the hashes with the KRA certificates you approved.
Why does our CA never write 4893?
The CA is not configured for key archival, has no KRA certificate, no template requires archival, the requests are not CMC requests (the only kind that can carry a key for archival), 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)
- Configure AD CS key archival and recover private keys (Microsoft)
- Key Recovery Server (Microsoft)
- Secure, delegate, and audit certification authority administration (Microsoft)