Lesson 5 of 9 · 25m
Gateway and Inbox Controls That Actually Reduce Risk
Layered mail filtering, attachment and URL rewriting, impersonation protection, and inbox rules that catch what authentication cannot.
Email authentication tells you whether a message can prove identity. Gateway controls decide what to do with everything else: newly registered domains, reply-chain anomalies, dangerous attachments, credential-harvesting URLs, lookalike display names, and behavior that makes no business sense. This layer is necessary because attackers often use technically valid infrastructure.
Treat the gateway as a decision pipeline
connection -> authentication -> reputation -> content -> URL/attachment -> user warningDo not evaluate controls as independent magic. A clean SPF/DKIM result can still deliver a phish from a compromised vendor. A malicious attachment can sit behind a benign-looking URL. A display-name impersonation can pass every authentication check because the actual sender domain is attacker-owned but technically valid.
High-value controls
- Block or sandbox executable containers:
.iso,.img,.js,.vbs,.scr, password-protected archives, and macro-enabled Office files from external senders. - Rewrite URLs and evaluate them at click time, not only delivery time; delayed weaponization is common.
- Detonate attachments in a sandbox and inspect behavior, not just signatures.
- Tag external mail clearly, but do not train users that untagged means safe.
- Detect executive and finance-team display-name impersonation using exact names plus fuzzy matching.
- Alert on first-time sender relationships for payment, payroll, credential, and MFA language.
Inbox rules are attacker infrastructure
Attackers create rules to hide replies and forward copies out.
red flags:
- move messages containing 'invoice', 'payment', or attacker keywords to RSS/Archive
- mark original messages read
- forward all mail to an external address
- delete replies from the real vendor or executiveAlert on suspicious forwarding and hidden-folder rules. Require administrative review for automatic external forwarding where the platform allows it. This control catches incidents after the initial phish, when you still have time to prevent fraud.
Warning banners: useful but limited
A short external-sender banner can interrupt autopilot, but banner fatigue is real. If every external message gets a bright warning, users stop seeing it. Reserve stronger interventions for dangerous combinations: first-time sender plus financial language, authentication failure plus executive impersonation, or rewritten URL plus login page.
Measure false positives honestly
Controls that quarantine legitimate invoices or customer mail create workarounds. Track release rates, business complaints, repeat sender patterns, and time spent tuning. A control that users route around is not a control; it is a shadow process generator.
Field notes
- Password-protected attachments bypass naive scanning because the password is usually in the message body.
- URL rewriting can break some security tools and user training if you never show users what rewritten links look like.
- Test controls with a safe internal seed matrix before rollout, including marketing mail, scanners, payroll providers, and forwarded messages.
- Do not rely on user-visible display names; compare the actual sender domain and authentication results.
Was this lesson helpful?