← Back to SOC feed Coverage →

Automated Remediation Manual versus Automatic Approval

kql MEDIUM Azure-Sentinel
T1566
huntingmicrosoftofficial
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-09-03T23:00:00Z · Confidence: medium

Hunt Hypothesis

This hypothesis targets adversaries leveraging phishing campaigns (T1566) to establish initial access, where the distinction between automatic and manual remediation approval reveals whether malicious emails were neutralized in real-time or delayed by human intervention. Proactively hunting for this behavior in Azure Sentinel allows the SOC to identify gaps in automated defense workflows, ensuring that high-risk messages are not left in user inboxes long enough for an attacker to interact with them before an administrator can review and approve the remediation action.

KQL Query

EmailPostDeliveryEvents
| where Timestamp > ago(30d)
| extend Key = strcat(NetworkMessageId, '-', RecipientEmailAddress)
| summarize arg_max(Timestamp, *) by Key
| where ActionType == "Automated Remediation"
| summarize count() by ActionTrigger
| render piechart

Analytic Rule Definition

id: 6782a329-feee-4dbc-bbca-d31cb12e1437
name: Automated Remediation Manual versus Automatic Approval
description: |
  This query shows whether Microsoft Defender for Office 365 automated remediation actions were taken automatically or required manual admin approval, using the EmailPostDeliveryEvents table.
description-detailed: |
  Automated Investigation and Response actions can be fully automatic or held for manual approval. This query breaks down automated remediation events by their trigger (automatic versus manual approval), deduplicated to the latest event per message and recipient, so teams can understand how much of their remediation is hands-off versus analyst-gated.
  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:
  - EmailPostDeliveryEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  EmailPostDeliveryEvents
  | where Timestamp > ago(30d)
  | extend Key = strcat(NetworkMessageId, '-', RecipientEmailAddress)
  | summarize arg_max(Timestamp, *) by Key
  | where ActionType == "Automated Remediation"
  | summarize count() by ActionTrigger
  | render piechart
version: 1.0.0

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Email and Collaboration Queries/Remediation/Automated Remediation Manual versus Automatic Approval.yaml