DeFiRanger: Detecting Price Manipulation Attacks on DeFi Applications
Siwei Wu, Dabao Wang, Jianting He, Yajin Zhou, Lei Wu, Xingliang Yuan,, Qinming He, and Kui Ren

TL;DR
DeFiRanger is a platform-independent tool that detects price manipulation attacks on DeFi applications by reconstructing high-level DeFi semantics from Ethereum transactions, successfully identifying real-world attacks and vulnerabilities.
Contribution
We introduce a novel approach to recover high-level DeFi semantics from raw Ethereum transactions for effective attack detection, addressing limitations of existing vulnerability tools.
Findings
Detected 432 real-world DeFi attacks including zero-day vulnerabilities.
Successfully identified attacks in over 350 million transactions.
Reported findings leading to two CVEs and detailed attack analyses.
Abstract
The rapid growth of Decentralized Finance (DeFi) boosts the Ethereum ecosystem. At the same time, attacks towards DeFi applications (apps) are increasing. However, to the best of our knowledge, existing smart contract vulnerability detection tools cannot be directly used to detect DeFi attacks. That's because they lack the capability to recover and understand high-level DeFi semantics, e.g., a user trades a token pair X and Y in a Decentralized EXchange (DEX). In this work, we focus on the detection of two types of new attacks on DeFi apps, including direct and indirect price manipulation attacks. The former one means that an attacker directly manipulates the token price in DEX by performing an unwanted trade in the same DEX by attacking the vulnerable DeFi app. The latter one means that an attacker indirectly manipulates the token price of the vulnerable DeFi app (e.g., a lending…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Crime, Illicit Activities, and Governance · Cybercrime and Law Enforcement Studies
