← Back to SOC feed Coverage →

Top 10 Users clicking on Malicious URLs (Spam)

kql MEDIUM Azure-Sentinel
T1566
UrlClickEvents
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-19T11:00:00Z · Confidence: medium

Hunt Hypothesis

Adversaries may be leveraging spam emails to deliver malicious URLs, targeting specific users to compromise their accounts or spread malware. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify potential phishing attempts and mitigate lateral movement risks.

KQL Query

UrlClickEvents
| where ThreatTypes == "Spam"
| summarize count() by AccountUpn
| top 10 by count_
| render piechart

Analytic Rule Definition

id: 3a2fdf32-ebe7-4f65-a1c3-fc7faf23ae90
name: Top 10 Users clicking on Malicious URLs (Spam)
description: |
  Visualises the top 10 users with click attempts on URLs in emails detected as spam, helping analysts identify risky user behaviour and potential targets.
  Based on Defender for Office 365 workbook: https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/part-2-build-custom-email-security-reports-and-dashboards-with-workbooks-in-micr/4411303
requiredDataConnectors:
  - connectorId: MicrosoftThreatProtection
    dataTypes:
      - UrlClickEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  UrlClickEvents
  | where ThreatTypes == "Spam"
  | summarize count() by AccountUpn
  | top 10 by count_
  | render piechart
version: 1.0.0

Required Data Sources

Sentinel TableNotes
UrlClickEventsEnsure this data connector is enabled

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/URL/Top 10 Users clicking on Malicious URLs (Spam).yaml