VeriKQL by Kaushik Saha

DeviceProcessEvents in Content Hub rules

100 rules read DeviceProcessEvents · table guide.

Filtered columns

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

Joined with

Parsing

split on DeviceName8
parse_command_line on ProcessCommandLine3
parse on ProcessCommandLine: * "user " CreatedUser " " * "/ad"2
extract on InitiatingProcessCommandLine: \buser\s+[^\s]+\s+([^\s]+)1
extract on ProcessCommandLine: (?i)[user|group] ("*[a-zA-Z0-9-_ ]+"*)1
parse on FolderPath: Drive '\\' *1
parse on InitiatingProcessCommandLine: * "/subcategory:" subcategorytoken1
parse on InitiatingProcessCommandLine: * "user " username " "*1
split on AccountName1
split on AccountUpn1
split on InitiatingProcessAccountUpn1

Entity mappings

Host.FullName ← DeviceName34

4 6 7 19 20 21 22 23 24 25 26 27 28 29 30 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55

Account.Name ← AccountName24

3 5 6 7 8 9 10 11 12 13 14 19 20 22 23 24 25 26 27 28 29 30 49 55

Process.CommandLine ← ProcessCommandLine20

2 10 19 20 22 23 24 25 26 27 28 29 30 43 44 45 47 49 51 55

Host.DnsDomain ← DnsDomain19

10 36 37 38 39 40 42 43 44 45 49 50 51 52 53 54 55 97 98

Host.HostName ← HostName19

10 36 37 38 39 40 42 43 44 45 49 50 51 52 53 54 55 97 98

Account.NTDomain ← AccountDomain16

3 5 6 7 19 20 22 23 24 25 26 27 28 29 30 49

Account.Sid ← AccountSid11
Process.ProcessId ← ProcessId8
Host.HostName ← DeviceName4
Account.FullName ← AccountUpn3
Account.NTDomain ← InitiatingProcessAccountDomain3
Account.Name ← InitiatingProcessAccountName3
File.Name ← FileName3
FileHash.Value ← SHA2563
Account.Name ← Name2
Account.Sid ← InitiatingProcessAccountSid2
Account.UPNSuffix ← UPNSuffix2
FileHash.Algorithm ← AlgorithmCustomEntity2
FileHash.Value ← FileHashCustomEntity2
Account.DnsDomain ← AccountDomain1
Account.FullName ← AccountName1
Account.UPNSuffix ← AccountDomain1
FileHash.Algorithm ← Algorithm1
FileHash.Algorithm ← FileHashAlgorithm1
FileHash.Algorithm ← HashAlgorithm1
FileHash.Value ← MD51
FileHash.Value ← SHA11
Process.CommandLine ← CommandLineCustomEntity1
Process.ProcessId ← InitiatingProcessFileName1
Process.ProcessId ← InitiatingProcessId1
Process.ProcessId ← ProcessCustomEntity1

ATT&CK techniques of these rules

T1059 7T1490 6T1562 5T1003 4T1078 3T1105 3T1203 3T1204 3T1543 3T1018 2T1021 2T1027 2T1048 2T1070 2T1136 2T1140 2T1218.010 2T1218.011 2T1219 2T1482 2T1543.003 2T1546 2T1562.001 2T1010 1T1016 1T1021.001 1T1021.003 1T1036.003 1T1036.005 1T1059.001 1T1059.003 1T1059.004 1T1068 1T1069.002 1T1071 1T1072 1T1082 1T1087 1T1087.002 1T1098 1T1127 1T1134.002 1T1190 1T1197 1T1210 1T1485 1T1486 1T1547.006 1T1554 1T1560 1T1564.004 1T1566 1T1569 1T1570 1T1574 1T1578 1T1611 1

Severity

Medium 28High 20Low 2Informational 1

Schedules (analytic rules)

every 1h over 1h 29every 1d over 1d 9every 6h over 6h 7every 12h over 12h 1every 1d over 14d 1every 1h over 14d 1

Look-back windows in ago()

7d 131d 530d 210d 13d 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.