NewsCryptoChainflip Blames libzmq Memory Bug for $12.6M Vault Exploit, Plans Recovery Fund

Chainflip Blames libzmq Memory Bug for $12.6M Vault Exploit, Plans Recovery Fund

Author: Cryptopolitan·

Key Takeaways

  • •The $12.6 million theft was caused by a use-after-free memory bug in libzmq rather than flaws in Chainflip's vault smart contracts, signing system, or State Chain.
  • •The attacker only needed a validator account with the minimum 20,500 FLIP stake to access real validators' machines and copy enough vault key shares to sign transactions alone, circumventing the requirement that 100 of 150 validators approve each vault transaction.
  • •The protocol will not restart until every validator that was online during the attack is rebuilt on new hardware with fresh credentials, and validators are voting on an operator allowlist, with no restart date announced.
  • •Repayments will come from a protocol-run recovery fund backed by new contributions, since the attacker ignored a 10% reward offer to return 110.58 BTC and 2,618 ETH by November 23.
  • •The stolen Ethereum assets were routed through Tornado Cash while the Bitcoin has not moved from its receiving addresses, and Chainflip is pursuing leads, including exposed IP addresses, with tracing firm ZeroShadow and law enforcement.
Chainflip Blames libzmq Memory Bug for $12.6M Vault Exploit, Plans Recovery Fund

Cross-chain trading protocol Chainflip has traced its $12.6 million vault exploit to a memory-handling bug in libzmq, an open-source messaging library, according to a second incident report published by the team. The theft took place on November 21, and the protocol remains paused while its validators rebuild their machines on new hardware. The team is also preparing a recovery fund for affected users, though the attacker has so far ignored an offer to return the money for a reward. The findings detail how an outsider with a minimal stake was able to defeat a signing system that requires broad validator consensus — and how the weak point turned out to be a third-party dependency rather than the protocol's own contracts or chain logic.

How the exploit worked

The attack originated from a memory bug in libzmq, the open-source library that Chainflip's validators use to communicate with one another. Notably, the hacker did not need to operate a working validator: the report says the attacker only had to create a validator account and lock up the minimum stake of 20,500 FLIP to gain access to the protocol's real validators.

The intruder took advantage of a flaw known as a use-after-free bug — a long-documented class of memory-safety defect — which mishandles computer memory and allowed the hacker to run their own code on the validators' machines. From that foothold, the attacker copied enough pieces of the vault keys to sign transactions alone, outside the network.

Security firm Halborn explained the significance of that move: Chainflip runs 150 validators, and 100 of them must agree before a vault transaction goes through. By taking the key pieces straight from the machines, the attacker bypassed that rule entirely. In effect, the threshold model guards against a minority of validators acting dishonestly, not against an attacker who can pull key material straight off the machines that store the shares.

The stolen funds were 133.34 BTC, 520.22 ETH, 3.25 million USDC and 758,141 USDT, worth about $12.6 million on the morning of the attack.

Chainflip placed the blame on libzmq and clarified that there were no problems in its vault smart contracts, its signing system or the logic of its main chain, called the State Chain. The team added that its emergency "safe mode" would not have stopped the theft even if it had been switched on earlier, because the attacker created the forged signatures outside the network.

The libzmq bug was fixed in version 4.3.3 and in every version after it, and all active validators now run version 4.3.4.

Securing the network before restart

Chainflip has said the protocol will not restart until the network has been made safer. Every validator that was online during the attack is being removed and rebuilt by its operator on new hardware with fresh login credentials, a step intended to clear out any key exposure left on compromised machines.

The team has also asked validators to vote on a plan that would allow only known operators into the sensitive parts of the network. Chainflip says this adds a permissioned layer on top of a network that remains decentralized. More safety measures are reportedly being discussed, and some may arrive later on the protocol's updated roadmap rather than at the restart. No restart date has been announced.

Repaying affected users

On repayment, the protocol says it has finished counting the losses and now has a final method for working out what each affected account, liquidity provider and swapper is owed. Loans that are still open will be settled at prices from the time of the attack, and repayments will come from a recovery fund run by the protocol. The team is asking liquidity providers, financiers and FLIP holders to contribute funds to rebuild it. With none of the stolen funds returned so far, those fresh contributions form the recovery pool's initial backing.

Chainflip previously tried to recover the stolen cryptocurrency directly, offering the attacker a 10% reward to return 110.58 BTC and 2,618 ETH by 18:38 UTC on November 23. Cryptopolitan reported that the deadline passed with nothing returned.

The stolen Bitcoin has so far not moved from its two receiving addresses, but the Ethereum assets were swapped to ETH and sent through Tornado Cash, which obscures where crypto came from.

Chainflip says it is working with tracing firm ZeroShadow and law enforcement. It added that the attacker exposed IP addresses on several services in the weeks around the attack, and the team is following those leads privately.

The team is also holding back a full technical report. It says it is confident about the main attack paths but has not confirmed the whole chain, and it does not want to help copycats.

This is Chainflip's second security failure in recent months. In September, the protocol lost 736,442 USDT from its Tron vault. FLIP is currently trading near $0.19 on CoinMarketCap, down about 98% from its March 2024 high of $9.48.

Immediate markers to watch: the completion of the validator rebuilds, the outcome of the operator-allowlist vote, contributions to the recovery fund, any movement of the still-dormant Bitcoin, and the full technical report the team says is still to come.