All detections

Inbox rule that forwards or hides mail

Example entry. Alerts when a mailbox rule is created or changed to forward, redirect, move or delete messages.

Severity
medium
Tactics
Collection, Defense Evasion
Techniques
T1114.003, T1564.008
Data sources
OfficeActivity
Updated
Rule query
OfficeActivity
| where TimeGenerated > ago(1h)
| where Operation in~ ("New-InboxRule", "Set-InboxRule")
| extend Params = tostring(Parameters)
| where Params has_any ("ForwardTo", "ForwardAsAttachmentTo", "RedirectTo", "DeleteMessage", "MoveToFolder")
| project TimeGenerated, UserId, ClientIP, Operation, Params

This is a placeholder to show the format. Replace it with your own rule, or delete the file.

What it catches

A compromised mailbox is often given a rule that forwards mail to an outside address, or one that moves replies out of the inbox so the owner does not see them.

False positives

Tuning notes

Run hourly over the last hour. Consider enriching with the sign-in that preceded the rule change, since an unfamiliar ClientIP is the strongest signal.