Detection rules › Kusto
DDoS Attack IP Addresses - Percent Threshold
Identifies IP addresses that generate over 5% of traffic during DDoS attack mitigation
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Impact | T1498 Network Denial of Service |
Rules detecting the same action
Other rules on this platform that filter on the same API call or operation.
Rule body kusto
id: 402a42ad-f31c-48d1-8f80-0200846b7f25
kind: Scheduled
name: DDoS Attack IP Addresses - Percent Threshold
description: Identifies IP addresses that generate over 5% of traffic during DDoS attack mitigation
severity: Medium
status : Available
requiredDataConnectors:
- connectorId: DDOS
dataTypes:
- AzureDiagnostics
queryPeriod: 2h
queryFrequency: 2h
triggerOperator: gt
triggerThreshold: 0
query: |
let T1 = AzureDiagnostics
| where ResourceType == "PUBLICIPADDRESSES" and Category == "DDoSMitigationFlowLogs"
| summarize rows_count = count() by destPublicIpAddress_s, sourcePublicIpAddress_s;
let T2 = AzureDiagnostics
| where ResourceType == "PUBLICIPADDRESSES" and Category == "DDoSMitigationFlowLogs"
| summarize rows_total = count() by destPublicIpAddress_s;
T2
| join kind=leftouter T1 on destPublicIpAddress_s
| project destPublicIpAddress_s, sourcePublicIpAddress_s, percent_of_traffic = 100*rows_count/rows_total
| order by percent_of_traffic desc
| where percent_of_traffic > 5
eventGroupingSettings:
aggregationKind: SingleAlert
entityMappings:
- entityType: IP
fieldMappings:
- identifier: Address
columnName: sourcePublicIpAddress_s
tactics:
- Impact
relevantTechniques:
- T1498
version: 1.0.1
Stages and Predicates
Let binding: T1
let T1 = AzureDiagnostics
| where ResourceType == "PUBLICIPADDRESSES" and Category == "DDoSMitigationFlowLogs"
| summarize rows_count = count() by destPublicIpAddress_s, sourcePublicIpAddress_s;
The stages below define let T2 (the rule's main pipeline source).
Stage 1: source
AzureDiagnostics
Stage 2: where
| where ResourceType == "PUBLICIPADDRESSES" and Category == "DDoSMitigationFlowLogs"
Stage 3: summarize
| summarize rows_total = count() by destPublicIpAddress_s
The stages below run on T2 (the outer pipeline).
Stage 4: join
T2
| join kind=leftouter T1 on destPublicIpAddress_s
Stage 5: project
| project destPublicIpAddress_s, sourcePublicIpAddress_s, percent_of_traffic = 100*rows_count/rows_total
Stage 6: sort
| order by percent_of_traffic desc
Stage 7: where
| where percent_of_traffic > 5
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
Category | eq |
|
ResourceType | eq |
|
percent_of_traffic | gt |
|
Output fields
Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.
| Field | Source |
|---|---|
destPublicIpAddress_s | project |
percent_of_traffic | project |
sourcePublicIpAddress_s | project |