|国家预印本平台
首页|OpDiffer: LLM-Assisted Opcode-Level Differential Testing of Ethereum Virtual Machine

OpDiffer: LLM-Assisted Opcode-Level Differential Testing of Ethereum Virtual Machine

OpDiffer: LLM-Assisted Opcode-Level Differential Testing of Ethereum Virtual Machine

来源:Arxiv_logoArxiv
英文摘要

As Ethereum continues to thrive, the Ethereum Virtual Machine (EVM) has become the cornerstone powering tens of millions of active smart contracts. Intuitively, security issues in EVMs could lead to inconsistent behaviors among smart contracts or even denial-of-service of the entire blockchain network. However, to the best of our knowledge, only a limited number of studies focus on the security of EVMs. Moreover, they suffer from 1) insufficient test input diversity and invalid semantics; and 2) the inability to automatically identify bugs and locate root causes. To bridge this gap, we propose OpDiffer, a differential testing framework for EVM, which takes advantage of LLMs and static analysis methods to address the above two limitations. We conducted the largest-scale evaluation, covering nine EVMs and uncovering 26 previously unknown bugs, 22 of which have been confirmed by developers and three have been assigned CNVD IDs. Compared to state-of-the-art baselines, OpDiffer can improve code coverage by at most 71.06%, 148.40% and 655.56%, respectively. Through an analysis of real-world deployed Ethereum contracts, we estimate that 7.21% of the contracts could trigger our identified EVM bugs under certain environmental settings, potentially resulting in severe negative impact on the Ethereum ecosystem.

Jie Ma、Ningyu He、Jinwen Xi、Mingzhe Xing、Haoyu Wang、Ying Gao、Yinliang Yue

10.1145/3728946

计算技术、计算机技术

Jie Ma,Ningyu He,Jinwen Xi,Mingzhe Xing,Haoyu Wang,Ying Gao,Yinliang Yue.OpDiffer: LLM-Assisted Opcode-Level Differential Testing of Ethereum Virtual Machine[EB/OL].(2025-04-16)[2025-07-17].https://arxiv.org/abs/2504.12034.点此复制

评论