id: 188a0e9a-d775-4ad2-b7a0-64df26c0b931
name: Top 20 Malicious URLs by Clicks
description: |
This query lists the top 20 URLs carrying a detection ranked by the number of clicks registered, with the threat type, click action and workload for each.
description-detailed: |
This query lists the top 20 URLs with an associated threat detection in Microsoft Defender for Office 365, ranked by the number of Safe Links clicks registered, and shows the threat type, click action (blocked, allowed, and so on) and the workload the clicks came from - a forensic view of the most-clicked malicious URLs.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
dataTypes:
- UrlClickEvents
tactics:
- InitialAccess
relevantTechniques:
- T1566
query: |
UrlClickEvents
| where Timestamp > ago(30d)
| where ThreatTypes != ""
| summarize ['Click Count'] = count() by Url, ThreatTypes, ActionType, Workload
| top 20 by ['Click Count']
| project ['URL'] = Url, ['Threat Types'] = ThreatTypes, ['Action Type'] = ActionType, Workload, ['Click Count']
version: 1.0.0