paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Gigahorse: Thorough, Declarative Decompilation of Smart Contracts

Gigahorse:智能合约的彻底、声明式反编译
ICSE 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE)2019匹配度 3/10 · 论文属于静态分析与声明式逻辑规范的程序分析工具,在方法上与形式化/程序分析有一定关联;但其对象是智能合约 EVM 反编译,不涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,与用户画像的核心交叉方向距离较远。引用 166 inbox
Neville Grech, Lexi Brent, Bernhard Scholz, Yannis Smaragdakis
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 Gigahorse 工具链,以声明式逻辑规范将 EVM 字节码反编译为高层三地址 IR,支持智能合约分析。

智能合约在区块链上处理有价值代币,却被编译为极低层 EVM 字节码,而该字节码才是合约最终语义与执行依据,使分析困难。Gigahorse 的核心是反编译器:它用声明式、基于逻辑的规范,将 EVM 字节码反编译为高层三地址中间表示,显式化隐式数据流与控制流依赖,无需源码即可分析新部署和已部署合约。评估显示,其反编译精度与完整性优于现有工具:可反编译超过 99.98% 的已部署合约,Vandal 为 88%,Porosity 不足 50%;并提供完整工具链、多个客户端以及高性能和可扩展性。

问题
智能合约编译为极低层 EVM 字节码,需在无源码下对其进行分析与理解;字节码是合约最终语义和执行依据,给分析带来挑战。
方法
Gigahorse 以声明式、基于逻辑的规范实现反编译器,将 EVM 字节码转为高层三地址中间表示,显式化隐式数据/控制流依赖,并提供可扩展的工具链供后续分析。
评估
在已部署合约上比较反编译覆盖率、精度与完整性:Gigahorse 可反编译超过 99.98% 的合约,优于 Vandal(88%)和 Porosity(<50%),并展示最高性能与可扩展性。
原文摘要(Abstract)

The rise of smart contractsThe rise of smart contracts–autonomous applications running on blockchains–has led to a growing number of threats, necessitating sophisticated program analysis. However, smart contracts, which transact valuable tokens and cryptocurrencies, are compiled to very low-level bytecode. This bytecode is the ultimate semantics and means of enforcement of the contract. We present the Gigahorse toolchain. At its core is a reverse compiler (i.e., a decompiler) that decompiles smart contracts from Ethereum Virtual Machine (EVM) bytecode into a highlevel 3-address code representation. The new intermediate representation of smart contracts makes implicit data- and controlflow dependencies of the EVM bytecode explicit. Decompilation obviates the need for a contract’s source and allows the analysis of both new and deployed contracts. Gigahorse advances the state of the art on several fronts. It gives the highest analysis precision and completeness among decompilers for Ethereum smart contracts–e.g., Gigahorse can decompile over 99.98% of deployed contracts, compared to 88% for the recently-published Vandal decompiler and under 50% for the state-of-the-practice Porosity decompiler. Importantly, Gigahorse offers a full-featured toolchain for further analyses (and a "batteries included" approach, with multiple clients already implemented), together with the highest performance and scalability. Key to these improvements is Gigahorse’s use of a declarative, logic-based specification, which allows high-level insights to inform low-level decompilation.autonomous applications running on blockchains---has led to a growing number of threats, necessitating sophisticated program analysis. However, smart contracts, which transact valuable tokens and cryptocurrencies, are compiled to very low-level bytecode. This bytecode is the ultimate semantics and means of enforcement of the contract. We present the Gigahorse toolchain. At its core is a reverse compiler (i.e., a decompiler) that decompiles smart contracts from Ethereum Virtual Machine (EVM) bytecode into a high-level 3-address code representation. The new intermediate representation of smart contracts makes implicit data- and control-flow dependencies of the EVM bytecode explicit. Decompilation obviates the need for a contract's source and allows the analysis of both new and deployed contracts. Gigahorse advances the state of the art on several fronts. It gives the highest analysis precision and completeness among decompilers for Ethereum smart contracts---e.g., Gigahorse can decompile over 99.98\% of deployed contracts, compared to 88\% for the recently-published Vandal decompiler and under 50\% for the state-of-the-practice Porosity decompiler. Importantly, Gigahorse offers a full-featured toolchain for further analyses (and a ``batteries included'' approach, with multiple clients already implemented), together with the highest performance and scalability. Key to these improvements is Gigahorse's use of a declarative, logic-based specification, which allows high-level insights to inform low-level decompilation.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{GrechBSS19,
  title = {Gigahorse: Thorough, Declarative Decompilation of Smart Contracts},
  author = {Neville Grech and Lexi Brent and Bernhard Scholz and Yannis Smaragdakis},
  booktitle = {ICSE},
  year = {2019},
  doi = {10.1109/icse.2019.00120}
}