UPC Sentinel:一种检测以太坊中可升级代理合约的精确方法
UPC Sentinel: An Accurate Approach for Detecting Upgradeability Proxy Contracts in Ethereum
AI总结:
本文提出 UPC Sentinel,一种结合静态与动态字节码分析的三层算法,用于精确检测以太坊可升级代理合约,并在两个数据集上取得最高 100% 精确率和 99.3% 召回率,优于现有方法。
摘要:
运行在区块链平台上的软件应用被称为 DApp。DApp 使用智能合约构建,而智能合约在部署后是不可变的。与任何现实世界的软件系统一样,DApp 需要随着时间的推移接收新功能和错误修复,以保持其有用性和安全性。然而,以太坊缺乏针对部署后智能合约维护的原生解决方案,这要求开发者自行设计方法。一种流行的方法被称为可升级代理合约(UPC),它涉及实现代理设计模式(由“四人组”定义)。在这种方法中,客户端调用首先到达一个代理合约,然后该代理合约将调用委托给某个实现合约。最重要的是,代理合约可以在运行时被重新配置,以将调用委托给另一个实现合约,从而有效地实现应用升级。对于研究人员而言,准确检测 UPC 是理解现实世界 DApp 如何随时间被维护的强烈需求。对于从业者而言,准确检测 UPC 对于提供应用行为透明性和支持审计至关重要。在本文中,我们介绍了 UPC Sentinel,这是一种新颖的三层算法,它利用智能合约字节码的静态和动态分析来准确检测活跃的 UPC。我们使用两个不同的真实基准数据集对 UPC Sentinel 进行了评估。在第一个数据集上,我们的方法展示了接近完美的 99% 准确率。在第二个数据集上的评估进一步证明了我们方法的有效性,显示出 100% 的完美精确率和 99.3% 的接近完美召回率,优于当前最先进的方法。最后,我们讨论了 UPC Sentinel 在推动未来研究工作方面的潜在价值。
英文摘要:
Software applications that run on a blockchain platform are known as DApps. DApps are built using smart contracts, which are immutable after deployment. Just like any real-world software system, DApps need to receive new features and bug fixes over time in order to remain useful and secure. However, Ethereum lacks native solutions for post-deployment smart contract maintenance, requiring developers to devise their own methods. A popular method is known as the upgradeability proxy contract (UPC), which involves implementing the proxy design pattern (as defined by the Gang of Four). In this method, client calls first hit a proxy contract, which then delegates calls to a certain implementation contract. Most importantly, the proxy contract can be reconfigured during runtime to delegate calls to another implementation contract, effectively enabling application upgrades. For researchers, the accurate detection of UPCs is a strong requirement in the understanding of how exactly real-world DApps are maintained over time. For practitioners, the accurate detection of UPCs is crucial for providing application behavior transparency and enabling auditing. In this paper, we introduce UPC Sentinel, a novel three-layer algorithm that utilizes both static and dynamic analysis of smart contract bytecode to accurately detect active UPCs. We evaluated UPC Sentinel using two distinct ground truth datasets. In the first dataset, our method demonstrated a near-perfect accuracy of 99%. The evaluation on the second dataset further established our method's efficacy, showing a perfect precision rate of 100% and a near-perfect recall of 99.3%, outperforming the state of the art. Finally, we discuss the potential value of UPC Sentinel in advancing future research efforts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。