← Back to SOC feed Coverage →

IcedId attachments

kql MEDIUM Azure-Sentinel
EmailAttachmentInfoEmailEvents
huntingmicrosoftofficialransomware
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-05-25T23:00:00Z · Confidence: medium

Hunt Hypothesis

Emails with reply/forward subjects containing .doc or .zip attachments may indicate IcedId malware delivery, as these file types are commonly used to exploit vulnerabilities and execute malicious payloads. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate potential ransomware threats early.

KQL Query

// Identify a reply or forward via subject line 
let SubjectTerms = pack_array("RE:","FW:","FWD:","AW:","WG:"); 
EmailEvents 
| where Subject has_any(SubjectTerms) 
| where EmailDirection == "Inbound" // Join on those emails by file type (doc or zip>doc) 
| join EmailAttachmentInfo on $left.NetworkMessageId == $right.NetworkMessageId 
| where AttachmentCount == 1 
| where FileType has 'WordStorage' or FileType has 'WordStorage;Zip'

Analytic Rule Definition

id: bdbbf32f-10a9-492b-a05c-e5987922f8fc
name: IcedId attachments
description: |
  Use this query to locate emails with subject indicators of a reply or forward, and the attachment is a .doc, or a .zip containing a .doc. Review results for suspicious emails.
  IcedId can lead to ransomware
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - EmailEvents
  - EmailAttachmentInfo
tactics:
- Ransomware
query: |
  // Identify a reply or forward via subject line 
  let SubjectTerms = pack_array("RE:","FW:","FWD:","AW:","WG:"); 
  EmailEvents 
  | where Subject has_any(SubjectTerms) 
  | where EmailDirection == "Inbound" // Join on those emails by file type (doc or zip>doc) 
  | join EmailAttachmentInfo on $left.NetworkMessageId == $right.NetworkMessageId 
  | where AttachmentCount == 1 
  | where FileType has 'WordStorage' or FileType has 'WordStorage;Zip'

Required Data Sources

Sentinel TableNotes
EmailAttachmentInfoEnsure this data connector is enabled
EmailEventsEnsure this data connector is enabled

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Ransomware/IcedId attachments.yaml