Deletion of data on multiple drives using cipher exe
Description
This query checks for attempts to delete data on multiple drives using cipher.exe. This activity is typically done by ransomware to prevent recovery of data after encryption.
Query · kql
// Look for cipher.exe deleting data from multiple drives DeviceProcessEvents | where Timestamp > ago(1d) | where FileName =~ "cipher.exe" // cipher.exe /w flag used for deleting data | where ProcessCommandLine has "/w" | summarize CipherCount = dcount(ProcessCommandLine), CipherList = make_set(ProcessCommandLine) by DeviceId, bin(Timestamp, 1m) // cipher.exe accessing multiple drives in a short timeframe | where CipherCount > 1