精确静态识别以太坊存储变量(扩展版)
Precise Static Identification of Ethereum Storage Variables (Extended Version)
AI总结:
本研究提出了一种高效的静态分析技术,以高精度和完整性识别以太坊智能合约中的存储数据结构。
摘要:
智能合约是运行在区块链上的小型程序,利用区块链作为其持久性内存。智能合约的主要平台是以太坊虚拟机(EVM)。在EVM智能合约中,一个问题具有显著的应用价值,即仅给定部署的智能合约代码,识别数据结构(在区块链状态中,也称为“存储”)。这个问题极具挑战性,往往被视为难以令人满意地解决。(参考:最新最先进的研究工具几乎无法恢复所有复杂的数据结构,并且只能处理不到50%的合约。)许多复杂性源于链上数据结构(映射和数组)的地址是通过代码执行动态确定的。我们提出了一种复杂的静态分析技术来解决链上数据结构的识别问题,具有极高的准确性和完整性。我们的分析几乎可以普遍扩展并恢复深层数据结构。我们的技术能够以98.6%的精确度识别数据结构的精确类型,并且至少有92.6%的召回率,与最新最先进的工具相比,该工具分别达到80.8%和68.2%。令人惊讶的是,分析往往比编译器本身生成的存储描述更完整,且拥有完整的源代码访问权限。
英文摘要:
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 under 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 98.6% precision and at least 92.6% recall, compared to a state-of-the-art tool managing 80.8% and 68.2% respectively. Strikingly, the analysis is often more complete than the storage description that the compiler itself produces, with full access to the source code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。