Service crashed and is being restarted. Number of restart attempts is logged.
Repeated crashes of security services indicate persistent tampering. Multiple restart loops may indicate a crasher exploit targeting the service.
Alert: security services crashing more than twice. Multiple crashes in rapid succession = active tampering.
param1param2Computer Starting points — adapt the log source, projected fields and thresholds for your environment.
Event
| where EventLog == "System" and EventID == 7034 // The service terminated unexpectedly and will be restarted
// EventData holds: param1, param2, Computer
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:System" EventCode=7034
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# The service terminated unexpectedly and will be restarted — add EventData fields: param1, param2, Computer`
The service terminated unexpectedly and will be restarted. Service crashed and is being restarted. Number of restart attempts is logged.
Event 7034 is written to the System channel by Service Control Manager / Kernel. Logged by default in the System channel; no audit policy required.
Alert: security services crashing more than twice. Multiple crashes in rapid succession = active tampering.