Cohort ended · self-paced
intermediate 25 min

Domain Knowledge: Money Laundering Patterns on Public Ledgers

What money laundering looks like on a public ledger: the three stages, FATF's virtual asset red flags, the on-chain typologies analysts look for (peel chains, fan-out and fan-in, pass-through accounts, cycles, asset hopping), how each appears on the XRP Ledger, and how to turn them into features and an explainable first model.

Prerequisites

Complete these before starting this module:

What you'll learn

  • Explain placement, layering and integration, and where each stage is visible on a public ledger.
  • Name the FATF virtual asset red flags that translate into on-chain features.
  • Recognise peel chains, fan-out and fan-in, pass-through accounts, cycles, asset hopping and fresh-account batches in XRPL data.
  • Engineer behavioural features and transparent rules from typologies, and rank accounts with an unsupervised model.
  • Avoid the common pitfalls: flagging exchanges, dust, window effects, label leakage and naming individuals.
Complete this module by a quiz and self-assessment. Jump to assessment

Overview

You can now download XRPL data and turn it into a graph. The question the hackathon asks is harder: which parts of that graph look like money laundering? This module gives you the domain knowledge to answer it, so your model looks for patterns investigators actually care about instead of whatever happens to be statistically odd.

You'll learn the three stages of laundering, the red flags regulators publish, the on-chain typologies that blockchain analysts look for, how each one shows up on the XRP Ledger specifically, and how to turn them into features. You'll finish with a script that scores accounts with transparent rules and an unsupervised model. In the live session we walk through the script together; run it yourself before the hackathon.

One principle runs through all of it: a pattern is a reason to look closer, never proof of a crime. Your model produces a review queue, not a list of criminals.

What money laundering is

Money laundering is the process of making the proceeds of crime look legitimate. The United Nations Office on Drugs and Crime describes it in three stages:

  • Placement: getting illicit funds into the financial system. On a public ledger, this is often the moment stolen or scam funds first land in an account.
  • Layering: moving value through many transactions, accounts and assets to obscure where it came from. This is where on-chain analysis has the most to see, because every hop is public.
  • Integration: bringing the value back as apparently clean funds, typically by cashing out through an exchange or service.

Real cases don't always follow three neat steps, but the model tells you where to look: the entry point, the obfuscation in the middle, and the exit.

What regulators look for

The Financial Action Task Force (FATF), the global standard-setter for anti-money laundering, published Virtual Assets Red Flag Indicators in September 2020, drawn from more than 100 real cases. It groups indicators into seven categories: transaction size and frequency, transaction patterns, anonymity-enhancing features, sender and recipient profiles, source of funds, geographic risk, and reporting obligations.

The on-chain ones translate almost directly into features:

  • Many small transfers apparently structured to stay under reporting thresholds.
  • Funds moved rapidly through several accounts with no apparent economic reason.
  • Multiple accounts that appear to be controlled by the same person.
  • Value flowing to or from high-risk services, or through tools designed to obscure the trail.
  • Activity that is out of character for the account's history.

FATF is explicit that these are indicators, not proof: context and combinations matter.

On-chain typologies

Blockchain analytics firms and researchers describe recurring shapes in transaction graphs. These are the ones you should know.

Peel chain. Funds move through a long chain of fresh accounts. At each hop a small amount is "peeled" off to a cash-out point and the rest moves on to the next new account. On a graph it looks like a long thin path with small branches.

Fan-out, then fan-in (smurfing). A large sum is split across many accounts, often in similar-sized pieces, and later consolidated again. Deliberately splitting to stay under thresholds is called structuring.

Pass-through (mule) accounts. An account receives value and forwards almost all of it within minutes, keeping nothing. Legitimate accounts rarely behave like this; layering hops do.

Round-tripping (cycles). Value leaves an account and returns to it, directly or through intermediaries, to fake activity or confuse tracing.

Asset hopping. Value changes form along the way, from XRP to a token and back, or across chains through bridges, so a tracer following one asset loses the trail.

Wash trading. Trading with yourself to create fake volume or set a price. It's primarily market manipulation, but it can be combined with laundering, for example by "buying" an NFT from yourself at an inflated price.

Fresh-account batches. A group of new accounts created by the same funding parent within minutes, each used briefly and then abandoned or deleted.

How the typologies look on the XRP Ledger

The XRPL has no mixers or privacy features at the protocol level, and its native features shape how laundering shows up:

Typology What to look for on the XRPL
Pass-through Payment in, Payment out of nearly equal value, often within the same few ledgers (seconds apart)
Peel chain A path of accounts, each with one main input and two outputs, one small and one large to a brand-new account
Fan-out / fan-in High out-degree from one account, or high in-degree to one account, with uniform amounts
Fresh-account batches Many accounts whose first transaction is a Payment from the same parent, close in time; later AccountDelete
Asset hopping Cross-currency Payments, OfferCreate crossings and AMM swaps between a receipt and a cash-out
Cash-out Payments to known exchange addresses, each with a destination tag that identifies one customer at that exchange
Delayed movement Escrows and checks that release value later, outside a short analysis window

Three XRPL-specific details matter for interpretation:

  • Destination tags: when funds reach an exchange, the tag is what tells the exchange which customer to credit. Investigators pass the (address, tag) pair to the exchange; only the exchange can tie it to an identity.
  • Compliance controls exist for issued tokens: issuers can freeze trust lines and, if enabled before issuing, claw back tokens. Neither applies to native XRP, and no transaction can be reversed after validation.
  • Account settings are signals: RequireDest and DepositAuth are typical of services that care about attribution.

Learning from real incidents

Public reporting on XRP Ledger incidents shows the cash-out end of the lifecycle clearly.

  • January 2024: around 213 million XRP (about US$112 million at the time) was stolen from personal accounts of Ripple co-founder Chris Larsen. Investigator ZachXBT flagged the movement on-chain, and reports said the funds were sent on to several exchanges, including MEXC, Gate, Binance and Kraken. The public ledger made it possible to alert exchanges within hours.
  • June 2019: the GateHub wallet service reported a breach of about 23 million XRP.
  • April 2025: malicious versions of the official xrpl npm package were published and sent private keys to an attacker. It's a reminder that key theft, the placement stage, often starts off-chain.

Use incidents like these to sanity-check your model: would it have flagged the movement between the theft and the exchange deposits?

Turning typologies into features

A good detection approach for a one-day hackathon has three layers, from most to least explainable:

  1. Behavioural features per account: counts, totals, distinct counterparties, pass-through ratio, time between receiving and forwarding, uniformity of outgoing amounts, account age, funding parent, share of dust.
  2. Transparent rules built from those features: "forwarded at least 90% within 10 minutes", "sent to 10 or more counterparties in uniform amounts". These are easy to explain to judges and investigators.
  3. A model on top: an unsupervised anomaly detector such as an Isolation Forest when you have no labels, or graph methods (graph features, graph neural networks) when you do.

Why unsupervised first? There's no labelled XRPL laundering dataset. Even the best-known research dataset, the Elliptic Bitcoin graph (about 200,000 transactions), labels only around 2% as illicit and most of the rest as unknown. Treating "unknown" as "clean" is one of the most common evaluation mistakes in this field.

Exercise: score accounts by typology

This script reads xrp_payments.csv from the previous module, sets dust aside, computes typology features, applies transparent flags, finds short cycles, and ranks accounts with an Isolation Forest. In the live session, the 50-ledger dataset from Exercise 3 is enough to see it work; before the hackathon, rerun Exercise 3 over 100 to 200 ledgers for a richer result.

Read the top of the ranking critically. Is the "most anomalous" account a launderer, or a market maker, an exchange hot wallet or a spam bot? That question, answered with evidence, is what separates a strong hackathon project from a weak one.

Pitfalls to avoid

  • Exchanges look anomalous. Hot wallets have huge fan-in and fan-out. Label known services and treat them as a separate class instead of flagging them.
  • Dust dominates. Remove or separately model payments that carry no real value.
  • Windows cut patterns in half. A peel chain spread over two days is invisible in a one-hour window.
  • Leakage in evaluation. If you build labels from a rule, don't report the same rule's accuracy as your model's performance.
  • Naming and shaming. Never publish an address as "criminal" in your slides. Say "flagged for review" and show the evidence.

Check

You're done when you can explain placement, layering and integration, name five on-chain typologies and how each appears on the XRPL, and justify why your first model should be explainable. Then take the quiz and run the scoring exercise.

Assignments

0 of 2 complete

Unlocks

Finishing this module opens up: