EthIR:以太坊字节码高级分析框架
EthIR: A Framework for High-Level Analysis of Ethereum Bytecode
摘要:
分析以太坊字节码,而不是生成它的源代码,在以下情况下是必要的:(1)源代码不可用(例如,区块链仅存储字节码),(2)要在分析中收集的信息仅在字节码级别可见(例如,气体消耗在EVM指令级别指定),(3)分析结果可能受到编译器执行的优化的影响(因此,分析应该在编译之后理想地进行)。本文介绍了EthIR,一个分析以太坊字节码的框架,它依赖于OYENTE(一个扩展),OYENTE是一个生成CFGs的工具; EthIR从CFGs中生成字节码的基于规则的表示(RBR),使(现有的)高级分析能够应用于推断EVM代码的属性。
英文摘要:
Analyzing Ethereum bytecode, rather than the source code from which it was generated, is a necessity when: (1) the source code is not available (e.g., the blockchain only stores the bytecode), (2) the information to be gathered in the analysis is only visible at the level of bytecode (e.g., gas consumption is specified at the level of EVM instructions), (3) the analysis results may be affected by optimizations performed by the compiler (thus the analysis should be done ideally after compilation). This paper presents EthIR, a framework for analyzing Ethereum bytecode, which relies on (an extension of) OYENTE, a tool that generates CFGs; EthIR produces from the CFGs, a rule-based representation (RBR) of the bytecode that enables the application of (existing) high-level analyses to infer properties of EVM code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。