Card Transaction Triage and Fraud Rule Design
Machine LearningModel answerLast updated
Approve or decline two flagged transactions, then design a rule-based fraud strategy from scratch, covering metrics, cold-start thresholds, and adversarial adaptation.
Background
You are joining a payments team as a data scientist. The team emphasizes decision-making and rule design over model building, at least in the early stages. Your job is to help the team reduce fraud losses while keeping friction low for legitimate customers.
You are given feature summaries for two card transactions. Each summary includes: merchant category code (MCC), transaction amount, recent authorization velocity, geolocation signals (IP vs. billing address, distance from last transaction), device fingerprint status, account tenure, historical approval and chargeback rates, and AVS/CVV match results.
Part 1 — Transaction decisions
Review the two transaction profiles below and decide whether to approve, decline, or step up (trigger additional authentication). Justify each decision using the features provided. Frame your reasoning as an expected-value problem: which features move the fraud probability estimate, and does that estimate cross the break-even threshold?
Transaction A
- MCC: grocery (5411), amount: $42
- Account tenure: 3 years, no prior chargebacks
- Device: known fingerprint, seen hundreds of times
- Geo: IP matches billing city
- Velocity: 1 transaction today
- AVS/CVV: both match
Transaction B
- MCC: electronics (5732), amount: $1,850
- Account tenure: 2 days
- Device: new fingerprint, emulator signals detected
- Geo: IP is in a different country from billing address; last transaction was in the billing city 40 minutes ago
- Velocity: 6 authorization attempts across 4 distinct cards in the past 10 minutes, 3 declined
- AVS: mismatch; CVV: match
Part 2 — Cold-start rule strategy
There are no fraud labels yet. Design a practical, rule-based risk strategy from scratch. Your answer should include:
- At least five concrete rules with specific thresholds (velocity limits, geo-velocity checks, MCC-based caps, allow/block lists, step-up triggers)
- An escalation path: how transactions get routed from auto-approve through manual review to auto-decline
- A discussion of the loss–friction trade-off: how do you set thresholds, and how do you measure whether a rule is hurting good users?
- Expected directional impact on approval rate, chargeback rate, and false positive rate
Part 3 — Adversarial adaptation
Assume your rules go live. How will fraudsters respond? Name at least four specific attack patterns, describe their observable signatures, and explain how you would detect that your rules are being gamed. What does your update process look like?
Hints
Hint 1
For Part 1, resist listing red flags in isolation. State a break-even fraud probability — M/(M+L) — and ask whether each feature pushes the estimate above or below that threshold. A signal that shifts p from 0.5% to 2% on a $42 grocery transaction means something different than the same shift on an $1,850 electronics purchase.
Hint 2
For Part 2, start with the cheapest action (allow/block lists, AVS/CVV hard rules) before adding velocity or geo-velocity checks. Before turning any rule on, propose running it in shadow mode to estimate its hit rate and precision. Acknowledge that chargeback labels arrive 30–90 days late and name the leading indicators you would watch instead.
Hint 3
For Part 3, think of fraud as a feedback loop: rules change fraudster behavior, which changes the signal distribution, which degrades rule precision. The key detection question is not 'is this rule firing?' but 'is this rule still firing on actual fraud?'. Rule hit rate falling while loss stays flat is the signal that adaptation has happened.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
How to structure the answer
This problem tests three things together: economic framing of a binary decision, practical rule engineering under label scarcity, and adversarial thinking. A strong answer moves between all three fluidly, states assumptions explicitly, and names trade-offs rather than just listing ideas.
Part 1: Transaction decisions
The decision framework
Approve when the expected margin on a legitimate transaction exceeds the expected loss on a fraudulent one:
Approve if p < M / (M + L)
p= estimated fraud probabilityM= margin on a good transaction (interchange fee + lifetime value at risk from a false decline)L= loss on fraud (transaction amount + chargeback fee, typically $15–25 + operational cost)
A third action exists: step-up authentication (3DS2, OTP). Use it when p is near break-even. Passing shifts chargeback liability to the issuer; abandonment is roughly 10–20%.
Transaction A: Approve
- Break-even: $1.05 margin / ($1.05 + $57 loss) ≈ 1.8% fraud probability
- Every feature signals a trusted user: 3-year tenure, zero chargebacks, known device, matching geo and AVS/CVV, low velocity
- Realistic fraud probability is well under 0.1% — an order of magnitude below break-even
- Decision: Auto-approve
Transaction B: Decline and flag the device
- Break-even: ~$46 margin / ($46 + $1,865) ≈ 2.4% fraud probability
- The risk signals compound, not add independently:
- Impossible geo-velocity: a cross-border location jump in 40 minutes (physically impossible)
- Card-testing pattern: 6 auth attempts across 4 cards on one device, with 3 declines, in 10 minutes
- High-resale MCC: electronics converts to cash quickly
- New account with no history
- AVS mismatch
- Each factor alone might be marginal; together they push estimated fraud probability above 30%, roughly 12× past break-even
- Step-up is insufficient: card-testing rings often control the OTP channel linked to stolen credentials
- Decision: Auto-decline, add device fingerprint and linked card PANs to a watch list
The critical habit here is explaining how signals interact, not just listing them. A new device is a soft signal; a new device + multiple cards + geo impossibility is a hard stop.
Part 2: Cold-start rule strategy
With no labels, use interpretable rules ordered from lowest to highest severity, and run every new rule in shadow mode for 1–2 weeks before activating it, to measure hit rate without blocking real revenue.
Core rules (starting thresholds, tunable)
| Rule | Threshold | Action |
|---|---|---|
| Card velocity | >3 auths per card per 10 min, or >5 per day | Decline |
| Device/IP fan-out | >3 distinct cards per device or IP per hour | Decline + 24h device block |
| Geo-velocity | Consecutive transactions implying >800 km/h | Step-up; decline if also new device |
| CVV failure | Any CVV mismatch | Decline |
| AVS mismatch only | AVS mismatch, CVV passes | Step-up |
| MCC × tenure cap | Tenure < 7 days, electronics or jewelry MCC | Hard cap at $300; decline above |
| New account + high amount | Tenure < 30 days, amount > $500 | Step-up |
| Block lists | Known-bad devices, BINs, freight-forwarder addresses | Decline |
| Allow lists | Device + account with 90+ days and 10+ clean transactions | Bypass soft rules |
Escalation path
Route transactions into four tiers using rule severity or an additive risk score:
- Auto-approve — no rules triggered, allow-listed, or low-score
- Step-up — one soft signal or near a threshold; pass → approve, fail → decline
- Manual review — high-value or ambiguous; hold up to 1 hour before deciding
- Auto-decline — multiple hard signals or block-listed
Loss–friction trade-off
Every rule converts some fraud loss into friction on good users. The insult rate — legitimate customers who are declined — often costs more in lost GMV and churn than the fraud itself.
- Prefer step-up over decline when
pis near break-even - To get an unbiased false positive estimate, randomly approve a small holdout (~1%) of low-dollar, rule-flagged transactions within a defined loss budget; measure their actual chargeback rate
- Calibrate thresholds against both fraud rate and precision (what fraction of rule hits are actually fraud); target >20–30% precision at cold start
Leading indicators (since chargebacks lag 30–90 days)
- Issuer fraud reports (TC40/SAFE files)
- Customer dispute tickets
- Step-up failure rates by rule
Part 3: Adversarial adaptation
Common attack patterns
| Tactic | Observable signature | Counter |
|---|---|---|
| Card testing | Many small auths, high decline rate, scripted timing, one device | Micro-auth velocity limits, CAPTCHA, per-merchant rate caps |
| BIN attacks | Sequential PANs within one BIN, random expiry/CVV combos, per-BIN decline spike | Per-BIN decline-rate alarms, temporary BIN throttles, issuer coordination |
| Mule/drop addresses | Many accounts to one address, freight forwarder, address-variant obfuscation | Address normalization, graph linkage on shipping addresses, forwarder lists |
| Device spoofing | Emulators, rotating fingerprints, residential proxies, OS/user-agent mismatches | Device integrity APIs, behavioral biometrics, proxy detection |
| Threshold probing | Amounts clustered just below rule limits (e.g., $495–499 when limit is $500) | Bunching detection, randomized or jittered thresholds, relative-to-history features |
| Bust-out / sleeper accounts | Build clean tenure over weeks, then rapidly max spend | Spend-acceleration features benchmarked against each account's own history |
Detecting that rules are being gamed
The key question is not whether a rule fires, but whether it still fires on actual fraud:
- Precision drift: rule hit rate holds steady but fraud loss stays flat or grows → fraud moved just outside the boundary
- Distribution shifts: monitor the distribution of amounts, MCCs, and BINs for structural breaks week-over-week
- Bunching: histogram of transaction amounts near each threshold; a spike just below a limit is deliberate
- New device + old pattern: fraudsters burn old device clusters and rotate; watch for sudden drops in known-device ratio
Update process
- Run a weekly rule review: precision, recall, hit rate, and fraud dollars stopped per rule
- Use a champion/challenger framework for threshold changes — new threshold runs in shadow mode before promotion
- Tag rules with an expiry review date (90 days) so stale rules are revisited, not just accumulated
- Treat large distribution shifts as a trigger for retraining or a new rule sprint, not a one-time fix
Common mistakes to avoid
- Treating chargeback rate as a real-time signal — it is not; it lags by 30–90 days
- Optimizing only for fraud reduction without measuring false positive cost
- Treating each feature as independent when fraud signals compound non-linearly
- Setting thresholds once and never revisiting them after fraudsters adapt