← Back to SOC feed Coverage →

Top External malicious Senders

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

Hunt Hypothesis

Adversaries may use external malicious senders to deliver phishing or malware via Teams messages to compromise organizational accounts. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate potential spear-phishing or credential theft campaigns early.

KQL Query

//Top external senders sending malicious inbound Teams messages Spam, Phish, Malware
MessageEvents 
| where IsOwnedThread==0 and IsExternalThread==1 and ThreatTypes !='' and Timestamp > ago(30d)
| summarize count() by SenderEmailAddress, ThreatTypes 
| sort by count_ desc

Analytic Rule Definition

id: 164a77d1-3952-451f-ba30-b4a43804fd8a
name: Top External malicious Senders
description: |
  Top external senders sending malicious inbound Teams messages Spam, Phish, Malware
description-detailed: |
  This query helps hunt for top external senders sending malicious inbound Teams messages Spam, Phish, Malware, using Microsoft Defender for Office 365 and Advance hunting in Microsoft Defender XDR
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - MessageEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  //Top external senders sending malicious inbound Teams messages Spam, Phish, Malware
  MessageEvents 
  | where IsOwnedThread==0 and IsExternalThread==1 and ThreatTypes !='' and Timestamp > ago(30d)
  | summarize count() by SenderEmailAddress, ThreatTypes 
  | sort by count_ desc
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 external malicious senders.yaml