← Back to SOC feed Coverage →

Top 10 Attacked user by Phish messages

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-12T11:00:00Z · Confidence: medium

Hunt Hypothesis

The hypothesis is that adversaries are targeting high-value users through phishing messages in Teams to gain initial access and exfiltrate data. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate potential compromise early in the attack lifecycle.

KQL Query

//Top 10 attacked users by Phish messages from external senders using Teams. Replace contoso.com with your own recipient domain.
MessageEvents
| where ThreatTypes has 'Phish' and IsOwnedThread==0 and IsExternalThread==1
| mv-expand Recipients = RecipientDetails
| extend RecipientEmailAddress = Recipients.RecipientSmtpAddress, RecipientDisplayName = Recipients.RecipientDisplayName, RecipientObjectId = Recipients.RecipientObjectId, RecipientType = Recipients.RecipientType
| where RecipientEmailAddress contains ('contoso.com')
| summarize count() by tostring(RecipientEmailAddress)
| sort by count_
| top 10 by count_

Analytic Rule Definition

id: e6cbca08-b041-4f5d-9f82-f803319ee050
name: Top 10 Attacked user by Phish messages
description: |
  Top 10 attacked users by Phish messages from external senders using Teams
description-detailed: |
  Top 10 attacked users by Phish messages from external senders using Teams. Replace contoso.com with your own recipient domain.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - MessageEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  //Top 10 attacked users by Phish messages from external senders using Teams. Replace contoso.com with your own recipient domain.
  MessageEvents
  | where ThreatTypes has 'Phish' and IsOwnedThread==0 and IsExternalThread==1
  | mv-expand Recipients = RecipientDetails
  | extend RecipientEmailAddress = Recipients.RecipientSmtpAddress, RecipientDisplayName = Recipients.RecipientDisplayName, RecipientObjectId = Recipients.RecipientObjectId, RecipientType = Recipients.RecipientType
  | where RecipientEmailAddress contains ('contoso.com')
  | summarize count() by tostring(RecipientEmailAddress)
  | sort by count_
  | top 10 by count_
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/Top 10 Attacked user by Phish messages.yaml