Design Phishing URL Classification for Chrome Safe Browsing
Last updated: November 29, 2026
Quick Overview
Design a classifier that flags phishing pages so Chrome can warn users before they enter credentials. Explain what runs on the server, what runs in the browser and how the model gets fresh data.
0
0
0 solved
Design a classifier that flags phishing pages so Chrome can warn users before they enter credentials. Explain what runs on the server, what runs in the browser and how the model gets fresh data.
Safe Browsing protects billions of Chrome users, so even an introductory question touches scale and privacy: the browser cannot send every URL to Google. Interviewers look for a sensible split between a blocklist, a lightweight client model and server checks.
What the Interviewer Expects
- Distinguish blocklist lookups from model-based detection
- List URL, page content and visual features
- Explain privacy-preserving lookups (hash prefixes)
- Describe label sources such as user reports and crawled kits
- Pick a threshold given warning fatigue
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you catch a phishing page that lives for only two hours?
- Why compare visual similarity to known login pages?
- How would you measure false positives without spying on browsing?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Goal: warn before a user submits credentials on a phishing page. Constraints: browsing data is private, so most checks must be local or use hashed lookups; page load must not slow down; warnings must ...
High-Level Design
- Blocklist: server crawls and classifies suspected URLs; the browser holds a local set of hash prefixes of known bad URLs and checks each navigation locally, asking the server for full hashes on...