Sponsored by Hudson Rock – Use Hudson Rock's free cybercrime intelligence tools to learn how Infostealer infections are leading to ransomware attacks
DeviceProcessEventslet recoveryDisable = DeviceProcessEvents
| where Timestamp > ago(1d)
| where FileName =~ "bcdedit.exe" and ProcessCommandLine has_any ("recoveryenabled no","bootstatuspolicy ignoreallfailures")
| project DeviceName, DisableTime = Timestamp;
let logClear = DeviceProcessEvents
| where Timestamp > ago(1d)
| where FileName =~ "wevtutil.exe" and ProcessCommandLine has "cl "
| project DeviceName, ClearTime = Timestamp;
recoveryDisable
| join kind=inner logClear on DeviceName
| where ClearTime - DisableTime between (0min .. 1h)
| project DeviceName, DisableTime, ClearTime
Hunting queries are starting points for threat hunting & detection engineering — validate table/column names against your own workspace schema and tune thresholds before turning any of these into a production alert rule.