Detection rules › Kusto

Trend Micro CAS - Possible phishing mail

Status
available
Severity
medium
Time window
30m
Group by
SrcFileName
Source
github.com/Azure/Azure-Sentinel

'Detects possible phishing mail.'

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1566 Phishing

Rule body kusto

id: 9e7b3811-d743-479c-a296-635410562429
name: Trend Micro CAS - Possible phishing mail
description: |
  'Detects possible phishing mail.'
severity: Medium
status: Available
requiredDataConnectors:
  - connectorId: TrendMicroCAS
    dataTypes:
      - TrendMicroCAS
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  let threshold = 5;
  TrendMicroCAS
  | where EventCategoryType in~ ('exchange', 'gmail', 'exchangeserver')
  | where isnotempty(SrcFileName)
  | where isnotempty(SecurityRiskName)
  | summarize r_users = makeset(DstUserName) by SrcFileName, bin(TimeGenerated, 30m)
  | where array_length(r_users) > threshold
  | extend AccountCustomEntity = r_users
entityMappings:
  - entityType: Account
    fieldMappings:
      - identifier: Name
        columnName: AccountCustomEntity
version: 1.0.0
kind: Scheduled

Stages and Predicates

Parameters

let threshold = 5;

Stage 1: source

TrendMicroCAS

Stage 2: where

| where EventCategoryType in~ ('exchange', 'gmail', 'exchangeserver')

Stage 3: where

| where isnotempty(SrcFileName)

Stage 4: where

| where isnotempty(SecurityRiskName)

Stage 5: summarize

| summarize r_users = makeset(DstUserName) by SrcFileName, bin(TimeGenerated, 30m)

Stage 6: where

| where array_length(r_users) > threshold

Stage 7: extend

| extend AccountCustomEntity = r_users

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
EventCategoryTypein
  • exchange
  • exchangeserver
  • gmail
SecurityRiskNameis_not_null
  • (no value, null check)
SrcFileNameis_not_null
  • (no value, null check)
r_usersgt
  • 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
SrcFileNamesummarize
r_userssummarize
AccountCustomEntityextend