Bench-Dataset
收藏资源简介:
Bench-Dataset是一个用于智能合约审计(FP/FN)的基准数据集,基于执行模式分为检测(detect)和利用(exploit)两部分。detect部分包含正常任务(47个)和复仇任务(24个,用于诱导误报),exploit部分包含11个任务(仅限lumos-v5)。每个任务自包含(manifest.yaml + code/自有库),数据集还包括映射和元数据文件(MAPPING.csv、catalog.csv)。
Bench-Dataset is a benchmark dataset for smart contract auditing (FP/FN). It is divided into two parts based on execution modes: detect and exploit. The detect section includes 47 normal tasks and 24 revenge tasks, which are used to induce false positives. The exploit section contains 11 tasks exclusively for lumos-v5. Each task is self-contained, with manifest.yaml, code and its own libraries. The dataset also includes mapping and metadata files: MAPPING.csv and catalog.csv.
数据集概述:Bench-Dataset
Bench-Dataset 是一个针对智能合约审计的基准测试(Benchmark)数据集,主要用于评估审计工具在检测漏洞(FP/FN,即误报/漏报)方面的性能。数据集根据执行模式划分为两大子集:detect/(检测)和 exploit/(利用)。
数据集结构
data/tasks/detect/— 检测任务,用于评估从源代码中发现漏洞的能力。包含所有问题。normal/(47个) — 基础问题,编号为detect-task-001到detect-task-047。revenge/(24个) — 在原有问题上添加 near-miss FP(诱使误报)表面特征的变体。命名规则为detect-task-<原始编号>-fp(例如detect-task-001-fp源自detect-task-001)。
data/tasks/exploit/(11个) — 利用任务,用于评估通过PoC(概念验证)实现实际资金盗取的能力。仅包含来自 lumos-v5 的11个问题,每个问题包含部署和成功条件(deployment + success_predicate)。这些任务与detect/normal中的对应 lumos-v5 任务一一对应(exploit-task-NNN↔detect-task-NNN)。
每个任务均为自包含单元(包含 manifest.yaml 和 code/ 目录下的自有库)。任务的映射和元数据信息存储在 MAPPING.csv 和 catalog.csv 中。
数据内容示例
detect/normal (47个任务)
| 任务编号 | 原始来源 (套件/名称) | 漏洞模式 (pattern) | 影响 (impact) | 严重性 (sev) | TP | FP |
|---|---|---|---|---|---|---|
| detect-task-001 | lumos-v5/lumos-v5-001 | effects-after-interaction-cross-market |
fund_loss | – | 1 | – |
| detect-task-002 | lumos-v5/lumos-v5-002 | balance-sync-credits-without-mint-and-assets-input-zero-burn |
fund_loss | – | 2 | – |
| detect-task-012 | manyfp/crypto/english-auction | bid |
fund_loss | High | 8 | 3 |
| detect-task-013 | manyfp/crypto/flash-loan | flashLoanInstant |
fund_loss | Critical | 8 | 2 |
| detect-task-036 | manyfp/real-context/aave-v3-core | multi-bug |
fund_loss | Critical | 10 | – |
| detect-task-041 | reentrancy/task-001-transient-rate-borrow | read-only-reentrancy-oracle |
fund_loss | – | 1 | – |
detect/revenge — FP变体 (24个任务)
| 任务编号 | 基任务 | 原始来源 (套件/名称) | 漏洞模式 (pattern) | 影响 (impact) | 严重性 (sev) | TP | FP |
|---|---|---|---|---|---|---|---|
| detect-task-041-fp | detect-task-041 | reentrancy-fp/task-001-transient-rate-borrow-fp | read-only-reentrancy-oracle |
fund_loss | – | 1 | – |
| detect-task-001-fp | detect-task-001 | fp-v4/lumos-v5/lumos-v5-001 | effects-after-interaction-cross-market |
fund_loss | – | 1 | – |
| detect-task-030-fp | detect-task-030 | fp-v4/lumos-v4/lumos-v4-001 | authorization_context_binding |
fund_loss | – | 2 | – |
exploit — lumos-v5 (11个任务)
| 任务编号 | 原始来源 (套件/名称) | 漏洞模式 (pattern) | 影响 (impact) | 严重性 (sev) | TP | FP |
|---|---|---|---|---|---|---|
| exploit-task-001 | lumos-v5/lumos-v5-001 | effects-after-interaction-cross-market |
fund_loss | – | 1 | – |
| exploit-task-007 | lumos-v5/lumos-v5-007 | unbounded-spend-rights-to-untrusted-receiver-on-forwarding-helper |
fund_loss | – | 2 | – |
| exploit-task-011 | lumos-v5/lumos-v5-011 | same-token-loan-recycled-as-deposit-collateral |
fund_loss | – | 2 | – |
数据特点
数据集中的 manyfp 系列(crypto 6个,synthetic 7个)问题经过了特别处理:将无意义的重复填充代码替换为实际可运行的协议代码,并对核心(正确答案)进行冻结、确保参考PoC可通过、以及进行对抗性触发验证(全部通过,为“CLEAN”状态)。这保证了数据的有效性和基准测试的可靠性。




