Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
Courses/Architecture Leadership
Lesson 21 of 32

Abuse, fraud and trust & safety

Design systems that expect adversaries: layered defences, risk scoring, friction where it matters and feedback loops.

16 min read

Adversaries adapt

Reliability engineering fights random failures; trust and safety fights intelligent opponents who change tactics as soon as you block them. Fraudsters test stolen cards, bots create fake accounts, spammers flood comments and vote manipulators stuff polls. Any feature that creates value (free trials, referral bonuses, payments, reviews, votes) will be abused in proportion to that value. Ask for every new feature: how would someone make money or cause harm by abusing this? Bring trust and safety specialists into design reviews early, because retrofitting abuse controls onto a launched feature is slow and noisy for legitimate users.

Layered defences

No single control stops abuse. Stack cheap controls in front of expensive ones so most bad traffic is rejected early.

  • Edge: WAF, bot detection, IP reputation and rate limits per IP, account and device
  • Identity: verified email or phone, device fingerprinting, account age
  • Rules: hand-written heuristics for known patterns, quick to deploy
  • Models: ML risk scores on behavioural features (velocity, geography, history)
  • Human review queues for the uncertain middle band
  • Enforcement: block, challenge (CAPTCHA, 3-D Secure, MFA), hold for review, or allow

Real-time risk scoring

A payment fraud system typically scores each transaction in under 50-100 ms so it can sit in the authorisation path. The architecture is a feature store holding precomputed aggregates (transactions per card in the last hour, distance from last location), a stream processor that keeps those aggregates fresh, a rules engine and a model server. Set a timeout and a fallback decision for when scoring is slow: fail open for low-value transactions, fail closed or route to review for high-value ones.

Feedback loops and metrics

Fraud labels arrive late: a chargeback can take 30-120 days. Feed confirmed fraud, reviewer decisions and customer disputes back into rules and model training. Measure both sides of the trade-off: fraud loss rate (basis points of volume) and false positive rate, since every legitimate customer blocked is lost revenue and trust. Keep an audit trail of every decision and the reason, because customers and regulators will ask why a payment was declined. Run regular red-team exercises to find gaps before attackers do.

Key takeaways

  • Any feature that creates value will be abused; threat-model for profit motives, not just bugs.
  • Layer cheap edge controls before rules, models and human review.
  • Real-time scoring needs a fresh feature store, a strict latency budget and a defined fallback.
  • Close the loop with delayed labels and track fraud loss alongside false positives.

Sign in to track lessons and earn badges.

Audit and tamper evidenceAI, ML and RAG systems governance

Challenge checkpoint

Course: 0/32 lessons · 0/10 challenges0%

Build it on the canvas, pass the review (70+) and mark it complete to count it toward the course badge.

  1. 7/10Design Real-Time Fraud DetectionCombine layered abuse defences, a fresh feature store and a strict latency budget with a defined fallback decision.MAJORHardPRO
All 10 challenges →