App GW WAF - Path Traversal Attack
| Id | b6c3a8a6-d22c-4882-9c57-abc01690938b |
| Rulename | App GW WAF - Path Traversal Attack |
| Description | Identifies a match for a Path Traversal based attack in the App Gateway WAF logs. The threshold value in the query can be changed as per your infrastructure’s requirements. References: https://owasp.org/www-community/attacks/Path_Traversal |
| Severity | High |
| Tactics | DefenseEvasion Execution InitialAccess PrivilegeEscalation Discovery |
| Techniques | T1548 T1203 T1190 T1548 T1087 |
| Required data connectors | WAF |
| Kind | Scheduled |
| Query frequency | 6h |
| Query period | 6h |
| Trigger threshold | 0 |
| Trigger operator | gt |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Azure Web Application Firewall (WAF)/Analytic Rules/App-GW-WAF-Path-Traversal-Attack.yaml |
| Version | 1.0.3 |
| Arm template | b6c3a8a6-d22c-4882-9c57-abc01690938b.json |
let Threshold = 3;
AGWFirewallLogs
| where Action == "Matched"
| where Message has "Path Traversal Attack"
| project TransactionId, Hostname, RequestUri, TimeGenerated, ClientIp, Message, DetailedMessage, DetailedData
| join kind = inner(
AGWFirewallLogs
| where Action == "Blocked") on TransactionId
| extend Uri = strcat(Hostname,RequestUri)
| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated), TransactionID = make_set(TransactionId,100), Message = make_set(Message,100), Detail_Message = make_set(DetailedMessage,100), Detail_Data = make_set(DetailedData,100), Total_TransactionId = dcount(TransactionId) by ClientIp, Uri, Action
| where Total_TransactionId >= Threshold
queryPeriod: 6h
query: |
let Threshold = 3;
AGWFirewallLogs
| where Action == "Matched"
| where Message has "Path Traversal Attack"
| project TransactionId, Hostname, RequestUri, TimeGenerated, ClientIp, Message, DetailedMessage, DetailedData
| join kind = inner(
AGWFirewallLogs
| where Action == "Blocked") on TransactionId
| extend Uri = strcat(Hostname,RequestUri)
| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated), TransactionID = make_set(TransactionId,100), Message = make_set(Message,100), Detail_Message = make_set(DetailedMessage,100), Detail_Data = make_set(DetailedData,100), Total_TransactionId = dcount(TransactionId) by ClientIp, Uri, Action
| where Total_TransactionId >= Threshold
name: App GW WAF - Path Traversal Attack
entityMappings:
- fieldMappings:
- columnName: Uri
identifier: Url
entityType: URL
- fieldMappings:
- columnName: ClientIp
identifier: Address
entityType: IP
queryFrequency: 6h
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Azure Web Application Firewall (WAF)/Analytic Rules/App-GW-WAF-Path-Traversal-Attack.yaml
tags:
- Path Traversal
requiredDataConnectors:
- connectorId: WAF
dataTypes:
- AzureDiagnostics
description: |
'Identifies a match for a Path Traversal based attack in the App Gateway WAF logs. The threshold value in the query can be changed as per your infrastructure's requirements.
References: https://owasp.org/www-community/attacks/Path_Traversal'
kind: Scheduled
version: 1.0.3
status: Available
severity: High
relevantTechniques:
- T1548
- T1203
- T1190
- T1548
- T1087
triggerOperator: gt
triggerThreshold: 0
tactics:
- DefenseEvasion
- Execution
- InitialAccess
- PrivilegeEscalation
- Discovery
id: b6c3a8a6-d22c-4882-9c57-abc01690938b