Design Graph-Based Detection of Coordinated Fake Account Rings
Last updated: November 29, 2026
Quick Overview
Abusers create thousands of Google accounts to send spam, post reviews and inflate engagement. Design a system that finds coordinated rings of fake accounts using graph structure, not just per-account features.
0
0
0 solved
Abusers create thousands of Google accounts to send spam, post reviews and inflate engagement. Design a system that finds coordinated rings of fake accounts using graph structure, not just per-account features.
Per-account classifiers miss accounts that each look normal; coordinated behavior shows up only in the graph. Interviewers check how you build the graph, which algorithms scale to billions of nodes, and how you act on clusters safely.
What the Interviewer Expects
- Define nodes and edges from shared signals (devices, IPs, phone numbers, behavior)
- Choose scalable algorithms like label propagation or connected components with thresholds
- Combine graph features with per-account models (GNN or feature export)
- Separate legitimate shared infrastructure like offices and carrier NAT
- Plan enforcement with review and appeals at cluster level
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 avoid linking every user behind a mobile carrier's shared IP?
- How would you use a graph neural network here and what are its costs?
- How do you handle a ring that rotates devices every day?
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: identify clusters of accounts controlled by one actor, with enough confidence to disable or restrict them. Scale: billions of accounts, tens of billions of edges. Run daily, with faster incremen...
High-Level Design
- Signal extraction: for each account, collect device IDs, IP prefixes, phone numbers used for verification, recovery emails, sign-up timing, behavior sequences.
- Graph build: account nodes...