AzureDiagnostics in Content Hub rules
60 rules read AzureDiagnostics · table guide.
Filtered columns
CategorySQLSecurityAuditEvents20ApplicationGatewayFirewallLog4AzureFirewallApplicationRule4FrontDoorWebApplicationFirewallLog4FrontdoorWebApplicationFirewallLog4ApplicationGatewayAccessLog3 +6 moreOperationNameAzureFirewallApplicationRuleLog11AzureFirewallNetworkRuleLog10cronjobs/create1daemonsets/create1pods/attach1pods/exec1 +6 moreaction_id_sBCM17RCM17ResourceTypeVAULTS7AZUREFIREWALLS4PUBLICIPADDRESSES2APPLICATIONGATEWAYS1ResultTypeSuccess4 +1 moreaction_sAnomalyScoring4Block4details_msg_sFile Inclusion1Injection1Path Traversal Attack1SQL Injection1XSS1ResourceProviderMICROSOFT.SQL2MICROSOFT.NETWORK1CallerIPAddresshttpMethod_sGET1
Joined with
itselfAZFWApplicationRuleAZFWNetworkRuleThreatIntelligenceIndicatorThreatIntelIndicators- a computed table
AZFWFlowTraceAZFWIdpsSignature
Parsing
extract on additional_information_s: <error_code>([0-9.]+)15
extract on additional_information_s: <error_state>([0-9.]+)15
extract on additional_information_s: <failure_reason>Err ([0-9.]+)15
extract on additional_information_s: <failure_reason>Err ([0-9.]+), Level ([0-9.]+)15
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
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
- Known Forest Blizzard group domains - July 2019
- Malformed user agent
- Star Blizzard C2 Domains August 2022
- Azure WAF matching for Log4j vuln(CVE-2021-44228)
- Log4j vulnerability exploit aka Log4Shell IP IOC
- User agent search for log4j exploitation attempt
- Azure WAF Log4j CVE-2021-44228 hunting
- DDoS Attack IP Addresses - PPS Threshold
- DDoS Attack IP Addresses - Percent Threshold
- Abnormal Deny Rate for Source IP
- Abnormal Port to Protocol
- Multiple Sources Affected by the Same TI Destination
- Port Scan
- Port Sweep
- Several deny actions registered
- First Time Source IP to Destination Using Port
- First Time Source IP to Destination
- Source IP Abnormally Connects to Multiple Destinations
- Uncommon Port for Organization
- Uncommon Port to IP
- Sensitive Azure Key Vault operations
- Mass secret retrieval from Azure Key Vault
- NRT Sensitive Azure Key Vault operations
- Azure Key Vault access TimeSeries anomaly
- Credential errors stateful anomaly on database
- Firewall errors stateful anomaly on database
- Syntax errors stateful anomaly on database
- Drop attempts stateful anomaly on database
- Execution attempts stateful anomaly on database
- Firewall rule manipulation attempts stateful anomaly on database
- OLE object manipulation attempts stateful anomaly on database
- Outgoing connection attempts stateful anomaly on database
- Affected rows stateful anomaly on database
- Response rows stateful anomaly on database
- Anomalous Query Execution Time
- Boolean Blind SQL Injection
- Anomalous Query Execution Time
- Prevalence Based SQL Query Size Anomaly
- Suspicious SQL Stored Procedures
- Time Based SQL Query Size Anomaly
- Affected rows stateful anomaly on database - hunting query
- Response rows stateful anomaly on database - hunting query
- Front Door Premium WAF - SQLi Detection
- Front Door Premium WAF - XSS Detection
- AFD WAF - Code Injection
- AFD WAF - Path Traversal Attack
- Azure RBAC AKS created role details
- Determine users with cluster admin role
- Azure Key Vault Access Policy Manipulation
- Kubernetes secret enumeration followed by pod exec
- Kubernetes first-seen control-plane writer
- Kubernetes daemonset or cronjob by non-automation identity
- Connection from external IP to OMI related Ports
- TI Map IP entity to Azure Key Vault logs
- TI Map IP Entity to Azure SQL Security Audit Events
- TI map IP entity to AzureFirewall
- TI map IP entity to Azure Key Vault logs
- TI Map IP Entity to Azure SQL Security Audit Events
- Possible Webshell usage attempt related to SpringShell(CVE-2022-22965)
- [Deprecated] - Zinc Actor IOCs domains hashes IPs and useragent - October 2022
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.