Detection rules › Kusto

Cisco SEG - Multiple suspiciuos attachments received

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

'Detects possibly phishing emails.'

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1566 Phishing

Rule body kusto

id: dfdb9a73-4335-4bb4-b29b-eb713bce61a6
name: Cisco SEG - Multiple suspiciuos attachments received
description: |
  'Detects possibly phishing emails.'
severity: High
status: Available
requiredDataConnectors:
  - connectorId: CefAma
    dataTypes:
      - CommonSecurityLog
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  let r_threshold = 5;
  CiscoSEGEvent
  | where NetworkDirection =~ 'Incoming'
  | where isnotempty(EventMessage)
  | where strlen(EventMessage) < 20
  | summarize rec=makeset(DstUserName) by EventMessage, bin(TimeGenerated, 10m)
  | where array_length(rec) > r_threshold
  | extend AccountCustomEntity = rec
entityMappings:
  - entityType: Account
    fieldMappings:
      - identifier: Name
        columnName: AccountCustomEntity
version: 1.0.3
kind: Scheduled

Stages and Predicates

Parameters

let r_threshold = 5;

Stage 1: source

CiscoSEGEvent

Stage 2: where

| where NetworkDirection =~ 'Incoming'

Stage 3: where

| where isnotempty(EventMessage)

Stage 4: where

| where strlen(EventMessage) < 20

Stage 5: summarize

| summarize rec=makeset(DstUserName) by EventMessage, bin(TimeGenerated, 10m)

Stage 6: where

| where array_length(rec) > r_threshold

Stage 7: extend

| extend AccountCustomEntity = rec

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
EventMessageis_not_null
  • (no value, null check)
EventMessagelt
  • 20 transforms: strlen
NetworkDirectioneq
  • Incoming
recgt
  • 5 transforms: array_length

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
EventMessagesummarize
recsummarize
AccountCustomEntityextend