Skip to content
← RegistryDossier · 6 steps · 5 edges

Flash loan + oracle manipulation → drain DEX

DeFi contract reads spot price from a single pool. Borrow a flash loan, distort the pool, exploit the dependent contract while price is wrong, repay the loan in the same transaction.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: a lending / leveraged DeFi contract uses spot-price (not TWAP / Chainlink) from a thin liquidity pool. A flash-loan provider (Aave, dYdX) exists on the same chain.

§ Steps

  1. 01
    Pocket the differenceExfiltration
    T1041Exfiltration Over C2 Channel
  2. 02
    Identify single-pool oracle readerReconnaissance
    W-RECON-FINGERPRINTTech Stack Fingerprinting
  3. 03
    Reverse trade, repay flash loanImpact
    W3-FLASH-LOANFlash Loan Exploit
  4. 04
    Borrow / mint against distorted priceImpact
    W3-FLASH-LOANFlash Loan Exploit
  5. 05
    Take flash loanImpact
    W3-FLASH-LOANFlash Loan Exploit
  6. 06
    Skew the price poolImpact
    W3-ORACLE-MANIPPrice Oracle Manipulation

§ References

§ Frequently asked

What is the "Flash loan + oracle manipulation → drain DEX" attack path?
DeFi contract reads spot price from a single pool. Borrow a flash loan, distort the pool, exploit the dependent contract while price is wrong, repay the loan in the same transaction. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Pocket the difference (T1041) — a exfiltration primitive. Assumed environment: a lending / leveraged DeFi contract uses spot-price (not TWAP / Chainlink) from a thin liquidity pool.
What is the final impact of this kill-chain?
The final step lands on Skew the price pool (W3-ORACLE-MANIP), which falls under Impact. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers