VeriKQL by Kaushik Saha

Rules for T1087.004

How the 20 rules tagged with T1087.004 are built: the tables they read, what they filter, how they join, and when they run. The most used of each; every rule is listed below.

Tables and parsers

AuditLogs 8AzureActivity 6AADNonInteractiveUserSignInLogs 3AWSCloudTrail 3CyfirmaASCloudWeaknessAlerts_CL 2SigninLogs 2CloudAppEvents 1_Im_AuditEvent 1

Filtered columns

Joins

Idioms

make_set 7dcount 6arg_min (latest or earliest row per key) 4leftanti join (A without B) 3join with no kind= (innerunique: duplicate left keys collapse) 1mv-expand (unpack arrays) 1

Severity

Medium 9High 3

Schedules (analytic rules)

every 2d over 2d 6every 5m over 5m 2every 1h over 1d 1every 2h over 2h 1

Look-back windows in ago()

7d 1

Every rule tagged with it

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.