1. Resources
  2. Detection sources
  3. Event ID 4889

Event ID 4889: Certificate Services set the status of a certificate request to pending

Written by an AD CS certification authority when it holds a certificate request for a certificate manager to decide. Starts a trail that ends in an issue (4887) or a denial (4868); the request can be changed while it waits.

Log source
Windows Security log
Detection value
Supporting
Volume
Low (estimate)
Last updated
Audit subcategory
Audit Certification Services (Object Access, Success and Failure)
Logged on
Certification authority servers only
Event versions
0, 1
Detects
1 attack (1 detection logic)
MITRE ATT&CK
1 technique in 1 tactic
Threat groups
2 groups that MITRE ATT&CK records using these techniques

When it is written

A certification authority (CA) running Active Directory Certificate Services writes 4889 to its own Security log when its policy holds a request instead of issuing or denying it. On an enterprise CA this happens for a template that requires CA certificate manager approval (on the template's Issuance Requirements tab), or another CA policy setting; on a standalone CA the default policy holds every request. The request itself is 4886, with the same Request ID.

A certificate manager (an account with Issue and Manage Certificates on the CA) then issues the request, which writes 4887, or denies it, which writes 4868. While the request waits, a certificate manager can change its extensions (4873) or attributes (4874) before issuing it; Microsoft's current guidance tells certificate managers not to correct requests this way and to require a new request instead. The event needs the Audit Certification Services subcategory on the CA server and the "Issue and manage certificate requests" 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
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccess if needed and Failure if neededMicrosoft 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 serversSuccess if needed and Failure if neededMicrosoft 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.
WorkstationsNot loggedMicrosoft says the AD CS role cannot be installed on a client operating system.
Check the current setting
auditpol /get /subcategory:"Certification Services"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Certification Services" /success:enable /failure:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9221-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

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:

  1. The Audit Certification Services subcategory, Success and Failure (Microsoft's PKI monitoring guide asks for both).
  2. The Issue and manage certificate requests category in the CA's own audit filter: the Auditing tab of the CA's properties in the Certification Authority console, or bit value 4 of the CA's AuditFilter registry value (all seven categories together are 127). Microsoft's procedure restarts Certificate Services after the filter is changed. To read the current value on the CA: certutil -getreg CA\AuditFilter.

Microsoft notes that the audit filter alone does not make Windows write the event, and the subcategory alone does not either.

Fields

In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.

FieldWhat it holdsSince
Request IDRequestIdCertificate Services set the status of a certificate request to pending.ID of the request in the CA database, a decimal number (shown as Request ID). The same ID appears in 4886 (received), 4873 and 4874 (changed while pending), 4887 (issued) and 4868 (denied).v0
RequesterCertificate Services set the status of a certificate request to pending.Account that submitted the request, as DOMAIN\name. Computer accounts end with $.v0
AttributesCertificate Services set the status of a certificate request to pending.Request attributes the requester passed, as name:value pairs separated by new lines, for example CertificateTemplate:User or san:dns=www.corp.example.com. Can be empty. The CA ignores case, spaces and hyphens in attribute names.v0
DispositionCertificate Services set the status of a certificate request to pending.Disposition of the request, the CA's decision code. Microsoft does not document the values the event writes; the 5 in the sample is the value its enrollment protocol (MS-WCCE) returns for a request that is now pending, so check it on a record of your own.v0
SKISubjectKeyIdentifierCertificate Services set the status of a certificate request to pending.Subject key identifier (shown as SKI). No certificate exists yet, so check on your own CA what the field holds for a pending request (it can be empty); Microsoft documents the field name only.v0
SubjectCertificate Services set the status of a certificate request to pending.Subject name of the request (shown as Subject), as a distinguished name. Can be empty. The issued certificate's subject, in 4887, can differ.v0
Authentication ServiceAuthenticationServiceCertificate Services set the status of a certificate request to pending.Authentication service of the requester's connection to the CA (shown as Authentication Service). Version 1; Microsoft does not document the field or its values.v1
Authentication LevelAuthenticationLevelCertificate Services set the status of a certificate request to pending.Authentication level of the requester's connection to the CA (shown as Authentication Level). Version 1; Microsoft does not document the field or its values.v1
DCOMorRPCCertificate Services set the status of a certificate request to pending.Whether the request reached the CA over DCOM or over RPC. Windows enrollment clients use DCOM by default and can be told to use RPC instead. Version 1; Microsoft does not document the field or its values.v1

Event versions

The Windows event template has two versions. Version 0 has the six fields Microsoft documents: Request ID, Requester, Attributes, Disposition, SKI (subject key identifier) and Subject. Version 1 adds the authentication service, authentication level and transport (DCOM or RPC) of the connection, as in 4886 and 4887. Microsoft's documentation does not describe version 1 or say which Windows release writes it.

  • Version 0: 6 fields
  • Version 1: 9 fields, adds AuthenticationService, AuthenticationLevel, DCOMorRPC

Values to know

Request ID RequestId

ValueMeaningSignal
Followed by 4887 or 4868 with the same ID, nothing in betweenAn ordinary reviewExpected
Followed by 4873 or 4874, then 4887, with the same IDThe request was changed while pending and then issuedThe chain the library's detection logic follows. Read the changed extension or attribute and the subject of the issued certificate.Attack signal
No 4887 or 4868 after a long timeA request left pendingMicrosoft asks for pending requests to be denied when their review is not completed.Worth knowing

Attributes

ValueMeaningSignal
san:A subject alternative name passed as a request attribute, for example san:upn=... or san:dns=...A certificate manager who issues the request may give the requester a certificate for the name in it. Microsoft's review guidance treats a name supplied by the requester as high risk unless your policy allows and verifies it.Attack signal
CertificateTemplate:The template the request namedExpected

Requester

ValueMeaningSignal
Ends with $A computer accountExpected
A user or service accountA request that waits for a certificate manager's reviewCompare the requester with the subject of the certificate if it is issued (4887).Expected

Volume and noise

Low on an enterprise CA, where only templates that require approval hold requests; on a standalone CA every request goes through it. Microsoft rates the event low. Microsoft's guidance on pending requests asks that a request stay pending only while a named owner completes its review, and that it be denied otherwise rather than left as an unmanaged way to a certificate.

Keeping it manageable

  • Keep every event: the volume is low, and the library's detection logic for a pending request that is changed and then issued starts from it.
  • Follow each Request ID to its end: 4887 (issued) or 4868 (denied). A 4873 or 4874 with the same ID before the 4887 is the case Microsoft warns about, since approving a changed request can bypass the checks made when it arrived.
  • On an enterprise CA, compare the template in Attributes with the templates that require approval: Microsoft's guidance is to verify why the CA held a request before approving it.
  • Watch requests that stay pending long: Microsoft asks for each pending request to have an owner and a review deadline.

Sample event

Version 1, 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>4889</EventID>
    <Version>1</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">4152</Data>
    <Data Name="Requester">CORP\dave</Data>
    <Data Name="Attributes">CertificateTemplate:CorpCodeSigning</Data>
    <Data Name="Disposition">5</Data>
    <Data Name="SubjectKeyIdentifier">2d 81 f4 6c 0b 93 e7 55 a8 1c 64 3f d2 7e 09 b6 c5 48 13 aa</Data>
    <Data Name="Subject">CN=dave, OU=Developers, DC=corp, DC=example, DC=com</Data>
    <Data Name="AuthenticationService">Kerberos</Data>
    <Data Name="AuthenticationLevel">Packet Privacy</Data>
    <Data Name="DCOMorRPC">DCOM</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection logic (hypotheses that join this event with others) for:

Frequently asked questions

Why do requests go pending on an enterprise CA?

The template requires CA certificate manager approval (the `EnrollmentPendAllRequests` flag, 0x2 in the template's msPKI-Enrollment-Flag attribute), or another CA policy setting holds the request. On a standalone CA every request is held by default. Microsoft's guidance is to verify why the CA held a request before approving it.

What should follow event 4889?

A 4887 (issued) or a 4868 (denied) with the same Request ID. A 4873 or 4874 in between means a certificate manager changed the request before deciding, which Microsoft's current guidance advises against, because approving a changed request can bypass the checks made when it was submitted.

Why is manager approval on a template not a complete control?

Any account that holds Issue and Manage Certificates on the CA can approve pending requests. Microsoft's Defender for Identity assessments note that an unprivileged user with that right bypasses the manager approval requirement, so the CA's permissions (4882) and certificate manager restrictions (4890) decide how strong the control is.

References