Checking for suspicious mailbox rules and forwarding
After taking over an email account, attackers often create hidden rules that forward or delete messages so they can stay unnoticed. This guide explains how to spot those rules, prevent them and respond when you find one.

How attackers use mailbox rules
When someone gains access to an email account, the first thing they often do is set up rules. A forwarding rule quietly sends copies of every message, or just those containing words like invoice, payment or wire, to an outside address. Another rule might move replies from a particular customer into an obscure folder, or delete them, so the real owner never sees that a fraudulent payment request was questioned.
These rules let an attacker keep watching a mailbox even after the password is changed, and they make invoice fraud and payment redirection scams much more convincing. They are one of the most common signs found in business email compromise investigations.
Signs of a suspicious rule
Legitimate rules usually have obvious purposes, such as filing newsletters or sorting messages from a project. Suspicious rules tend to have unusual characteristics. Their names may be a single character, a dot or a random string. They often forward to free email addresses, move mail to folders like RSS Feeds, Archive or Conversation History, or mark messages as read so they do not stand out.
Watch for rules targeting financial keywords, a specific client or supplier, or messages from your IT team or bank.
Attackers sometimes create rules through web access or the mail app on a phone, so a rule may not appear in the desktop version of Outlook straight away. Checking from the web version of the mailbox, or asking an administrator to list rules centrally, gives a more complete picture.
- Forwarding to unfamiliar outside addresses
- Rule names that are blank, a dot or random characters
- Messages moved to rarely used folders
- Messages deleted or marked as read automatically
- Rules targeting payment, invoice or banking words
Block external forwarding
The simplest prevention is to block automatic forwarding to outside addresses for everyone, then allow exceptions only where there is a genuine business need. Microsoft 365 includes outbound spam policies that control automatic external forwarding, and current defaults block it in many tenants. Google Workspace has settings that control whether users can set up automatic forwarding. Confirm what your current setting is rather than assuming.
If a few people genuinely need forwarding, such as a mailbox that must copy an outside system, allow it for those specific accounts and document why.
Check and alert
Even with forwarding blocked, rules that move or delete mail can still hide an attack. Microsoft 365 can alert administrators when new forwarding or redirect rules are created, and these alerts should go to a monitored mailbox or your security provider. Your IT provider can also run a report listing all inbox rules across all mailboxes, which is worth doing periodically and after any suspected compromise.
Staff can check their own rules too. In Outlook, rules can be viewed in the settings for mail. Encourage people to look if something seems wrong, such as replies they expected but never received.
If you find one
A suspicious rule is a strong sign that the mailbox was compromised. Treat it as a security incident. Reset the user's password, sign them out of all sessions, check their multi-factor authentication methods for any that were added by someone else and review recent sign-ins for unusual locations. Remove the rule, but record its details first, since they are evidence.
Then look at what the attacker may have done. Check sent items and deleted items for messages the user did not send. Review audit logs for what was read or downloaded. Warn clients or suppliers who may have received fraudulent messages, and consider whether privacy breach obligations apply if personal information was exposed.
Make it part of the routine
Add a mailbox rule check to your monthly security review and to your offboarding checklist. When anyone in finance or leadership reports a strange email, check their rules as part of the response. These checks take minutes and can catch an ongoing compromise before money changes hands.
- Hidden mailbox rules let attackers watch and hide mail after a takeover.
- Block automatic external forwarding and alert on new forwarding rules.
- Treat a suspicious rule as an incident and investigate fully.