arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.03405cs.CR
收藏

可升级智能合约模式综述

A Comprehensive Survey of Upgradeable Smart Contract Patterns

Sajad Meisami, William Edward Bodell

AI总结:

本文综述了基于代理的智能合约可升级性模式,通过抓取 Etherscan.io 上约 100000 个合约并利用 Slither 工具自动化分析,构建了全面的模式目录,并将误报率降低了约 70%。

摘要:

在这项工作中,我们提供了一份使用代理的智能合约可升级性模式的全面综述。以太坊区块链上智能合约的一个主要特征是一旦实现即不可变,无法进行任何更改。考虑到人为错误,以及技术改进和新发现的漏洞,人们一直需要升级这些智能合约,这些合约可能持有大量的以太币(Ether),从而成为攻击目标。过去有几次此类攻击造成了巨大的损失,以及数百万美元的以太币被锁定在损坏的合约中。到目前为止,我们已经收集了许多可升级代理模式,并研究了它们的特征,以构建一个全面的模式目录。我们展示了所收集和研究的这些可升级代理模式的摘要。我们从最受欢迎的以太坊区块浏览器 Etherscan.io 上抓取了大约 100000 个已验证合约的源代码,从中提取了约 64k 个唯一文件——其中大多数包含多个合约。我们已经开始使用流行的静态分析工具 Slither 自动化分析这些合约,同时利用该框架实现了更加稳健的可升级代理检测。将原始实现的结果与我们自己的结果进行比较,我们发现最初被标记为可升级代理的合约中大约有 70% 是误报,我们已将其消除。

英文摘要:

In this work, we provide a comprehensive survey of smart contract upgradability patterns using proxies. A primary characteristic of smart contracts on the Ethereum blockchain is that they are immutable once implemented, no changes can be made. Taking human error into account, as well as technology improvements and newly discovered vulnerabilities, there has been a need to upgrade these smart contracts, which may hold enormous amounts of Ether and hence become the target of attacks. Several such attacks have caused tremendous losses in the past, as well as millions of dollars in Ether which has been locked away in broken contracts. Thus far we have collected many upgradable proxy patterns and studied their features to build a comprehensive catalog of patterns. We present a summary of these upgradable proxy patterns which we collected and studied. We scraped the source code for approximately 100000 verified contracts from Etherscan.io, the most popular block explorer for Ethereum, out of which we extracted around 64k unique files - most containing multiple contracts. We have begun to automate the analysis of these contracts using the popular static analysis tool Slither, while at the same time implementing much more robust detection of upgradable proxies using this framework. Comparing the results of the original implementation to our own, we have found that approximately 70 percent of the contracts which were initially flagged as upgradeable proxies are false positives which we have eliminated.

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

↑