VeriKQL by Kaushik Saha

DeviceEvents in Content Hub rules

32 rules read DeviceEvents · table guide.

Filtered columns

The most used values; a dashed chip is a string match (has, contains …).

Joined with

Parsing

parse_json on AdditionalFields12
split on DeviceName6
split on InitiatingProcessAccountUpn2
extract on InitiatingProcessCommandLine: \-File\s(script[0-9]{1,9}\.ps1)1
parse on RemoteUrl: Drive '\\' *1

Entity mappings

Host.FullName ← DeviceName14

4 5 7 8 9 14 15 16 17 18 19 20 21 22

Account.Name ← AccountName8
Account.Name ← InitiatingProcessAccountName4
Account.FullName ← InitiatingProcessAccountUpn3
Account.NTDomain ← AccountDomain3
Account.UPNSuffix ← InitiatingProcessAccountDomain3
Host.HostName ← HostName3
IP.Address ← LocalIP3
Process.CommandLine ← InitiatingProcessCommandLine3
Process.CommandLine ← ProcessCommandLine3
Process.ProcessId ← InitiatingProcessId3
Account.Name ← Username2
Account.Sid ← AccountSid2
Account.UPNSuffix ← UPNSuffix2
Host.DnsDomain ← DnsDomain2
Host.DnsDomain ← DvcDomain2
Host.HostName ← DvcHostname2
Account.DnsDomain ← AccountDomain1
Account.FullName ← AccountName1
Account.NTDomain ← InitiatingProcessAccountDomain1
Account.Sid ← InitiatingProcessAccountSid1
AzureResource.ResourceId ← _ResourceId1
File.Directory ← FolderPath1
File.Directory ← InitiatingProcessFolderPath1
File.Name ← FileName1
File.Name ← InitiatingProcessFileName1
FileHash.Algorithm ← HashAlgorithm1
FileHash.Value ← InitiatingProcessSHA11
FileHash.Value ← SHA2561
Host.DnsDomain ← HostNameDomain1
Host.HostName ← DeviceName1
IP.Address ← RemoteIP1
Process.ProcessId ← ProcessId1

ATT&CK techniques of these rules

T1059 4T1052 3T1005 2T1027 2T1041 2T1059.001 2T1204 2T1546 2T1020 1T1052.001 1T1055 1T1071 1T1071.001 1T1098 1T1102 1T1105 1T1203 1T1210 1T1543 1T1554 1T1559 1T1566 1T1566.002 1T1570 1

Severity

Medium 12High 9Informational 1

Schedules (analytic rules)

every 1d over 1d 8every 1h over 1h 8every 6h over 6h 2every 1h over 14d 1every 4h over 14d 1every 5m over 5m 1

Look-back windows in ago()

1d 130d 17d 1

Every rule that reads 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.