Detection rules › Kusto
PaloAlto - Put and post method request in high risk file type
'Detects put and post method request in high risk file type.'
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access |
Rule body
id: f12e9d10-51ca-11ec-bf63-0242ac130002
name: PaloAlto - Put and post method request in high risk file type
description: |
'Detects put and post method request in high risk file type.'
severity: High
status: Available
requiredDataConnectors:
- connectorId: CefAma
dataTypes:
- CommonSecurityLog
queryFrequency: 10m
queryPeriod: 10m
triggerOperator: gt
triggerThreshold: 0
tactics:
- InitialAccess
relevantTechniques:
- T1190
- T1133
query: |
let HighRiskFileType = dynamic(['.exe', '.msi', '.msp', '.jar', '.bat', '.cmd', '.js', '.jse', 'ws', '.ps1', '.ps2', '.msh']);
PaloAltoCDLEvent
| where EventResourceId =~ 'THREAT'
| where EventResult =~ 'file'
| where HttpRequestMethod has_any ("POST", "PUT")
| where FileType in (HighRiskFileType)
| extend FileCustomEntity = SrcFileName
entityMappings:
- entityType: File
fieldMappings:
- identifier: Name
columnName: FileCustomEntity
version: 1.0.4
kind: Scheduled
Stages and Predicates
Parameters
let HighRiskFileType = dynamic(['.exe', '.msi', '.msp', '.jar', '.bat', '.cmd', '.js', '.jse', 'ws', '.ps1', '.ps2', '.msh']);
Stage 1: source
PaloAltoCDLEvent
Stage 2: where
| where EventResourceId =~ 'THREAT'
Stage 3: where
| where EventResult =~ 'file'
Stage 4: where
| where HttpRequestMethod has_any ("POST", "PUT")
Stage 5: where
| where FileType in (HighRiskFileType)
Stage 6: extend
| extend FileCustomEntity = SrcFileName
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
EventResourceId | eq |
| field:"EventResourceId" kind:eq value:"THREAT" |
EventResult | eq |
| field:"EventResult" kind:eq value:"file" |
FileType | in |
| field:"FileType" kind:in |
HttpRequestMethod | match |
| field:"HttpRequestMethod" kind:match |
Output fields
These fields are emitted when the rule matches.
| Field | Source |
|---|---|
FileCustomEntity | extend |