Quarantine Phish Reason trend


Description

This query visualises the amount of phish emails that are quarantined, summarized daily by the detection method

Query · kql

let minTime = startofday(ago(30d));
let maxTime = startofday(now());
EmailEvents
| where Timestamp >= minTime
| where EmailDirection == "Inbound" and DetectionMethods has "Phish" and DeliveryLocation == "Quarantine"
| mv-expand Details = parse_json(DetectionMethods).Phish to typeof(string)
| where isnotempty(Details)
| where Timestamp < maxTime
| make-series Count = count() default = 0 on Timestamp from minTime to maxTime step 1d by Details
| project Count, Details, Timestamp
| render timechart
Raw source Quarantine Phish Reason trend · KQL
Esc
Published by Azure/Azure-Sentinel ↗, licensed under MIT ↗. Reproduced here unmodified.
id: 6f7df1b7-5613-45e5-9b82-3ec95d86e0e8
name: Quarantine Phish Reason trend
description: |
  This query visualises the amount of phish emails that are quarantined, summarized daily by the detection method
description-detailed: |
  This query visualises the amount of phish emails that are quarantined, summarized daily by the detection method
  Query is also included as part of the Defender for Office 365 solution in Sentinel: https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/part-2-build-custom-email-security-reports-and-dashboards-with-workbooks-in-micr/4411303
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - EmailEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  let minTime = startofday(ago(30d));
  let maxTime = startofday(now());
  EmailEvents
  | where Timestamp >= minTime
  | where EmailDirection == "Inbound" and DetectionMethods has "Phish" and DeliveryLocation == "Quarantine"
  | mv-expand Details = parse_json(DetectionMethods).Phish to typeof(string)
  | where isnotempty(Details)
  | where Timestamp < maxTime
  | make-series Count = count() default = 0 on Timestamp from minTime to maxTime step 1d by Details
  | project Count, Details, Timestamp
  | render timechart
version: 1.1.0

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.