VeriKQL by Kaushik Saha

SigninLogs joined with AADNonInteractiveUserSignInLogs

10 rules join them.

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

Keys

AppNorm == AppNorm3
IdentityNorm == IdentityNorm3
IpNorm == IpNorm3
UaNorm == UaNorm3
AppDisplayName == AppDisplayName2
AppId == AppId2
IPAddress == IPAddress2
TI_ipEntity == IPAddress2
SimpleUserAgent == SimpleUserAgent1
UniqueTokenIdentifier == UniqueTokenIdentifier1
UserAgent == UserAgent1
UserId == UserId1
UserPrincipalName == UserPrincipalName1

Time conditions after the join

1 rule of 10 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.

SuccessTime > LastFailure1
datetime_diff('minute', SuccessTime, FirstFailure) <= stuffingWindowMinutes1

Rules

Every rule that joins them10

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.