Don’t let overlooked obligations become incidents. Learn how.
Utility navigation bar redirect icon
Portal LoginSupportContact
Search
Close search
Huntress Logo in Teal
  • Platform Overview
    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace identities and email environments.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Integrations
    Integrations
    Support Documentation
    Support Documentation
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
  • Threats We Stop
    Phishing
    Phishing
    Business Email Compromise
    Business Email Compromise
    Ransomware
    Ransomware
    Infostealers
    Infostealers
    View Allright arrowView Allright arrow
    Industries We Serve
    Education
    Education
    Financial Services
    Financial Services
    State and Local Government
    State and Local Government
    Healthcare
    Healthcare
    Law Firms
    Law Firms
    Manufacturing
    Manufacturing
    Utilities
    Utilities
    View Allright arrowView Allright arrow
    Tailored Solutions
    MSPs
    MSPs
    Resellers
    Resellers
    SMBs
    SMBs
    Compliance
    Compliance
    What Gets Overlooked Gets Exploited

    Most days, nothing happens. But one day, something will.

    Huntress Cybersecurity
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
  • Pricing
  • Community Series
    The Product Lab

    Shape the next big thing in cybersecurity together.

    The Product Lab

    Shape the next big thing in cybersecurity together.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    Resources
    Upcoming Events
    Upcoming Events
    Ebooks
    Ebooks
    On-Demand Webinars
    On-Demand Webinars
    Videos
    Videos
    Whitepapers
    Whitepapers
    Datasheets
    Datasheets
    Cybersecurity Education
    Cybersecurity 101
    Cybersecurity 101
    Cybersecurity Guides
    Cybersecurity Guides
    Threat Library
    Threat Library
    Real Tradecraft, Real Results
    Real Tradecraft, Real Results
    2026 Cyber Threat Report
    2026 Cyber Threat Report
    The Huntress Blog
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
  • Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    The Huntress SOC

    24/7 Security Operations Center

    The Huntress SOC

    24/7 Security Operations Center

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Community

    Get in touch with the Huntress Community team

    Community

    Get in touch with the Huntress Community team

    Compare Huntress
    Bitdefender
    Bitdefender
    Blackpoint
    Blackpoint
    Breach Secure Now!
    Breach Secure Now!
    Crowdstrike
    Crowdstrike
    Datto
    Datto
    SentinelOne
    SentinelOne
    Sophos
    Sophos
    Compare Allright arrowCompare Allright arrow
  • HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    Partners
    MSPs

    Join our partner community to deliver expert-led managed security.

    MSPs

    Join our partner community to deliver expert-led managed security.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Tech Alliances

    Driving innovation through global technology Partnerships

    Tech Alliances

    Driving innovation through global technology Partnerships

    Microsoft Partnership

    A Level-Up for Your Business Security

    Microsoft Partnership

    A Level-Up for Your Business Security

  • Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Awards
    Awards
    Contact Us
    Contact Us
  • Portal Login
  • Support
  • Contact
  • Search
  • Get a Demo
  • Start for Free
Portal LoginSupportContact
Search
Close search
Get a Demo
Start for Free
HomeCybersecurity 101
Inbox Rules

How Huntress Detects Hidden Inbox Rules Across Microsoft 365

Published: 12/05/2025

Written by: Nadine Rozell

Glitch effectGlitch effect

Hidden inbox rules are one of the sneakiest threats in Microsoft 365 today. They're automation filters that run invisibly in a mailbox, letting attackers silently divert, delete, or forward sensitive emails without being seen by standard monitoring tools.

You can't see them in Outlook or the Exchange Online admin center. They just work in the background, making them perfect for business email compromise (BEC) and data theft.

Huntress finds these threats by combining automated detection with human analysis. We give you protection that goes beyond what traditional Microsoft 365 security tools can detect.

Introduction to hidden inbox rules in Microsoft 365

Hidden inbox rules are a go-to tool for attackers. They use them to get persistent access and mess with email flow without triggering alerts.

The security risk is serious. These tactics are the backbone of BEC, which the FBI’s 2024 Internet Crime Report identified as the second costliest cybercrime, accounting for $2.77 billion in losses. Hidden rules can auto-delete critical emails—like payment confirmations or vendor invoices—before anyone sees them. Or, they can forward sensitive info to an attacker's external address, leading to massive data theft.

The main challenge is detection. Standard M365 admin tools only show some inbox rules, leaving security teams blind to the most dangerous ones. This gap creates a perfect environment for threats that can run undetected for months.

Rule Type

Visibility in Standard Tools

Common Attack Uses

Standard Inbox Rules

Visible in Outlook, Exchange Admin

Legitimate automation, basic email management

Hidden Inbox Rules

Not visible in standard interfaces

Auto-delete security alerts, forward sensitive data, filter IT communications

Step 1: The manual way (using PowerShell)

PowerShell is the most direct manual way to find hidden inbox rules. The Get-InboxRule -IncludeHidden command is the industry standard for finding rules that are invisible to normal admin tools.

The -IncludeHidden parameter is key because it forces PowerShell to query the mailbox storage directly, bypassing the filters that hide malicious rules. This shows you all the rules in a mailbox, including those made through MAPI manipulation.

But running this manually across hundreds or thousands of accounts isn't practical. It's a time-consuming, one-off check that has to be scripted and run periodically just to find suspicious patterns.


Step

PowerShell Command

Purpose

1

Connect-ExchangeOnline

Establish authenticated session

2

Get-Mailbox -ResultSize Unlimited

Retrieve all mailboxes

3

Get-InboxRule -Mailbox user@company.com -IncludeHidden

Surface all rules including hidden ones

4

Export-Csv -Path "InboxRules.csv"

Document findings for analysis


Step 2: The deep dive (leveraging MAPI editor)

For an even deeper forensic-level inspection, MAPI editors let you access the underlying Exchange storage properties that standard clients can't reach.

Tools like MFCMAPI can find rules by looking directly at their storage properties, specifically the PR_RULE_MSG_NAME and PR_RULE_MSG_PROVIDER fields that hold the actual rule logic. This deep look can find sophisticated hiding techniques that even PowerShell might miss.

However, this isn't intended for routine checks. Using a MAPI editor is a labor-intensive process that takes special expertise and high-level permissions. It's typically only used for a targeted incident response, not for everyday monitoring.

  • Pros:

    • Deepest level of mailbox rule inspection available

    • Reveals sophisticated hiding techniques

  • Cons:

    • Requires specialized technical expertise

    • Time-intensive for large environments

    • Limited automation capabilities

Step 3: The Huntress way (continuous)

Instead of relying on manual scripts, Huntress builds this detection directly into its platform. Our telemetry includes signals from both Azure Active Directory and Microsoft Exchange, covering a range of events from role escalations to suspicious inbox rules and mailbox permission updates.

This approach does two key things:

  • Finds Existing Rules: Huntress Managed ITDR is built to detect existing malicious inbox rules from the moment a tenant is onboarded. This includes finding "Shadow Workflows," which are malicious rules attackers use to hide activity by auto-forwarding or deleting messages.

  • Correlates with Behavior: Huntress doesn't just look for a rule; we look at the whole picture. Our 24/7 SOC analysts correlate the creation of a suspicious rule with other activity, like a login from an unexpected location, to confirm a real compromise.

Malicious Rule Detection Workflow:

  • Log Collection: Huntress gathers audit events for rule creation and other Exchange activities.

  • Pattern Analysis: The platform automatically flags rules that target sensitive keywords (like "invoice") or move mail to unusual folders. Attackers specifically use these tactics, sometimes moving emails to less-viewed folders like "RSS Feeds" to hide their activity from the user.

  • Behavioral Correlation: The system connects the new rule to other suspicious signals, like a strange login or privilege escalation.

  • Expert Review: A human Huntress SOC analyst reviews the correlated data to verify the threat and rule out false positives.

  • Response: The SOC initiates a response, which can include disabling the rule and isolating the account.

Step 4: Educating users on safe email handling

Teaching users about safe rule creation helps stop attackers from exploiting a simple gap in awareness. After all, the 2025 Verizon Data Breach Investigations Report found that 68% of breaches involve human error. Attackers often use phishing campaigns that trick users into creating their own forwarding rules.

Good security awareness training needs to cover these specific scenarios and teach your team what to look for.

User Best Practices for Email Rule Security:

  • Never create forwarding rules to external email addresses without IT approval.

  • Report any unusual requests to modify email settings or create automation.

  • Regularly review existing rules and remove unnecessary automation.

  • Escalate suspicious rule-related prompts or emails to security teams immediately.

Step 5: Responding to suspicious inbox rules with Huntress

When Huntress detects a suspicious inbox rule, our 24/7 SOC analysts verify the threat and take action.

The response is swift and documented. As part of a managed response, Huntress can revoke the compromised user session and disable suspicious email forwarding or inbox rules to stop the malicious activity. The analyst then handcrafts an incident report to communicate the impact and severity, so you know exactly what happened and what to do next.

Response Stage

Automated Actions

Analyst Activities

Customer Communication

Alert Generation

Rule detection and initial triage

Threat verification and context analysis

Immediate notification of suspicious activity

Containment

Session revocation, rule disabling

Impact assessment, evidence collection

Detailed findings and recommended actions

Remediation / Recovery

Monitoring for re-compromise

Manual remediation guidance; Post-incident analysis

Step-by-step recovery instructions; Final report


The Huntress Identity Security Assessment gives organizations visibility into hidden inbox rules (which we call "Shadow Workflows"), risky login patterns, and rogue applications across their Microsoft 365 environment.

FAQ

Huntress finds malicious inbox rules by analyzing configuration data and telemetry from Microsoft Exchange. We scan for "Shadow Workflows"—rules attackers use to auto-forward or delete messages—and our SOC analysts correlate this with other suspicious activity, like strange logins, to confirm a real threat.

Huntress identifies rules that forward emails externally, auto-delete important messages, or filter emails with sensitive keywords (like "invoice" or "payment"). These are all common patterns used in BEC and other identity-based threats.

Organizations can get a Huntress Identity Security Assessment to get a detailed, point-in-time report on risks in their M365 environment. The report highlights "Shadow Workflows" (malicious inbox rules), as well as other threats like risky logins and rogue applications.

The recommended response includes disabling or deleting the unauthorized rule, resetting the user's credentials, and revoking their active sessions to kick the attacker out.

As part of a managed response, the Huntress SOC has the ability to disable suspicious email forwarding or inbox rules to stop an active threat.


Glitch effectGlitch effectBlurry glitch effect

Protect What Matters

Secure endpoints, email, and employees with the power of our 24/7 SOC. Try Huntress for free and deploy in minutes to start fighting threats.
Try Huntress for Free
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingManaged ISPMManaged ESPMBook a Demo
PhishingComplianceBusiness Email CompromiseEducationFinanceHealthcareManufacturingState & Local Government
Managed Service ProvidersResellersIT & Security Teams24/7 SOCCase Studies
BlogResource CenterCybersecurity 101Upcoming EventsSupport Documentation
Our CompanyLeadershipNews & PressCareersContact Us
Huntress white logo

Protecting 215k+ customers like you with enterprise-grade protection.

Privacy PolicyCookie PolicyTerms of UseCookie Consent
Linkedin iconTwitter X iconYouTube iconInstagram icon
© 2025 Huntress All Rights Reserved.

Join the Hunt

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.

By submitting this form, you accept our Terms of Service & Privacy Policy