Bastet
收藏资源简介:
Bastet是由AIFT研究团队构建的专家标注去中心化金融智能合约漏洞数据集,旨在解决现有数据集因使用过时Solidity版本、自动化标注噪声及粗粒度标签导致的质量瓶颈。该数据集包含从2021年4月至2024年11月期间394份Code4rena审计报告中收集的4,402条漏洞发现,其中849条已由DeFiHackLabs社区的白帽安全专家通过双人共识流程完成精细标注,并建立包含46个标签和77个子标签的两层分类体系。数据集创建过程严格遵循基于真实审计发现、专家讨论共识的原则,确保标签准确反映漏洞根本原因。该数据集主要应用于智能合约安全检测领域,特别是为基于大语言模型的漏洞检测方法提供高质量评估基准,以识别传统静态分析工具难以捕捉的业务逻辑漏洞。
Bastet is an expert-annotated decentralized finance (DeFi) smart contract vulnerability dataset developed by the AIFT research team, designed to address the quality bottlenecks plaguing existing datasets stemming from outdated Solidity versions, automated annotation noise, and coarse-grained labels. This dataset includes 4,402 vulnerability findings collected from 394 Code4rena audit reports issued between April 2021 and November 2024. Of these, 849 findings have been precisely annotated through a two-person consensus workflow by white-hat security experts from the DeFiHackLabs community, and a two-tier classification system encompassing 46 primary labels and 77 sub-labels has been established for the dataset. The dataset construction process strictly adheres to the principles grounded in real audit findings and expert consensus, ensuring that the labels accurately reflect the root causes of vulnerabilities. This dataset is primarily applied in the field of smart contract security detection, particularly serving as a high-quality evaluation benchmark for large language model (LLM)-based vulnerability detection approaches to identify business logic vulnerabilities that traditional static analysis tools struggle to detect.
数据集名称
Bastet: A Fine-Grained Expert-Labeled Dataset for DeFi Smart Contract Vulnerability Detection
核心主题
一个针对去中心化金融(DeFi)智能合约漏洞检测的细粒度、专家标注数据集。
数据来源与规模
- 数据收集:来源于 394 份 Code4rena 竞赛性审计报告,时间跨度从 2021 年 4 月到 2024 年 11 月。
- 数据总量:总计包含 4,402 个发现(findings)。
- 已标注数据:其中 849 个发现由 DeFiHackLabs 社区的白帽安全研究人员完成完整标注。
标注方法与特点
- 标注人员:由多位人类专家(白帽安全研究人员)进行标注。
- 标注流程:采用双标注者共识机制(two-annotator consensus workflow)生成标注,确保标签准确性基于真实世界的漏洞根本原因。
- 标签体系:采用两层细粒度分类(two-layer taxonomy),包含 46 个标签(Tags)和 77 个子标签(Subtags)。
解决的关键问题
现有数据集普遍存在三个根本性问题,Bastet 均予以解决:
- 版本过时:现有数据集基于过时的 Solidity 版本(如 v0.4),无法反映现代 DeFi 合约。Bastet 的数据基于 2021-2024 年的真实世界审计结果。
- 标注不准确:现有数据集依赖自动化或大语言模型生成的标注,存在幻觉导致的标签噪声。Bastet 采用人工专家标注和讨论共识。
- 标签粒度粗糙:现有数据集采用单层粗粒度标签,无法捕捉真实世界业务逻辑漏洞的语义复杂性。Bastet 采用包含 46 个Tags和 77 个 Subtags 的双层分类法。
学科领域
计算机科学(Computer Science)> 密码学与安全(Cryptography and Security)




