Drained value caught before cash-out
84%
↗ 62 points from xgb_v1 (22%)
| Model | Caught | False alarms | |
|---|---|---|---|
| Rules (cap + velocity) | 14% | 7.8% | |
| XGBoost v1, routing-heavy data | 22% | 2.1% | |
| XGBoost v2, post-drain added | 84% | 2.6% |
Release gate HOLD, 5 tests failing
| Metric | Need | xgb_v2 | |
|---|---|---|---|
| Value caught before cash-out | ≥ 80% | 84% | PASS |
| False alarm rate | ≤ 3% | 2.6% | PASS |
| Attacker wallets flagged | ≥ 60% | 63% | PASS |
| Practice minus exam score | < 10 | 8 | PASS |
| RedMule Score | ≥ 80 | 81.8 | PASS |
| Test cases | 32 / 32 | 27 / 32 | FAIL |
Score = 100 × (1 − escape rate) × (1 − false alarm rate)
Coverage by pattern
| Fraud: value caught | v1 | v2 | |
|---|---|---|---|
| Post-drain dispersal | 22% | 84% | |
| Fan-out / fan-in (regression) | 94% | 93% | |
| Honest: wallets wrongly flagged | v1 | v2 | |
| Owner wallet migration | 4% | 11% | |
| Airdrop | 2% | 3.0% | |
| Payroll | 2% | 2.2% | |
| Exchange sweep | 1% | 1.1% |
Caught vs escaped, by time to cash-out
● caught ● escaped
<1s
42%
1–5s
80%
5–30s
87%
30s–5m
93%
>5m
94%
Test cases (32), post-drain dispersal, xgb_v2
Pass: fraud cases ≥ 0.80 value caught before cash-out, honest cases ≤ 0.03 false alarm rate
| ID | Test | Why it is run | Result | Status |
|---|---|---|---|---|
| Core and speed | ||||
| T01 | Standard post-drain | Baseline for the problem | 0.88 | PASS |
| T02 | Cash-out under 1 s | Almost no time to react | 0.42 | FAIL |
| T03 | Cash-out 1–30 s | Typical instant liquidation | 0.85 | PASS |
| T04 | Cash-out 5–10 min | A slower attacker should be easy | 0.94 | PASS |
| T05 | Whole drain within 2 s | Burst arrives in one chunk | 0.81 | PASS |
| T06 | Dispersal over 1–6 h | Slow drip evades velocity rules | 0.69 | FAIL |
| Scale and shape | ||||
| T07 | 5 receiving wallets | Small split looks like normal use | 0.80 | PASS |
| T08 | 50 receiving wallets | Mid-size split | 0.89 | PASS |
| T09 | 500 receiving wallets | Weak signal per wallet | 0.86 | PASS |
| T10 | 2,000 receiving wallets | Extreme split and detector latency | 0.83 | PASS |
| T11 | One extra hop | Funds move on before cash-out | 0.87 | PASS |
| T12 | Three extra hops | Cash-out is far from the victim | 0.90 | PASS |
| T13 | Even amounts | Scripted equal split | 0.91 | PASS |
| T14 | Skewed amounts | A few wallets carry most value | 0.82 | PASS |
| T15 | Partial drain (40%) | Victim is not emptied | 0.81 | PASS |
| Wallet type, evasion, privacy | ||||
| T16 | All receivers fresh | No history to learn from | 0.84 | PASS |
| T17 | Aged receivers | Rented or pre-warmed wallets | 0.80 | PASS |
| T18 | Verified-KYC receivers | KYC must not clear a wallet | 0.82 | PASS |
| T19 | No-KYC receivers | Anonymous receivers | 0.89 | PASS |
| T20 | Camouflaged in honest traffic | Precision under noise | 0.83 | PASS |
| T21 | Amounts hidden | Privacy Ring conditions | 0.74 | FAIL |
| T22 | Amounts hidden, 500 wallets | Shape and timing only, at scale | 0.71 | FAIL |
| Honest look-alikes (false alarm rate) | ||||
| T23 | Payroll fan-out | Looks like dispersal | 0.022 | PASS |
| T24 | Airdrop fan-out | Many small sends to new wallets | 0.030 | PASS |
| T25 | Exchange sweep | Looks like consolidation | 0.011 | PASS |
| T26 | Owner moves to own new wallet | Closest honest match to a drain | 0.110 | FAIL |
| T27 | Honest swaps and off-ramps | Cashing out is not fraud | 0.014 | PASS |
| T28 | Peer-to-peer background | Ordinary traffic | 0.008 | PASS |
| Regression and integrity | ||||
| T29 | Routing fan-out / fan-in | Retraining must not break routing | 0.93 | PASS |
| T30 | Hard-coded wallet or mint scan | Detector must not memorise tests | 0 findings | PASS |
| T31 | Wallet addresses renamed | Result must not depend on addresses | Δ 0.00 | PASS |
| T32 | Latency on 50k transactions | Must beat the cash-out (< 5 s) | 2.1 s | PASS |
Wallet flow (sample structure)
● flagged before cash-out ● missed
Drain analytics (case T01)
| Receiving wallets | 78 |
| Value drained (test token) | 2,282.86 |
| Time to disperse | 38.4 s |
| Median time to cash-out | 7.1 s |
| Cashed out within 30 s | 64 of 78 |
| Swap / off-ramp / bridge | 25 / 31 / 22 |
Share of value gone over 38 s
Missed wallets (practice only)
| Wallet | Score | Likely reason |
|---|---|---|
| 9axo…os4s | 0.41 | Has prior history |
| G63e…dgtx | 0.33 | Verified KYC |
| 13z2…sgPp | 0.18 | Cashed out in under 1 s |
The exam returns totals only, never per-wallet results.
Transfers, case T01, victim CSjH…Rem7 (78 receivers)
| + sec | Signature | From | To | Amount (test token) |
|---|---|---|---|---|
| 0.00 | 3j2L…wUHE | CSjH…Rem7 | 83re…2ATL | 30.276124 |
| 0.37 | 5Fr7…tGBE | CSjH…Rem7 | 9axo…os4s | 42.870787 |
| 0.83 | JowQ…hfe8 | CSjH…Rem7 | G63e…dgtx | 25.777816 |
| 1.75 | 4E2i…49F | CSjH…Rem7 | BDCh…gv4T | 41.894160 |
| 1.75 | 2oNS…T3q6 | CSjH…Rem7 | CQva…fEfg | 40.184898 |
| 1.99 | 4X3m…o4t4 | CSjH…Rem7 | 6Qab…iraG | 12.946897 |
SPL transferChecked, 6 decimals, as USDC, throwaway mint, associated token accounts, executed in LiteSVM, not devnet
Datasets
| Dataset | Scenarios | Transactions | Wallets | Fraud wallets | Use |
|---|---|---|---|---|---|
| train_v1 | 223 | 24,883 | 9,527 | 2,411 | Before model |
| train_v2 | 343 | 38,169 | 14,879 | 5,388 | After model |
| practice | 80 | 8,844 | 3,491 | 1,135 | Wallet debugging |
| cases/T01–T29 | one small set per test case | Test cases | |||
wallet_features one row per wallet, what the model reads
| Column | Meaning | Example | Use |
|---|---|---|---|
| wallet | Wallet address | 9mZ1…HrXU | key |
| kyc_status | verified, basic or none | none | INPUT |
| in_degree | Distinct senders | 2 | INPUT |
| out_degree | Distinct receivers | 1 | INPUT |
| tx_in_count | Transfers received | 2 | INPUT |
| tx_out_count | Transfers sent | 1 | INPUT |
| first_seen | First activity (Unix s) | 1762753604 | time cut |
| last_seen | Last activity (Unix s) | 1764607887 | time cut |
| age_seconds | Last seen minus first seen | 1854283 | INPUT |
| funder | First wallet that sent to it | EzbG…yvVH | key |
| shared_funder_count | Other wallets with the same funder | 1 | INPUT |
| median_hop_gap_s | Median seconds from receiving to sending | 1.599 | INPUT |
| pass_through_ratio | Share of received value sent on | 0.4068 | INPUT |
| share_from_no_kyc | Share of value from no-KYC wallets | 0 | INPUT |
| cashout_type | swap, offramp or bridge | swap | EXCLUDED |
| seconds_to_cashout | Seconds from receipt to cash-out | 1.599 | EXCLUDED |
transactions one row per token transfer
| Column | Meaning | Example | Use |
|---|---|---|---|
| tx_id | Signature on local Solana | 3j2L…wUHE | key |
| slot | Slot number | 8176413 | order |
| timestamp | Simulated time | 1764817765.371 | order |
| from_wallet | Sender | CSjH…Rem7 | graph |
| to_wallet | Receiver | 83re…2ATL | graph |
| amount | Token amount, empty in private mode | 30.276124 | features |
| mint | Throwaway test token | Fi51…Y7gH | key |
| fee_payer | Who paid the fee | 4Kra…jQYL | key |
labels training and practice only, never in the exam
| Column | Meaning | Example | Use |
|---|---|---|---|
| wallet | Wallet address | CSjH…Rem7 | key |
| is_fraud | 1 for attacker wallets | 0 | target |
| role | victim, mule, collector, cashout, honest | victim | analysis |
| pattern | Fraud or honest pattern | post_drain_dispersal | analysis |
| modifiers | Extra conditions | empty | analysis |
| scenario_id | Groups one scenario | cases/T01_s0 | analysis |
scenarios training and practice only
| Column | Meaning | Example | Use |
|---|---|---|---|
| scenario_id | Scenario key | cases/T01_s0 | key |
| pattern | Pattern name | post_drain_dispersal | analysis |
| fraud_value | Value the attacker moved | 2282.86 | metric |
| cashout_time | First cash-out time | 1764817772 | metric |
Excluded columns are only known at or after cash-out. Features must also be computed with a cut-off before cash-out.
Detector under test
| Model | XGBoost, one score per wallet (0–1), flagged at ≥ 0.5 |
| Task | Find wallets receiving drained funds before they cash out |
| Baseline | Per-transaction cap + velocity rules |
| Mode | Streaming, 20 chunks |
python detectors/detect.py --in <input_dir> --out predictions.json
Run history
| Run | Model | Score | Gap |
|---|---|---|---|
| #3 | xgb_v2 | 81.8 | 8 |
| #2 | xgb_v1 | 21.5 | 61 |
| #1 | rules | 12.9 | 4 |