paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Precise Static Identification of Ethereum Storage Variables

以太坊存储变量的精确静态识别
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 3/10 · 论文属于静态分析与抽象解释的工程方法,但应用域是以太坊EVM存储变量识别,不涉及用户画像核心关注的LLM/Agentic程序分析、LLM辅助静态分析、浮点程序分析或贝叶斯程序分析。引用 1 inbox
Sifis Lagouvardos, Yannis Bollanos, Michael Debono, Neville Grech, Yannis Smaragdakis
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出静态分析技术,从 EVM 字节码中精确识别链上存储变量及其深层数据结构,精度和召回率均超 94%。

智能合约在 EVM 上运行,并以区块链状态作为持久存储。仅凭已部署字节码识别其 storage 中的数据结构十分困难:mapping 与 array 的位置由代码执行动态导出,现有最佳工具几乎无法恢复复杂结构,且只能扩展到约 50% 的合约。本文提出精细的静态分析技术,用于高保真、高完备地识别链上数据结构。该方法可近乎普遍地扩展,并能恢复深层嵌套结构。实验表明,其识别数据结构精确类型的 precision 达 95.70%、recall 至少 94.96%,显著优于当前最佳工具的 83.30% 与 55.65%;甚至常常比编译器借助完整源码生成的存储描述更完整。

问题
在仅有已部署 EVM 字节码的情况下,如何准确识别智能合约在区块链状态(storage)中定义和使用的数据结构,尤其是位置动态计算的 mapping 和 array。
方法
提出针对 EVM 字节码的精细静态分析技术,以高保真、高完备地恢复链上数据结构的类型与嵌套关系。
评估
在真实合约上与当前最佳工具比较,报告 precision 95.70%、recall 至少 94.96%、可扩展性近乎普遍,并与编译器从源码生成的存储描述对比。
原文摘要(Abstract)

Smart contracts are small programs that run autonomously on the blockchain, using it as their persistent memory. The predominant platform for smart contracts is the Ethereum VM (EVM). In EVM smart contracts, a problem with significant applications is to identify data structures (in blockchain state, a.k.a. “storage”), given only the deployed smart contract code. The problem has been highly challenging and has often been considered nearly impossible to address satisfactorily. (For reference, the latest state-of-the-art research tool fails to recover nearly all complex data structures and scales to 50% of contracts.) Much of the complication is that the main on-chain data structures (mappings and arrays) have their locations derived dynamically through code execution. We propose sophisticated static analysis techniques to solve the identification of on-chain data structures with extremely high fidelity and completeness. Our analysis scales nearly universally and recovers deep data structures. Our techniques are able to identify the exact types of data structures with 95.70% precision and at least 94.96% recall, compared to a state-of-the-art tool managing 83.30% and 55.65% respectively. Strikingly, the analysis is often more complete than the storage description that the compiler itself produces, with full access to the source code.

链接与引用

DOI 原文 · arXiv · DBLP

BibTeX
@inproceedings{abs-2503-20690,
  title = {Precise Static Identification of Ethereum Storage Variables},
  author = {Sifis Lagouvardos and Yannis Bollanos and Michael Debono and Neville Grech and Yannis Smaragdakis},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3773121}
}