场景定位
把已审查发现项转成最小修复,并保留回归证据。 本页把官方 use case 的章节、工具、起步提示词和检查点整理成中文执行流程,便于直接对照落地。
- 难度
- 高级
- 时间跨度
- 约 15-30 分钟
适合用于
- 需要把「把已审查发现项转成最小修复,并保留回归证据。」做成可复用流程的团队,且来源分散在 Codex Security:fix Finding 等工具中
- 希望 ChatGPT 或 Codex 保留来源、检查点和可审阅输出的使用者
- 需要把「修复漏洞积压」从一次性对话变成可复查工作流的场景
Skills & Plugins
相关工具
Starter Prompt
起步提示词
Use $codex-security:fix-finding to fix this security finding and verify the issue no longer reproduces.
Source: [Codex Security report / Linear or Jira ticket / GitHub Security Advisory / HackerOne or Bugcrowd report / other authorized source]
Title and affected component: [finding title and component]
Vulnerable source, sink, or broken control: [known path or unknown]
Attacker-controlled input and impact: [input, prerequisites, and impact]
Expected security invariant: [behavior the fix must enforce]
Existing proof: [report path, PoC, reproducer, test, or validation notes]
Affected files and lines: [paths and lines, or unknown]
Constraints: [supported behavior to preserve, test command, rollout requirement, or none]
Requirements:
- Confirm that the issue still exists before changing code when feasible.
- Make the smallest change that enforces the intended security invariant.
- Add focused regression coverage or the strongest repeatable validation artifact available.
- Verify legitimate behavior still works and the original issue no longer reproduces.
- Keep unrelated backlog findings and refactors out of this change.
Report the changed files, tests or validation artifacts, exact commands and results, proof that the original issue no longer reproduces, and remaining uncertainty. If the issue is already fixed, show the evidence and do not change code. 在 ChatGPT 中尝试 Fix reviewed findings one at a time
这一部分用于审查「修复漏洞积压」的结果:把来源、假设、输出和下一步动作逐项核对,避免只得到一个看似完成但无法验证的草稿。
操作要点:先把本节需要的来源材料、权限和上下文补齐,并关注 Codex、GitHub、Linear 等相关来源或工具;缺失内容要明确标记,不要让 ChatGPT 或 Codex 隐式猜测。
操作要点:在继续执行前检查来源、假设、受众、权限和输出质量,并关注 Codex 等相关来源或工具;不确定内容应进入待确认列表。
Close one item with evidence
这一节对应官方流程中的「Close one item with evidence」。落地时围绕「修复漏洞积压」把目标、输入、执行步骤和验证证据保持在同一条工作流里。
保持 the backlog auditable
这一节对应官方流程中的「Keep the backlog auditable」。落地时围绕「修复漏洞积压」把目标、输入、执行步骤和验证证据保持在同一条工作流里。
操作要点:在继续执行前检查来源、假设、受众、权限和输出质量,并关注 Codex 等相关来源或工具;不确定内容应进入待确认列表。
操作要点:运行最小可信验证并保存证据,让后续审查能看到命令、结果和失败处理方式。
Prompt Library
建议提示词
先界定范围
For Remediate a vulnerability backlog, first inspect the available sources and propose the smallest useful scope. Name the inputs, outputs, validation steps, permissions, and anything that needs approval before action. 交付前复核
Review the result for Remediate a vulnerability backlog. Check source coverage, assumptions, unresolved questions, and the evidence that proves the output is ready to use.