FraudCodex FraudCodex
Market Abuse Crypto & Digital Assets

Oracle Manipulation

How attackers move the prices DeFi oracles read to borrow against inflated collateral, and how to detect it.

Last reviewed

1 Introduction

DeFi lending and derivatives protocols rely on price oracles to value collateral and positions. Oracle manipulation is the practice of moving the price on the market an oracle reads, usually a thin spot market or a single AMM pool, so that the protocol values an asset at a false price. The attacker then borrows against inflated collateral or withdraws paper profits, and leaves the protocol with bad debt once the price falls back.

The capital to move the price can come from the attacker's own funds or from a flash loan repaid in the same transaction. Regulators treat the conduct as market manipulation: when the CFTC sued over the 2022 Mango Markets attack it described the scheme as oracle manipulation and called it its first action over a fraudulent or manipulative scheme on a purportedly decentralised platform.

$110M

Obtained from Mango Markets in October 2022, according to the DOJ

$130M

Lost by Cream Finance in an October 2021 price-manipulation exploit

Thin

Liquidity of the markets typically targeted to move an oracle price

2 Interactive Oracle Manipulation Walkthrough

Phase: Collateral Posted

Attack Flow

Protocol Exposure (illustrative, $M)

Step 1 - Collateral Posted: The attacker deposits a large amount of a thinly traded token X into a lending protocol. At the fair price of $1 it is worth $1 million of collateral.

3 Detailed Analysis

Oracle Designs and Related Attacks

Spot-price oracle

Reads the instantaneous price from one pool or venue. Cheapest to build and easiest to manipulate, especially with flash loans.

TWAP or median oracle

Averages over time or takes the median of several venues, so a short-lived price spike has much less effect, at the cost of lagging real moves.

Flash loan attack

A funding technique, not a distinct abuse: uncollateralised loans repaid in one transaction often supply the capital for oracle manipulation.

Classic market manipulation

Marking the close or ramping a thin stock to affect a valuation or a derivative payoff follows the same economic logic in traditional markets.

Legal & Regulatory Framework

In the US, the CFTC brought a civil action against Avraham Eisenberg in January 2023 under the anti-manipulation and anti-fraud provisions of the Commodity Exchange Act. Prosecutors charged him with commodities fraud, commodities manipulation and wire fraud (18 U.S.C. §1343), and the SEC filed a parallel complaint. In May 2025 the trial judge set aside the jury's verdicts, citing insufficient evidence of false representations and of venue, which shows how hard it is to fit oracle manipulation into fraud statutes.

In the EU, MiCA Article 91 prohibits market manipulation in crypto-assets within its scope, including transactions that secure an abnormal or artificial price, and ESMA's 2025 guidelines direct supervisors to look for such conduct. Where the manipulated asset is a financial instrument, the Market Abuse Regulation (EU) No 596/2014 applies instead. Protocols that are fully decentralised may fall outside direct supervision, but trading on regulated venues that feed an oracle does not.

Detection Methodology

Surveillance compares the price an oracle reports with a broad reference built from deep markets. Large, one-directional trades on the specific venue an oracle reads, immediately followed by new borrowing or withdrawals on a protocol that uses that oracle, are the core signature. Analysts also look for collateral concentrated in illiquid tokens, sudden jumps in unrealised profit and accounts funded shortly before the attack.

Protocols reduce exposure with time-weighted or multi-source median prices, deviation circuit breakers, supply and borrow caps on illiquid collateral and conservative collateral factors. Exchanges whose order books feed DeFi oracles can flag accounts that trade thin markets in ways that only make sense as an attempt to move a reference price.

Notable Cases

Mango Markets / Avraham Eisenberg (2022-2025) - DOJ S.D.N.Y., CFTC and SEC, United States

In October 2022 Eisenberg used two accounts to build a large MNGO perpetual position, pushed up MNGO on the spot venues feeding Mango's oracle and borrowed against the inflated value, taking about $110 million. He returned about $67 million under a deal with the Mango DAO and kept about $47 million, according to the CFTC. A jury convicted him in April 2024, but in May 2025 the judge vacated the commodities fraud and manipulation convictions and entered an acquittal on wire fraud, citing improper venue and insufficient evidence.

Cream Finance (2021) - DeFi exploit, Ethereum

On 27 October 2021 an attacker used flash-loaned funds to inflate the value Cream's pricing assigned to yUSD vault shares and borrowed against the overvalued collateral, draining about $130 million. Analysts debated whether it was an oracle bug or market manipulation, and the attacker was not publicly identified.

Inverse Finance (2022) - DeFi exploit, Ethereum

On 2 April 2022 an attacker pushed up the price of INV in a SushiSwap INV/ETH pool that fed the oracle of Inverse's Anchor money market, then borrowed against inflated INV collateral, netting about $15.6 million. Inverse said it would propose repaying affected users, and it suffered a second, smaller oracle manipulation of about $1.2 million in June 2022.

Red Flags

  • Large buys on a thin market immediately before borrowing against the same token elsewhere
  • Oracle price diverging sharply from the price on deeper reference markets
  • Collateral positions dominated by a single illiquid token with a recently spiking price
  • New accounts funded minutes before the attack, sometimes with flash-loaned capital
  • Paper profits on a perpetual or margin position withdrawn as soon as the price peaks

4 Sources & Further Reading

Related Fraud Types