Detection rules › Kusto

Egress Defend - Dangerous Link Click

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

'Defend has detected a user has clicked a dangerous link in their mailbox.'

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1204 User Execution
ExecutionT0853 Scripting

Rule body kusto

id: a896123e-03a5-4a4d-a7e3-fd814846dfb2
name: Egress Defend - Dangerous Link Click
description: |
  'Defend has detected a user has clicked a dangerous link in their mailbox.'
severity: Medium
status: Available
requiredDataConnectors:
  - connectorId: EgressDefend
    dataTypes:
      - EgressDefend_CL
queryFrequency: 30m
queryPeriod: 30m
triggerOperator: gt
triggerThreshold: 0
tactics:
  - Execution
relevantTechniques:
  - T1204
  - T0853
tags:
  - Defend
query: |
  DefendAuditData
  | where LinksClicked > 0
  | where ThreatLevel == "dangerous" or ThreatLevel == "suspicious"
  | extend Account_0_FullName = trim(@"[^@.\w]+",Recipients)
entityMappings:
  - entityType: Account
    fieldMappings:
      - identifier: FullName
        columnName: Account_0_FullName
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: SenderIP
  - entityType: URL
    fieldMappings:
      - identifier: Url
        columnName: Url
  - entityType: Mailbox
    fieldMappings:
      - identifier: MailboxPrimaryAddress
        columnName: Account_0_FullName
customDetails:
  DefendSenderIP: SenderIP
  DefendSender: From
  timesClicked: LinksClicked
alertDetailsOverride:
  alertDisplayNameFormat: Alert - {{Account_0_FullName}} as clicked a suspicious link.
version: 1.0.0
kind: Scheduled

Stages and Predicates

Stage 1: source

DefendAuditData

Stage 2: where

| where LinksClicked > 0

Stage 3: where

| where ThreatLevel == "dangerous" or ThreatLevel == "suspicious"

Stage 4: extend

| extend Account_0_FullName = trim(@"[^@.\w]+",Recipients)

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
LinksClickedgt
  • 0 transforms: cased
ThreatLeveleq
  • dangerous transforms: cased
  • suspicious transforms: cased

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
Account_0_FullNameextend