TY - GEN
T1 - Detecting State Manipulation Vulnerabilities in Smart Contracts Using LLM and Static Analysis
AU - Wu, Hao
AU - Wang, Haijun
AU - Li, Shangwang
AU - Wu, Yin
AU - Fan, Ming
AU - Zhao, Yitao
AU - Liu, Ting
N1 - Publisher Copyright:
© 2025 Copyright held by the owner/author(s).
PY - 2025/10/27
Y1 - 2025/10/27
N2 - An increasing number of DeFi protocols are gaining popularity, facilitating transactions among multiple anonymous users. State Manipulation is one of the notorious attacks in DeFi smart contracts, with price variable being the most commonly exploited state variable-attackers manipulate token prices to gain illicit profits. In this paper, we propose PriceSleuth, a novel method that leverages the Large Language Model (LLM) and static analysis to detect Price Manipulation (PM) attacks proactively. PriceSleuth firstly identifies core logic function related to price calculation in DeFi contracts. Then it guides LLM to locate the price calculation code statements. Secondly, PriceSleuth performs backward dependency analysis of price variables, instructing LLM in detecting potential price manipulation. Finally, PriceSleuth utilizes propagation analysis of price variables to assist LLM in detecting whether these variables are maliciously exploited. We presented preliminary experimental results to substantiate the effectiveness of PriceSleuth. And we outline future research directions for PriceSleuth.
AB - An increasing number of DeFi protocols are gaining popularity, facilitating transactions among multiple anonymous users. State Manipulation is one of the notorious attacks in DeFi smart contracts, with price variable being the most commonly exploited state variable-attackers manipulate token prices to gain illicit profits. In this paper, we propose PriceSleuth, a novel method that leverages the Large Language Model (LLM) and static analysis to detect Price Manipulation (PM) attacks proactively. PriceSleuth firstly identifies core logic function related to price calculation in DeFi contracts. Then it guides LLM to locate the price calculation code statements. Secondly, PriceSleuth performs backward dependency analysis of price variables, instructing LLM in detecting potential price manipulation. Finally, PriceSleuth utilizes propagation analysis of price variables to assist LLM in detecting whether these variables are maliciously exploited. We presented preliminary experimental results to substantiate the effectiveness of PriceSleuth. And we outline future research directions for PriceSleuth.
KW - Large Language Model
KW - Smart Contract
KW - Vulnerability Detection
UR - https://www.scopus.com/pages/publications/105023705191
U2 - 10.1145/3755881.3755935
DO - 10.1145/3755881.3755935
M3 - 会议稿件
AN - SCOPUS:105023705191
T3 - 16th International Conference on Internetware, Internetware 2025 - Proceedings
SP - 317
EP - 320
BT - 16th International Conference on Internetware, Internetware 2025 - Proceedings
A2 - Mei, Hong
A2 - Lv, Jian
A2 - Jin, Zhi
A2 - Li, Xuandong
A2 - Zimmermann, Thomas
A2 - Li, Ge
A2 - Bu, Lei
A2 - Xia, Xin
PB - Association for Computing Machinery, Inc
T2 - 16th International Conference on Internetware, Internetware 2025
Y2 - 20 June 2025 through 22 June 2025
ER -