Bifrost Hack

TOTAL LOST $2.2M
Medium Other

Summarize with AI

Affected Chain 2022 Incident surface
Recovered - No recovery reported
All-Time Rank #620 By amount stolen
Protocol Type Exploit/Other Target category

Incident Overview

Bitcoin wallet Bifrost was attacked by hackers.

During the attack, the key of the server issuing the address was revealed, and the attacker was able to self-sign his own deposit address. Since the attacker could generate a valid signature on the deposit address, the BiFi platform recognized the attacker's $BTC transfer as a $BTC deposit in Bifrost. As a result, the attacker was able to borrow 1,852 $ETH with fake deposit.

Bifrost is a web3 derivatives protocol that provides decentralized cross-chain liquidity for staked assets. During the attack, the server key of the address issuing server was revealed, which is why the attacker was able to independently sign his own deposit address. In this transaction, the attacker signs the address: https://etherscan.io/tx/0x1a507140…88a29d

Since the attacker managed to generate a valid signature on the deposit address, BiFi recognized the attacker's $BTC transfer as a deposit, so attacker sends 321.7 $BTC as a "deposit": https://www.blockchain.com/btc/tx/dd0bf6ab976f2090dd48cf6223a50e3c6c8a616e5c28dfc9448f81f1b7e99346

The relayer detected the deposit and transmitted the verified deposit history to BiFi. Then the relayer minted $BiBTC as a $BTC collateral for the attacker.

Transaction of deposit detection: https://etherscan.io/tx/0x5c0460f5…c39e69

Transaction of deposit confirmation with minting $BiBTC: https://etherscan.io/tx/0x2e4422dd…a0c15f

The attacker then called the borrow() function to take 1.8k $ETH:

https://etherscan.io/tx/0x4b5d6687…dfcf76

which were subsequently withdrawn via Tornado.cash.

Attacker address on ETH: https://etherscan.io/address/0x282971de…4a6b10

Attacker address on Bitcoin: https://www.blockchain.com/btc/address/bc1qmgh7w47myz7kt7x34zqlr5azck7u8j8ewg3u2j

Attacker public keyhash: 0xDa2fe757…C3c8F9

Incident Report

Protocol / Project Bifrost
Date of Incident
Attack Technique Other
Classification Other
Primary Source View Post-Mortem

Protocol Information

Protocol Type Exploit/Other
Affected Token BFC
Official Website thebifrost.io/
Protocol Twitter/X @bifrostio
Team Public / Doxxed
Source Code Verified On-Chain

Market Context at Time of Hack

Token Categories
Derivatives Substrate Polkadot Yield Farming Polkadot Ecosystem Lending & Borrowing Liquid Staking Derivatives Layer 1

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Deep understanding of other and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Bifrost's contract logic - root cause: other
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Likely — with a thorough Other audit checklist and test coverage

If you're auditing a protocol with similar architecture to Bifrost, these are the critical security checks that could have prevented this incident (July 2022).

  • Verify all logic paths related to Other are guarded by proper access controls and input validation
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Sources & References

Learn to Prevent the Next Bifrost

The Bifrost hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial