VAB-vulnerability-analysis-benchmark
收藏资源简介:
该数据集包含两个用于安全代码分析的小型基准测试:FBE (Find-the-Bug) 和 VAB (Multiple Choice)。两个基准测试均无需大型语言模型(LLM)作为评判,运行成本低且可重复。FBE 包含14个代码片段,每个片段中植入了一个漏洞,要求模型分析代码并找出漏洞。评分基于概念组,输出四个指标:found(是否识别真实漏洞,主要指标)、capability(是否指出攻击者获得的能力)、fix(是否在合理层面提出修复建议)、distracted(是否被无关内容分散注意力,越低越好)。漏洞类别包括:缺失对象级授权、角色批量赋值、通过存储URL的二次SSRF、解码前验证的路径遍历、编辑后批准、未消耗的一次性令牌、库存检查后操作竞争、从客户端提供头中获取身份、信任可变队列字段的worker、负数金额转账、开放失败授权、非常量时间秘密比较、绕过退款工作流的支持路由、执行认证但未授权的删除路由。数据格式为JSON行,包含字段:id(标识符)、vuln(漏洞描述)、domain(领域)、code(代码)、must_hit(必须命中的概念组)、capability(能力答案组)、fix(修复答案组)、distractors(干扰项组)。VAB 包含20个多项选择题,涵盖代码和场景,考察不变量破坏、根因、能力(知识、影响、访问、权限、执行)、链有效性、缺失检查、置信度、负空间、状态序列。链有效性选项固定为:A 已证实,B 可能,C 推测,D 阻断。使用注意事项:VAB 奖励短回答,模型若倾向于长形式分析可能在 VAB 上得分下降,而 FBE 得分不变或更好。因此建议将 FBE 作为主要信号,VAB 作为次要信号。参考数据:Qwythos / Qwen3.5-9B 4-bit 基础模型在 FBE 上 found 为79%,完全信誉为43%,VAB 为75%。使用授权:仅限安全评估和研究。所有代码片段均为通用示例。
This dataset contains two small benchmarks for security code analysis: FBE (Find-the-Bug) and VAB (Multiple Choice). Both benchmarks do not require a large language model (LLM) as a judge, are low-cost to run, and are reproducible. FBE includes 14 code snippets, each with an implanted vulnerability, requiring the model to analyze the code and identify the vulnerability. Scoring is based on concept groups, outputting four metrics: found (whether the real vulnerability is identified, primary metric), capability (whether the attackers gained capability is indicated), fix (whether a reasonable-level fix is suggested), and distracted (whether the model is distracted by irrelevant content, the lower the better). Vulnerability categories include: missing object-level authorization, role mass assignment, secondary SSRF via stored URL, path traversal before decoding validation, edit-then-approve, unconsumed one-time token, race condition after inventory check, identity from client-provided header, trusting mutable queue field worker, negative amount transfer, open failure authorization, non-constant time secret comparison, support route bypassing refund workflow, and authenticated but unauthorized delete route. Data format is JSON lines, with fields: id (identifier), vuln (vulnerability description), domain (domain), code (code), must_hit (must-hit concept group), capability (capability answer group), fix (fix answer group), distractors (distractor group). VAB includes 20 multiple-choice questions covering code and scenarios, testing invariant breaking, root cause, capability (knowledge, impact, access, privilege, execution), chain validity, missing checks, confidence, negative space, and state sequence. Chain validity options are fixed: A: confirmed, B: possible, C: speculative, D: blocked. Usage notes: VAB rewards short answers; models that tend to produce long-form analysis may score lower on VAB while FBE scores remain unchanged or better. Therefore, it is recommended to use FBE as the primary signal and VAB as the secondary signal. Reference data: Qwythos / Qwen3.5-9B 4-bit base model achieved 79% found on FBE, 43% full credibility, and 75% on VAB. Usage license: only for security evaluation and research. All code snippets are generic examples.
数据集概述
本数据集名为 FBE and VAB security analysis benchmarks,是一个面向安全代码分析的基准测试集,包含两个子配置:fbe 和 vab,均以 JSONL 格式提供。该数据集不依赖 LLM 评判,运行成本低且可重复。
数据集配置
| 配置名 | 数据文件 | 内容说明 |
|---|---|---|
fbe |
fbe.jsonl | 14 个代码片段,每个含一个植入漏洞 |
vab |
vab.jsonl | 20 道多项选择题,覆盖代码与场景 |
FBE(find-the-bug)
包含 14 个代码片段,每个片段预置一个真实漏洞,要求模型分析代码并识别缺陷。评分基于概念组,答案需包含每个必答组的至少一个同义词。输出四个指标:
- found:是否识别出真实漏洞(核心指标)
- capability:是否说明攻击者获得的收益
- fix:是否在合理层级提出修复建议
- distracted:是否被无关内容干扰(越低越好)
覆盖的漏洞类别包括:缺失对象级授权、角色批量赋值、通过存储 URL 的二阶 SSRF、解码前验证的路径遍历、审批后编辑、未消耗的单次令牌、库存检查-执行竞态、客户端提供的身份头、信任可变队列字段的 Worker、负数转账、默认可通过的授权、非常量时间秘密比较、绕过退款流程的支持路由、以及只认证不授权的删除路由。
VAB(多项选择)
包含 20 道基于代码和场景的多项选择题,考察维度包括:破坏的不变量、根因、能力(知识、影响、访问、权限、执行)、链有效性、缺失检查、置信度、负空间、状态序列。链有效性选项固定为:A 已证实、B 可能、C 推测、D 阻塞。
使用提示
VAB 奖励简短强制选择答案。擅长长篇幅分析的模型可能在 VAB 上表现下降,而实际找漏洞能力不变或更好。建议将 FBE 作为主要信号,VAB 作为次要信号。
参考性能
Qwythos / Qwen3.5-9B 4-bit 基础模型:FBE 命中率 79%,FBE 完全得分 43%,VAB 得分 75%。
许可与用途
采用 Apache-2.0 许可证,英语语言,适用于授权安全评估与研究,所有代码片段均为通用内容。




