Microsoft Sentinel medium experimental kql

Cloudflare - XSS probing pattern in request

'Detects XSS probing patterns.'

View Source

Detection Logic

let s_threshold = 3;
Cloudflare
| where HttpRequestMethod in~ ('POST', 'PUT')
| extend susp_ch = countof(ClientRequestURI, '%00')
| where ClientRequestURI matches regex @'(alert\()
| (alert\%28)
| (String\.fromCharCode\()
| (expression\(alert)' or susp_ch > s_threshold
| extend CompleteUrl = strcat(HttpRequestHeaderHost,ClientRequestPath)

Field Validations

Loading…

Comments (0)

Loading comments...