SECURITY ALERT · UPDATE

The keys were split across many machines.

The machines all spoke the same language.

Chainflip says the attacker who drained its bitcoin and ether vaults on 21 Nov got in through libzmq, an open-source messaging library its validators use to talk to each other, according to part 2 of its incident report, posted on Friday.

Its investigation “indicates” that the attacker used a use-after-free flaw, a bug where software keeps using memory it has already released, to run code inside validator processes and copy enough vault key shares to sign transactions on its own.

The project says it has not yet confirmed every step of the attack “with full confidence”, and it is holding back the detailed technical write-up.

So what changed since Monday?

The name of the door

Chainflip’s first incident report, on 23 Nov, described a memory-safety flaw in a “third-party networking library” and did not name it.

Now it has a name.

According to Chainflip, libzmq versions from 4.3.3 onward contain the fix, and all of its active validators have moved to builds using 4.3.4.

The library’s own release notes date version 4.3.3 to 7 Sep 2020 and version 4.3.4 to 17 Jan 2021. Chainflip does not say which version its validators were running before the attack.

The report says investigators found nothing wrong with the vault contracts, the threshold-signing scheme or the logic of Chainflip’s own State Chain. Switching to safe mode earlier “could not have prevented any losses”, it adds.

If the code was sound, what about the machines?

Fresh machines

Every Chainflip validator that was online at the time of the exploit is being rotated out, Chainflip says. Operators are replacing them entirely, with fresh machines and new credentials.

The project has also sent validators a proposal to limit the set to the known, existing operators. A whitelist would keep operators it does not know out of the parts of the network that hold the keys.

Chainflip calls that “a permissioned layer”. The attacker’s way in, as the first report described it, was registering as a new validator.

Other hardening measures are under discussion. Chainflip says it has not decided which must be done before a restart and which can wait.

And the money?

Follow the funds

Chainflip says the bitcoin has not moved, and that the ether is “also likely” sitting in Tornado Cash, a mixer.

Our read of the Bitcoin record agrees on the first point. As of 14:45 UTC on Friday, neither holding address had spent anything:

bc1qm777twlzmelyutungyfw65ykn2l5kn68e6v4g6 (122.86 BTC)

bc1qp5r8aemhg8pxytlhcn43k8ptc6l6y03vxud5pr (10.48 BTC)

The total taken was 133.34 BTC, 520.22 ETH, about 3.25 million USDC and about 758,000 USDT, or about $12.6 million at prices on the morning of 21 Nov, per the first report. We covered the bitcoin leg in the 122.86 BTC and the bounty offer.

The report says the attacker exposed IP addresses in several services, including in the weeks before the exploit. Chainflip says this has produced “several significant leads” that it will not detail.

It has reported the theft to law enforcement. No authority has commented publicly, and no one has been named.

The 10% bounty offer for returning the rest still stands.

Who gets paid back, and how?

Where it stands

  • Paused: the Chainflip protocol stays paused until the security review and remediation are complete. There is no restart date.
  • Accounting: Chainflip says it has finished counting how the attack affected each account, including swappers caught mid-trade, account holders and liquidity providers. Outstanding loans will be settled at prices from the time of the attack.
  • Recovery fund: a protocol-managed user recovery fund is planned. Separate proposals for swappers, active liquidity providers, inactive ones in boost and stablecoin strategies, and Chainflip Labs itself are still to come.
  • Liquidity providers: all the major active market makers have said they are willing to return, provided the security work is done “to a high standard” and a recapitalisation plan is in place, according to the report.
  • Swaps: the swap.chainflip.io app will route trades through SwapKit, a third-party aggregator, while the protocol is down. It will use routes such as NEAR Intents, THORChain and Maya Protocol. No date was given.

FLIP, Chainflip’s token, traded at about $0.19 at 14:45 UTC, up about 6% over 24 hours, according to CoinGecko.

Protect yourself

  • Until Chainflip says its own protocol is live again, a swap on its app will be filled by other networks through SwapKit. Check the route and the receiving address before you confirm.
  • If you were a liquidity provider, check your refund wallets. Chainflip says governance returned free balances on unaffected chains to those addresses.
  • Expect fake “recovery fund” and “claim” pages. No claims process has been published. Read what a private key controls.

By the library’s own release notes, the fix for that door has been public since 2020.

How many other networks are still running code that old in the one place an outsider can reach?

Corrections and new evidence: [email protected]

This article is for information only and is not investment advice.