Design Abuse Detection for Azure Free Trial Crypto Mining

Last updated: November 29, 2026

Quick Overview

Fraudsters sign up for Azure free trials and pay-as-you-go accounts with stolen cards to mine cryptocurrency or run attacks. Design an ML system that detects and stops this abuse quickly while letting real developers start building.

Microsoft
ML System Design
Machine Learning Engineer
Microsoft
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Fraudsters sign up for Azure free trials and pay-as-you-go accounts with stolen cards to mine cryptocurrency or run attacks. Design an ML system that detects and stops this abuse quickly while letting real developers start building.

Cloud resource abuse costs real money in GPU and CPU hours and harms Azure's IP reputation. A senior interviewer looks for a multi-stage design across signup, provisioning and runtime telemetry, with privacy-aware use of workload signals and careful enforcement that does not kill legitimate startups' workloads.

What the Interviewer Expects
  • Stage detection at signup, at resource provisioning and at runtime
  • Use account, payment and provisioning pattern features
  • Use runtime signals (utilization patterns, network flows to mining pools) without inspecting customer data
  • Link related accounts with a graph
  • Design a graduated enforcement ladder with human review for high-value customers
  • Address label sources, drift and evasion
Key Topics to Cover
cloud abuse
fraud detection
graph linking
telemetry features
enforcement ladder
adversarial
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 do you distinguish a legitimate ML training job from GPU mining?
  • What is the cost of a false positive for an enterprise customer and how does it change thresholds?
  • How would you detect abuse spread across hundreds of small subscriptions?
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
  • Detect abusive subscriptions within minutes of suspicious activity; minimize compute burned by abuse.
  • Actions: quota limits on new accounts, verification challenge, suspend resources, disable subs...
High-Level Design
  1. Signup risk model: identity, payment and device signals at account creation; sets initial quotas.
  2. Provisioning model: scores each deployment request (VM SKU, region, count) against the a...

Submit Your Answer
Markdown supported