Cross-source coverage
T1114.003 / ATT&CK
Email Collection: Email Forwarding Rule
18 rules across 5 sources.
From MITRE ATT&CK 19.2
Adversaries may setup email forwarding rules to collect sensitive information. Adversaries may abuse email forwarding rules to monitor the activities of a victim, steal information, and further gain intelligence on the victim or the victim’s organization to use as part of further exploits or operations. Furthermore, email forwarding rules can allow adversaries to maintain persistent access to victim's emails even after compromised credentials are reset by administrators. Most email clients allow users to create inbox rules for various email functions, including forwarding to a different recipient. These rules may be created through a local email application, a web interface, or by command-line interface. Messages can be forwarded to internal or external recipients, and there are no restrictions limiting the extent of this rule. Administrators may also create forwarding rules for user accounts with the same considerations and outcomes.
Any user or administrator within the organization (or adversary with valid credentials) can create rules to automatically forward all received messages to another recipient, forward emails to different locations based on the sender, and more. Adversaries may also hide the rule by making use of the Microsoft Messaging API (MAPI) to modify the rule properties, making it hidden and not visible from Outlook, OWA or most Exchange Administration tools.
In some environments, administrators may be able to enable email forwarding rules that operate organization-wide rather than on individual inboxes. For example, Microsoft Exchange supports transport rules that evaluate all mail an organization receives against user-specified conditions, then performs a user-specified action on mail that adheres to those conditions. Adversaries that abuse such features may be able to enable forwarding on all or specific mail an organization receives.
- Tactics
- Collection
- Platforms
- Linux · macOS · Office Suite · Windows
- Telemetry
-
WinEventLog:PowerShellWinEventLog:Securitym365:exchangemacos:unifiedlogfs:plist_monitoringm365:unifiedm365:messagetraceauditd:SYSCALLlinux:cli
How MITRE says to detect it DET0576
Email Forwarding Rule Abuse Detection Across Platforms
Windows Analytic 1589
Creation of inbox rules via PowerShell (New-InboxRule) or transport rules using Exchange cmdlets. Correlates user behavior, cmdlet usage, and rule properties.
WinEventLog:PowerShellEventCode=4103, 4104, 4105, 4106WinEventLog:SecurityEventCode=4688m365:exchangeCmdlet - New-InboxRule
macOS Analytic 1590
Creation or modification of Apple Mail rules by accessing plist files or GUI automation (AppleScript).
macos:unifiedloglog stream --predicatefs:plist_monitoring/Users/*/Library/Mail/V*/MailData/RulesActiveState.plist
Office Suite Analytic 1591
Creation of email forwarding/redirect rules in Exchange Online via New-InboxRule or transport rule cmdlets, including auto-forwarding address field usage.
m365:unifiedNew-InboxRule, Set-InboxRulem365:messagetraceX-MS-Exchange-Organization-AutoForwarded
Linux Analytic 1592
Modification of Thunderbird message filters file or execution of CLI tools (e.g., formail/procmail) that alter.forward behavior.
auditd:SYSCALLwritelinux:cli/home/*/.bash_history
SigmaHQ/sigma
6 rules| Detection | Severity | Format |
|---|---|---|
| Suspicious Inbox Forwarding Identity Protection | High | Sigma |
| Google Workspace Out Of Domain Email Forwarding | Medium | Sigma |
| Inbox Rules Creation Or Update Activity in O365 | Medium | Sigma |
| Inbox Rules Creation Or Update Activity Via ExchangePowerShell Cmdlet | Medium | Sigma |
| Mail Forwarding/Redirecting Activity In O365 | Medium | Sigma |
| Mail Forwarding/Redirecting Activity Via ExchangePowerShell Cmdlet | Medium | Sigma |
splunk/security_content
6 rules| Detection | Severity | Format |
|---|---|---|
| O365 Email New Inbox Rule Created | Undefined | SPL |
| O365 Email Suspicious Behavior Alert | Undefined | SPL |
| O365 Email Transport Rule Changed | Undefined | SPL |
| O365 Mailbox Email Forwarding Enabled | Undefined | SPL |
| O365 New Email Forwarding Rule Created | Undefined | SPL |
| O365 New Email Forwarding Rule Enabled | Undefined | SPL |
elastic/detection-rules
3 rules| Detection | Severity | Format |
|---|---|---|
| Google Workspace Gmail Routing or Forwarding Rule Created or Modified | High | Elastic TOML |
| M365 Exchange Inbox Forwarding Rule Created | Medium | Elastic TOML |
| M365 Exchange Mail Flow Transport Rule Created | Medium | Elastic TOML |
Wazuh Core Ruleset
2 rules| Detection | Severity | Format |
|---|---|---|
| Office 365: Sent message using different permissions | Medium | Wazuh XML |
| Office 365: Sent message | Low | Wazuh XML |
panther-labs/panther-analysis
1 rule| Detection | Severity | Format |
|---|---|---|
| Microsoft Exchange External Forwarding | High | Panther Python |