VeriKQL by Kaushik Saha

Rules for T1078.004

How the 92 rules tagged with T1078.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 45IdentityInfo 16SigninLogs 16AzureActivity 9_Im_Authentication 9AADServicePrincipalSignInLogs 8BehaviorAnalytics 6AWSCloudTrail 5AADNonInteractiveUserSignInLogs 4_Im_AuditEvent 4DataverseActivity 3DeviceInfo 3OktaSSO 3_Im_ProcessEvent 3CloudAuditEvents 2

Filtered columns

Joins

Idioms

make_set 28mv-expand (unpack arrays) 27leftanti join (A without B) 16arg_max (latest or earliest row per key) 14dcount 11join with no kind= (innerunique: duplicate left keys collapse) 4arg_min (latest or earliest row per key) 3make-series (time series, anomaly) 2make_list 2

Severity

Medium 32High 23Low 5

Schedules (analytic rules)

every 1d over 1d 12every 2h over 2h 10every 1d over 14d 6every 2d over 2d 6every 1h over 1h 5every 1h over 14d 4every 1d over 7d 3every 1h over 1d 2every 1h over 2h 2every 1d over 2d 1every 1h over 1455m 1every 1h over 7d 1every 3h over 3h 1

Look-back windows in ago()

1d 714d 67d 22d 130d 13h 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.