VeriKQL by Kaushik Saha

AzureDiagnostics in Content Hub rules

60 rules read AzureDiagnostics · table guide.

Filtered columns

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

Joined with

Parsing

extract on additional_information_s: <error_code>([0-9.]+)15

25 26 27 28 29 30 31 32 35 36 37 38 40 41 42

extract on additional_information_s: <error_state>([0-9.]+)15

25 26 27 28 29 30 31 32 35 36 37 38 40 41 42

extract on additional_information_s: <failure_reason>Err ([0-9.]+)15

25 26 27 28 29 30 31 32 35 36 37 38 40 41 42

extract on additional_information_s: <failure_reason>Err ([0-9.]+), Level ([0-9.]+)15

25 26 27 28 29 30 31 32 35 36 37 38 40 41 42

parse on details_data_s: MessageText "Matched Data:" MatchedData "AND " * "table_name FROM " TableName " " *4
parse on msg_s: * "from " SourceIp ":" SourcePort:int " to " Fqdn ":" DestinationPort:int ". " * "Action: " Action "." *4
parse on msg_s: Protocol 'request from ' SourceHost ':' SourcePort 'to ' DestinationHost ':' DestinationPort '. Action:' Action4
parse on msg_s: * "from " SourceIp ":" SourcePort:int " to " Fqdn ":" DestinationPort:int "." *3
parse on msg_s: "DNS Request: " ClientIP ":" ClientPort " - " QueryID " " Request_Type " " Request_Class " " Request_Name ". " Request_Protocol " " Request_Size " " EDNSO_DO " " EDNS0_Buffersize " " Responce_Code " " Responce_Flags " " Responce_Size " " Response_Duration2
parse_json on log_s2
parse on msg_s: * "from " SourceIp ":" SourcePort:int " to " Fqdn ":" DestinationPort:int "." * "Action: Deny. " ThreatDescription1
parse on msg_s: * "from " SourceIp ":" SourcePort:int " to " Fqdn ":" DestinationPort:int *1
parse on msg_s: Protocol " request from " SourceIp ":" SourcePort " to " Fqdn ":" DestinationPort:int "." *1
parse on msg_s: Protocol " request from " SourceIp ":" SourcePort:int " to " Fqdn ":" DestinationPort:int "." *1
parse on msg_s: Protocol ' request from ' SourceIp ':' SourcePort ' to ' DestinationIp ':' DestinationPort " was " Action " to " InternalIP ':' InternalPort1
parse on msg_s: Protocol 'request from ' SourceHost 'to ' DestinationHost @'\.? Action: ' Firewall_Action @'\.' Rest_msg1
parse on msg_s: Protocol 'request from ' SourceIP ':' SourcePort 'to ' DestinationIP ':' DestinationPort '. Action:' Action1
split on Computer1
split on session_server_principal_name_s1
split on userAgent_s1

Entity mappings

Account.Name ← Name20

21 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

Account.UPNSuffix ← UPNSuffix20

21 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

CloudApplication.Name ← ApplicationName18

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

AzureResource.ResourceId ← ResourceId17

25 26 27 28 29 30 31 32 33 34 36 37 39 51 52 54 57

Host.HostName ← HostName15

25 26 27 28 29 30 31 32 33 34 36 37 39 41 42

IP.Address ← ClientIp15

25 26 27 28 29 30 31 32 33 34 36 37 39 41 42

IP.Address ← clientIP_s5
URL.Url ← URI_s4
Account.Name ← Caller3
IP.Address ← CallerIPMax3
Account.AadUserId ← AadUserId2
IP.Address ← sourcePublicIpAddress_s2
Account.AadUserId ← UserObjectAdded1
Account.Name ← AccountMax1
Account.Name ← CallerObjectId1
Host.FullName ← Computer1
Host.FullName ← HostCustomEntity1
IP.Address ← CallerIPAddress1
IP.Address ← IPCustomEntity1
IP.Address ← MaliciousHost1
URL.Url ← UrlCustomEntity1

ATT&CK techniques of these rules

T1190 17T1071 13T1485 6T1046 4T1048 4T1203 4T1041 3T1059 3T1098 3T1571 3T1003 2T1059.003 2T1078 2T1189 2T1213.006 2T1491 2T1498 2T1548 2T1565 2T1595.001 2T1609 2T0853 1T0890 1T1021 1T1053 1T1059.001 1T1059.007 1T1087 1T1105 1T1110.001 1T1110.002 1T1210 1T1211 1T1505.001 1T1546 1T1552 1T1555 1T1562 1T1565.001 1T1566 1T1568.001 1T1568.002 1T1570 1T1572 1T1595 1

Severity

Medium 28High 10Low 4

Schedules (analytic rules)

every 1h over 14d 15every 1d over 1d 8every 6h over 6h 6every 1h over 15d 2every 1h over 1h 2every 2h over 2h 2every 1d over 14d 1every 1h over 1d 1every 1h over 25h 1every 1h over 8d 1

Look-back windows in ago()

2d 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.