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
- Data sources
- OfficeActivity
- Updated
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, ParamsThis 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
- People who file mail into folders with rules.
MoveToFolderis the noisiest condition; drop it if volume is too high. - Shared mailboxes with legitimate forwarding.
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.