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.

Query · kql

// 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
Raw source Top Clicks on Malicious URLs · KQL
Esc
Published by Azure/Azure-Sentinel ↗, licensed under MIT ↗. Reproduced here unmodified.
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

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.