Teams Message with URL listed on OpenPhish
Description
This query can be used as a Custom Detection Rule (CDR) to trigger when a potentially malicious Teams message with a URL from OpenPhish was delivered.
Query · kql
//This query can be used as a Custom Detection Rule (CDR) to trigger when a potentially malicious Teams message with a URL from OpenPhish. let PhishingURLs = externaldata(url: string) [ "https://raw.githubusercontent.com/openphish/public_feed/refs/heads/main/feed.txt" ] with (format="txt"); // CSV and JSON formats are also valid formats if using the premium feeds MessageUrlInfo | where Url in (PhishingURLs) | join MessageEvents on TeamsMessageId //| where IsOwnedThread==0 and IsExternalThread==1