Terra Classic Hack

TOTAL LOST $40.0B
Critical #1 All-Time Other

Summarize with AI

Affected Chain 2022 Incident surface
Recovered - No recovery reported
All-Time Rank #1 By amount stolen
Auditors 1 Prior security audit

Incident Overview

A complex mixture of events and market dynamics cost the implosion of the $40b Terra (Classic) Network.

The Terra Luna Network was focused on its two native coins $LUNC and $USTC. $USTC was the algorithmic Stablecoin that was supposed to hold the peg to 1$ and $LUNC functioned as the satellite asset that absorbed $USTC’s volatility. This was achieved through a mint and burn functionality as well as by arbitrage which the former function inherently enabled.

$USTC rose to prominence in rapid fashion even surpassing $DAI in market cap. The Luna Foundation Group decided to start a new Curve4pool with $FRAX, $USTC, $USDC and $USDT as assets, excluding $DAI in an attempt to starve the most used StableCoin pool used by institutions the Curve3pool on the Ethereum network.

The migration of $USTC from the Curve3pool is the event that started the bankrun. In early May, the Luna Foundation Guard withdrew 250 million $USTC from the Curve3pool in preparation for the Curve4pool. Simultaneously, a handful of whales withdrew sizeable amounts from the anchor protocol, a crypto savings bank. The biggest wallet withdrew 347 million $USTC in total and bridged funds to the Curve3pool in order to swap for other assets. This movement of funds created an imbalance between $USTC and other Stablecoins in the pool, resulting in devaluation of $USTC on exchanges.

As a result of the tokenomics of $USTC and $LUNC the firesale of $USTC resulted in uncontrollable minting of the $LUNC token and a rapid fall in valuation. Additionally, the Terra network went down due to overload in transaction as market participants were panicking and trying to answer margin calls within the Anchor protocol. Eventually massive liquidations of collateral in the Anchor protocol would be incurred by investors.

Whale Addresses:

https://etherscan.io/address/0x8d47f08e…947d0a

https://etherscan.io/address/0x4b5e60cb…bb781c

https://etherscan.io/address/0x1df8ea15…aa2a06

https://etherscan.io/address/0xeb5425e6…01f232

https://etherscan.io/address/0x41339d98…5ebb1c

https://etherscan.io/address/0x68963dc7…9b9c69

https://etherscan.io/address/0x9f705ff1…cd7784

Incident Report

Protocol / Project Terra Classic
Date of Incident
Attack Technique Other
Classification Stablecoin

Protocol Information

Protocol Type Exploit/Other
Affected Token LUNC, USTC
Official Website www.terra.money/
Protocol Twitter/X @terra_money
Team Public / Doxxed
Source Code Unverified

Market Context at Time of Hack

Token Categories
Cosmos Ecosystem Store Of Value DeFi Payments Ethereum Ecosystem Coinbase Ventures Portfolio YZi Labs Portfolio Avalanche Ecosystem

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 Terra Classic's contract logic - root cause: stablecoin
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
Audited by Certik — still lost $40.0B. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to Terra Classic, these are the critical security checks that could have prevented this incident (May 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

Security Audit History

Sources & References

Learn to Prevent the Next Terra Classic

The Terra Classic 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