Spam and Phish allowed to inbox by Admin Overrides
Description
This query helps in reviewing malicious emails allowed due to admin overrides
Query · kql
let TimeStart = startofday(ago(30d)); let TimeEnd = startofday(now()); let baseQuery = EmailEvents | where Timestamp >= TimeStart | where ConfidenceLevel != "" and OrgLevelPolicy!="" and OrgLevelAction == "Allow" and DeliveryAction == "Delivered"; let spam=baseQuery | where ThreatTypes has 'Spam' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Allowed Spam"; let phish=baseQuery | where ThreatTypes has 'Phish' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Allowed Phish"; union spam,phish | project Count, Details, Timestamp | render timechart