Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Cloudflare - XSS probing pattern in request

Back
Id4d9d00b9-31a6-49e4-88c1-9e68277053ad
RulenameCloudflare - XSS probing pattern in request
DescriptionDetects XSS probing patterns.
SeverityMedium
TacticsInitialAccess
TechniquesT1190
T1133
Required data connectorsCloudflareDataConnector
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Cloudflare CCF/Analytic Rules/CloudflareCCFXSSProbingPattern.yaml
Version1.0.1
Arm template4d9d00b9-31a6-49e4-88c1-9e68277053ad.json
Deploy To Azure
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)
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Cloudflare CCF/Analytic Rules/CloudflareCCFXSSProbingPattern.yaml
queryFrequency: 1h
name: Cloudflare - XSS probing pattern in request
severity: Medium
triggerThreshold: 0
query: |
  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)  
requiredDataConnectors:
- dataTypes:
  - Cloudflare
  connectorId: CloudflareDataConnector
relevantTechniques:
- T1190
- T1133
status: Available
triggerOperator: gt
queryPeriod: 1h
description: |
    'Detects XSS probing patterns.'
id: 4d9d00b9-31a6-49e4-88c1-9e68277053ad
version: 1.0.1
entityMappings:
- fieldMappings:
  - columnName: SrcIpAddr
    identifier: Address
  entityType: IP
- fieldMappings:
  - columnName: CompleteUrl
    identifier: Url
  entityType: URL
kind: Scheduled
tactics:
- InitialAccess