Sponsored by Hudson Rock – Use Hudson Rock's free cybercrime intelligence tools to learn how Infostealer infections are leading to ransomware attacks
DeviceProcessEventslet logClear = DeviceProcessEvents
| where Timestamp > ago(1d)
| where FileName =~ "wevtutil.exe" and ProcessCommandLine has "cl "
| project DeviceName, ClearTime = Timestamp;
let dllInject = DeviceEvents
| where Timestamp > ago(1d)
| where ActionType has "InjectedDll" or ActionType has "ProcessInjection"
| project DeviceName, InjectTime = Timestamp;
logClear
| join kind=inner dllInject on DeviceName
| where InjectTime - ClearTime between (-2h .. 2h)
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.