面向智能合约漏洞检测的基准真值集整合研究
Consolidation of Ground Truth Sets for Weakness Detection in Smart Contracts
AI总结:
针对以太坊智能合约漏洞检测缺乏全面基准真值集的问题,本研究整合多套公开人工核验基准集,设计合约条目匹配与分歧整合方法,评估数据集质量,减少数据问题并丰富数据规模与多样性。
摘要:
智能合约是运行在区块链上的小程序,通常用于处理高价值资产。历史经验反复证明,智能合约中的漏洞可能造成惨重损失。业界对防护对策需求迫切,这类对策包括最佳实践建议,以及支持开发、程序验证和部署后分析的各类工具。许多工具专注于检测已知漏洞子集的存在与否,输出结果的质量参差不齐。大多数工具对比评估都仅选取少量工具进行相互测试,即便在最优情况下,评估也仅基于规模偏小的基准真值集。针对以太坊(Ethereum),已有多个研究团队开展了值得肯定的合约人工分类工作,但目前仍缺乏全面的基准真值集。本研究基于已公开的、带有人工核验基准真值数据的以太坊智能合约基准集,构建了一套整合后的基准真值集。我们提出了一种统一这些数据集的方法,此外还设计了匹配同一合约对应条目的策略,从而能够确定不同数据集之间的重叠部分与分歧点,并对分歧内容进行整合。最后,我们评估了所纳入的各基准真值集的质量。本研究减少了数据中的不一致性、冗余性和不完整性,同时增加了数据点数量与数据异质性。
英文摘要:
Smart contracts are small programs on the blockchain that often handle valuable assets. Vulnerabilities in smart contracts can be costly, as time has shown over and over again. Countermeasures are high in demand and include best practice recommendations as well as tools supporting development, program verification, and post-deployment analysis. Many tools focus on detecting the absence or presence of a subset of the known vulnerabilities, delivering results of varying quality. Most comparative tool evaluations resort to selecting a handful of tools and testing them against each other. In the best case, the evaluation is based on a smallish ground truth. For Ethereum, there are commendable efforts by several author groups to manually classify contracts. However, a comprehensive ground truth is still lacking. In this work, we construct a ground truth based on publicly available benchmark sets for Ethereum smart contracts with manually checked ground truth data. We develop a method to unify these sets. Additionally, we devise strategies for matching entries that pertain to the same contract, such that we can determine overlaps and disagreements between the sets and consolidate the disagreements. Finally, we assess the quality of the included ground truth sets. Our work reduces inconsistencies, redundancies, and incompleteness while increasing the number of data points and heterogeneity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。