SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Models
To govern smart contracts running on Ethereum,
multiple Ethereum Request for Comment (ERC) standards have
been developed, each defining a set of rules governing contract behavior.
Violating these rules can cause
serious security issues and financial losses, signifying the importance
of verifying ERC compliance. Today's practices of such verification include manual audits, expert-developed program-analysis tools, and large language models (LLMs), all of which remain ineffective at detecting ERC rule violations.
This paper introduces \emph{SymGPT\xspace},
a tool that combines LLMs with
symbolic execution to automatically
verify smart contracts' compliance with ERC rules.
We begin by empirically analyzing 132 ERC rules from three major
ERC standards, examining their content, security implications,
and natural language descriptions. Based on this study,
SymGPT\xspace instructs an LLM to translate ERC rules into a domain-specific language,
synthesizes constraints from the translated rules to model potential rule violations,
and performs symbolic execution for violation detection.
Our evaluation shows that SymGPT\xspace identifies 5,783 ERC rule violations
in 4,000 real-world contracts, including 1,375 violations with
clear attack paths for financial theft.
Furthermore, SymGPT\xspace outperforms six automated techniques
and a security-expert auditing service, underscoring its superiority over current
smart contract analysis methods.
Tue 6 OctDisplayed time zone: Pacific Time (US & Canada) change
15:30 - 17:00 | Smart Contracts and BlockchainOOPSLA at Junior Ballroom 3&4 Chair(s): Chandrakana Nandi Certora; University of Washington | ||
15:30 18mTalk | SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Models OOPSLA Shihao Xia Pennsylvania State University, Mengting He Pennsylvania State University, Shuai Shao University of Connecticut, Tingting Yu University of Connecticut, Yiying Zhang University of California at San Diego, Nobuko Yoshida University of Oxford, Linhai Song Institute of Computing Technology at Chinese Academy of Sciences DOI | ||
15:48 18mTalk | When Specifications Meet Reality: Uncovering API Inconsistencies in Ethereum Infrastructure OOPSLA Jie Ma Beihang University; Zhongguancun Laboratory, Ningyu He Hong Kong Polytechnic University, Jinwen Xi Zhongguancun Laboratory, Mingzhe Xing Zhongguancun Laboratory, Liangxin Liu Beihang University, luojiushenzi Beijing Institute of Technology; Zhongguancun Laboratory, Xiaopeng Fu Beijing Institute of Technology; Zhongguancun Laboratory, Chiachih Wu Amber Group, Haoyu Wang Huazhong University of Science and Technology, Ying Gao Beihang University; Zhongguancun Laboratory, Yinliang Yue Zhongguancun Laboratory DOI | ||
16:06 18mTalk | Verifying Economic Security of Smart Contracts via Unintended Return OOPSLA DOI | ||
16:24 18mTalk | Beacon: Detecting Broken Access Control Vulnerabilities in DBMSs via System Catalog Consistency Validation OOPSLA Zongrui Peng Tsinghua University, Jingzhou Fu Tsinghua University, Zhiyong Wu Tsinghua University, Jie Liang Beihang University, Xiangdong Huang Tsinghua University, Dalong Shi Aviation Industry Corporation of China, Yu Jiang Tsinghua University DOI | ||