Mail Rules Persistence is a persistence technique where an attacker creates or modifies email inbox rules to keep access hidden and maintain control after initial compromise. These rules can silently forward, delete, move, or mark messages, helping preserve access to sensitive communications and evade detection in email systems.
What Mail Rules Persistence Means in an Email Environment
Mail rules persistence is not just inbox manipulation, it is a post-compromise control technique. The attacker uses legitimate mail filtering features to keep the mailbox usable, but less visible to the owner, security team, or incident responder.
Because the rules operate inside normal email functionality, they often blend into routine user activity. That makes the technique especially effective for maintaining access to business email, hiding alerts, and shaping what the victim sees after compromise.
How the Technique Works
Attackers typically create or alter rules that forward messages, delete messages, move sensitive mail out of view, or auto-mark mail as read. Each action serves a different purpose, but the common goal is the same: preserve operational access to the mailbox while reducing the chance of obvious detection.
Persistence here does not require a separate malware implant. The rule itself becomes the durable mechanism, so even if the initial login vector is closed, the attacker may still receive targeted mail, monitor communications, or suppress evidence of their presence.
Why Mailbox Rules Are a Security Problem
Email inbox rules can expose confidential correspondence, reset links, MFA prompts, invoices, legal notices, and internal approvals. When an attacker controls those rules, they can redirect sensitive traffic to an external mailbox or simply hide it from the legitimate user.
This is especially dangerous in cloud email platforms where mail is a central workflow hub. A hidden rule can become a low-noise access path that survives password resets if the attacker still has an active session, a trusted device, or another foothold in the account.
What Defenders Look For and Why It Matters
Defenders look for unfamiliar forwarding destinations, recently created inbox rules, rules that suppress notifications, and changes made from unusual IP addresses or devices. Review of mailbox configuration, audit logs, and recent authentication activity helps separate ordinary user behaviour from compromise.
Mailbox-rule abuse often travels with broader identity compromise, so it is useful to pair rule review with session review, sign-in review, and related mailbox activity review. NHI Management Group’s Identity Threat Detection and Response (ITDR) Guide is a good starting point for understanding how identity-focused detection and response should handle persistence and account abuse. Where the mailbox is part of Microsoft 365, Microsoft 365 Security Guide is useful for mail auditing, anti-phishing controls, and tenant hardening. For a concrete example of rule-based persistence in a real intrusion campaign, see Salt Typhoon telecom intrusions 2025.
Risk and Threat Considerations
Mail rules persistence creates a quiet but powerful post-compromise foothold because the attacker can continue receiving, hiding, or reshaping email without needing obvious malware on the endpoint. The technique is dangerous precisely because it exploits trusted mailbox features that users and defenders often assume are benign.
Failure mechanism: Once an attacker can authenticate to the mailbox, they can create or modify rules that silently move, forward, or delete messages, allowing the compromise to persist through normal user workflows and conceal warning signs.
Impact: The organisation may lose visibility into sensitive communications, miss alerts and recovery messages, and leave the attacker in a position to sustain access, follow business activity, or support further identity abuse.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1114 — Email Collection | Mailbox rules are used to collect and redirect email after compromise. |
| Recommendation — Map suspicious rule changes to email collection activity and alert on message-forwarding or suppression patterns. | ||
| NIST CSF 2.0 | DE.CM-09 — Monitoring for Unauthorized Personnel, Connections, Devices, and Software | Mailbox-rule abuse is a monitoring anomaly in an identity-centered environment. |
| Recommendation — Monitor mailbox configuration changes and investigate unauthorized rule creation or forwarding. | ||
| NIST SP 800-53 Rev 5 | AU-6 — Audit Review, Analysis, and Reporting | Mailbox-rule abuse is best surfaced through audit review and anomaly analysis. |
| Recommendation — Review mailbox and sign-in audit records for rule creation, forwarding, and message-suppression changes. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Improper Offboarding | Persisted mailbox access can survive normal ownership changes if rules remain in place. |
| NHI-10 — Human Use of NHI | Mailboxes and their automated rules can be abused as standing access paths after compromise. | |
| Recommendation — Remove mailbox rules and related access paths during offboarding and account recovery. Separate human workflow mail from automated access patterns and inspect any rule that redirects sensitive mail. | ||
Practitioner Guidance
Why practitioners should care: Mail rules persistence is often a symptom of account compromise, not a standalone nuisance. Treat unexpected mailbox-rule changes as an investigation trigger, especially when they coincide with unusual sign-ins, suspicious consent activity, or new forwarding behaviour.
What to watch for: Rules that forward externally, hide or delete messages, move mail out of primary folders, or target security notifications deserve immediate review. The key judgement is whether the rule preserves attacker visibility while reducing user visibility, because that pattern is what makes the persistence durable.
Related resources from NHI Mgmt Group
- What is the difference between malicious mail rules and OAuth persistence in SaaS compromises?
- Why do inbox rules create persistence risk in Microsoft Exchange?
- How should security teams govern external mail forwarding rules?
- What breaks when mail flow rules allow unauthenticated relay into a tenant?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 23, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org