Problem Statement: An Inline Security Pipeline, Not a Spam Filter
Frames phishing link detection as a latency-bound, verdict-critical security pipeline with four architectural planes.
Problem statement
Design a phishing link detector that intercepts inbound messages (email and enterprise chat), extracts every URL, evaluates each link against reputation, heuristics, and optionally a sandbox, then enforces a verdict: deliver cleanly, append a warning, quarantine the message, or rewrite the link so every later click is re-checked through a protection proxy.
The deceptive-link problem is distinct from bulk spam. A targeted credential-harvesting campaign may send only a few hundred messages, perfectly formatted, with no spam signatures at all. The industry consistently reports that the majority of intrusions begin with a deceptive message, and public threat reports from the Anti-Phishing Working Group record hundreds of thousands of unique phishing attacks every quarter. The detector therefore cannot rely on volume signals alone; it must reason about each URL on its own merits.
Why the problem is hard
- Latency is contractual. The mail transfer agent holds the message while we scan. Add 500 ms and delivery queues back up across tens of millions of messages.
- The weapon detonates late. A link that is clean at delivery time can be re-pointed to a credential-harvesting page hours later. Detection at delivery time is necessary but not sufficient; we need time-of-click protection and retroactive rescanning.
- False positives are business incidents. Blocking a password-reset link, an invoice, or a calendar invite from a legitimate domain generates help-desk storms and trains users to bypass security.
- Adversaries adapt weekly. Lookalike domains, homoglyph labels, compromised legitimate sites, and redirect chains all move the detection target continuously.
The four architectural planes
- Detection plane — extraction, canonicalization, reputation lookup, heuristics, ML scoring, sandbox detonation.
- Data plane — domain/URL verdict stores, threat-intel ingestion, feature pipelines, audit log.
- Enforcement plane — MTA/chat integration, link rewriting proxy, user warning pages, quarantine and release workflows.
- Feedback plane — user reports, analyst review, retroscan on verdict change, model retraining, campaign clustering.
A strong answer keeps these planes separate: the enforcement plane must degrade without weakening detection, and the feedback plane must improve models without silently changing the inline verdict path.
Key Highlights
- •Phishing detection is per-URL verdict logic, not bulk spam scoring.
- •Links detonate late: delivery-time verdicts must be paired with time-of-click re-checks.
- •False positives are business incidents, measured and budgeted like SLOs.
- •Four planes: detection, data, enforcement, feedback.
- •The scan path is synchronous and latency-bound; deep analysis is asynchronous and queued.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate delivery-time scanning from click-time re-checking before drawing any boxes."
- "Let me define the verdict contract first, because enforcement, logging, and feedback all consume it."