Design Account Takeover Risk Scoring for Google Account Sign-Ins
Last updated: November 29, 2026
Quick Overview
Design the risk engine that scores every Google Account sign-in attempt and decides whether to allow it, require an extra verification challenge or block it.
0
0
0 solved
Design the risk engine that scores every Google Account sign-in attempt and decides whether to allow it, require an extra verification challenge or block it.
Account security at Google spans billions of accounts and every product, so a sign-in risk model must be accurate, fast and resistant to attackers who already hold the password. Interviewers check feature design, the challenge ladder, and handling of heavy class imbalance and label delay.
What the Interviewer Expects
- Frame the decision as allow, challenge or block with costs for each
- Use device, network and behavioral history features relative to the account
- Handle extreme class imbalance and delayed labels from recovery reports
- Design challenges as a response that also produces labels
- Keep latency low and fail safely
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 do you treat a sign-in from a new phone while the user is traveling?
- How would you detect credential stuffing across many accounts at once?
- What is your strategy when an attacker steals a valid session cookie?
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
Every sign-in with a correct password (and some with wrong ones) gets a risk score in under 100 ms. Actions: allow silently, challenge (prompt on a trusted phone, security key, SMS code), or block. Co...
High-Level Design
- Feature service: per-account profile of known devices, typical locations, ASNs, sign-in times, used apps.
- Global reputation: IP and ASN reputation, attack-volume signals across accounts....