Pre-filtering tries to stop malicious messages before they reach users by analyzing sender reputation, content, and patterns associated with phishing. Attachment scanning focuses on files already associated with a message and checks them for malware or unsafe content. Together, they address different parts of the same delivery chain and reduce residual risk.
How pre-filtering and inbox attachment scanning split the work
Pre-filtering operates on the message as it enters the mail pipeline. Its job is to decide whether the email should be blocked, quarantined, or delivered based on signals such as sender reputation, spoofing indicators, language patterns, and other phishing traits. attachment scanning works later, once a message is already associated with a file, and inspects that payload for malware, weaponised documents, macros, archives, or other unsafe content.
The practical difference is scope. Pre-filtering is a message-level control that reduces how often users ever see malicious mail. Attachment scanning is a content-level control that reduces the chance that an attached file can execute, detonate, or deliver a malicious payload after delivery. They are complementary because one helps stop suspicious messages before exposure, while the other checks a specific object inside the message chain.
That distinction matters because phishing is not only about a bad file. Many attacks rely on a link-only lure, a credential-harvesting message, or a socially engineered request with no attachment at all. In those cases, pre-filtering may be the only relevant inbox-stage control. By contrast, a message can look ordinary enough to pass mail checks yet still carry a malicious attachment, which is where scanning adds value.
Where each control is strongest, and where it is weak
Pre-filtering is strongest when the fraud pattern is visible before delivery. It can correlate sender infrastructure, message structure, and known phishing behaviours, which makes it useful for broad volume reduction and for catching campaigns that reuse infrastructure or lures. It is weaker when the attacker uses a fresh domain, trusted-compromised sender, or a highly tailored social engineering message that does not look obviously malicious.
Attachment scanning is strongest when the risk is in the file itself. It can detect malware signatures, suspicious document behaviours, embedded scripts, or archive tricks that would otherwise be missed by message heuristics. It is weaker when the attachment is benign-looking but the attack happens through the body of the message, a link to an external site, or a delayed payload that only becomes dangerous after user action.
For teams that want a concrete operating model, the right mental shortcut is this: pre-filtering answers “should this message arrive?”, while attachment scanning answers “if the message arrives with a file, is that file safe enough to trust?” A mature email security stack usually needs both, because each one leaves a different residual risk path open.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | 8 — Audit Log Management | Email filtering and attachment inspection depend on detection visibility and reviewability. |
| 9 — Email and Web Browser Protections | This control directly covers phishing filtering and malicious email delivery defenses. | |
| 10 — Malware Defenses | Attachment scanning is a malware-control function at the inbox boundary. | |
| Recommendation — Log mail gateway and attachment-detonation events for alerting, triage, and investigation. Configure mail protections to block phishing, malware, and dangerous attachments before user exposure. Scan inbound attachments and detonate suspicious files before allowing execution or user access. | ||
| NIST CSF 2.0 | PR.DS — Data Security | Inbox attachment scanning helps protect content from malicious payload delivery. |
| DE.CM — Security Continuous Monitoring | Pre-filtering and attachment scanning rely on continuous detection of suspicious mail patterns. | |
| PR.PT — Protective Technology | Both controls are protective technologies that reduce inbound email risk at delivery time. | |
| Recommendation — Inspect inbound files to reduce malicious content exposure before it reaches users. Continuously monitor email ingress for phishing indicators, malware, and anomalous file behavior. Deploy layered email protection that filters messages and inspects attachments at the gateway. | ||
| MITRE ATT&CK | T1566 — Phishing | The question is about two defensive controls against phishing delivery paths. |
| T1204 — User Execution | Attachment scanning matters because malicious files often rely on user action to trigger compromise. | |
| Recommendation — Map observed mail patterns to phishing techniques and tune controls against the delivery method used. Harden attachment handling and block file types that depend on user execution to activate. | ||
Practitioner Guidance
What to prioritise: Treat pre-filtering as the first-line reduction in user exposure and attachment scanning as a second-line payload control. If you only have one place to improve, prioritise the control that matches the most common attack path in your environment, link-based phishing or attachment-based malware.
What to verify: Confirm whether your mail security platform scans in transit, at delivery, and after detonation, because a single scan point can miss content that changes reputation or behaviour later. Also verify whether compressed files, password-protected archives, and document macros are actually covered, not just implied by policy.
Common mistake: Teams often assume that strong attachment scanning makes phishing filtering “good enough.” It does not, because many of the highest-frequency phishing messages contain no malicious file at all. Conversely, strong phishing detection does not eliminate the need for payload inspection when users still receive attachments from trusted or compromised senders.
Practitioner takeaway: The most effective inbox defence is layered separation of concerns, reduce malicious delivery first, then inspect the file content that survives delivery.
Risk and Threat Considerations
Email security fails most often when organisations treat one layer as if it covers the whole phishing chain. If pre-filtering is weak, more malicious mail reaches users; if attachment scanning is weak, a convincing message can still deliver a harmful payload. Attackers exploit that split by choosing the path that the weaker control does not inspect.
Failure mechanism: Phishing campaigns either bypass message-level suspicion through trusted, compromised, or fresh sender infrastructure, or they hide the malicious part in an attachment that only later reveals its behaviour when opened, enabled, or detonated.
Impact: The result can be credential theft, malware execution, initial access, or broader compromise of mail, endpoint, and downstream business systems, with residual risk persisting even when one inbox control is operating as designed.
Related resources from NHI Mgmt Group
- What is the difference between pre-deployment scanning and runtime protection?
- What is the difference between analysing phishing emails with multiple specialised agents and using a single classifier?
- What is the difference between file-level scanning and native DWG parsing for security teams?
- What is the difference between line-level ignores and path-level excludes in application security scanning?