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.

Google
ML System Design
Software Engineer
Google
November 29, 2026
Software Engineer
Phone Screen
ML System Design
Easy

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
Phishing detection
URL features
Client-side models
Hash prefix lookup
Warning thresholds
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. 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 Problems
Sample 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
  1. 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...

Submit Your Answer
Markdown supported