← Back to SOC feed Coverage →

Top Clicks on Malicious URLs

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

Hunt Hypothesis

This hypothesis targets phishing campaigns where adversaries exploit human error by luring users into clicking malicious links, a primary initial access vector defined by MITRE T1566. Proactively hunting for high-frequency clicks on known malicious URLs allows the SOC to identify compromised workloads and users before lateral movement occurs, enabling rapid isolation and remediation within the Azure Sentinel environment.

KQL Query

// Top 20 malicious URLs by click count, with threat type, click action and workload for context.
UrlClickEvents
| where Timestamp > ago(30d)
| where isnotempty(ThreatTypes)
| summarize ClickCount = count() by Url, ThreatTypes, ActionType, Workload
| top 20 by ClickCount
| project Url, ThreatTypes, ActionType, Workload, ClickCount

Analytic Rule Definition

id: b47707bf-1155-4d75-864f-079343f7cf7f
name: Top Clicks on Malicious URLs
description: |
  This query lists the malicious URLs that registered the most user clicks, with threat type, click action and workload, using the UrlClickEvents table.
description-detailed: |
  Ranking the specific URLs (not just the users) that attract the most clicks highlights the malicious links most effectively reaching users, and where the clicks happen (Outlook, Microsoft Teams, Microsoft 365 Copilot, Office apps). This query lists the top URLs associated with a detection by click count, with the threat type, click action and workload for context.
  This query is part of the Microsoft Defender for Office 365 Detections and Insights workbook in Microsoft Sentinel: https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/part-3-build-custom-email-security-reports-with-power-bi-and-workbooks-in-micros/4490127
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - UrlClickEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  // Top 20 malicious URLs by click count, with threat type, click action and workload for context.
  UrlClickEvents
  | where Timestamp > ago(30d)
  | where isnotempty(ThreatTypes)
  | summarize ClickCount = count() by Url, ThreatTypes, ActionType, Workload
  | top 20 by ClickCount
  | project Url, ThreatTypes, ActionType, Workload, ClickCount
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 Click/Top Clicks on Malicious URLs.yaml