← Back to SOC feed Coverage →

Teams communication from suspicious external users

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

External users communicating with internal Teams users may indicate adversarial reconnaissance or data exfiltration, as T1566 highlights the use of communication tools to establish persistent access. SOC teams should proactively hunt for this behavior to identify potential lateral movement or data theft attempts in their Azure Sentinel environment.

KQL Query

//This query uses MessageEvents to detect communication from suspicious external Help Desk\Support representatives
MessageEvents 
| where Timestamp > ago(30d) 
| where (SenderDisplayName contains "help" and SenderDisplayName contains "desk") 
  or (SenderDisplayName contains "it" and SenderDisplayName contains "support") 
  or (SenderDisplayName contains "working" and SenderDisplayName contains "home") 
| where IsExternalThread == true 
| project Timestamp, SenderDisplayName, SenderEmailAddress, RecipientDetails, IsOwnedThread, ThreadType

Analytic Rule Definition

id: 1fbd2430-2dfe-421a-82b3-eabec5a0b38e
name: Teams communication from suspicious external users
description: |
  This query helps hunt for communication from suspicious external users.
description-detailed: |
  This query helps hunt for Teams communication from suspicious external users using Microsoft Defender for Office 365 and Advance hunting in Microsoft Defender XDR
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - MessageEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  //This query uses MessageEvents to detect communication from suspicious external Help Desk\Support representatives
  MessageEvents 
  | where Timestamp > ago(30d) 
  | where (SenderDisplayName contains "help" and SenderDisplayName contains "desk") 
    or (SenderDisplayName contains "it" and SenderDisplayName contains "support") 
    or (SenderDisplayName contains "working" and SenderDisplayName contains "home") 
  | where IsExternalThread == true 
  | project Timestamp, SenderDisplayName, SenderEmailAddress, RecipientDetails, IsOwnedThread, ThreadType
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/Communication from suspicious external users.yaml