VeriKQL by Kaushik Saha

DeviceImageLoadEvents joined with DeviceFileEvents

4 rules join them.

Kinds: leftouter 2 · (default: innerunique) 1 · inner 1. A join with no kind= is innerunique, which keeps one left row per key.

Keys

DeviceName == DeviceName4
DeviceId == DeviceId2
ServiceProcess == ServiceProcess2
ServiceProcessCmdline == ServiceProcessCmdline2
ServiceProcessCreationTime == ServiceProcessCreationTime2
ServiceProcessID == ServiceProcessID2
ServiceProcessSHA1 == ServiceProcessSHA12
ServiceProcessUser == ServiceProcessUser2
FileName == FileName1
FolderPath == FolderPath1
InitiatingProcessFileName == InitiatingProcessFileName1

Time conditions after the join

1 rule of 4 compare a datetime column of one side with one of the other in a where after the join. The others bound only each side's own window, or not at all.

TimeGenerated1 >= TimeGenerated1

Rules

Every rule that joins them4

Rules are from Azure/Azure-Sentinel (MIT licence) at commit 9ea9f7c. VeriKQL stores facts its parser read from each rule and links the rule; it does not copy rule text. Counts are what the rules do: practice, not guidance, and not Microsoft's recommendation.