BEC & Exchange Forensics · T1114.003

Detecting Malicious New-InboxRule and Set-InboxRule in Microsoft 365 Audit Logs

Direct Answer (Key Forensic Takeaway)

When Business Email Compromise attackers take over an Exchange Online mailbox, they routinely execute New-InboxRule or Set-InboxRule to mark replies read, delete phishing warnings, divert emails to RSS Feeds or Conversation History, or forward mail externally. Inspect AuditData.Parameters for MoveToFolder, DeleteMessage, MarkAsRead, ForwardTo, and RedirectTo—all flagged automatically by AuditVane rule AV-001.

Why This Artifact Matters in M365 Incident Response

Nearly every successful Microsoft 365 Business Email Compromise follows an unmistakable post-exploitation playbook: within minutes of replaying a stolen AiTM session cookie or logging in via compromised credentials, the attacker opens Outlook settings or Exchange REST APIs to plant a stealth Inbox Rule before sending a single fraudulent wire request.

Why? Because the attacker needs uninterrupted control over the conversation. If an Accounts Payable clerk replies "Wait—why did your banking routing number change?" or a coworker asks "Did you really send that shared document?", a well-placed rule intercepts the reply, marks it read, and sweeps it out of the Inbox before the victim ever spots it.

In Microsoft Purview Unified Audit Logs (RecordType 1: ExchangeAdmin), PowerShell, REST, and admin-portal rule changes emit New-InboxRule, Set-InboxRule, or Enable-InboxRule with a richly populated Parameters array inside AuditData JSON. Attackers deliberately disguise rule names using single punctuation symbols like ".", "..", "-", or harmless-looking labels like "Sync" or "Archive1".

Inspecting the flattened Parameters tells you the exact filter conditions (SubjectOrBodyContainsWords, From, SentOnlyToMe) and actions (MoveToFolder, MarkAsRead, DeleteMessage, ForwardTo, ForwardAsAttachmentTo, RedirectTo). AuditVane rule AV-001 automatically flattens Parameters and raises a Critical alert whenever stealth hiding folders or external diversion flags appear.

1. RAW TELEMETRY BEC & Exchange Forensics T1114.003 2. CLIENT-SIDE PARSE AuditVane Engine New-InboxRule audit log detection 0 Bytes Uploaded 3. SOC OUTCOME Scoped Containment IOCs · CSV · KQL
Local browser DFIR workflow for New-InboxRule audit log detection (T1114.003)
AdSense-Ready In-Article Placement

Real-World Incident Walkthrough

At 08:12 UTC, an attacker replays an Evilginx session cookie into a finance director’s account from 185.220.101.45 using axios/1.7.7. After searching Exchange for "wire transfer OR invoice OR ACH" at 08:14 UTC, the attacker runs New-InboxRule at 08:18 UTC named ".." targeting messages containing "invoice;wire;payment" with MoveToFolder="RSS Feeds" and MarkAsRead="True".

Over the next 48 hours, three vendor confirmation emails land silently inside RSS Feeds marked as read while the finance director sees an ordinary empty Inbox—until AuditVane flags AV-001 on the Purview UAL export and reveals both the exact rule criteria and the attacker IP.

Forensic Telemetry Fields & High-Signal Indicators

Telemetry Field / Pattern Meaning in M365 / Entra High-Signal Threat Indicator
Parameters.NameDisplay label assigned to the inbox ruleSingle characters (., .., -) or fake "Sync" names
Parameters.MoveToFolderDestination folder where intercepted mail movesRSS Feeds, Conversation History, Deleted Items, Junk
Parameters.MarkAsRead = TrueClears bold unread notification badgeNearly universal in stealth BEC hiding rules
Parameters.DeleteMessage = TrueDeletes matching messages immediatelySilences phishing replies and security alerts
Parameters.ForwardTo / RedirectToForwards/redirects copies externallyExposes attacker external drop mailbox
Parameters.SubjectOrBodyContainsWordsKeywords targeted by the attackerinvoice, wire, bank, ACH, payment, phishing, hacked

Benign Employee Inbox Rules vs. Malicious BEC Rule Signatures

Rule AttributeTypical Employee Productivity RuleBEC Attacker Stealth Rule
Rule NameDescriptive ("Newsletters", "Jira Alerts")Punctuation (".", "..", "1") or random characters
Target FolderCustom named project foldersBuilt-in neglected folders (RSS Feeds, Conversation History, Trash)
MarkAsRead + DeleteMessageRarely combined with keyword trapsAlmost always MarkAsRead=True or DeleteMessage=True
Originating ClientIPCorporate office or home ISPForeign VPS, Tor exit, or residential proxy IP

Stealth BEC New-InboxRule AuditData Payload

{
  "CreationTime": "2026-12-01T08:18:55Z",
  "Operation": "New-InboxRule",
  "RecordType": 1,
  "Workload": "Exchange",
  "UserId": "finance.director@contoso-demo.invalid",
  "ClientIP": "185.220.101.45:51422",
  "Parameters": [
    { "Name": "Name", "Value": ".." },
    { "Name": "SubjectOrBodyContainsWords", "Value": "invoice;wire;payment" },
    { "Name": "MoveToFolder", "Value": "RSS Feeds" },
    { "Name": "MarkAsRead", "Value": "True" }
  ]
}

Notice how every crucial IOC lives inside the nested Parameters array. Once AuditVane flattens the JSON, AuditData.Parameters.SubjectOrBodyContainsWords reveals the exact fraud keywords and AuditData.Parameters.MoveToFolder points responders directly to RSS Feeds to recover intercepted messages.

Inspect, Export & Remove Malicious Mailbox Inbox Rules via PowerShell

Connect-ExchangeOnline
Get-InboxRule -Mailbox "finance.director@domain.com" -IncludeHidden |
  Format-List Name, RuleIdentity, Enabled, Priority, SubjectOrBodyContainsWords, MoveToFolder, DeleteMessage, MarkAsRead, ForwardTo, RedirectTo
# Remove confirmed attacker rule:
Remove-InboxRule -Mailbox "finance.director@domain.com" -Identity ".." -Confirm:$false

Sample PowerShell Inbox Rule Audit Output

Name                       : ..
Enabled                    : True
SubjectOrBodyContainsWords : {invoice, wire, payment}
MoveToFolder               : RSS Feeds
MarkAsRead                 : True

Step-by-Step Triage, Containment & Verification

  1. Drop exported Purview UAL CSV files into AuditVane and click any AV-001 Critical card to filter all inbox rule mutations.
  2. Run Get-InboxRule -Mailbox <UPN> -IncludeHidden immediately to inspect both visible and hidden MAPI rules on the live mailbox.
  3. Before deleting the rule, check the destination folder (e.g., RSS Feeds, Conversation History, Deleted Items) for intercepted vendor or victim correspondence.
  4. Remove the malicious rule via Remove-InboxRule and inspect Sent Items + Recoverable Items for outbound fraudulent emails.
  5. Revoke all active user sessions (Revoke-MgUserSignInSession), reset the password, and audit Entra MFA methods (AV-004) and OAuth consents (AV-005).
  6. Sweep all other tenant mailboxes via PowerShell to ensure the attacker did not pivot laterally and plant similar rules elsewhere.

How to Verify Containment Completed Cleanly

  • Get-InboxRule -IncludeHidden confirms zero suspicious or unnamed rules remain.
  • All emails inside RSS Feeds / Conversation History / Deleted Items reviewed and restored if legitimate.
  • Session tokens revoked and MFA methods verified with the employee out-of-band.

Analyst Blind Spots, Licensing Quirks & False Positives

Do not rely solely on New-InboxRule when searching audit logs! Outlook on the Web (OWA) and EWS clients routinely log UpdateInboxRules instead of New-InboxRule, and modifying an existing benign rule logs Set-InboxRule.

Simply deleting a malicious rule does NOT automatically move diverted vendor emails back to the Inbox, nor does it revoke the stolen refresh token the attacker used to create it.

Frequently Asked Questions

Does New-InboxRule capture rules created in Outlook on the Web (OWA)?

OWA often emits UpdateInboxRules rather than New-InboxRule—which is why AuditVane rule AV-001 monitors New-InboxRule, Set-InboxRule, and UpdateInboxRules together.

Why do BEC attackers move mail to RSS Feeds or Conversation History?

Those are standard hidden-in-plain-sight Exchange folders employees almost never open, letting attackers read intercepted replies cleanly without generating unread counts.

Can an attacker hide an inbox rule from Get-InboxRule?

Hidden MAPI rules vanish from standard Outlook UI and standard Get-InboxRule unless you explicitly include the -IncludeHidden parameter.

Does AuditVane show the rule parameters without PowerShell?

Yes—click any flagged AV-001 event row in AuditVane to view every flattened Parameters.* key in the Event Inspector.

Related Forensics Guides