For: Business
Mailbox rules. Find what hides mail.
Once attackers get into a business mailbox, they often add a rule or a forwarding address so replies are moved, deleted or copied to them, and the real owner never sees the warning signs. Find those rules in Microsoft 365 or Google Workspace, check any rule you are not sure about, and work through what to do.
Watch the 1-minute guide 0:54
Transcript
Once attackers get into a business mailbox, they often add a rule or a forwarding address, so replies are moved, deleted or copied to them, and the owner never sees them.
Pick Microsoft 365, Google Workspace or both. The audit shows where to look in Outlook and Gmail, then what to do if you find one.
Not sure about a rule you found? Load the sample: a rule named two dots that moves invoice and payment mail to RSS Feeds. The verdict: Suspicious.
For Microsoft 365, an admin gets read-only commands that list a mailbox's rules, hidden ones too. The commands that change a mailbox come with a warning: a removed rule cannot be restored.
Start with the mailboxes that handle money.
Your email platform
Ticks and this choice are saved in this browser only. Rules, addresses and domains you type below are not saved. Nothing is sent anywhere, and this page cannot see any mailbox. Clear my data on the Privacy page removes the ticks.
Mailbox rules audit
Where to look
What to do if you find one
Show the audit as plain text
Check a rule you found
Describe the rule as Outlook, Gmail or the commands below show it. A sample is ready:
Microsoft 365: read-only checks in PowerShell
For an admin. These commands only read: they list a mailbox's inbox rules (hidden ones too), its forwarding, and every mailbox in the organization that forwards anywhere. Type the mailbox to check and your admin sign-in; the commands update as you type.
Commands that change the mailbox (read the warning first)
WARNING: these commands disable or remove a rule, clear forwarding and sign the person out everywhere. A removed rule cannot be restored. Copy what you found first, and run them only for a rule nobody on the team made. The rule name comes from "Rule name" above.
Checked against Microsoft Learn on 2026-11-29: Get-InboxRule (with -IncludeHidden), Get-Mailbox, Get-EXOMailbox with the Delivery property set (ForwardingAddress, ForwardingSmtpAddress, DeliverToMailboxAndForward), Connect-ExchangeOnline, and Revoke-MgUserSignInSession (Microsoft.Graph.Users.Actions). Module version: ExchangeOnlineManagement 3.11.1, current on the PowerShell Gallery. Since version 3.10.0 the module needs PowerShell 7.6 or later when you run it in PowerShell 7.
What a suspicious rule looks like
- A name that is not a name: "." or "..", a single letter, or a name that copies a real one.
- Mail moved where nobody looks: Microsoft lists rules that move messages to the Notes, Junk Email or RSS Subscriptions folders; Archive and Conversation History hide mail the same way.
- Money words: a rule that deletes or moves messages containing "invoice", "payment", "wire" or "bank", or the words "hacked" and "phishing".
- Forwarding outside: Microsoft lists "Rules that automatically forward email to unknown addresses" and recently added external forwarding.
Report it
If money or bank details went through the mailbox, call your bank first, on a number you already have. Then:
- Money lost or business email taken over: report it to the FBI at IC3.gov.
- Someone broke into your systems: report the cyber incident to CISA at cisa.gov/report.
Report pointers checked live on 2026-11-29.
How this is calculated
How this is calculated
- Steps. Microsoft 365 adds 5 places to look, Google Workspace 4; both get the same 7 steps of what to do. Both platforms: 16 steps. "Done" counts the ticked steps shown.
- Signs Microsoft names. Forwarding to an outside or unknown address, and moving mail to Notes, Junk Email or RSS folders, are from Microsoft Learn's "Respond to a compromised email account". A rule with no real name follows Microsoft's advice to look for "rules with suspicious names".
- Our own judgment. Moving to Archive, Conversation History or Deleted Items, deleting, marking as read, and watching for money words (invoice, payment, wire, bank, ACH, remittance, routing, account, transfer, statement, payroll, W-2, fraud, hacked, phish, scam, password, security, suspicious, verify, urgent) are this tool's own signs.
- Levels. Suspicious: it forwards outside your company domain (an address on your domain or one of its subdomains counts as inside), or it deletes or hides mail and either watches for money words or has no real name. Check with the owner: any other sign, including forwarding when you left the company domain empty. No warning signs: none of the above.
- Commands. A mailbox or admin address that does not look like an email address is replaced with a placeholder ending in .example. Quotes, backticks, dollar signs and line breaks are removed from the rule name before it goes into a command.
Sources
Each read 2026-11-29.
- Microsoft Learn: Detect and remediate Outlook rules and custom forms injection attacks (2026-07-03): "Look for rules that the user didn't create, or any unexpected rules or rules with suspicious names."
- Microsoft Learn: Respond to a compromised email account (2026-07-03): the signs, password reset, app passwords, revoking sessions, MFA, and removing forwarding.
- Microsoft Learn: Get-InboxRule (updated 2026-02-27) and property sets in Exchange Online PowerShell (updated 2026-04-01).
- Microsoft Learn: Connect to Exchange Online PowerShell and the PowerShell Gallery: ExchangeOnlineManagement (3.11.1, published 2026-11-11).
- Microsoft Learn: Configuring and controlling external email forwarding (2026-08-18) and Revoke-MgUserSignInSession (2026-08-07).
- Google Workspace Admin Help: Let users automatically forward their own Gmail emails (updated 2026-11-10) and Gmail log events (updated 2026-11-16).
- Gmail Help: Create rules to filter your emails and Automatically forward Gmail messages to another account.
- FBI IC3: Business Email Compromise: contact the originating financial institution as soon as fraud is recognized to request a recall or reversal.
Learn and practice
- Learn: Hidden mailbox rules: why attackers add them and what to do.
- Business Email Compromise drill and Learn: Business email compromise: the fake bank changes these rules help hide.
- Incident Response Plan: who does what when a mailbox is taken over.
- Employee Offboarding: remove forwarding when someone leaves.