Sereum:保护现有智能合约免受重入攻击
Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
摘要:
最近,一些现有的区块链系统在智能合约中出现了重大错误和漏洞。尽管文献中有许多关于保护智能合约的建议,但这些建议主要集中在证明合约中某种类型的漏洞的正确性或不存在,但无法保护已部署的(遗留)合约免受利用。在本文中,我们在重入漏洞的背景下解决了这个问题,并提出了一种新的智能合约安全技术,称为Sereum(安全以太坊),它可以基于运行时监控和验证以向后兼容的方式保护现有的已部署合约免受重入攻击。Sereum不需要任何修改,也不需要现有合约的任何语义知识。通过使用以太坊区块链的实现和评估,我们表明Sereum覆盖了智能合约的实际执行流程,可以准确地检测和防止攻击,误报率低至0.06%,运行时开销可以忽略不计。作为一个副产品,我们开发了三个先进的重入攻击,以证明现有的离线漏洞分析工具的局限性。
英文摘要:
Recently, a number of existing blockchain systems have witnessed major bugs and vulnerabilities within smart contracts. Although the literature features a number of proposals for securing smart contracts, these proposals mostly focus on proving the correctness or absence of a certain type of vulnerability within a contract, but cannot protect deployed (legacy) contracts from being exploited. In this paper, we address this problem in the context of re-entrancy exploits and propose a novel smart contract security technology, dubbed Sereum (Secure Ethereum), which protects existing, deployed contracts against re-entrancy attacks in a backwards compatible way based on run-time monitoring and validation. Sereum does neither require any modification nor any semantic knowledge of existing contracts. By means of implementation and evaluation using the Ethereum blockchain, we show that Sereum covers the actual execution flow of a smart contract to accurately detect and prevent attacks with a false positive rate as small as 0.06% and with negligible run-time overhead. As a by-product, we develop three advanced re-entrancy attacks to demonstrate the limitations of existing offline vulnerability analysis tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。