arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.01917cs.CRcs.SE
收藏

sGUARD:自动修复易受攻击的智能合约

sGUARD: Towards Fixing Vulnerable Smart Contracts Automatically

Tai D. Nguyen, Long H. Pham, Jun Sun

摘要:

智能合约是在区块链网络上执行的分布式、自我执行的程序。它们有可能彻底改变许多行业,如金融机构和供应链。然而,智能合约存在基于代码的漏洞,这给其应用蒙上了阴影。由于智能合约是不可修补的(由于区块链的不变性),因此必须保证智能合约没有漏洞。不幸的是,像Solidity这样的智能合约语言是图灵完备的,这意味着静态验证它们是不可行的。因此,必须制定替代办法来提供保障。在这项工作中,我们开发了一种自动转换智能合约的方法,使它们可以证明没有4种常见的漏洞。关键思想是以一种高效且可证明正确的方式应用运行时验证。5000个智能合约的实验结果表明,我们的方法在时间方面产生了较小的运行时开销(即,14.79%)和气体(即,0.79%)。

英文摘要:

Smart contracts are distributed, self-enforcing programs executing on top of blockchain networks. They have the potential to revolutionize many industries such as financial institutes and supply chains. However, smart contracts are subject to code-based vulnerabilities, which casts a shadow on its applications. As smart contracts are unpatchable (due to the immutability of blockchain), it is essential that smart contracts are guaranteed to be free of vulnerabilities. Unfortunately, smart contract languages such as Solidity are Turing-complete, which implies that verifying them statically is infeasible. Thus, alternative approaches must be developed to provide the guarantee. In this work, we develop an approach which automatically transforms smart contracts so that they are provably free of 4 common kinds of vulnerabilities. The key idea is to apply runtime verification in an efficient and provably correct manner. Experiment results with 5000 smart contracts show that our approach incurs minor run-time overhead in terms of time (i.e., 14.79%) and gas (i.e., 0.79%).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑