Can be used to automate the abuse of Outlook Rules to establish persistence.1
Outlook Rules T1137.005
- Tactic
- Persistence
- Platforms
- Windows, Office Suite
- Version
- 1.2
- Created
- 07 November 2019
- Last modified
- 24 October 2025
- Contributor
- Microsoft Security
Adversaries may abuse Microsoft Outlook rules to obtain persistence on a compromised system. Outlook rules allow a user to define automated behavior to manage email messages. A benign rule might, for example, automatically move an email to a particular folder in Outlook if it contains specific words from a specific sender. Malicious Outlook rules can be created that can trigger code execution when an adversary sends a specifically crafted email to that user.[1]
Outlook Rules MITRE reference T1137.005
1 software entry is documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
All 1 software entries for this technique
Offense vs defense T1137.005
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
Outlook Rules detection strategy DET0095
MITRE names one behaviour worth catching for this technique and breaks it into 2 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detect Persistence via Malicious Outlook Rules
AN0263 · Windows
Adversary uses a tool like Ruler or MFCMapi to create a malicious Outlook rule that triggers execution upon receipt of a crafted email. On email delivery, Outlook executes the rule, resulting in code execution (e.g., launching mshta.exe or PowerShell). Outlook spawns a non-standard child process, often unsanctioned, without user interaction.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Module LoadDC0016 | WinEventLog:Sysmon | EventCode=7 |
| Process CreationDC0032 | WinEventLog:Sysmon | EventCode=1 |
| Application Log ContentDC0038 | WinEventLog:Application | Outlook rule execution failure or abnormal rule execution context |
| Command ExecutionDC0064 | WinEventLog:PowerShell | PowerShell launched from outlook.exe or triggered without user invocation |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| ChildProcessName | Outlook may spawn mshta.exe, powershell.exe, or wscript.exe depending on attacker payload |
| RuleTriggerCondition | Rule execution may depend on message subject, sender, or message header content |
| ParentProcessName | Legitimate Outlook activity should not spawn scripting or interpreter processes |
| TimeWindow | Execution may occur with delay after message receipt or folder interaction |
AN0264 · Office Suite
Adversary adds a new Outlook rule with modified or obfuscated PR_RULE_MSG_NAME and PR_RULE_MSG_PROVIDER attributes using MFCMapi or Ruler. Rule is triggered when email arrives, executing embedded or external code. Mailbox audit logs or Unified Audit Log shows automated rule-triggered action without user interaction.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Application Log ContentDC0038 | m365:unified | Creation or modification of inbox rule outside of normal user behavior |
| Command ExecutionDC0064 | m365:messagetrace | Inbound email matches crafted rule trigger pattern tied to persistence logic |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| AuditPolicyScope | Mailbox rule changes may not be captured unless advanced audit logging is enabled |
| RuleProviderName | Malicious rules may use spoofed or non-standard PR_RULE_MSG_PROVIDER values |
| TriggerSubjectKeywords | Triggering emails may contain uncommon but benign-looking subjects |
| UserContext | Target user account may be inactive or high-value (e.g., VIP, service account) |
On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk.
For the Outlook methods, blocking macros may be ineffective as the Visual Basic engine used for these features is separate from the macro scripting engine. Microsoft has released patches to try to address each issue. Ensure KB3191938 which blocks Outlook Visual Basic and displays a malicious code warning, KB4011091 which disables custom forms by default, and KB4011162 which removes the legacy Home Page feature, are applied to systems.
Tests from Atomic Red Team (MIT licence) · technique definition