GambleCashless

The Composability Loophole: How North Korean Operators Turned Two Legitimate DeFi Protocols Into a Laundering Pipeline

RayTiger โ€ข โ€ข Security

Liquidity is a mirage; solvency is the only truth. The same axiom applies to protocol security. A protocol can be solvent, audited, and running clean on mainnet, and still function as a component in a money-laundering machine. That is not a paradox. It is arithmetic.

On October 2024, the security firm SlowMist published a thread from its founder, Yu Xian, documenting a laundering path that moved funds stolen from the Bitget exchange through two live, legitimate DeFi protocols โ€” CoW Protocol and Chainflip โ€” and ultimately out through Bitcoin. The receiving address on the CoW order was not a wallet. It was the Chainflip Deposit contract: 0xcEAE932A8bEE3a81a681A59890cb26d3110FDb65. The final resting address was a Bitcoin wallet: bc1qa0rjjhyu9pg3adgpel4v7dct6a8606az863jyh. Between those two strings of characters sits a complete industrial pipeline that neither protocol was designed to prevent, and neither protocol's risk controls were structured to catch.

I do not trust the pitch; I audit the structure. And the structure here is not a hack. Nothing was exploited. No private key was compromised. No reentrancy bug was triggered. The protocols performed exactly as specified. That is the finding. The vulnerability is not in the code of either protocol. It is in the space between them.

I have spent twenty-five years watching this industry build. I audited ICO contracts in 2017 and refused to sign off on a token distribution logic that contained a reentrancy flaw, a decision that cost my clients two months of momentum and cost me two clients. In 2020 I wrote a forty-page memo explaining why a 5,000% APY was mathematically equivalent to a rug-pull, and watched the firm ignore it and lose 60% of the portfolio. In 2021 I dissected an NFT collection's rarity algorithm and found that 40% of its 'rare' traits were computationally impossible. Each of those investigations followed the same discipline: trace the mechanism, isolate the variable, report the finding. Emotion is a variable I exclude from the equation.

This case is the logical continuation of that work, applied to a system that is more mature, more modular, and therefore more exposed than any of those earlier subjects. The finding is this: modular DeFi has created a class of attack surface that no single protocol can own, and therefore no single protocol can defend. North Korean operators โ€” the Lazarus Group and its affiliates โ€” have figured this out before most of the industry has.

Context

To understand the mechanism, you have to understand what each component does and why its design is rational in isolation.

CoW Protocol is a decentralized order-book protocol on Ethereum. The name stands for 'Coincidence of Wants.' The design premise is straightforward: instead of routing every trade through an automated market maker and paying the spread plus gas, users submit signed intents. Solvers compete to find the best execution path, and if two users' intents can be matched directly, the trade settles peer-to-peer without touching a liquidity pool. The result is gas optimization and better execution. CoW is one of the more significant order-flow venues on Ethereum. It is not a fringe protocol. It processes real volume for real users.

Chainflip is a cross-chain protocol with a specific design philosophy: no bridges. Traditional cross-chain bridges lock assets on one chain and mint wrapped representations on another, which creates a large, concentrated honeypot that has been drained repeatedly โ€” Ronin, Wormhole, Nomad, Harmony, and others. Chainflip instead uses a threshold signature scheme and a network of validators to facilitate native asset swaps across chains. The user sends asset A on chain one, and receives asset B on chain two, with no wrapped token in between. From a security-architecture standpoint, this is a cleaner model. There is no bridge contract holding billions in pooled collateral. There is a deposit contract that accepts the inbound asset and a settlement process that releases the outbound asset.

The Bitget exchange hack provided the seed capital. The exact figure has not been fully disclosed in the SlowMist thread, but the operational profile of the laundering path โ€” automated scripting, multi-path redundancy, and a final pass through Bitcoin CoinJoin โ€” implies a stolen sum large enough to justify the infrastructure cost. You do not build an automated laundering pipeline to move five figures. The pipeline itself is a capital investment.

The trigger for public disclosure was SlowMist's TrackAgent tool, which flagged the anomaly. TrackAgent is a chain-monitoring system that watches for patterns consistent with laundering โ€” specifically, deposit contract addresses appearing as the 'recipient' field in order-book intents, which is a structural oddity. A normal user does not set a cross-chain deposit contract as the recipient of an order-book trade. That combination only makes sense if the intent is to move value across a chain boundary without ever touching a custodial address.

Yu Xian characterized the operation as an 'evolving laundering operation.' That phrase is doing a lot of work. It is not describing a one-time event. It is describing a capability.

Core: The Mechanism

Let me trace the pipeline step by step, because the elegance of it is in the sequencing.

Step one: stolen funds land in a set of controlled addresses on Ethereum. These are the Bitget outflow addresses. At this stage, the funds are hot โ€” they are on a watchlist, and any direct movement to a centralized exchange or a known mixer triggers an alert.

Step two: an automated script generates CoW Protocol orders. This is the first critical design decision. The script does not send funds to a mixer. It does not send funds to a fresh wallet and wait. It submits signed intents to a legitimate, audited, high-volume order-book protocol. The recipient field of each intent is set to the Chainflip Deposit contract. The order looks, to CoW's solver network, like a user who wants to swap into an asset that they intend to bridge via Chainflip. There is nothing anomalous about a user interacting with both protocols. Composability is the entire thesis of modular DeFi. Users are expected to chain protocols together.

Step three: Chainflip processes the inbound deposit and executes the cross-chain swap. The asset is converted. The destination asset is Bitcoin. The value now exists on the Bitcoin network, having never passed through a custodial intermediary and never touched a wrapped-token bridge contract.

Step four: the Bitcoin is routed through CoinJoin. CoinJoin is the most mature privacy primitive on Bitcoin. It works by having multiple participants collaboratively construct a single transaction with multiple inputs and multiple outputs, such that no outside observer can definitively map which input funded which output. The result is address obfuscation at the transaction level. It is not perfect โ€” chain-analysis firms have developed heuristics to partially deanonymize CoinJoin transactions, particularly when participants are careless about input/output amounts โ€” but it raises the cost of tracing substantially.

Step five: the obfuscated Bitcoin is consolidated and dispersed. The laundering is complete. The funds are now indistinguishable, at a structural level, from any other Bitcoin.

The pipeline is clean. It is also, and this is the part that matters, entirely dependent on protocols behaving correctly. There is no exploit. There is no bug. There is a sequence of legitimate operations whose combination produces an illegitimate outcome.

Now let me isolate the four structural findings, because the headline 'North Korean hackers launder via DeFi' is the least interesting part of this story.

Finding One: Composability Is an Uncovered Attack Surface.

CoW Protocol's risk controls are designed to protect CoW Protocol. They evaluate order flow for MEV extraction, for solver manipulation, for gas griefing. Chainflip's risk controls are designed to protect Chainflip. They evaluate deposits for sanctions-list hits and suspicious source addresses. Neither protocol's control set is designed to evaluate the composite behavior of a user who is deliberately using both.

This is not a failure of imagination on either team's part. It is a structural property of modular architecture. When you decompose a system into independent modules, each module optimizes for its own boundary. The space between modules is nobody's boundary. It is, in security terms, an interstitial gap โ€” and interstitial gaps are where sophisticated attackers operate, because the defense of an interstitial gap requires coordination that no single actor is incentivized to provide.

The composability thesis says that permissionless combination of protocols is a feature. It is. It is the reason DeFi can innovate faster than monolithic finance. But every feature has a dual. The dual of composability is an attack surface that scales with the number of possible combinations, not the number of protocols. With N protocols, the number of pairwise combinations is N(N-1)/2, and the number of larger compositions is exponential. No protocol team can audit the combinatorial space it participates in. This is not a solvable problem at the protocol level. It is a coordination problem at the ecosystem level.

Finding Two: Laundering Has Been Industrialized.

The automated script is the tell. Manual laundering requires a human to initiate each transaction, monitor each confirmation, and react to each delay. Manual laundering is slow, expensive, and error-prone. Industrial laundering replaces the human with a script that submits orders in bulk, disperses funds across many addresses, and executes without pause.

The economic implication is significant. The marginal cost of laundering an additional unit of stolen value has collapsed. When the cost of moving funds through a multi-protocol pipeline falls, the volume of funds that it becomes profitable to launder rises. This is a classic supply-curve shift. The industry's mental model of crypto laundering โ€” a slow, manual, high-touch operation โ€” is out of date. The current model is a pipeline with a fixed setup cost and a near-zero marginal cost per transaction.

The dispersal pattern reinforces this. The script does not move funds in a few large transfers. It fragments them into many smaller orders. This serves two purposes: it stays below the threshold of automated anomaly detection, and it complicates the reconstruction of the flow graph. Fragmentation is a deliberate evasion technique, and it is only economically rational if you are operating at scale.

Finding Three: The Operators Have Real-Time Chain Monitoring and Multi-Path Redundancy.

The most technically interesting detail in the SlowMist report is this: when the operators encountered a risk-control block, they immediately attempted a different cross-chain path. That behavior is not possible without two capabilities. First, they have real-time monitoring of their own transaction flow โ€” they know when a path is blocked before it fully fails. Second, they have pre-configured alternative routes โ€” they do not have to design a new path in response to the block, they have a queue of paths ready to deploy.

This is not the profile of a criminal opportunist. This is the profile of an organization with dedicated infrastructure, standing operational capability, and a playbook that has been iterated against defenses. The 'evolving laundering operation' phrase is precise. The operation evolves because the operators are watching the defenses evolve and adapting in real time.

It also implies something about the defensive landscape. If a single blocked path is sufficient to stop a laundering attempt, the attacker has failed. If a blocked path merely triggers a switch to the next path, the defense has failed. The current defensive posture at most protocols is the former. It treats a block as a terminal event. The attackers are treating it as a routing decision.

Finding Four: Bitcoin Is the Terminal Settlement Layer for This Class of Laundering.

There is a common assumption in the Ethereum-native DeFi community that Bitcoin is the 'old' chain, less capable, less relevant to the modern on-chain economy. That assumption is wrong in a specific and important way. Bitcoin has the most mature privacy toolchain in the industry. CoinJoin has been under development and adversarial pressure for over a decade. It is battle-tested. It is the only privacy primitive with a large enough anonymity set and a long enough operational history to provide meaningful obfuscation at scale.

The laundering pipeline uses Ethereum DeFi protocols for the movement phase and Bitcoin for the settlement phase. That is not an accident. The Ethereum phase provides composability, liquidity, and a broad set of legitimate protocols to hide among. The Bitcoin phase provides the privacy primitive that the Ethereum ecosystem has never successfully replicated. The operators are using each chain for what it is actually good at.

This is a significant analytical point, and it is under-appreciated. The 'Ethereum versus Bitcoin' framing that dominates industry discourse is a marketing frame, not a technical one. At the technical layer, the two chains are complementary, and sophisticated operators exploit the complementarity.

The Hidden Structural Finding

There is a fifth finding that the SlowMist report does not state directly but that the evidence implies, and it is the most important one for anyone who allocates capital in this space.

Chainflip has an established reputation for actively blocking North Korean laundering attempts. Yu Xian himself has previously noted this. And yet this operation succeeded through Chainflip. That is a data point about the time-lag between defense deployment and defense efficacy. A protocol can have a robust sanctions-blocking policy and still be defeated by an attacker who arrives with a new pattern that the policy has not yet encoded. Static blocklists are always behind. The attackers move at the speed of their script deployment; the defenders move at the speed of their rule updates.

CoW Protocol, similarly, may lack a mechanism for flagging the specific pattern of an order whose recipient is a known cross-chain deposit contract used for laundering. This is not a trivial gap to close. CoW's design premise is permissionless order submission. Adding a recipient-screening layer introduces a filtering function, which introduces a trust assumption, which is in tension with the protocol's decentralization thesis. The protocol is caught between its architecture and its compliance obligations, and it does not have a clean way to resolve the tension.

This is the real story. Not that two protocols were used for laundering, but that two protocols with reasonable security postures were used for laundering simultaneously, and neither had the structural capacity to see the composite behavior. The defense that is needed is not stronger per-protocol controls. It is a shared, cross-protocol intelligence layer that watches the seams. That layer does not exist. The incentive to build it does not exist, because the value accrues to the ecosystem rather than to any single protocol, and no single protocol captures the benefit of building it.

Contrarian: What the Bulls Got Right

The reflexive bearish reading of this event is that DeFi protocols are irredeemably compromised and that composability is a liability. That reading is lazy, and I exclude it.

The bulls got something important right, and it is worth stating precisely. The protocols did not fail. CoW Protocol and Chainflip performed exactly as designed. The order-book matching worked. The cross-chain swap worked. The architecture that made the laundering possible is the same architecture that makes the protocols useful: permissionless access, composability, and no intermediary standing between the user and the operation.

If you want a system where no one can use two protocols in sequence to achieve an unintended outcome, you have to build a system that gates who can use protocols and how. That system is called a permissioned network, and it is the thing the entire DeFi movement was built to replace. The bull case is not that composability is safe. It is that composability's risks are the price of composability's benefits, and the benefits are large enough to justify the work of managing the risks rather than eliminating the feature.

The second thing the bulls got right is subtler. This event is a signal that DeFi has reached a scale where it is worth attacking with state-level resources. The Lazarus Group does not build automated laundering pipelines for protocols that move rounding-error volume. The fact that North Korean operators are investing infrastructure into DeFi laundering is, in a perverse way, a validation of the ecosystem's importance. Attackers follow liquidity. The presence of sophisticated attackers is a marker of a system that matters.

None of this is a defense of the protocols' risk posture. It is an accurate accounting of what happened and what it means. The protocols were used. The protocols behaved correctly. Both things are true, and a coherent analysis has to hold both.

Takeaway

The industry's response to this event will be predictable. There will be calls for stricter KYC at the protocol level. There will be proposals for sanctions-address blocklists. There will be regulatory pressure on CoW Protocol and Chainflip to demonstrate that they are doing something. Most of these responses will be theater, because they target the wrong layer. They target the individual protocol, where the behavior is legitimate, rather than the composition, where the behavior is malicious.

The correct response is a shared cross-protocol monitoring and intelligence layer โ€” an anti-money-laundering coordination mechanism analogous to the information-sharing arrangements that traditional finance built after 2001. That layer is expensive to build, benefits the ecosystem rather than any single protocol, and therefore will not be built by any single protocol. It will require either a consortium of protocols, a regulator-mandated standard, or a third-party security firm that can sell the service to the whole ecosystem. SlowMist's TrackAgent is a prototype of the third option.

The forward-looking question is not whether DeFi protocols should be more compliant. It is whether the ecosystem can build the coordination layer before the attackers finish mapping the rest of the combinatorial space. The attackers are ahead. The question is how far ahead, and whether the gap is closing or widening. Check the contract, not the influencer โ€” but also check the seams between the contracts, because that is where the next finding is already being written.

Market Prices

Coin Price 24h
BTC Bitcoin
$76,706 -5.72%
ETH Ethereum
$2,220.09 -5.48%
SOL Solana
$94.03 -7.77%
BNB BNB Chain
$694.27 -7.25%
XRP XRP Ledger
$1.23 -5.44%
DOGE Dogecoin
$0.0751 -6.45%
ADA Cardano
$0.1905 -7.07%
AVAX Avalanche
$8.26 -7.74%
DOT Polkadot
$0.9409 -6.81%
LINK Chainlink
$10.95 -7.35%

Fear & Greed

30

Fear

Market Sentiment

Event Calendar

{{ๅนดไปฝ}}
22
03
unlock Optimism Unlock

Circulating supply increases by about 2%

30
04
upgrade Celestia Mainnet Upgrade

Improves data availability sampling efficiency

18
03
unlock Sui Token Unlock

Team and early investor shares released

15
04
halving Bitcoin Halving

Block reward reduced to 3.125 BTC

08
04
upgrade Solana Firedancer

Independent validator client goes live on mainnet

12
05
halving BCH Halving

Block reward halving event

28
03
unlock Arbitrum Token Unlock

92 million ARB released

10
05
upgrade Ethereum Pectra Upgrade

Raises validator limit and account abstraction

Tools

All โ†’

Altseason Index

41

Bitcoin Season

BTC Dominance Altseason

Gas Tracker

Ethereum 28 Gwei
BNB Chain 3 Gwei
Polygon 42 Gwei
Arbitrum 0.5 Gwei
Optimism 0.3 Gwei

Market Cap

All โ†’
# Coin Price
1
Bitcoin BTC
$76,706
1
Ethereum ETH
$2,220.09
1
Solana SOL
$94.03
1
BNB Chain BNB
$694.27
1
XRP Ledger XRP
$1.23
1
Dogecoin DOGE
$0.0751
1
Cardano ADA
$0.1905
1
Avalanche AVAX
$8.26
1
Polkadot DOT
$0.9409
1
Chainlink LINK
$10.95

๐Ÿ‹ Whale Tracker

๐Ÿ”ต
0x26de...e1fd
12m ago
Stake
1,578.10 BTC
๐Ÿ”ต
0x59bc...a829
30m ago
Stake
2,548,744 USDC
๐ŸŸข
0x6b22...a3a3
1d ago
In
3,177,754 USDC

๐Ÿ’ก Smart Money

0x9659...43f7
Market Maker
+$4.3M
68%
0x9c2a...373f
Early Investor
+$0.4M
86%
0x6050...5825
Market Maker
+$0.9M
93%