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

Event ID 4888: Certificate Services denied a certificate request

Written by an AD CS certification authority when it denies a certificate request, with the requester, the request attributes and the subject. Microsoft rates it medium: worth a look when denials for one requester rise above the usual level.

Log source
Windows Security log
Detection value
Context
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
Not read by our detection rules yet

When it is written

A certification authority (CA) running Active Directory Certificate Services writes 4888 to its own Security log when it denies a certificate request. The request itself is 4886, with the same Request ID; a request the CA issues writes 4887 instead, and one it holds for a certificate manager writes 4889. On an enterprise CA the policy module authorizes each request with its certificate template and the template's permissions; Microsoft's troubleshooting names, for example, the denial of a request for a template the CA does not support.

Microsoft distinguishes a denied request from a failed one (the Certification Authority console shows both under Failed Requests) and does not document which of them write 4888, nor whether a certificate manager's denial of a pending request (4868) also writes it. The event gives no reason for the denial. It 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 denied a certificate request.ID of the request in the CA database, a decimal number (shown as Request ID). The same ID appears in 4886 for the request as it arrived.v0
RequesterCertificate Services denied a certificate request.Account that submitted the request, as DOMAIN\name. Computer accounts end with $.v0
AttributesCertificate Services denied a certificate request.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 denied a certificate request.Disposition of the request, the CA's decision code. Microsoft does not document the values the event writes. Its enrollment protocol (MS-WCCE) numbers only an issued certificate (3) and a pending request (5) and treats any other nonzero value as an error; the 2 in the sample is the number the Windows SDK header certcli.h gives CR_DISP_DENIED, the denied disposition of the enrollment interface, so check it on a record of your own.v0
SKISubjectKeyIdentifierCertificate Services denied a certificate request.Subject key identifier (shown as SKI). No certificate was issued, so check on your own CA what the field holds for a denied request (it can be empty); Microsoft documents the field name only.v0
SubjectCertificate Services denied a certificate request.Subject name of the request (shown as Subject), as a distinguished name. Can be empty. Microsoft does not document whether it is the subject in the request or the subject the CA would have built from Active Directory.v0
Authentication ServiceAuthenticationServiceCertificate Services denied a certificate request.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 denied a certificate request.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 denied a certificate request.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

Attributes

ValueMeaningSignal
san:A subject alternative name passed as a request attribute, for example san:upn=... or san:dns=...The requester tried to put a name in the certificate. A upn entry for an account other than the requester is the form to look at first; check whether a similar request from the same requester was issued (4887).Attack signal
CertificateTemplate:The template the request namedExpected
Any other nameAnother request attributeWorth knowing

Requester

ValueMeaningSignal
Ends with $A computer account, usually autoenrollmentExpected
An account refused for several templates in a short timeA requester trying templates beyond its usual onesMicrosoft's medium rating asks for a look when the count rises well above the baseline.Worth knowing

Volume and noise

Usually low: one event per denied request, and on a CA whose clients and templates match the CA's configuration few requests are refused. Microsoft's PKI event table rates the event medium, which it defines as worth investigating when the events rise well above the expected baseline or their content meets specific criteria. Appendix L of Microsoft's Active Directory monitoring guidance rates it low. Microsoft's CA administration guidance includes 4888 in its focused monitoring baseline, and its Windows Event Forwarding baseline subscription collects it with 4886 and 4887.

Keeping it manageable

  • Keep every event: the volume is low, and each one is the Security log's record that the CA refused a request, without the reason.
  • Count denials per requester and per template over a day and compare with your baseline, as Microsoft's medium rating suggests: one requester refused for several templates is worth a look.
  • Read Attributes the way you read them in 4886: a san: attribute, or a template whose certificates authenticate, shows what the requester tried to obtain. Then look for a 4887 from the same requester with the same attributes.
  • For the reason, look the Request ID up in the CA database (the Failed Requests view of the Certification Authority console).

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>4888</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">4161</Data>
    <Data Name="Requester">CORP\bob</Data>
    <Data Name="Attributes">CertificateTemplate:CorpWebServer</Data>
    <Data Name="Disposition">2</Data>
    <Data Name="SubjectKeyIdentifier">9c 2e 71 0a d4 58 b3 16 e9 42 7f c0 8d 35 a1 6b 20 f7 4e 93</Data>
    <Data Name="Subject">CN=bob</Data>
    <Data Name="AuthenticationService">Kerberos</Data>
    <Data Name="AuthenticationLevel">Packet Privacy</Data>
    <Data Name="DCOMorRPC">DCOM</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

What is the difference between event 4888 and event 4868?

4888 records Certificate Services denying a request; 4868 records a certificate manager denying a request that was held as pending. Microsoft's event lists separate them by these titles and do not say whether a certificate manager's denial also writes 4888, so check once on your CA which events a denial produces.

Why was the request in event 4888 denied?

The event does not say. The CA database keeps the request in the Failed Requests view of the Certification Authority console. Microsoft's PKI event table also lists events of the CertificationAuthority source in the Application log that carry a reason (for example 53, which gives the request and why it was denied).

Should I alert on every 4888?

Usually not. Microsoft rates the event medium in its PKI guide, meaning worth investigating when denials rise well above the baseline or their content meets your criteria, such as a SAN attribute naming another account or a request for a sensitive template. Count denials per requester and look at the outliers.

References