Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VulnGym Trace 调用链清理工具 — 工作介绍
完成者: Xiu1111
对应 Issue: Tencent/VulnGym #5 — 清理 VulnGym 调用链顺序异常和重复节点
一、项目概述
VulnGym 是腾讯悟空安全团队联合多所高校发布的项目级白盒漏洞挖掘基准数据集,用于评估 AI Agent 在真实工程环境中的漏洞检测能力。Issue #5 要求对其
异常类型 | 说明 -- | -- 重复节点 | trace 数组中 {file, line, code} 三元组完全相同的节点 before-entry 异常 | trace 节点在 entry_file 中行号位于 entry_point 之前 after-critical 异常 | trace 节点在 critical_file 中行号位于 critical_operation 之后 # VulnGym Trace 调用链清理工具 — 工作介绍entries.jsonl中 408 条 entry 的trace调用链进行数据质量清理,识别并修复以下三类结构异常:完成者: Xiu11111
对应 Issue: [Tencent/VulnGym #5 — 清理 VulnGym 调用链顺序异常和重复节点](#5)
一、项目概述
VulnGym 是腾讯悟空安全团队联合多所高校发布的项目级白盒漏洞挖掘基准数据集,用于评估 AI Agent 在真实工程环境中的漏洞检测能力。Issue #5 要求对其
entries.jsonl中 408 条 entry 的trace调用链进行数据质量清理,识别并修复以下三类结构异常:{file, line, code}三元组完全相同的节点核心设计原则:源码行号表示声明顺序,不等于运行时执行顺序,因此采用保守策略——仅对
verify=0且明确越界的节点执行自动修复,verify=1条目完全保护。二、交付物清单
所有交付物位于
my_work/目录下:2.1 核心输出文件
data/entries.trace_fixed.jsonlreports/trace_fix_log.csvreports/trace_findings.csvreports/trace_needs_human.csvreports/trace_structure_report.json2.2 工具源代码
tools/trace_cleanup/cleanup.pytools/trace_cleanup/line_parser.pytools/trace_cleanup/duplicate_detector.pytools/trace_cleanup/order_checker.pytools/trace_cleanup/fixer.pytools/trace_cleanup/report_generator.pytools/trace_cleanup/README.md三、检测统计摘要
四、优先样本验证结果
Issue #5 指定了 4 个优先检查样本,均已完成处理:
entry-00103entry-00320entry-00511entry-00185所有 4 个样本均为
verify=0,修复操作严格限定于明确越界(strictly_before / strictly_after)场景,verify=1条目零修改。五、两种运行模式
保守模式(conservative,默认)
仅检测和报告所有异常,不做任何修改。适用于首次运行和人工审核前。
修复模式(fix)
对
verify=0条目的明确异常执行自动删除:verify=1条目完全保护,不做任何修改trace_fix_log.csv六、设计决策
七、验收标准对照