verify-fix
它能做什么
这个技能通过把当前代码与原始问题对照,检查安全修复是否有效。适合需要证明某个漏洞已被关闭的开发者和审阅者。
适用场景
- ✓当你明确要求验证某个安全修复是否解决了被报告的漏洞时。
- ✓当你想确认修复后某个绕过方式已无法使用时。
- ✓当你希望对当前检出代码中的每个安全发现给出结论的时候。
技能链接
https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/verify-fix/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我验证上传路径遍历问题的修复是否真正关闭了该漏洞,并检查是否还有绕过方式。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会沿着当前代码追踪原始的源头、控制点和敏感步骤。它会寻找可能的绕过方式,并检查正常行为是否仍然有效,以源码和现有测试作为证据。它不会修改任何文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Verify Fix
When to Use
Invoke this skill only for an explicit request to verify a security fix, including a direct $verify-fix invocation. A request to implement a fix or run its tests does not by itself request this skill. For other tasks, follow the user's requested workflow and response format.
Objective
Determine whether each supplied security finding has been fixed in the current checkout. Operate in standalone verification-only mode; do not create, modify, or delete repository files, apply patches, commit changes, write artifacts, or modify issue trackers.
Assessment Method
Use ../../references/static-finding-assessment.md to identify the original attacker-controlled source, security control, sensitive sink, reachable path, trust boundary, counterevidence, and proof gaps. If the caller already supplied that reference in the prompt, use the supplied contents without reading it again.
Use standard verification unless the caller explicitly selects verificationMode: static. In static mode, assess the current source and diff, the original exploit path and plausible bypasses, and legitimate behavior through callers and existing tests read as source. Do not install dependencies or run builds, tests, reproducers, or the application, including when validation instructions request them. Repository-reading tools remain available. State in the evidence that this is a static assessment and runtime checks were not performed; do not count them as passed or require them for this assessment. Missing runtime tooling alone does not make the result inconclusive, but a material gap in the source evidence does.
Verification Workflow
- Establish the original vulnerability, its preconditions, affected security boundary, and legitimate behavior that must continue to work.
- Confirm the current checkout contains the affected component. Follow moved or refactored code rather than treating a missing file, removed line, or changed function name as proof of remediation.
- Trace the original exploit path through the current implementation and check the nearest relevant control, equivalent paths, and plausible bypasses.
- In standard mode, run the original reproducer, focused regression checks, or legitimate-behavior checks only when they can run without modifying the repository. Preserve exact static evidence when runtime checks are unavailable.
- Return one result per supplied finding, in the requested order. Treat closed tickets, unrelated passing tests, and the absence of a new scan finding as insufficient proof.
Result Contract
For interactive conversations, use readable Markdown unless the caller requests another format. Give a verdict for each finding, explain the supporting evidence with source references, and identify relevant checks and remaining proof gaps.
When the caller requests JSON or supplies an automated result contract, return exactly one JSON object in this shape. CLI verification workflows explicitly request this contract. Use the same verdicts and evidence requirements in either format.
{
"results": [
{
"id": "finding-or-issue-id",
"status": "fixed|still_vulnerable|inconclusive",
"evidence": "specific current source, exploit, test, or proof-gap evidence"
}
]
}
- Use
fixedonly when evidence proves the original security boundary is closed and legitimate behavior remains intact. - Use
still_vulnerableonly when evidence proves the original vulnerable path remains reachable. - Use
inconclusivefor a repository mismatch, missing original context, unavailable checks required by the selected mode, an unproven legitimate control, or another material proof gap.
Never infer a stronger verdict by weakening the read-only boundary, substituting a different vulnerability, or hiding missing evidence.
常见问题
它会修复代码吗?
不会。它只以验证模式运行,不会创建、修改或删除代码仓库中的文件。
它可以在不运行任何东西的情况下审阅吗?
可以。静态模式只审阅源码和差异,不进行安装、构建或测试。
什么时候不应该使用它?
不要用于普通的代码改动、非安全类修复或完整的代码仓库扫描。
详情
作者的原始描述
Use only when the user explicitly requests verification that a security fix remediates a reported vulnerability. Do not invoke automatically while implementing fixes, reviewing ordinary code changes, or running tests. Do not use for non-security fixes, candidate finding validation, or full repository scans.
repo: openai/codex-security
热度
- GitHub 星标
- 11k
- 排名
- #11763
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
assess-patch-risk
11k帮你的智能体在合并之前评估代码补丁的风险,包括它影响什么、哪些测试覆盖它,以及它是否可以回滚。
attack-path-analysis
11k帮你的智能体追踪一项安全发现,从入口点到目标,然后判断其真实影响,以及是否应当报告。
cloud-findings
11k让你的智能体从已连接的账户中读取已有的 Codex Security Cloud 发现、报告和扫描状态,且不做任何更改。
deep-security-scan
11k帮你的智能体对代码仓库或文件夹进行深入、多轮的安全扫描,通过重复独立的检查,并汇总经过验证的发现。