Skip to content

Commit f865638

Browse files
authored
Merge pull request Azure#12981 from Azure/v-sabiraj-updatingfirewalltables
Update IPEntity_AzureFirewall.yaml
2 parents c7d546b + 6be720f commit f865638

4 files changed

Lines changed: 403 additions & 401 deletions

File tree

Solutions/Threat Intelligence (NEW)/Analytic Rules/IPEntity_AzureFirewall.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ query: |
4848
| project-reorder *, Tags, TrafficLightProtocolLevel, NetworkSourceIP, Type, TI_ipEntity
4949
// Use innerunique to keep performance fast and result set low, as we only need one match to indicate potential malicious activity that needs investigation
5050
| join kind=innerunique (
51-
AzureDiagnostics
51+
union AZFWApplicationRule, AZFWNetworkRule
5252
| where TimeGenerated >= ago(dt_lookBack)
53-
| where OperationName in ("AzureFirewallApplicationRuleLog", "AzureFirewallNetworkRuleLog")
54-
| parse kind=regex flags=U msg_s with Protocol 'request from ' SourceHost 'to ' DestinationHost @'\.? Action: ' Firewall_Action @'\.' Rest_msg
55-
| extend SourceAddress = extract(@'([\.0-9]+)(:[\.0-9]+)?', 1, SourceHost)
56-
| extend DestinationAddress = extract(@'([\.0-9]+)(:[\.0-9]+)?', 1, DestinationHost)
53+
//| where OperationName in ("AzureFirewallApplicationRuleLog", "AzureFirewallNetworkRuleLog")
54+
| parse kind=regex flags=U ActionReason with Protocol 'request from ' SourceHost 'to ' DestinationHost @'\.? Action: ' Firewall_Action @'\.' Rest_msg
55+
| extend SourceAddress = SourceIp
56+
| extend DestinationAddress = DestinationIp
5757
| extend RemoteIP = case(not(ipv4_is_private(DestinationAddress)), DestinationAddress, not(ipv4_is_private(SourceAddress)), SourceAddress, "")
5858
| where isnotempty(RemoteIP) // Filter out traffic involving public addresses only
59+
| extend Firewall_Action = Action
5960
| project-rename AzureFirewall_TimeGenerated = TimeGenerated
6061
)
6162
on $left.TI_ipEntity == $right.RemoteIP
@@ -67,8 +68,8 @@ query: |
6768
| extend Description = tostring(parse_json(Data).description)
6869
| extend ActivityGroupNames = extract(@"ActivityGroup:(\S+)", 1, tostring(parse_json(Data).labels))
6970
| project LatestIndicatorTime, Description, ActivityGroupNames, Id, ValidUntil, Confidence,
70-
AzureFirewall_TimeGenerated, TI_ipEntity, Resource, Category, msg_s, SourceAddress, DestinationAddress, Firewall_Action, Protocol,
71-
NetworkSourceIP, Type, Url
71+
AzureFirewall_TimeGenerated, TI_ipEntity, ActionReason, SourceAddress, DestinationAddress, Firewall_Action, Protocol,
72+
NetworkSourceIP, Type, TargetUrl
7273
entityMappings:
7374
- entityType: IP
7475
fieldMappings:
@@ -77,6 +78,6 @@ entityMappings:
7778
- entityType: URL
7879
fieldMappings:
7980
- identifier: Url
80-
columnName: Url
81-
version: 1.3.6
81+
columnName: TargetUrl
82+
version: 1.3.7
8283
kind: Scheduled
60.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)