Detection rules › Kusto

Imperva - Request to unexpected destination port

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

'Detects request attempts to unexpected destination ports.'

MITRE ATT&CK coverage

Rule body

id: 0ba78922-033c-468c-82de-2974d7b1797d
name: Imperva - Request to unexpected destination port
description: |
  'Detects request attempts to unexpected destination ports.'
severity: High
status: Available
requiredDataConnectors:
  - connectorId: ImpervaWAFCloudAPI
    dataTypes:
      - ImpervaWAFCloud
queryFrequency: 10m
queryPeriod: 10m
triggerOperator: gt
triggerThreshold: 0
tactics:
  - InitialAccess
relevantTechniques:
  - T1190
  - T1133
query: |
  let bl_ports = dynamic(['22', '3389']);
  ImpervaWAFCloud
  | where DvcAction !startswith 'REQ_BLOCKED' or DvcAction !startswith 'REQ_BAD_'
  | where DstPortNumber in (bl_ports)
  | extend IPCustomEntity = SrcIpAddr
entityMappings:
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: IPCustomEntity
version: 1.0.1
kind: Scheduled

Stages and Predicates

Parameters

let bl_ports = dynamic(['22', '3389']);

Stage 1: source

ImpervaWAFCloud

Stage 2: where

| where DvcAction !startswith 'REQ_BLOCKED' or DvcAction !startswith 'REQ_BAD_'

Stage 3: where

| where DstPortNumber in (bl_ports)

Stage 4: extend

| extend IPCustomEntity = SrcIpAddr

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DstPortNumberin
  • 22
  • 3389
field:"DstPortNumber" kind:in

Output fields

These fields are emitted when the rule matches.

FieldSource
IPCustomEntityextend