The hacker did not have to operate a working validator. Chainflip’s report says the attacker only needed to create a validator account and lock up the minimum 20,500 FLIP to gain access to its real validators.
The hacker took advantage of a flaw in libzmq called a use-after-free bug. It mishandles computer memory and allowed the hacker to run their own code on the validators’ machines
From there, the attacker copied enough pieces of the vault keys to sign transactions alone, outside the network. Security firm Halborn explained that Chainflip has 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 skipped that rule.
The stolen funds were 133.34 $BTC, 520.22 $ETH, 3.25 million USDC and 758,141 $USDT. That was 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, the signing system or the logic of its main chain, called the State Chain. Chainflip added that its emergency “safe mode” would not have stopped the theft, even if it had been turned on earlier because the attacker created the fake signatures outside the network.
The libzmq bug was fixed in version 4.3.3 and in every version after it. All active validators now run version 4.3.4.
Can Chainflip users get their money back?
Chainflip has said that it will not restart until it has made the network safer. Every validator that was online during the attack is being removed and rebuilt by its operator on new hardware with fresh login details in order to clear out any key exposure left on hacked machines.
The team has also asked validators to vote on a plan to let only known operators into the sensitive parts of the network. Chainflip says this adds a permissioned layer on top of a network that is still decentralized. More safety measures are reportedly being discussed, and some may come later on the protocol’s updated roadmap instead of at its restart.
Will Chainflip repay customer losses?
Regarding the repayment of Chainflip’s users, the protocol says it has finished counting the losses and now has a final method to work 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 that the protocol runs. The team is asking liquidity providers, financiers and FLIP holders to put in money to rebuild it.
Chainflip attempted to get the stolen cryptocurrency back by 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 hides 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 in private.
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, it 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.