4896 Security log · Certificate Services medium severity low volume

Windows Event ID 4896 — One or more rows have been deleted from the certificate database

Certificate database entries deleted.

Why event 4896 matters

Deleting certificate records covers tracks of issued certificates used in ESC attacks.

How to detect it

Alert: certificate DB deletions outside documented cleanup schedules.

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

MITRE ATT&CK mapping

Tactic Technique
Defense Evasion Indicator Removal (T1070)

Detection queries

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

Sentinel / Defender KQL
SecurityEvent
| where EventID == 4896   // One or more rows have been deleted from the certificate database
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
Splunk SPL
index=* sourcetype="WinEventLog:Security" EventCode=4896
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count   `# One or more rows have been deleted from the certificate database — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
Hunt event 4896 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 4888 Certificate Services denied a certificate request 4890 The settings for Certificate Services changed

Frequently asked questions

What is Windows Event ID 4896?

One or more rows have been deleted from the certificate database. Certificate database entries deleted.

Which log records event 4896?

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

What MITRE ATT&CK techniques map to event 4896?

Event 4896 is associated with: Indicator Removal (T1070).

How do you detect activity around event 4896?

Alert: certificate DB deletions outside documented cleanup schedules.