Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit
Not on the map. Why?
Abstract (arXiv)
Credit allows a lender to loan out surplus capital to a borrower. In the traditional economy, credit bears the risk that the borrower may default on its debt, the lender hence requires upfront collateral from the borrower, plus interest fee payments. Due to the atomicity of blockchain transactions, lenders can offer flash loans, i.e., loans that are only valid within one transaction and must be repaid by the end of that transaction. This concept has lead to a number of interesting attack possibilities, some of which were exploited in February 2020. This paper is the first to explore the implication of transaction atomicity and flash loans for the nascent decentralized finance (DeFi) ecosystem. We show quantitatively how transaction atomicity increases the arbitrage revenue. We moreover analyze two existing attacks with ROIs beyond 500k%. We formulate finding the attack parameters as an optimization problem over the state of the underlying Ethereum blockchain and the state of the DeFi ecosystem. We show how malicious adversaries can efficiently maximize an attack profit and hence damage the DeFi ecosystem further. Specifically, we present how two previously executed attacks can be "boosted" to result in a profit of 829.5k USD and 1.1M USD, respectively, which is a boost of 2.37x and 1.73x, respectively.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 3; 2024: 0; 2025: 2; 2026: 4.
9 papers.
- 2023Blockchain Large Language Modelscited by 16
- 2025AI Agent Smart Contract Exploit Generationcited by 8
- 2023Cooperative AI via Decentralized Commitment Devicescited by 7
- 2023Auto.gov: Learning-based Governance for Decentralized Finance (DeFi)cited by 4
- 2025Detecting Various DeFi Price Manipulations with LLM Reasoningcited by 4
- 2026DeXposure-FM: A Time-series, Graph Foundation Model for Credit Exposures and Stability on Decentralized Financial Networkscited by 1
- 2026DMind-3: A Sovereign Edge--Local--Cloud AI System with Controlled Deliberation and Correction-Based Tuning for Safe, Low-Latency Transaction Executioncited by 0
- 2026Paper Agents, Paper Gains: An Empirical Analysis of DeFi Investment Agentscited by 0
- 2026If It Walks Like an Arbitrage: Protocol-Agnostic Detection with Decidable Structural Equivalencecited by 0
- 2026If It Walks Like an Arbitrage: Protocol-Agnostic Detection with Decidable Structural Equivalence26 Jun 2026
- 2026Paper Agents, Paper Gains: An Empirical Analysis of DeFi Investment Agents27 May 2026
- 2026DMind-3: A Sovereign Edge--Local--Cloud AI System with Controlled Deliberation and Correction-Based Tuning for Safe, Low-Latency Transaction Execution12 Feb 2026
- 2026DeXposure-FM: A Time-series, Graph Foundation Model for Credit Exposures and Stability on Decentralized Financial Networks3 Feb 2026
- 2025AI Agent Smart Contract Exploit Generation8 Jul 2025
- 2025Detecting Various DeFi Price Manipulations with LLM Reasoning17 Feb 2025
- 2023Cooperative AI via Decentralized Commitment Devices14 Nov 2023
- 2023Blockchain Large Language Models25 Apr 2023
- 2023Auto.gov: Learning-based Governance for Decentralized Finance (DeFi)19 Feb 2023