LLM-Powered Detection of Price Manipulation in DeFi
Lu Liu, Wuqi Zhang, Lili Wei, Hao Guan, Yongqiang Tian, Yepang Liu, Shing-Chi Cheung

TL;DR
This paper introduces PMDetector, a hybrid static and LLM-based framework for proactively detecting price manipulation vulnerabilities in DeFi smart contracts, outperforming existing methods in accuracy and efficiency.
Contribution
The paper presents a novel hybrid approach combining static analysis and large language models to proactively identify DeFi vulnerabilities, addressing limitations of prior reactive and heuristic methods.
Findings
PMDetector achieves 88% precision and 90% recall.
Auditing costs $0.03 and takes 4 seconds with GPT-4.1.
Outperforms state-of-the-art static and LLM-based approaches.
Abstract
Decentralized Finance (DeFi) smart contracts manage billions of dollars, making them a prime target for exploits. Price manipulation vulnerabilities, often via flash loans, are a devastating class of attacks causing significant financial losses. Existing detection methods are limited. Reactive approaches analyze attacks only after they occur, while proactive static analysis tools rely on rigid, predefined heuristics, limiting adaptability. Both depend on known attack patterns, failing to identify novel variants or comprehend complex economic logic. We propose PMDetector, a hybrid framework combining static analysis with Large Language Model (LLM)-based reasoning to proactively detect price manipulation vulnerabilities. Our approach uses a formal attack model and a three-stage pipeline. First, static taint analysis identifies potentially vulnerable code paths. Second, a two-stage LLM…
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.
