SCRUBD:智能合约重入与未处理异常漏洞数据集
SCRUBD: Smart Contracts Reentrancy and Unhandled Exceptions Vulnerability Dataset
AI总结:
本研究针对现有智能合约漏洞标注数据集场景覆盖有限、标注有误的问题,构建了同时含真实与合成样本、标注RE和UX漏洞的SCRUBD数据集,对比六款检测工具性能,得出不同场景下的最优工具。
摘要:
智能合约(Smart Contracts, SCs)负责处理以太坊区块链上价值数百万美元的交易,因此成为攻击者利用漏洞窃取资金的高价值目标。以太坊社区已开发出丰富的工具集来检测智能合约中的漏洞,包括重入漏洞(reentrancy, RE)和未处理异常漏洞(unhandled exceptions, UX)。要评估这些工具的效能,需要一份标注了漏洞的智能合约数据集。现有的带漏洞标注的智能合约数据集存在局限性,例如仅覆盖有限范围的漏洞场景,且包含错误标注,因此缺乏可用于比较这些工具性能的标准化数据集,SCRUBD旨在填补这一空白。我们提出了一份标注了RE和UX漏洞的真实世界智能合约与合成智能合约数据集。其中真实世界智能合约数据集通过众包标注,再由专家进行人工核验,同时覆盖RE和UX两类漏洞;而合成数据集经过精心构建,仅覆盖各类RE漏洞场景。利用SCRUBD,我们对比了六款主流漏洞检测工具的性能。研究发现,在众包数据集上检测RE漏洞时,Slither的表现优于其他工具;在人工合成数据集上检测RE漏洞时,Sailfish的表现优于其他工具;在UX漏洞检测方面,Slither的表现优于所有其他工具。
英文摘要:
Smart Contracts (SCs) handle transactions in the Ethereum blockchain worth millions of United States dollars, making them a lucrative target for attackers seeking to exploit vulnerabilities and steal funds. The Ethereum community has developed a rich set of tools to detect vulnerabilities in SCs, including reentrancy (RE) and unhandled exceptions (UX). A dataset of SCs labelled with vulnerabilities is needed to evaluate the tools' efficacy. Existing SC datasets with labelled vulnerabilities have limitations, such as covering only a limited range of vulnerability scenarios and containing incorrect labels. As a result, there is a lack of a standardized dataset to compare the performances of these tools. SCRUBD aims to fill this gap. We present a dataset of real-world SCs and synthesized SCs labelled with RE and UX. The real-world SC dataset is labelled through crowdsourcing, followed by manual inspection by an expert, and covers both RE and UX vulnerabilities. On the other hand, the synthesized dataset is carefully crafted to cover various RE scenarios only. Using SCRUBD we compared the performance of six popular vulnerability detection tools. Based on our study, we found that Slither outperforms other tools on a crowdsourced dataset in detecting RE vulnerabilities, while Sailfish outperforms other tools on a manually synthesized dataset for detecting RE. For UX vulnerabilities, Slither outperforms all other tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。