A service terminated unexpectedly. Failure count and action taken (restart/none) are key.
Unexplained service crashes of security tools indicate possible tampering, exploitation, or resource-based attacks. Services configured to not restart after failure = attacker disabled them via crash.
Alert: unexpected termination of AV, EDR, SIEM agents, or backup services. Alert: services configured 'take no action' after crash — they won't recover without manual intervention.
param1param2Computer | Tactic | Technique |
|---|---|
| Defense Evasion | Disable or Modify Tools (T1562.001) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
Event
| where EventLog == "System" and EventID == 7031 // The service terminated unexpectedly
// EventData holds: param1, param2, Computer
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:System" EventCode=7031
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# The service terminated unexpectedly — add EventData fields: param1, param2, Computer`
The service terminated unexpectedly. A service terminated unexpectedly. Failure count and action taken (restart/none) are key.
Event 7031 is written to the System channel by Service Control Manager / Kernel. Logged by default in the System channel; no audit policy required.
Event 7031 is associated with: Disable or Modify Tools (T1562.001).
Alert: unexpected termination of AV, EDR, SIEM agents, or backup services. Alert: services configured 'take no action' after crash — they won't recover without manual intervention.