4888 Security log · Certificate Services low severity low volume

Windows Event ID 4888 — Certificate Services denied a certificate request

AD CS denied a certificate request.

Why event 4888 matters

Denied certificate requests may indicate access controls are working (good) or an attacker probing available templates.

How to detect it

Alert: repeated denials for sensitive templates from same account — template enumeration.

Log source
Security
Advanced Audit Policy — enable the 'Certificate Services' subcategory (Success and/or Failure).
Fields to pivot on
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName

Detection queries

Starting points — adapt the log source, projected fields and thresholds for your environment.

Sentinel / Defender KQL
SecurityEvent
| where EventID == 4888   // Certificate Services denied a certificate request
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
Splunk SPL
index=* sourcetype="WinEventLog:Security" EventCode=4888
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count   `# Certificate Services denied a certificate request — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
Hunt event 4888 in Sentinel/Defender →
Build a KQL query for this event in the KQL Query Builder.
Search all event IDs →
Open the interactive Windows Event ID lookup.

Related Certificate Services events

4886 Certificate Services received a certificate request 4887 Certificate Services approved a certificate request and issued a certificate 4890 The settings for Certificate Services changed 4896 One or more rows have been deleted from the certificate database

Frequently asked questions

What is Windows Event ID 4888?

Certificate Services denied a certificate request. AD CS denied a certificate request.

Which log records event 4888?

Event 4888 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Certificate Services' subcategory (Success and/or Failure).

How do you detect activity around event 4888?

Alert: repeated denials for sensitive templates from same account — template enumeration.