← Back to SOC feed Coverage →

Expanding recipients into separate rows

kql MEDIUM Azure-Sentinel
T1566
backdoorhuntingmicrosoftofficial
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-11T23:00:00Z · Confidence: medium

Hunt Hypothesis

Expanding recipients into separate rows detects adversaries attempting to exfiltrate information by sending targeted messages to multiple users, leveraging Teams for lateral movement. SOC teams should proactively hunt for this behavior to identify potential data leakage or reconnaissance activities in their Azure Sentinel environment.

KQL Query

//Analyzing recipient details with a separate row for each recipient
MessageEvents
| mv-expand Recipients = RecipientDetails
| extend RecipientSmtpAddress = Recipients.RecipientSmtpAddress, RecipientDisplayName = Recipients.RecipientDisplayName, RecipientObjectId = Recipients.RecipientObjectId, RecipientType = Recipients.RecipientType

Analytic Rule Definition

id: 70ba5995-866f-4a23-bacc-40b82056893b
name: Expanding recipients into separate rows
description: |
  This query helps hunt for recipients of Teams messages.
description-detailed: |
  This query helps hunt for recipients of Teams messages by expanding the recipient details into separate rows, using Microsoft Defender for Office 365 and Advance hunting in Microsoft Defender XDR
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - MessageEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  //Analyzing recipient details with a separate row for each recipient
  MessageEvents
  | mv-expand Recipients = RecipientDetails
  | extend RecipientSmtpAddress = Recipients.RecipientSmtpAddress, RecipientDisplayName = Recipients.RecipientDisplayName, RecipientObjectId = Recipients.RecipientObjectId, RecipientType = Recipients.RecipientType
version: 1.0.0

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Email and Collaboration Queries/Microsoft Teams protection/Expanding recipients into separate rows.yaml