By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Cookie Policy for more information.

How to Spot and Block Malicious Inbox Rules in Microsoft 365

One hidden inbox rule can quietly copy your email to an attacker for months. Here's how it happens and the single setting that shuts it down.

How to Spot and Block Malicious Inbox Rules in Microsoft 365
share on

TL;DR

  • A malicious inbox rule is a normal Outlook feature turned against you. Once attackers get into a mailbox, one rule can forward, hide or delete email automatically, with no malware and no warning to the user.
  • The rule keeps working after the attacker signs out, and a password reset on its own doesn't remove it.
  • Anyone can run three quick checks in Outlook: unfamiliar rules, forwarding they didn't turn on, and email that goes missing or arrives already read.
  • Admins can block automatic forwarding to external addresses with one setting in the Microsoft Defender outbound spam policy, then allow exceptions only where there's a real business need.

Nobody hacked the CFO's inbox. Not in the way anyone pictures it, anyway.

Months ago, she signed in to what looked like a routine request. The attacker who captured that sign-in didn't encrypt any files or send a ransom note. They added one inbox rule: copy any email containing "invoice," "payment" or "wire" to an outside address. Then they signed out.

The rule kept working. Every vendor invoice, every banking update and every approval thread went to a stranger, who learned which suppliers the company paid, what normal amounts looked like and when the next payment was due. When the fraudulent payment request finally arrived, it didn't look like phishing. It looked like the next email in a conversation the attacker had been reading the whole time.

The story is illustrative. The technique is not. Malicious inbox rules are a common feature of business email compromise (BEC), and they're one of the quiet steps in the chained attacks we break down in the Mythos-Ready Microsoft 365 Security Playbook. Attackers don't need a zero-day when a forgotten setting will do the work for them.

Free playbook
The inbox rule is step four. Are steps one to three still open?
Attackers chain small Microsoft 365 settings into one quiet breach. Take the 10-second check, then see the full chain in the playbook.
Quick check: can you confirm…
Tick what you can confirm today.
Get the free playbook
12 settings · 15-minute scorecard · 90-day plan

How can hackers read your email without you knowing?

Hackers read your email without you knowing by signing in to your mailbox once, usually with a phished password or stolen session, and adding a hidden inbox rule. The rule automatically forwards, hides or deletes selected messages, so copies keep flowing to the attacker long after they leave. There's no malware and no warning.

That's what makes malicious inbox rules different from most attacks. They don't need ongoing access. They turn your own mailbox into the delivery mechanism.

How does a malicious inbox rule work?

Inbox rules exist for good reasons. People use them to file newsletters, flag messages from their manager or forward mail while they're away. Attackers use exactly the same feature. Once they're inside a mailbox, a malicious rule usually does one or more of the following:

  • Forwards or redirects email outside the company. Every message, or only messages that match certain words, goes to an external address the attacker controls.
  • Hides the evidence. Matching messages are moved to a folder nobody opens, such as RSS Subscriptions, Notes or Junk Email, and are often marked as read so nothing looks new.
  • Deletes the warnings. Replies that could expose the attack, like "Did you really send this?" or anything mentioning "phish" or "suspicious," are deleted before the user sees them.
  • Targets money conversations. Keyword filters such as "invoice," "payment" or "bank" let the attacker follow only the threads they can turn into cash.

From there, the attacker has a live feed of your business. They learn who approves payments, how your vendors write and what a normal request looks like. That's the raw material for business email compromise: a fake invoice or a "we've changed our banking details" email that's convincing because it was built from your real conversations.

Inbox rules aren't the only route. Users can also switch on forwarding in their Outlook settings, and admins can set forwarding on a mailbox. Attackers will use whichever door is open.

Why does nobody notice a hidden inbox rule?

Malicious inbox rules can run for months because they look like normal email behavior. Here's why they slip through:

  • Nothing breaks. The user still receives most of their email. Forwarding a copy doesn't remove the original unless the attacker wants it to.
  • There's nothing for antivirus to find. No attachment, no malicious link and no unusual software. The rule is just a setting stored in the mailbox.
  • A password reset doesn't remove it. The rule lives in the mailbox, not in the attacker's session. Microsoft's guidance for compromised accounts treats reviewing inbox rules and forwarding as its own step, separate from resetting credentials.
  • Not every rule shows up where users look. Microsoft tells admins to review inbox rules including hidden ones, which means the list a user sees in Outlook isn't always the full picture.
  • Nobody owns the question. Users assume IT is watching. IT assumes forwarding is blocked by default. Often, nobody has checked.

Speed makes it worse. As we covered in Anthropic's Claude Mythos AI: The Enterprise Security Threat That Changes Everything, AI is shrinking the time it takes attackers to find and chain weaknesses together. Creating an inbox rule takes seconds. If your detection depends on someone eventually noticing, the attacker is already months ahead. And the stakes are real: in the Microsoft Digital Defense Report 2025 findings we summarized in What Matters Now for Microsoft 365 & Azure Leaders, 80% of reactive incident response cases showed data collection and 51% confirmed exfiltration.

Here's the part most inbox-rule advice skips: the rule is never the attacker's first move. In the attack walkthrough inside our Mythos-Ready Microsoft 365 Security Playbook, the inbox rule is step four of five. Three settings had already failed before anyone wrote it. A fifth made sure nobody could prove it afterward.

What are 3 signs of a malicious inbox rule in your own Outlook?

You don't need admin rights to check your own mailbox. These three checks take a couple of minutes in new Outlook or Outlook on the web.

1. Rules you didn't create

Go to Settings > Mail > Rules and read every rule on the list. Look for:

  • Rules you don't remember creating, especially ones with names that don't mean anything
  • Any rule that forwards or redirects email to an outside address
  • Rules that move messages to RSS Subscriptions, Notes or Junk Email, or delete them
  • Rules triggered by words such as "invoice," "payment," "wire" or "password"

In classic Outlook, you'll find the same list under Home > Rules > Manage Rules & Alerts.

Check Settings > Mail > Rules for rules you didn't create

2. Forwarding you didn't turn on

Go to Settings > Mail > Forwarding. If forwarding is on and you didn't set it up, or it points to an address you don't recognize, treat it as a red flag. Unlike a rule, this setting forwards everything.

3. Email that goes missing or reads itself

Watch for small, strange patterns: replies you were expecting that never arrive, messages already marked as read when you open them, contacts asking about emails you never sent, or items in Sent Items or Deleted Items you don't recognize. Each one can have an innocent explanation. Together, they're worth reporting.

Found something? Don't just delete the rule and move on. Report it to IT or security right away. A malicious rule usually means someone had access to your account, and your security team needs the rule's details to work out what was taken and whether other mailboxes are affected.

Which admin setting blocks external auto-forwarding in Exchange Online?

Checking mailboxes one at a time doesn't scale. The control that does is the outbound spam policy in Microsoft Defender. Set it once, and automatic forwarding to external addresses is blocked for every mailbox the policy covers, whether the forwarding comes from an inbox rule or a mailbox forwarding setting.

To block external auto-forwarding in Exchange Online:

  1. Sign in to the Microsoft Defender portal and go to Email & collaboration > Policies & rules > Threat policies > Anti-spam.
  2. Select Anti-spam outbound policy (Default) to open its details.
  3. Select Edit in the protection settings section.
  4. Under Forwarding rules, set Automatic forwarding rules to Off - Forwarding is disabled.
  5. Save your changes.
Microsoft Defender outbound spam policy with automatic forwarding set to Off
One switch forwards everything. Make sure you know if it's on.

A few things to know before you make the change:

  • Don't rely on the default. The default value, Automatic - System-controlled, doesn't behave the same way in every tenant. Microsoft switched it to block forwarding in 2021 for new organizations and many existing ones, but some older tenants can still allow forwarding under that value. Microsoft recommends choosing On or Off explicitly.
  • Internal forwarding still works. The setting only affects forwarding to external recipients. Forwarding between colleagues isn't affected.
  • Blocked forwards bounce. When an external forward is blocked, the sender usually receives a non-delivery report with error 5.7.520, saying the organization doesn't allow external forwarding. If people start reporting that error, you'll know why.
  • Handle real exceptions on purpose. If a team genuinely needs to forward externally, create a separate outbound spam policy that allows forwarding for just those mailboxes. Give every exception a named owner and a review date.

Before you switch it off, find out who's already forwarding. The Auto forwarded messages report in the Exchange admin center shows which users forward email outside the organization, how they do it (inbox rule, mailbox forwarding or mail flow rule) and which external domains receive it. Its insights also flag new forwarding users and new destination domains. Any forwarding nobody can explain is a mailbox to investigate, not just a setting to switch off.

Exchange admin center report showing which users forward email to external domains
See who already forwards email outside your organization

What this setting doesn't do

Blocking external forwarding stops the silent copy. It doesn't stop an attacker who is signed in to the mailbox from reading it directly, and it doesn't remove rules that hide or delete messages. Forwarding built with Power Automate also needs its own controls. Treat this setting as one link you remove from the chain, alongside:

Microsoft Defender XDR alert queue showing a suspicious inbox manipulation rule alert
Defender can flag suspicious rules. Someone still has to act on the alert.

FAQs

Is external email forwarding blocked by default in Microsoft 365?

Not reliably. The default setting, Automatic - System-controlled, has blocked external forwarding for new tenants since 2021, but some older tenants can still allow it. The safe move is to set the outbound spam policy to Off - Forwarding is disabled explicitly, then confirm the result with the Auto forwarded messages report.

Will blocking external auto-forwarding break anything?

It can stop legitimate forwarding to outside addresses, such as a shared mailbox that forwards to a vendor or someone forwarding work email to a personal account. Review the Auto forwarded messages report first, then allow genuine cases through a separate policy with a named owner.

Does resetting a password remove a malicious inbox rule?

No. The rule is stored in the mailbox and keeps running after the password changes. Responders need to review and remove inbox rules and mailbox forwarding as a separate step, along with signing the user out of active sessions and checking for other ways back in.

Does blocking auto-forwarding stop all email exfiltration?

No. It closes the quietest path, but an attacker with mailbox access can still read, download or send email directly. Pair it with phishing-resistant MFA, alerts on new inbox rules and a response plan your team has actually tested.

The rule was step four. What were steps one to three?

A malicious inbox rule is rarely the whole attack. It's the step that turns one stolen sign-in into months of silent data theft. Someone still had to get in first, and the settings that let them in are probably still open.

The free Mythos-Ready Microsoft 365 Security Playbook follows that attack from the first click to the last trace and shows where each step could have been stopped. Inside you'll find:

  • The 12 settings AI-driven attackers chain together, and where to check each one
  • A self-assessment that scores your tenant in under 15 minutes
  • A 90-day plan to close the gaps with controls you probably already own

You've just closed one door. Find out how many are still open.

Get the free playbook →

Similar posts

Get our perspectives on the latest developments in technology and business.
Secure AI Governance

Working on Copilot governance?

Copilot can surface what people shouldn't see. Three ways we help:

  • Copilot Readiness Accelerator
  • AI Governance Assessment
  • Agent PMO Setup
Book a 30-minute call
Client result
~8 weeks

A professional organization built a Purview-based foundation for secure AI adoption with 2toLead.

Read the case study →
Next steps
Have a question, or just say hi. 🖐 Let's talk about your next big project.
Contact us
Mailing list
Occasionally we like to send clients and friends curated articles that have helped us improve.
Close Modal