Detection rules › Kusto

ApexOne - Inbound remote access connection

Status
available
Severity
high
Time window
1h
Source
github.com/Azure/Azure-Sentinel

'Detects inbound remote access connection.'

MITRE ATT&CK coverage

TacticTechniques
Lateral Movement

Rule body

id: 6303235a-ee70-42a4-b969-43e7b969b916
name: ApexOne - Inbound remote access connection
description: |
  'Detects inbound remote access connection.'
severity: High
status: Available
requiredDataConnectors:
  - connectorId: CefAma
    dataTypes:
      - CommonSecurityLog
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - LateralMovement
relevantTechniques:
  - T1021
query: |
  TMApexOneEvent
  | where EventSubType has "WB"
  | where NetworkDirection == 1
  | where ApplicationProtocol in ('15', '17', '20', '22', '23', '27', '36', '37')
  | extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName
entityMappings:
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: IPCustomEntity
  - entityType: Account
    fieldMappings:
      - identifier: Name
        columnName: AccountCustomEntity
version: 1.0.3
kind: Scheduled

Stages and Predicates

Stage 1: source

TMApexOneEvent

Stage 2: where

| where EventSubType has "WB"

Stage 3: where

| where NetworkDirection == 1

Stage 4: where

| where ApplicationProtocol in ('15', '17', '20', '22', '23', '27', '36', '37')

Stage 5: extend

| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName

Indicators

These rows show field, operator, and value matches.

Output fields

These fields are emitted when the rule matches.

FieldSource
AccountCustomEntityextend
IPCustomEntityextend