A service stopped due to an error. Service name and error code are key.
Security service crashes may indicate malware interference or exploitation of the service itself (privilege escalation via vulnerable service).
Alert: termination of AV, EDR, or monitoring services. Monitor for repeated crashes of the same service.
param1param2Computer Starting points — adapt the log source, projected fields and thresholds for your environment.
Event
| where EventLog == "System" and EventID == 7023 // The service terminated with an error
// EventData holds: param1, param2, Computer
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:System" EventCode=7023
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# The service terminated with an error — add EventData fields: param1, param2, Computer`
The service terminated with an error. A service stopped due to an error. Service name and error code are key.
Event 7023 is written to the System channel by Service Control Manager / Kernel. Logged by default in the System channel; no audit policy required.
Alert: termination of AV, EDR, or monitoring services. Monitor for repeated crashes of the same service.