arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.03387cs.CR
收藏

Bastet:用于DeFi智能合约漏洞检测的细粒度专家标注数据集

Bastet: A Fine-Grained Expert-Labeled Dataset for DeFi Smart Contract Vulnerability Detection

AIFT(亚洲创新与技术学院)

Wan-Hsuan Hsu, Wei-Hsin Wang, Cheng-Yu Liou, Ting-Rui Ke, Kentaroh Toyoda

AI总结:

针对现有数据集存在的过时Solidity版本、自动标注噪声和粗粒度标签问题,提出基于真实审计报告和专家共识标注的细粒度两层分类法(46个标签和77个子标签)的DeFi智能合约漏洞数据集Bastet。

摘要:

去中心化金融(DeFi)协议中的智能合约漏洞仅在2024年就导致超过14.9亿美元的确认损失,涉及192起事件[1]。随着基于LLM的漏洞检测成为应对这些威胁的有前景的方法,评估数据集的质量已成为关键瓶颈。现有数据集存在三个根本问题:它们基于过时的Solidity版本(例如v0.4),不再反映现代DeFi合约[5][6][7];它们依赖自动或LLM生成的注释,引入了幻觉驱动的标签噪声[9][10];并且它们应用粗糙的单层标签,未能捕捉真实世界业务逻辑漏洞的语义复杂性[6][7][11][12]。我们提出Bastet,一个专家标注的DeFi智能合约漏洞数据集,通过真实世界的审计发现(2021-2024)、基于讨论共识的人工专家注释以及包含46个标签和77个子标签的两层分类法,解决了所有三个问题。Bastet包含从394份Code4rena竞争性审计报告中收集的4,402个发现,时间跨度从2021年4月到2024年11月,其中849个发现由DeFiHackLabs社区的白帽安全研究人员完全注释。所有注释均通过双注释者共识工作流程生成,确保基于真实世界漏洞根本原因的标签准确性。

英文摘要:

Smart contract vulnerabilities in Decentralized Finance (DeFi) protocols resulted in over 1.49 billion USD in confirmed losses in 2024 alone, across 192 incidents [1]. As LLM-based vulnerability detection emerges as a promising approach to address these threats, the quality of evaluation datasets has become a critical bottleneck. Existing datasets suffer from three fundamental problems: they are built on outdated Solidity versions (e.g., v0.4) that no longer reflect modern DeFi contracts [5][6][7]; they rely on automated or LLM-generated annotations that introduce hallucination-driven label noise [9][10]; and they apply coarse single-layer labeling that fails to capture the semantic complexity of real-world business logic vulnerabilities [6][7][11][12]. We present Bastet, an expert-labeled DeFi smart contract vulnerability dataset that addresses all three problems through real-world audit findings (2021-2024), human expert annotation with discussion-based consensus, and a two-layer taxonomy of 46 Tags and 77 Subtags. Bastet comprises 4,402 findings collected from 394 Code4rena competitive audit reports spanning April 2021 to November 2024, of which 849 findings are fully annotated by white-hat security researchers from the DeFiHackLabs community. All annotations are produced through a two-annotator consensus workflow, ensuring label accuracy grounded in real-world vulnerability root causes.

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

↑