VeriKQL by Kaushik Saha

CommonSecurityLog in Content Hub rules

121 rules read CommonSecurityLog · table guide.

Filtered columns

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

Joined with

Parsing

split on DeviceName6
split on SourceUserName6
extract on AdditionalExtensions: cat=(.+?)(;|$)4
extract on AdditionalExtensions: account=(.+?);3
parse on Message: * '(' DNSName ')' *3
extract on AdditionalExtensions: cat=([^;]+)(\;|$)2
split on DestinationHostName2
split on RequestURL2
extract on AdditionalExtensions: FTNTFGTuser=([^;]+)1
extract on AdditionalExtensions: cs7=([^;]+)(\;|$)1
extract on AdditionalExtensions: reason=(.+?)($|;)1
extract on AdditionalExtensions: reason=(.+?)(;|$)1
extract on AdditionalExtensions: saccount=(.+?);1
extract on AdditionalExtensions: subcat=([^;]+)(\;|$)1
extract on AdditionalExtensions: user="?([^\s"]+)"?1
extract on DestinationHostName: ([^.]*).{0,7}$1
extract on DeviceCustomString1: (SMB_REALM_TRAVERSAL\w+{.*})1
extract on DeviceCustomString1: cmd="([^"]+)"1
extract on DeviceCustomString1: command="([^"]+)"1
extract on Message: (CVE-\d{4}-\d+)1
extract on Message: Client OS version: ([^,"]+)1
extract on Message: Gateway Anti-Virus Status: (.*)\. 1
extract on Message: Login from: ([^,]+)1
extract on Message: Source region: ([^,]{2})1
extract on Message: User name: ([^,]+)1
extract on Message: ^(?:Add|Edit|Delete|Rename)\s+(\S+)\s+1
extract on Message: ^(?:Add|Edit|Delete|Rename)\s+\S+\s+(.*)1
extract on Message: ^(Add|Edit|Delete|Rename)\s1
extract on Message: config\s+([\w][\w\s/-]*\w)1
extract on Message: path: ([^\s,]+)1
extract on RequestURL: \/attachments\/([0-9]+)\/1
parse_json on DeviceCustomString11
split on Computer1
split on DeviceCustomString11
split on Message1

Entity mappings

IP.Address ← SourceIP46

1 2 3 5 7 8 14 23 27 28 29 30 31 32 33 44 49 50 51 53 54 55 59 62 63 64 66 67 68 70 96 97 98 99 100 101 102 103 104 105 106 107 116 117 119 121

Account.Name ← UserName20

74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93

IP.Address ← DestinationIP18

3 4 12 13 16 23 28 49 55 59 60 62 65 67 70 116 117 120

Host.HostName ← DestinationHost16

74 75 77 78 79 80 82 83 85 86 87 88 89 90 91 93

Host.HostName ← SourceHost16

74 75 77 78 79 80 82 83 85 86 87 88 89 90 91 93

Host.HostName ← DeviceName11
URL.Url ← RequestURL11
Host.FullName ← DeviceName10
Host.HostName ← SourceHostName10
Account.FullName ← SourceUserName6
Account.Name ← name4
Account.UPNSuffix ← upn_suffix4
CloudApplication.Name ← ApplicationProtocol4
Malware.Category ← Rule4
Malware.Name ← Activity4
DNS.DomainName ← DestinationHostName3
Host.HostName ← Computer3
Host.HostName ← HostName3
IP.Address ← SourceIPs3
Account.FullName ← DeviceVendor2
Account.FullName ← SourceUserID2
Account.Name ← AccountName2
Account.Name ← DestinationUserID2
Account.UPNSuffix ← AccountUPNSuffix2
Host.DnsDomain ← HostNameDomain2
Host.FullName ← Computer2
Host.FullName ← SourceHostName2
IP.Address ← Computer2
IP.Address ← SrcIpAddr2
Account.FullName ← AccountCustomEntity1
Account.FullName ← SourceUser1
Account.FullName ← SrcUsername1
Account.FullName ← UserPrincipalName1
Account.Name ← User1
DNS.DnsDomain ← DnsDomain1
DNS.DomainName ← Activity1
DNS.DomainName ← DestinationDnsDomain1
DNS.DomainName ← Name1
DNS.HostName ← HostName1
File.Name ← File1
FileHash.Algorithm ← FileHashType1
FileHash.Value ← FileHashValue1
Host.FullName ← DestinationHostName1
Host.FullName ← HostCustomEntity1
Host.FullName ← SourceSystem1
Host.FullName ← SourceUserName1
Host.HostName ← Appliance1
Host.HostName ← DestinationHostName1
Host.HostName ← SensorName1
Host.OMSAgentID ← Computer1
IP.Address ← DstIpAddr1
IP.Address ← IPCustomEntity1
IP.Address ← SourceIPMax1
IP.Address ← initiator_ip1
IP.Address ← ipmatch1
Url.Url ← RequestURL1

ATT&CK techniques of these rules

T1071 34T1041 10T1021 9T1078 9T1190 9T1566 9T1071.001 8T1595 8T1003 6T1046 6T1087 6T1119 6T1499 6T1030 4T1110 4T1133 4T1548 4T1590 4T1498 3T1571 3T1053 2T1059 2T1068 2T1090 2T1098 2T1102 2T1102.002 2T1105 2T1135 2T1136.001 2T1189 2T1204 2T1567.002 2T1621 2T1003.003 1T1018 1T1048 1T1070 1T1070.001 1T1098.007 1T1110.001 1T1110.003 1T1204.001 1T1204.002 1T1486 1T1543.003 1T1546 1T1557 1T1558 1T1558.003 1T1558.004 1T1562.004 1T1565 1T1566.001 1T1566.002 1T1568 1T1569.002 1T1570 1

Severity

Medium 50High 38Low 8Informational 6

Schedules (analytic rules)

every 15m over 15m 20every 1d over 1d 18every 1h over 14d 18every 5m over 5m 16every 1h over 1h 9every 1d over 14d 4every 1h over 1d 4every 1d over 2d 2every 4h over 14d 2every 6h over 6h 2every 12h over 12h 1every 15m over 1d 1every 1d over 7d 1every 1h over 6h 1every 1h over 7d 1

Look-back windows in ago()

2d 31h 214d 115m 13d 16h 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.