What problem does it solve?
Adversaries create hidden email forwarding rules to maintain persistent access to mailboxes for intelligence collection and BEC attacks, and these rules are easy to miss because forwarding can hide in inbox rules, mailbox-level settings, or Exchange transport rules. This Skill guides threat hunters through detecting all three variants using SIEM and EDR telemetry.
Core Features & Use Cases
- Comprehensive Coverage: Hunts inbox rules (New-InboxRule), mailbox forwarding (Set-Mailbox), and transport rules so no forwarding path is missed.
- Evasion-Aware Detection: Accounts for unnamed rules, mark-as-read hiding, client-only OWA rules, and OAuth app consent abuse without interactive logons.
- Validation Workflow: Includes steps to verify audit logging is enabled and to test that benign rules generate expected Unified Audit Log entries.
- Use Case: During incident response after a suspected account compromise, run the hunt workflow to find rules forwarding executive email to external domains and scope the breach.
Quick Start
Hunt for malicious email forwarding rules in our Microsoft 365 environment by querying the Unified Audit Log for New-InboxRule and Set-Mailbox events with external forwarding addresses.