Adversaries may use email rules to hide inbound emails in a compromised user's mailbox. Many email clients allow users to create inbox rules for various email functions, including moving emails to other folders, marking emails as read, or deleting emails. Rules may be created or modified within email clients or through external features such as the <code>New-InboxRule</code> or <code>Set-InboxRule</code> PowerShell cmdlets on Windows systems.(Citation: Microsoft Inbox Rules)(Citation: MacOS Email Rules)(Citation: Microsoft New-InboxRule)(Citation: Microsoft Set-InboxRule)
Adversaries may utilize email rules within a compromised user's mailbox to delete and/or move emails to less noticeable folders. Adversaries may do this to hide security alerts, C2 communication, or responses to Internal Spearphishing emails sent from the compromised account.
Any user or administrator within the organization (or adversary with valid credentials) may be able to create rules to automatically move or delete emails. These rules can be abused to impair/delay detection had the email content been immediately seen by a user or defender. Malicious rules commonly filter out emails based on key words (such as <code>malware</code>, <code>suspicious</code>, <code>phish</code>, and <code>hack</code>) found in message bodies and subject lines. (Citation: Microsoft Cloud App Security)
In some environments, administrators may be able to enable email 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.(Citation: Microsoft Mail Flow Rules 2023) Adversaries that abuse such features may be able to automatically modify or delete all emails related to specific topics (such as internal security incident notifications).
View in MITRE ATT&CK®Capability ID | Capability Description | Mapping Type | ATT&CK ID | ATT&CK Name |
---|---|---|---|---|
AC-04 | Information Flow Enforcement | Protects | T1564.008 | Email Hiding Rules |
CM-03 | Configuration Change Control | Protects | T1564.008 | Email Hiding Rules |
CM-05 | Access Restrictions for Change | Protects | T1564.008 | Email Hiding Rules |
CM-07 | Least Functionality | Protects | T1564.008 | Email Hiding Rules |
SI-03 | Malicious Code Protection | Protects | T1564.008 | Email Hiding Rules |
SI-04 | System Monitoring | Protects | T1564.008 | Email Hiding Rules |
SI-07 | Software, Firmware, and Information Integrity | Protects | T1564.008 | Email Hiding Rules |
PUR-AS-E5 | Audit Solutions | Technique Scores | T1564.008 | Email Hiding Rules |
EOP-MFR-E3 | Mail Flow Rules | Technique Scores | T1564.008 | Email Hiding Rules |
DEF-SecScore-E3 | Secure Score | Technique Scores | T1564.008 | Email Hiding Rules |
DEF-IR-E5 | Incident Response | Technique Scores | T1564.008 | Email Hiding Rules |
DEF-AIR-E5 | Automated Investigation and Response | Technique Scores | T1564.008 | Email Hiding Rules |