Microsoft Sentinel medium experimental kql

API - Rate limiting

'42Crunch API protection against rate limiting'

View Source

Detection Logic

let firstRec = FortyTwoCrunchAPIProtection
| where TimeGenerated >= ago(5m)
| project-away NonBlockingMode, SourcePort, DestinationPort, Query, ApiId, RequestHeader, ResponseHeader, Errors, EventType, Uuid
| where UriPath has "/api/login" and Status == 429;
let rateLimitCount = (toscalar(firstRec
| count));
let recCount = iff((rateLimitCount > 20), 1, 0);
firstRec
| top recCount by Timestamp desc;

Field Validations

Loading…

Comments (0)

Loading comments...