◆ RedMule Fraud problem: post-drain dispersal xgb_v2 vs xgb_v1, exam ex_sample, 2 attempts left, LiteSVM local
Drained value caught before cash-out
84%
↗ 62 points from xgb_v1 (22%)
ModelCaughtFalse 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

MetricNeedxgb_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< 108PASS
RedMule Score≥ 8081.8PASS
Test cases32 / 3227 / 32FAIL

Score = 100 × (1 − escape rate) × (1 − false alarm rate)

Coverage by pattern

Fraud: value caughtv1v2
Post-drain dispersal
22%84%
Fan-out / fan-in (regression)
94%93%
Honest: wallets wrongly flaggedv1v2
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

IDTestWhy it is runResultStatus
Core and speed
T01Standard post-drainBaseline for the problem0.88PASS
T02Cash-out under 1 sAlmost no time to react0.42FAIL
T03Cash-out 1–30 sTypical instant liquidation0.85PASS
T04Cash-out 5–10 minA slower attacker should be easy0.94PASS
T05Whole drain within 2 sBurst arrives in one chunk0.81PASS
T06Dispersal over 1–6 hSlow drip evades velocity rules0.69FAIL
Scale and shape
T075 receiving walletsSmall split looks like normal use0.80PASS
T0850 receiving walletsMid-size split0.89PASS
T09500 receiving walletsWeak signal per wallet0.86PASS
T102,000 receiving walletsExtreme split and detector latency0.83PASS
T11One extra hopFunds move on before cash-out0.87PASS
T12Three extra hopsCash-out is far from the victim0.90PASS
T13Even amountsScripted equal split0.91PASS
T14Skewed amountsA few wallets carry most value0.82PASS
T15Partial drain (40%)Victim is not emptied0.81PASS
Wallet type, evasion, privacy
T16All receivers freshNo history to learn from0.84PASS
T17Aged receiversRented or pre-warmed wallets0.80PASS
T18Verified-KYC receiversKYC must not clear a wallet0.82PASS
T19No-KYC receiversAnonymous receivers0.89PASS
T20Camouflaged in honest trafficPrecision under noise0.83PASS
T21Amounts hiddenPrivacy Ring conditions0.74FAIL
T22Amounts hidden, 500 walletsShape and timing only, at scale0.71FAIL
Honest look-alikes (false alarm rate)
T23Payroll fan-outLooks like dispersal0.022PASS
T24Airdrop fan-outMany small sends to new wallets0.030PASS
T25Exchange sweepLooks like consolidation0.011PASS
T26Owner moves to own new walletClosest honest match to a drain0.110FAIL
T27Honest swaps and off-rampsCashing out is not fraud0.014PASS
T28Peer-to-peer backgroundOrdinary traffic0.008PASS
Regression and integrity
T29Routing fan-out / fan-inRetraining must not break routing0.93PASS
T30Hard-coded wallet or mint scanDetector must not memorise tests0 findingsPASS
T31Wallet addresses renamedResult must not depend on addressesΔ 0.00PASS
T32Latency on 50k transactionsMust beat the cash-out (< 5 s)2.1 sPASS

Wallet flow (sample structure)

victim swapoff-rampbridge all 78 receivers
● flagged before cash-out   ● missed

Drain analytics (case T01)

Receiving wallets78
Value drained (test token)2,282.86
Time to disperse38.4 s
Median time to cash-out7.1 s
Cashed out within 30 s64 of 78
Swap / off-ramp / bridge25 / 31 / 22

Share of value gone over 38 s

Missed wallets (practice only)

WalletScoreLikely reason
9axo…os4s0.41Has prior history
G63e…dgtx0.33Verified KYC
13z2…sgPp0.18Cashed out in under 1 s

The exam returns totals only, never per-wallet results.

Transfers, case T01, victim CSjH…Rem7 (78 receivers)

+ secSignatureFromToAmount (test token)
0.003j2L…wUHECSjH…Rem783re…2ATL30.276124
0.375Fr7…tGBECSjH…Rem79axo…os4s42.870787
0.83JowQ…hfe8CSjH…Rem7G63e…dgtx25.777816
1.754E2i…49FCSjH…Rem7BDCh…gv4T41.894160
1.752oNS…T3q6CSjH…Rem7CQva…fEfg40.184898
1.994X3m…o4t4CSjH…Rem76Qab…iraG12.946897

SPL transferChecked, 6 decimals, as USDC, throwaway mint, associated token accounts, executed in LiteSVM, not devnet

Datasets

DatasetScenariosTransactionsWalletsFraud walletsUse
train_v122324,8839,5272,411Before model
train_v234338,16914,8795,388After model
practice808,8443,4911,135Wallet debugging
cases/T01–T29one small set per test caseTest cases
wallet_features one row per wallet, what the model reads
ColumnMeaningExampleUse
walletWallet address9mZ1…HrXUkey
kyc_statusverified, basic or nonenoneINPUT
in_degreeDistinct senders2INPUT
out_degreeDistinct receivers1INPUT
tx_in_countTransfers received2INPUT
tx_out_countTransfers sent1INPUT
first_seenFirst activity (Unix s)1762753604time cut
last_seenLast activity (Unix s)1764607887time cut
age_secondsLast seen minus first seen1854283INPUT
funderFirst wallet that sent to itEzbG…yvVHkey
shared_funder_countOther wallets with the same funder1INPUT
median_hop_gap_sMedian seconds from receiving to sending1.599INPUT
pass_through_ratioShare of received value sent on0.4068INPUT
share_from_no_kycShare of value from no-KYC wallets0INPUT
cashout_typeswap, offramp or bridgeswapEXCLUDED
seconds_to_cashoutSeconds from receipt to cash-out1.599EXCLUDED
transactions one row per token transfer
ColumnMeaningExampleUse
tx_idSignature on local Solana3j2L…wUHEkey
slotSlot number8176413order
timestampSimulated time1764817765.371order
from_walletSenderCSjH…Rem7graph
to_walletReceiver83re…2ATLgraph
amountToken amount, empty in private mode30.276124features
mintThrowaway test tokenFi51…Y7gHkey
fee_payerWho paid the fee4Kra…jQYLkey
labels training and practice only, never in the exam
ColumnMeaningExampleUse
walletWallet addressCSjH…Rem7key
is_fraud1 for attacker wallets0target
rolevictim, mule, collector, cashout, honestvictimanalysis
patternFraud or honest patternpost_drain_dispersalanalysis
modifiersExtra conditionsemptyanalysis
scenario_idGroups one scenariocases/T01_s0analysis
scenarios training and practice only
ColumnMeaningExampleUse
scenario_idScenario keycases/T01_s0key
patternPattern namepost_drain_dispersalanalysis
fraud_valueValue the attacker moved2282.86metric
cashout_timeFirst cash-out time1764817772metric

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

ModelXGBoost, one score per wallet (0–1), flagged at ≥ 0.5
TaskFind wallets receiving drained funds before they cash out
BaselinePer-transaction cap + velocity rules
ModeStreaming, 20 chunks
python detectors/detect.py --in <input_dir> --out predictions.json

Run history

RunModelScoreGap
#3xgb_v281.88
#2xgb_v121.561
#1rules12.94