Detecting Various DeFi Price Manipulations with LLM Reasoning
Not on the map. Why?
Abstract (arXiv)
DeFi (Decentralized Finance) is one of the most important applications of today's cryptocurrencies and smart contracts. It manages hundreds of billions in Total Value Locked (TVL) on-chain, yet it remains susceptible to common DeFi price manipulation attacks. Despite state-of-the-art (SOTA) systems like DeFiRanger and DeFort, we found that they are less effective to non-standard price models in custom DeFi protocols, which account for 44.2% of the 95 DeFi price manipulation attacks reported over the past three years. In this paper, we introduce the first LLM-based approach, DeFiScope, for detecting DeFi price manipulation attacks in both standard and custom price models. Our insight is that large language models (LLMs) have certain intelligence to abstract price calculation from smart contract source code and infer the trend of token price changes based on the extracted price models. To further strengthen LLMs in this aspect, we leverage Foundry to synthesize on-chain data and use it to fine-tune a DeFi price-specific LLM. Together with the high-level DeFi operations recovered from low-level transaction data, DeFiScope detects various DeFi price manipulations according to systematically mined patterns. Experimental results show that DeFiScope achieves a high recall of 80% on real-world attacks, a precision of 96% on suspicious transactions, and zero false alarms on benign transactions, significantly outperforming SOTA approaches. Moreover, we evaluate DeFiScope's cost-effectiveness and demonstrate its practicality by helping our industry partner confirm 147 real-world price manipulation attacks, including discovering 81 previously unknown historical incidents.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 19 of its 77 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
19 of 77 references.
References · 19
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2022PAL: Program-aided Language Modelscited by 635
- 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
- 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generationcited by 36
- 2022SoK: Decentralized Finance (DeFi) Attackscited by 28
- 2023Blockchain Large Language Modelscited by 16
- 2021Quantifying Blockchain Extractable Value: How dark is the forest?cited by 15
- 2020High-Frequency Trading on Decentralized On-Chain Exchangescited by 10
7 more
- 2020Attacking the DeFi Ecosystem with Flash Loans for Fun and Profitcited by 9
- 2017Untangling Blockchain: A Data Processing View of Blockchain Systemscited by 8
- 2021On the Just-In-Time Discovery of Profit-Generating Transactions in DeFi Protocolscited by 6
- 2022FlashSyn: Flash Loan Attack Synthesis via Counter Example Driven Approximationcited by 5
- 2024Demystifying Invariant Effectiveness for Securing Smart Contractscited by 4
- 2025Following Devils' Footprint: Towards Real-time Detection of Price Manipulation Attackscited by 4
- 2024SoK: Decentralized Finance (DeFi) -- Fundamentals, Taxonomy and Riskscited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2026Resisting Manipulative Bots in Meme Coin Copy Trading: A Multi-Agent Approach with Chain-of-Thought Reasoningcited by 1
- 2025Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAGcited by 0
- 2026Discovering Persistent Behavioural Patterns for Interpretable Blockchain Forensicscited by 0
- 2026DeFiFusion: Combining Transaction Events with Smart Contracts to Detect Price Manipulation Attackscited by 0
- 2026DeFiFusion: Combining Transaction Events with Smart Contracts to Detect Price Manipulation Attacks10 Sep 2026
- 2026Discovering Persistent Behavioural Patterns for Interpretable Blockchain Forensics13 Aug 2026
- 2026Resisting Manipulative Bots in Meme Coin Copy Trading: A Multi-Agent Approach with Chain-of-Thought Reasoning13 Jan 2026
- 2025Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAG5 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2025LLM-Powered Detection of Price Manipulation in DeFi
- 2025AiRacleX: Automated Detection of Price Oracle Manipulations via LLM-Driven Knowledge Mining and Prompt Generation
- 2024Blockchain Data Analysis in the Era of Large-Language Models
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilities
- 2026Tracing the Shadows: Automatic Tracking and Analysis of Crypto Money Laundering via Transaction Semantic Analysis ↗
- 2025Know Your Intent: An Autonomous Multi-Perspective LLM Agent Framework for DeFi User Transaction Intent Mining
- 2024LLM-SmartAudit: Advanced Smart Contract Vulnerability Detection
- 2025CryptoBench: A Dynamic Benchmark for Expert-Level Evaluation of LLM Agents in Cryptocurrency