Detection rules › Kusto

PaloAlto - Put and post method request in high risk file type

Status
available
Severity
high
Time window
10m
Source
github.com/Azure/Azure-Sentinel

'Detects put and post method request in high risk file type.'

MITRE ATT&CK coverage

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.

Output fields

These fields are emitted when the rule matches.

FieldSource
FileCustomEntityextend