VeriKQL by Kaushik Saha

SigninLogs joined with AzureActivity

3 rules join them.

Kinds: inner 3 · leftanti 1. A join with no kind= is innerunique, which keeps one left row per key.

Keys

$left.IdentityNorm == $right.CallerNorm == $left.IpNorm == $right.CallerIp3
CallerNorm == CallerNorm1
FirstWrite == FirstWrite1
IdentityNorm == IdentityNorm1
IpNorm == CallerIp1
IpNorm == IpNorm1
SubscriptionId == SubscriptionId1

Time conditions after the join

3 rules of 3 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.

FirstKv between (FirstSignin .. (LastSignin + SequenceWindow))1
FirstRecon between (FirstSignin .. (LastSignin + ReconWindow))1
FirstWrite between (FirstSignin .. (LastSignin + SequenceWindow))1

Rules

Every rule that joins them3

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.