Fraud Box — Trust & Deception Simulator

Accounts transact on a marketplace. Some are building trust only to cash out. The detector watches every transaction — how it reasons decides how much fraud costs.

Detector MODE 2 Tick 0
Fraud loss
$0
stolen & unrecovered
Caught pre-cash-out
0
fraud frozen while active
False positives
0
honest accounts frozen
Detection rate
—
caught ÷ (caught + escaped)
Avg trust at cash-out
—
belief when they bolted
Escaped
0
0 probes run
Loss / 1,000 tx
—
fraud cost per 1,000 transactions
Probe ROI
—
est. fraud prevented per $1 of probe exposure
Marketplace arena
trusted uncertain suspect frozen (✕) probe agent cash-out flash high reputation halo (rep ≥ 75) probe steering to target
Detector update — Bayes, after every observed transaction P(honest | obs) = P(obs | honest)·P(honest) ⁄ [ P(obs | honest)·P(honest) + P(obs | fraud)·(1 − P(honest)) ] Likelihoods — fulfilled: 0.98 if honest, 0.78 if fraud · defaulted: 0.02 / 0.22 · probe failed: 0.01 / 0.55 · probe passed: 0.99 / 0.45. Reputation is tracked separately and sets the transaction limit: limit = 15 + 1.5·rep + 40·belief. In a collusion ring, a default also updates ring-mates — the contraction-depth slider sets how many.
Fraud loss & detection over time— cumulative loss $   — detection rate %
Mode comparison (seed 42, 4,000 ticks, default settings): Mode 0 rules — $1,681 lost, 36% detected · Mode 1 Bayes — $834 lost, 57% detected, 0 false positives · Mode 2 Bayes + probes — $1,039 lost, 56% detected. Probes catch a different fraudster than pure Bayes on this seed but pay for the evidence — run the guided experiments in the side panel to reproduce all three.

How this maps to real fraud systems

Every mechanism in the arena is a simplified version of something running in production at marketplaces and payment processors. The scoreboard above is the real lesson: detection quality is a trade-off you can watch, not a switch you flip.

Bust-out fraud

Fraudsters behave perfectly for weeks to raise a credit or selling limit, then max it out and disappear. Here: pink-type accounts fulfill small orders until reputation and belief push their limit near its peak — then they take the whole limit and re-enter under a fresh account.

Reputation farming

Trust is a resource that can be farmed cheaply and spent once, expensively. Transaction amounts scale with the counterparty's limit, so the farming phase is forced: there is no big steal available to a new account. Real platforms see the same shape in fake-review and wash-trading rings.

Probe transactions

Mode 2 sends the gold probe agent at accounts whose limit is climbing fast while never verified, with a tempting near-limit order. It is a counterexample test: one failed probe carries far more evidence (likelihood 0.01 vs 0.55) than a normal default, and probe exposure is capped so a failed probe costs the platform only a quarter of the order value. Real versions: verification charges, test orders, canary listings, mystery shoppers.

Collusion rings

Fraud accounts transact together to manufacture each other's reputations. Evidence about one member is weak evidence about the ring. The depth slider contracts the joint belief over a cluster exactly for that many members and compresses the rest — the same compute-vs-accuracy trade-off graph-analytics teams make nightly.

False-positive cost

Freezing an honest seller is not free: it is a real person locked out of their income. Mode 1 and 2 freeze faster than complaint rules — and freeze more innocents. The honest-frozen counter is on the scoreboard because every real fraud team is graded on it too.

Why rules alone lose

Mode 0 flags after 3 complaints. A bust-out generates exactly one complaint — the cash-out — and is gone. Reactive rules can only catch fraudsters who defect repeatedly, which is why opportunists get caught in every mode and bust-outs only get caught by beliefs plus probes.

One Bayesian update, worked by hand

Every account starts at the prior, P(honest) = 0.85 — most new sellers are genuine, so the detector starts out trusting. Watch what a single default does, and why a failed probe is devastating by comparison. These are the exact numbers the engine uses.

Step 0 — prior. P(honest) = 0.85, so P(fraud) = 0.15.
Step 1 — the account defaults on an order. Likelihoods: P(default | honest) = 0.02, P(default | fraud) = 0.22.
  numerator = 0.02 × 0.85 = 0.0170
  denominator = 0.0170 + 0.22 × 0.15 = 0.0170 + 0.0330 = 0.0500
  P(honest | default) = 0.0170 ⁄ 0.0500 = 0.34 — one default cuts trust from 85% to 34%.
Step 2 — it then fulfills the next order. Likelihoods: 0.98 if honest, 0.78 if fraud (fraudsters fulfill most orders too — that is the farming).
  numerator = 0.98 × 0.34 = 0.3332
  denominator = 0.3332 + 0.78 × 0.66 = 0.3332 + 0.5148 = 0.8480
  P(honest) = 0.3332 ⁄ 0.8480 = 0.39 — a good order only buys back 5 points. Bad evidence is strong; good evidence is weak. That asymmetry is why farming takes ~10 clean transactions to build what one default destroys.
Step 3 — compare a failed probe from the same prior. Likelihoods: 0.01 if honest, 0.55 if fraud.
  P(honest | probe failed) = (0.01 × 0.85) ⁄ (0.01 × 0.85 + 0.55 × 0.15) = 0.0085 ⁄ 0.0910 = 0.09 — straight under the 0.30 freeze threshold in a single step. A probe is engineered so that failing it is nearly impossible for an honest account and tempting for a fraudster; that likelihood gap is the entire value of the test.

The bust-out lifecycle

A bust-out fraudster's whole strategy is a schedule. Each phase exists because of a specific rule in the limit formula — limit = 15 + 1.5·rep + 40·belief — and each phase is where a different detector mode gets its chance.

PHASE 1 · FARM

Behave perfectly

Fulfill every small order. Each fulfillment adds +2 reputation and nudges belief up. After ~10 clean transactions reputation is near 85+ and the limit has roughly tripled. Mode 0 sees nothing wrong — there are no complaints to count.

PHASE 2 · LIMIT GROWTH

Become worth robbing

The limit only reaches its ~$185 peak when reputation ≥ 85 and belief ≥ 0.78. The fraudster must keep both high simultaneously — which is exactly the window where Mode 2's probe targeting fires: limit climbing fast, never verified.

PHASE 3 · CASH-OUT

Take everything, once

One transaction for the full limit, then the account vanishes. It generates exactly one complaint — useless to Mode 0's 3-complaint rule. The scoreboard's "avg trust at cash-out" shows how completely the detector was fooled: on seed 42 the escapees left believing they were trusted.

PHASE 4 · RE-ENTER

Start over, free

A fresh account spawns at the prior, 0.85 belief and a $88 starting limit. Re-entry is the platform's real enemy: freezing accounts accomplishes nothing if a new identity costs nothing. Real systems fight this with identity verification, device fingerprinting and deposit holds — none of which a belief score can replace.

Why probes cost money — the exposure math

A probe is a real order the platform places with its own money, so evidence is never free. The probe order is sized at 80% of the target's limit — big enough to tempt. If the target defaults, the platform's loss is capped at 25% of the order (the rest is held in escrow, in this model). Worked at the peak limit of $185: order = 0.8 × $185 = $148; worst-case loss = 0.25 × $148 = $37. Compare the alternative: letting that account cash out costs the full $185. So one failed probe costs at most a fifth of one cash-out — but probes also fire on honest fast-growers, and a probe that an opportunist passes still consumed the order. The scoreboard's Probe ROI divides the estimated loss prevented by probe-driven freezes by the total probe exposure actually lost, so you can watch whether the evidence is worth its price on the current settings. On seed 42, Mode 2 catches one more fraudster than Mode 1 yet loses $205 more overall — the probes bought evidence, and on that seed the evidence was not quite worth it. That is a real result, not a rigged one: whether probing pays depends on fraud share and limit growth, which is why both are sliders.

What a false positive actually costs

The scoreboard counts honest accounts frozen, but a count understates it. A frozen honest seller loses income during review, often churns to a competitor permanently, and tells other sellers the platform is unsafe — a supply-side cost that compounds. There is also an asymmetry of visibility: fraud loss shows up in a ledger this quarter; false-positive damage shows up as mysteriously shrinking seller growth two quarters later, so teams chronically under-weight it. Lowering the freeze threshold from 0.30 toward 0.10 in this sim visibly trades one for the other — try it and watch both counters, not just the loss line. Mode 1's clean sheet on seed 42 (0 false positives) is partly luck of the seed; at a 50% fraud share it does not survive.

Collusion rings, precisely

Ring members transact mostly with each other, manufacturing reputation no outsider vouched for. Judging accounts independently throws away the strongest signal: membership itself. The contraction-depth slider sets how many ring members share one member's evidence exactly (at a compressed weight of 0.45 — a ring-mate's default is evidence about you, but weaker than your own). Depth 1 turns sharing off; depth 4 shares across the whole ring. Deeper is not free in real systems: exact joint inference over a cluster grows combinatorially, which is why production graph systems contract a few high-risk nodes exactly and approximate the rest — the same trade this slider makes.

Mechanism → real system

Simulation mechanism
Real-world counterpart
Belief P(honest), updated per transaction
Risk score per account (Stripe Radar, Sift, marketplace trust scores) — a probability maintained from every observed event, not a one-off check at signup.
Reputation sets the transaction limit
Tiered selling / payout limits that grow with history — eBay seller limits, payment-processor reserve schedules, credit-line increases.
Bust-out cash-out at peak limit
Bust-out fraud on credit cards and merchant accounts: months of clean use, one maxed-out extraction, identity abandoned.
Probe transaction (gold agent)
Verification micro-charges, test orders, canary listings, mystery shoppers, and step-up verification triggered by velocity — evidence bought deliberately, at a capped cost.
Freeze threshold on belief
Automated account holds at a risk-score cutoff, tuned against a false-positive budget reviewed by a trust & safety team.
Ring evidence sharing / contraction depth
Graph analytics over shared devices, addresses and counterparties (e.g. link analysis in fraud platforms); exact inference on small clusters, approximation at scale.
Mode 0 — freeze after 3 complaints
Legacy rules engines and chargeback-count policies: simple, auditable, and structurally blind to one-shot fraud.
Free re-entry after cash-out
Synthetic-identity and multi-accounting abuse; countered by identity proofing and device fingerprinting, not by better scoring of the new account.

Honest limits

This is a toy model. Accounts here have three fixed strategies, the platform observes every transaction outcome perfectly, and the likelihood numbers are chosen, not learned. Real systems infer features from messy partial data — device signals, timing, amounts, network structure — fight adversaries who adapt to the detector itself, and must validate on historical fraud before any threshold is trusted. The box teaches the dynamics and the trade-offs; it is not a deployable detector. Two numbers on the scoreboard are estimates by construction: Probe ROI credits a probe-driven freeze with the account's full limit as "loss prevented," assuming it would otherwise have cashed out — reasonable for a bust-out near its peak, generous for an opportunist. And every benchmark quoted here is one seed: rerun the guided experiments on seeds 7, 123 or 2024 and Mode 2's detection lead over Mode 0 ranges from roughly 50–60% vs 29–36% — the ordering of the modes is stable, the exact dollars are not.