Compound Labs Hack

TOTAL LOST $89.0M
High #86 All-Time Oracle Issue ethereum

Summarize with AI

Affected Chain ethereum Incident surface
Recovered - No recovery reported
All-Time Rank #86 By amount stolen
Protocol Type Exploit/Oracle Issue Target category

Incident Overview

Two big liquidations occurred on Compound Protocol due to the $DAI price spike.

Compound is the lending protocol that also provides yield functionality. Around $89 million was liquidated on the protocol Compound due to the oracle issue, as far as Compound's oracle uses Coinbase for pricing data. The price of $DAI token spiked up to $1.3 on the Coinbase Pro exchange.

Since many of the loans were undercollateralized, they were liquidated.

$46 million liquidation transaction:

https://etherscan.io/tx/0x53e09adb…50f3e4

Address liquidated on $17.5 million in several transactions:

https://etherscan.io/address/0xb1adcedd…029484

Incident Report

Protocol / Project Compound Labs
Date of Incident
Affected Chain(s) ethereum
Attack Technique Oracle Issue
Classification Borrowing and Lending
Primary Source View Post-Mortem

Protocol Information

Protocol Type Exploit/Oracle Issue
Affected Token COMP
Official Website compound.finance/
Protocol Twitter/X @compoundfinance
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
DeFi Ethereum 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 oracle issue and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with ethereum smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Compound Labs's contract logic - root cause: borrowing and lending
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? Yes — skilled auditors routinely flag Oracle Issue vulnerabilities in code review

If you're auditing a protocol with similar architecture to Compound Labs, these are the critical security checks that could have prevented this incident (November 2020).

  • Verify all logic paths related to Oracle Issue are guarded by proper access controls and input validation - see the Oracle Manipulation & Price Manipulation attack class for patterns
  • Audit oracle price feeds for manipulation risks - ensure time-weighted average prices (TWAPs) or multi-source aggregators are used, not spot prices
  • 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

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Oracle Manipulation & Price Manipulation examples →

Sources & References

Learn to Prevent the Next Compound Labs

The Compound Labs 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