Detection rules › Kusto

Cisco SDWAN - Maleware Events

Status
available
Severity
high
Time window
3h
Group by
NetflowFwSrcAddrIpv4, SourceIP
Source
github.com/Azure/Azure-Sentinel

'This analytic rule will monitor Malware Events in Syslog and Netflow Data'

MITRE ATT&CK coverage

TacticTechniques
Resource Development

Rule body

id: cb14defd-3415-4420-a2e4-2dd0f3e07a86
name: Cisco SDWAN - Maleware Events
description: |
  'This analytic rule will monitor Malware Events in Syslog and Netflow Data'
severity: High
status: Available
requiredDataConnectors:
  - connectorId: CiscoSDWAN
    dataTypes:
      - CiscoSyslogUTD
  - connectorId: CiscoSDWAN
    dataTypes:
      - CiscoSDWANNetflow
queryFrequency: 3h
queryPeriod: 3h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - ResourceDevelopment
relevantTechniques:
  - T1587.001
query: |
  CiscoSyslogUTD
  | where isnotempty(Malware) and Malware != "None"
  | distinct Malware, SourceIP
  | join kind=inner (CiscoSDWANNetflow
  | where isnotempty(NetflowUsername)
  | summarize arg_max(TimeStamp, NetflowUsername) by NetflowFwSrcAddrIpv4
  | distinct 
      ["Username"] = NetflowUsername,
      ["SourceIP"] = NetflowFwSrcAddrIpv4) on SourceIP
  | project Malware, SourceIP, Username
incidentConfiguration:
  createIncident: true
eventGroupingSettings:
    aggregationKind: AlertPerResult
customDetails:
  "mal_malware": "Malware"
  "mal_src_ip": "SourceIP"
  "mal_username": "Username"
entityMappings:
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: SourceIP
  - entityType: Malware
    fieldMappings:
      - identifier: Name
        columnName: Malware
  - entityType: Account
    fieldMappings:
      - identifier: Name
        columnName: Username
version: 1.0.1
kind: Scheduled

Stages and Predicates

Stage 1: source

CiscoSyslogUTD

Stage 2: where

| where isnotempty(Malware) and Malware != "None"

Stage 3: distinct

| distinct Malware, SourceIP

Stage 4: join

| join kind=inner (CiscoSDWANNetflow
| where isnotempty(NetflowUsername)
| summarize arg_max(TimeStamp, NetflowUsername) by NetflowFwSrcAddrIpv4
| distinct 
    ["Username"] = NetflowUsername,
    ["SourceIP"] = NetflowFwSrcAddrIpv4) on SourceIP

Stage 5: project

| project Malware, SourceIP, Username

Stage 6: summarize aggregation inside the join branch

summarize by NetflowFwSrcAddrIpv4

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Malwareis_not_null
  • (no value, null check)
field:"Malware" kind:is_not_null
Malwarene
  • None
field:"Malware" kind:ne value:"None"
NetflowUsernameis_not_null
  • (no value, null check)
field:"NetflowUsername" kind:is_not_null

Output fields

These fields are emitted when the rule matches.

FieldSource
NetflowFwSrcAddrIpv4summarize