Query Details
// KQL to check Azure API spray attacks // https://www.linkedin.com/posts/activity-7197794002526457857-Y09J/ ApiManagementGatewayLogs | where TimeGenerated > ago(1d) | where IsRequestSuccess == "false" | summarize Count=count() by CallerIpAddress | sort by Count desc // Block the attack IPs on your Azure Application Gateway WAF
This KQL (Kusto Query Language) query is designed to detect potential spray attacks on Azure APIs. Here's a simple summary:
IsRequestSuccess is "false").CallerIpAddress).The purpose is to identify IP addresses that have a high number of failed requests, which could indicate a spray attack. These IPs can then be blocked on your Azure Application Gateway Web Application Firewall (WAF) to prevent further attacks.

Steven Lim
Released: August 2, 2024
Tables
Keywords
Operators