SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Xia, Shihao, He, Mengting, Shao, Shuai, Yu, Tingting, Zhang, Yiying, Yoshida, Nobuko, Song, Linhai
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914359562731520
author Xia, Shihao
He, Mengting
Shao, Shuai
Yu, Tingting
Zhang, Yiying
Yoshida, Nobuko
Song, Linhai
author_facet Xia, Shihao
He, Mengting
Shao, Shuai
Yu, Tingting
Zhang, Yiying
Yoshida, Nobuko
Song, Linhai
contents 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 SymGPT, 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 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 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 outperforms six automated techniques and a security-expert auditing service, underscoring its superiority over current smart contract analysis methods.
format Preprint
id arxiv_https___arxiv_org_abs_2502_07644
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Models
Xia, Shihao
He, Mengting
Shao, Shuai
Yu, Tingting
Zhang, Yiying
Yoshida, Nobuko
Song, Linhai
Artificial Intelligence
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 SymGPT, 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 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 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 outperforms six automated techniques and a security-expert auditing service, underscoring its superiority over current smart contract analysis methods.
title SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Models
topic Artificial Intelligence
url https://arxiv.org/abs/2502.07644