Detection rules › Kusto

ApexOne - C&C callback events

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

'Detects C&C callback events.'

MITRE ATT&CK coverage

TacticTechniques
Command & Control

Rule body

id: 1a87cd10-67b7-11ec-90d6-0242ac120003
name: ApexOne - C&C callback events
description: |
  'Detects C&C callback events.'
severity: High
status: Available
requiredDataConnectors:
  - connectorId: CefAma
    dataTypes:
      - CommonSecurityLog
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - CommandAndControl
relevantTechniques:
  - T1071
query: |
  TMApexOneEvent
  | where EventMessage has "CnC Callback"
  | 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 EventMessage has "CnC Callback"

Stage 3: extend

| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventMessagematch
  • CnC Callback transforms: term
field:"EventMessage" kind:match value:"CnC Callback"

Output fields

These fields are emitted when the rule matches.

FieldSource
AccountCustomEntityextend
IPCustomEntityextend