Detection rules › Kusto

Apache - Command in URI

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

'Detects command in URI'

MITRE ATT&CK coverage

Rule body

id: 54da6a42-3b00-11ec-8d3d-0242ac130003
name: Apache - Command in URI
description: |
  'Detects command in URI'
severity: High
status: Available
requiredDataConnectors:
  - connectorId: CustomLogsAma
    datatypes:
      - ApacheHTTPServer_CL
queryFrequency: 15m
queryPeriod: 15m
triggerOperator: gt
triggerThreshold: 0
tactics:
  - InitialAccess
relevantTechniques:
  - T1190
  - T1133
query: |
  let cmd_list = dynamic(['whoami', 'dpkg', 'useradd', 'sudo', 'cat']);
  ApacheHTTPServer
  | where UrlOriginal has_any (cmd_list)
  | extend UrlCustomEntity = UrlOriginal
entityMappings:
  - entityType: URL
    fieldMappings:
      - identifier: Url
        columnName: UrlCustomEntity
version: 1.0.3
kind: Scheduled

Stages and Predicates

Parameters

let cmd_list = dynamic(['whoami', 'dpkg', 'useradd', 'sudo', 'cat']);

Stage 1: source

ApacheHTTPServer

Stage 2: where

| where UrlOriginal has_any (cmd_list)

Stage 3: extend

| extend UrlCustomEntity = UrlOriginal

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
UrlOriginalmatch
  • cat transforms: term
  • dpkg transforms: term
  • sudo transforms: term
  • useradd transforms: term
  • whoami transforms: term
field:"UrlOriginal" kind:match

Output fields

These fields are emitted when the rule matches.

FieldSource
UrlCustomEntityextend