KQL Library / Email & Phishing
Email & Phishing
Defender for Office 365 queries against `EmailEvents` — phishing volume, malware, and external-account abuse patterns.
-
External Email Accounts Synced To Outlook Sending Attachments
external-email-accounts-synced-to-outlook-sending-attachments.kqlEmployees using Outlook on corporate machines to send email via third-party SMTP servers, with attachments — a common data-exfiltration pattern.
-
Top Blocked Malware Email Events
top-blocked-malware-email-events.kqlTop blocked malware email events. Does what it says on the tin.
-
Top Phishing Domains
top-phishing-domains.kqlTop phishing *sender domains* with severity categorized by volume.
-
Top Phishing Sender Recipient Pairs
top-phishing-sender-recipient-pairs.kqlTop phishing volume grouped by *(recipient, sender-domain)* pair — useful for spotting targeted campaigns against specific users.
-
Top Phishing Targets
top-phishing-targets.kqlTop *recipients* of phishing emails (targeted individuals) with severity by volume.
-
Whos Clicking On Junk Mail
whos-clicking-on-junk-mail.kqlUsers who clicked links in messages that landed in the Junk folder — a strong "who needs training" signal.