← Back to SOC feed Coverage →

Possible partner impersonation in external Team messages

kql MEDIUM Azure-Sentinel
T1562
huntingmicrosoftofficial
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

Adversaries may impersonate trusted partner domains in Teams messages to gain unauthorized access or exfiltrate data. SOC teams should proactively hunt for this behavior to identify potential spear-phishing or credential theft attempts leveraging trusted external identities.

KQL Query

//This query can be used as a Custom Detection Rule (CDR) to trigger when a partner email domain or email address is used in a Sender display name part of an inbound external Teams message
 MessageEvents 
 | where IsOwnedThread==0 and IsExternalThread==1 and SenderDisplayName contains "@contoso.com"

Analytic Rule Definition

id: 39cf1ec6-d460-4760-8a87-7d10577f6205
name:  Possible partner impersonation in external Team messages
description: |
  This query can be used as a Custom Detection Rule (CDR) to trigger when a partner email domain or email address is used in a Sender display name part of an inbound external Teams message
description-detailed: |
  This query can be used as a Custom Detection Rule (CDR) to trigger when a partner email domain or email address is used in a Sender display name part of an inbound external Teams message
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - MessageEvents
tactics:
  - DefenseEvasion
relevantTechniques:
  - T1562
query: |
 //This query can be used as a Custom Detection Rule (CDR) to trigger when a partner email domain or email address is used in a Sender display name part of an inbound external Teams message
  MessageEvents 
  | where IsOwnedThread==0 and IsExternalThread==1 and SenderDisplayName contains "@contoso.com"
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/Possible partner impersonation in external Team messages.yaml