Threat Hunting for Suspicious Inbox Rules: How Attackers Hide Activity in Microsoft 365

Written by Sean Grinsell | Nov 9, 2026, 4:45:00 PM

Imagine receiving an important email from your bank, a customer, or your IT department, only for it to disappear from your inbox before you ever see it.

There is no obvious sign that something went wrong. The email wasn't necessarily deleted, and your account may still be functioning normally. It was simply moved somewhere you weren't expecting.

In Microsoft 365, inbox rules are designed to organize email automatically. Most are harmless productivity tools that help users sort messages, prioritize conversations, and reduce clutter.

But when an attacker gains access to an email account, those same rules can be used to conceal malicious activity.

By creating rules that redirect, hide, or automatically process certain messages, an attacker may prevent the account owner from noticing suspicious activity. Security notifications, financial correspondence, and messages related to unauthorized account changes can be moved out of sight.

This makes inbox rule manipulation an important consideration in business email compromise (BEC). Even after an unauthorized login has been identified, malicious rules may remain in place and continue affecting how messages are handled.

For your security program, protecting email means more than preventing phishing messages from reaching users. It also means understanding what happens inside a mailbox after access has been granted.

 

What Are Microsoft 365 Inbox Rules?

Inbox rules are automated instructions that determine how incoming emails are handled in Microsoft Outlook and Exchange Online.

Users can create rules that perform actions when a message meets certain conditions. For example, a rule might automatically move newsletters into a dedicated folder, organize messages from a specific sender, or forward selected emails to another address.

These features are useful for managing busy inboxes and keeping important communications organized.

However, the same functionality can be abused when someone gains unauthorized access to an account.

An attacker may create or modify inbox rules to control which messages remain visible to the user. Depending on the rule, emails can be moved into less frequently checked folders, marked as read, deleted, or forwarded to another address.

The distinction between these actions is important.

Moving or hiding messages can conceal evidence of suspicious activity from the account owner. Forwarding messages externally may allow an attacker to collect sensitive information from incoming correspondence.

Both can appear during business email compromise, but they introduce different risks and require different investigative questions.

An inbox rule is not inherently suspicious because it moves or forwards messages. What matters is whether the rule was authorized, what it does, and whether its behavior aligns with the user's normal email activity.

 

How Attackers Use Inbox Rules to Hide Malicious Activity

Once an attacker has access to a Microsoft 365 mailbox, controlling the flow of incoming messages can help them conceal what they are doing.

For example, an attacker who has gained access to an employee's account may create a rule that automatically moves messages containing certain words into an obscure folder.

Those messages might include security warnings, account notifications, financial correspondence, or replies from people who received suspicious emails from the compromised account.

The user may continue working without realizing that relevant messages are being redirected.

Attackers may also configure rules to mark messages as read, delete them, or forward selected communications elsewhere.

These actions can support several objectives.

 

Concealing Security Notifications

If a user receives an email warning about suspicious account activity, an attacker may attempt to hide that message before it attracts attention.

Moving security-related emails into an unexpected folder can delay the user's awareness of the activity and make the compromise harder to recognize.

 

Hiding Evidence of Email-Based Fraud

Business email compromise can involve fraudulent payment requests, impersonation, or unauthorized correspondence with customers and vendors.

An attacker may attempt to hide replies, warnings, or other messages that could reveal the fraud.

For example, a vendor questioning an unexpected banking change might send a reply that an attacker would prefer the account owner never sees.

 

Maintaining Control Over Mailbox Activity

Malicious inbox rules can continue operating automatically after they are created.

That means an attacker does not necessarily need to manually move each message to conceal relevant correspondence.

Even after the initial security concern is addressed, an unauthorized rule may continue affecting the mailbox until it is identified and removed.

This is why inbox rules deserve attention during both threat hunting and business email compromise response.

A password reset alone does not remove unauthorized inbox rules or confirm that mailbox behavior has returned to normal.

 

Threat Hunting for Suspicious Inbox Rules: What Security Teams Look For

Suspicious inbox rules can be difficult to recognize because the underlying functionality is legitimate and widely used.

Your security team needs to understand which rules exist, how they were created, and whether they are consistent with expected user activity.

Microsoft 365 provides auditing capabilities that can help identify when inbox rules are created or modified. These records provide a starting point for investigating changes that may deserve additional attention.

A threat hunt may focus on several characteristics:

  • Unusual rule names: Rules with obscure, misleading, or unconventional names may deserve review, particularly when combined with suspicious actions.
  • Unexpected destination folders: Messages being moved to folders the user rarely accesses may indicate an attempt to conceal activity.
  • Suspicious filtering conditions: Rules targeting security notifications, financial messages, or other sensitive correspondence can warrant investigation.
  • Recent rule modifications: New or modified rules appearing near suspicious sign-ins or account activity may provide important context.
  • Unfamiliar account activity: The identity, timing, and source of the rule change can help determine whether it was authorized.

One useful hunting approach is identifying inbox rules with unusual naming patterns.

For example, an attacker may use a short, obscure, or seemingly meaningless name to make a rule less noticeable. However, a strange name alone does not establish that a rule is malicious.

An employee might have created an unconventional rule for perfectly legitimate reasons. The more meaningful question is what the rule actually does. Does it move security-related emails to an unexpected folder? Does it process messages from a particular sender? Was it created shortly after unusual account activity? Does the user recognize and understand its purpose?

Consider two rules that automatically move email into separate folders. One was created by an employee to organize routine project updates. The other appeared unexpectedly and moves account security notifications away from the inbox. The underlying functionality is similar, but the business context changes how the activity should be investigated.

This is where threat hunting helps your team move beyond simply identifying unusual rules. By examining rule behavior alongside account activity and audit records, your security team can determine whether a finding reflects normal mailbox organization or a potential attempt to conceal unauthorized activity.

 

What This Means for Your Security Program

Email security is often discussed in terms of stopping malicious messages before they reach an employee.

Spam filtering, phishing protection, and malicious attachment detection are all important, but they address only part of the risk.

Once an attacker gains access to a mailbox, legitimate email features can become tools for hiding activity or collecting information.

Your security program needs visibility into what is happening inside Microsoft 365 accounts, including changes that affect how messages are handled.

That creates several important questions for your team:

  • Can we identify new or modified inbox rules across our Microsoft 365 environment?

  • Do we know which rules automatically move, delete, or forward messages?

  • Can we recognize suspicious changes associated with unusual account activity?

  • Are we monitoring rules that may hide security notifications or sensitive correspondence?

  • Do we have a process for reviewing and removing unauthorized mailbox rules?

  • When an account is compromised, does our response include checking for changes to inbox rules and forwarding settings?

These questions are particularly important during business email compromise investigations.

Securing the account is an essential step, but it does not automatically reverse every change an attacker may have made.

Your response process should consider whether unauthorized rules were created, whether messages were forwarded or hidden, and whether those changes affected business communications.

Microsoft 365 auditing can help your security team investigate rule creation and modification activity. When that visibility is connected to identity monitoring and incident response, it becomes easier to identify suspicious mailbox behavior and determine the appropriate next steps.

There is also an opportunity to improve security operations over time.

Recurring investigations may reveal which mailbox changes are common, which behaviors warrant alerts, and where your organization needs stronger monitoring.

The objective is not to scrutinize every inbox organization preference. It is to recognize when a legitimate email feature is being used in a way that may conceal a security incident.

 

How DotStar Helps

Suspicious inbox rules demonstrate why effective email security requires visibility beyond phishing prevention and account authentication.

DotStar helps organizations and MSP partners strengthen Microsoft security through identity monitoring, threat hunting, detection refinement, reporting, and response workflows.

Our managed security services help your team identify unusual mailbox activity, investigate potential signs of account compromise, and understand what action may be needed.

The goal is to help you get more value from your Microsoft security tools by connecting the information they provide to a proactive, informed security program.

 

Frequently Asked Questions