Malicious emails detected per day
Description
This query helps reviewing Malware, Phishing, Spam emails caught per day
Query · kql
EmailEvents
| where DetectionMethods != ""
| extend detection= parse_json(DetectionMethods)
| extend Spam = tostring(detection.Spam)
| extend Phish = tostring(detection.Phish)
| extend Malware = tostring(detection.Malware)
| where Spam != '' or Phish != '' or Malware != ''
| extend detection = case(
Malware != "", 'Malware',
Phish != "", 'Phish',
'Spam')
| summarize total=count() by detection, bin(Timestamp, 1d)
| order by Timestamp asc