Hack analysis6 min readNovember 21, 2026Vaultline Research (formerly 0xTeam)

Chainflip Lost $12.6M Because One Bug Beat a 100-of-150 Threshold

On November 21, 2026, Chainflip lost about $12.6M from its Bitcoin and Ethereum vaults after an attacker exploited a use-after-free bug in libzmq to steal validator key shares from memory.

Share
Chainflip Lost $12.6M Because One Bug Beat a 100-of-150 Threshold

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.

01Register a validator20,500 FLIP, about $6,100. No need to join the active set.
02Exploit libzmqA use-after-free bug gives code execution inside validator processes.
03Copy key sharesVault key shares are read straight out of process memory.
04Sign off-networkValid vault signatures the protocol never requested. About $12.6M leaves.

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

  1. 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.
  2. Treat peer-to-peer parsing as hostile input. Fuzz it, sandbox it, and prefer memory-safe implementations where you can.
  3. Separate signing from networking. The process that talks to strangers should not be able to read the key.
  4. 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.
  5. 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.
  6. 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.
Most audits stop at the contract boundary. If you run validators, relayers or any off-chain signing infrastructure, that is where the review needs to go too. Vaultline Security covers both the on-chain and off-chain sides.
Worried? Get your security audit done today.

Don't launch vulnerable code. Our team reviews your smart contracts and delivers a full audit report within 48 hours.

Request Audit

Talk to an engineer, not a sales team.

Free 30-minute scoping call. Quote within 24 hours. NDA standard.