Chainflip lost about $12.6M from its Bitcoin and Ethereum vaults on November 21. This was its second major incident in three months. In September, a Tron memo bug let an attacker take 736,442 USDT. That one was a flaw in Chainflip's own code. This one wasn't.
According to Chainflip's incident report, the entry point was ZeroMQ (libzmq), an open-source messaging library its validators use to talk to each other. The attacker never touched the smart contracts. They got into the validators' machines.
What happened
The attacker registered a validator account on November 20, the day before the theft. The minimum stake was 20,500 FLIP, roughly $6,100 at pre-hack prices. The account never joined the active validator set, but registration was enough to open peer-to-peer connections to the validators that were active.
From there, the attacker used a use-after-free bug in libzmq. Use-after-free is a memory-safety error: the program keeps using a piece of memory after it has been released. Here, it let the attacker run code inside validator processes and copy vault key shares out of memory.
With enough shares, the attacker produced valid vault signatures off-network. Chainflip's own wording is that the withdrawals were "authorised with valid vault signatures that the Chainflip protocol never requested." The chain saw valid signatures and had no reason to object.
The stolen assets were 133.34 BTC, 520.22 ETH and about $4M in stablecoins, roughly $12.6M. The first public estimate was $4.86M, and it grew as the Bitcoin vault loss was counted.
Timeline
- Nov 11: Funding through Tornado Cash that Chainflip later tied to the attacker
- Nov 20: Minimum-stake validator account registered
- Nov 21: Vaults drained. Chainflip put the protocol into safe mode and sent a patched release to operators at 17:06 UTC
- Nov 22: Second vault key rotation
- Nov 23: All active validators on the patched release by 11:31 UTC
- Nov 27: Part 2 of the incident report. Validators replaced, and a whitelist for validator registration proposed
The protocol stayed paused at the time of Chainflip's last update.
Why this one matters
The attack surface was pre-authentication
Anyone willing to lock up about $6K could get a peer-to-peer connection to the machines holding signing material. The network's economic security was priced in FLIP. The bug ignored it.
The weak link was a dependency
Chainflip's own protocol logic wasn't the problem. The flaw sat in a widely used C library. Per Chainflip's report it is corrected in libzmq 4.3.3 and later, and active validators now run 4.3.4. Teams audit their own code far more carefully than the libraries underneath it.
Key shares lived in process memory
Once an attacker had code execution inside a validator process, the shares were there to be copied. That is the case for isolating signing material: separate processes, hardware-backed storage, enclaves. Anything that keeps a compromised network-facing process from reading the key.
A threshold scheme only helps if machines fail independently
Per Halborn's breakdown of the incident, 100 of Chainflip's 150 validators must agree to approve a vault transaction. The attacker collected enough stolen shares to approve transactions without the network. If every validator runs the same vulnerable library, one exploit is a repeatable path to every machine, and the threshold stops protecting you.
Detection was not connected to response
Halborn reports that the attack triggered an automated alert, but the tool had a history of false positives, was still being evaluated, and was not wired into escalation. About an hour after the first theft, a team member noticed and started incident response. An alert nobody is paged by is just a log line.
Rotating keys once was not enough
According to Halborn, BTC was taken in two thefts, and one used a vault key that stayed valid after a forced rotation. Chainflip rotated vault keys twice, the second time after most validators were patched. Rotation only closes the exposure if the machines holding the new shares are clean.
What protocols should take from this
- Inventory every dependency on the network path. Know which versions run on every node, including the transitive ones. Ask whether "fixed in a later release" has actually reached your operators.
- Treat peer-to-peer parsing as hostile input. Fuzz it, sandbox it, and prefer memory-safe implementations where you can.
- Separate signing from networking. The process that talks to strangers should not be able to read the key.
- Gate who can connect. Chainflip's proposed fix is a whitelist of known operators. It trades some permissionlessness for a smaller attack surface, and every validator-based network should weigh that trade openly.
- Wire detection to escalation. Every alert that can mean lost funds needs a named owner and an automatic page, even if the tool is new and noisy. Tune the false positives, but connect it first.
- Rehearse the response. Key rotation, safe mode and operator patching should be a drill you've run, not something you figure out during the drain. Patch the machines before you rotate the keys, or the new shares can be stolen too.
