论文标题

电子:以太坊智能合约的实用且可证明的静态分析

eThor: Practical and Provably Sound Static Analysis of Ethereum Smart Contracts

论文作者

Schneidewind, Clara, Grishchenko, Ilya, Scherer, Markus, Maffei, Matteo

论文摘要

以太坊已成为最受欢迎的智能合同开发平台,其中成千上万的合同存储在区块链上,并涵盖了各种应用程序场景,例如拍卖,交易平台等。鉴于他们的财务性质,安全漏洞可能会导致灾难性后果,更糟糕的是,由于存储在区块链上的数据(包括智能合约代码本身),它们几乎无法固定。因此,对这些合同的自动安全分析是最大的兴趣,但与此同时,由于各种原因,在技术上具有挑战性,例如以特定的面向交易为导向的编程机制,这些机制具有微妙的语义,以及与分析合同相互作用的区块链数据相互作用的事实,包括Caller and Callees的守则,尚未统计地知道。 在这项工作中,我们提出了Ethor,这是EVM字节码的第一个声音和自动化的静态分析仪,该仪表基于基于Horn条款的EVM字节码语义的抽象。特别是,我们的静态分析支持可及性属性,我们表明这足以捕获智能合约(例如,单个卸载)以及特定于合同功能属性的有趣安全性。我们的分析被证明是根据EVM字节码的完整语义证明的,对现实世界合同的实验大规模评估表明,ETHOR是实用的,并且优于最先进的静态分析仪:尤其是,Ethor是唯一可以在现实的合同中提供的良好性和成本(Aneie and Contrive)的唯一一套符合性的固定性(均一),该合同的特定性(均为既定的)均可用来(Anceie and)的特定性(Anceie and)。 89%。

Ethereum has emerged as the most popular smart contract development platform, with hundreds of thousands of contracts stored on the blockchain and covering a variety of application scenarios, such as auctions, trading platforms, and so on. Given their financial nature, security vulnerabilities may lead to catastrophic consequences and, even worse, they can be hardly fixed as data stored on the blockchain, including the smart contract code itself, are immutable. An automated security analysis of these contracts is thus of utmost interest, but at the same time technically challenging for a variety of reasons, such as the specific transaction-oriented programming mechanisms, which feature a subtle semantics, and the fact that the blockchain data which the contract under analysis interacts with, including the code of callers and callees, are not statically known. In this work, we present eThor, the first sound and automated static analyzer for EVM bytecode, which is based on an abstraction of the EVM bytecode semantics based on Horn clauses. In particular, our static analysis supports reachability properties, which we show to be sufficient for capturing interesting security properties for smart contracts (e.g., single-entrancy) as well as contract-specific functional properties. Our analysis is proven sound against a complete semantics of EVM bytecode and an experimental large-scale evaluation on real-world contracts demonstrates that eThor is practical and outperforms the state-of-the-art static analyzers: specifically, eThor is the only one to provide soundness guarantees, terminates on 95% of a representative set of real-world contracts, and achieves an F-measure (which combines sensitivity and specificity) of 89%.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源