Thorchain DEX Hack

Reported loss $8.0M
Ethereum
Refund Logic Exploit

What happened

On July 22, 2021, an attacker abused THORChain's Ethereum deposit observation and refund logic. Rekt's reproduction of Halborn's analysis reported approximately $8 million in affected assets. A fake deposit event with an invalid memo triggered a refund to the attacker.

Technical root cause

Improper handling of deposit events allowed fabricated deposits to trigger refunds.

How it happened

  1. The attacker deployed a fake router and invoked returnVaultAssets with a small ETH payment and a malicious vault destination.
  2. The destination produced a fabricated deposit event with a malformed memo.
  3. Bifrost treated the event as a normal deposit.
  4. The invalid memo triggered a refund to the attacker, releasing assets against the fabricated deposit.

Protocol details

Classification Protocol Logic / Exchange (DEX)
Protocol Type DEX
Category Bridge Hack
Affected asset / contract RUNE
Implementation language Solidity
Protocol links Website @thorchain

Security review history

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.