Sponsored by Hudson Rock – Use Hudson Rock's free cybercrime intelligence tools to learn how Infostealer infections are leading to ransomware attacks
DeviceProcessEventslet powerview = DeviceProcessEvents
| where Timestamp > ago(1d)
| where ProcessCommandLine has_any ("PowerView","Get-NetDomain","Get-NetComputer")
| project DeviceName, ReconTime = Timestamp;
let impacket = DeviceProcessEvents
| where Timestamp > ago(1d)
| where ProcessCommandLine has_any ("wmiexec.py","smbexec.py","atexec.py") or InitiatingProcessFileName =~ "wmiprvse.exe"
| project DeviceName, MoveTime = Timestamp;
powerview
| join kind=inner impacket on DeviceName
| where MoveTime - ReconTime between (0min .. 4h)
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.