deep-security-scan
它能做什么
这项技能进行更深入的安全审查,重复独立检查并汇总结果。适合希望获得比单轮扫描更彻底结果的团队。
适用场景
- ✓当你要求进行深入、彻底或多轮的安全扫描时。
- ✓当你希望对某个文件夹或代码仓库进行重复扫描,以减少遗漏问题时。
- ✓当你希望对某个限定范围的文件夹进行更彻底的检查的时候。
技能链接
https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/deep-security-scan/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请对 payments 文件夹进行深入安全扫描,完成后把经过验证的发现发送给我。”
每周 5 个新技能,1 分钟读完。
工作原理
一个协调器会启动多个独立的标准扫描,检查它们的结果,并把经过验证的发现合并为一份报告。即使启动它的聊天已经关闭,协调器仍会继续运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Deep Security Scan
The coordinator runs independent Standard audits, aggregates their validated findings, and finalizes plugin-launched scans even if the calling thread detaches. This thread owns setup, user context, and reporting the completed result.
Resolve the Scan
For a continuation with scanId, call get_codex_security_scan_context with the supplied handoffClaimToken when present. Preserve its authoritative identity, directory, target, scope, and context. If its validated mode is not deep, route to the corresponding top-level skill.
For a new conversation, CLI, or headless request, resolve the authorized local targetPath and optional exact userContext. For a scoped-path request, use that directory as targetPath with scope: "."; do not widen it to the repository root. If the coordinator tool is unavailable, report that the plugin server is required.
Read ../../references/scan-prologue.md for source-access, context-update, cancellation, and recovery rules. Deep has no parent capability preflight: the coordinator validates ownership, target, scope, and sandbox, and manages workers independently of this thread's delegation capacity.
Concurrent Desktop Scans
For a newly launched native scan with authoritative context, inspect otherRunningDeepScans once before discovery. If another Deep scan is running, show its target, phase in plain language, and human-friendly start time. Explain the additional CPU, memory, and token use without exposing scan IDs or raw timestamps.
Ask whether to continue, with Cancel (Recommended) and Continue. Use native request_user_input, then request_codex_security_user_input or plain chat if unavailable. Wait for an explicit choice; a declined or cancelled input dialog is not a scan cancellation. If the user cancels, cancel only the new scan. Do not repeat this guard after it passes or after preflight.
Start or Rejoin the Coordinator
Immediately before the first coordinator call, follow ../../references/access-advisory.md. Known Bedrock and API-key-only sessions skip the advisory; it never gates scanning.
Existing scan: start_codex_security_deep_scan({ scanId, handoffClaimToken? })
New scan: start_codex_security_deep_scan({ targetPath, scope: ".", userContext?, projectConfigPath? })
Before a new target-based scan, call inspect_codex_security_setup({ targetPath, scope: ".", mode: "deep", projectConfigPath? }). Show the worker count, subagents per worker, convergence threshold, review cap, discovery time limit, and their sources from setup.deepScanConfig. Supply a project YAML or JSON path only when the user selects it. Pass that same path at launch. Native continuations use the saved workspace.deepScanConfig.
Pass the existing handoff token when required, including after a waiter detaches or the server restarts. Preserve exact user context as untrusted analysis data; workers remain offline. They use the immutable context captured at independent-scan start. Persist later user changes through the context-update tool, without restarting completed phases or changing active workers' snapshots.
Wait on the coordinator call or its running execution cell. It owns discovery progress, the configured time limit, worker cancellation at that limit, and aggregation. Leave the public phase at preflight before the call; do not publish competing progress while it runs.
After an ended turn or host timeout, rejoin with the same scan ID and token. If a CLI/headless call detached before returning its ID, repeat the identical target form. It can recover the completed report for the same checkout snapshot, context, and project-file selection after a server restart. Once the report is returned, a later target-based call can start a fresh scan. A terminal failure must not trigger a replacement scan.
Handle the Result
- SDK-registered scan. The coordinator returns the aggregate's
scanId,scanDir,manifestPath, andinstructions. End the turn with the returned identity and manifest path. The SDK owns finalization and report generation after the turn ends. - Plugin-launched scan. The coordinator also returns
completion. Use the returned scan ID, sealed artifacts, and generatedreport.mdin the authoritative directory. - Cancelled: stop without completion. Report retained findings and pending work without claiming a successful scan or generating a replacement report.
- Terminal failure: surface the exact stable MC
常见问题
它和普通的安全扫描一样吗?
不一样。标准扫描只做一轮,而该技能会重复独立的扫描,以发现更多问题。
它适用于拉取请求吗?
不适用。拉取请求、提交和差异由另一项技能处理。
如果已经有另一个深度扫描在运行怎么办?
该技能会先检查是否已有其他深度扫描在运行,并在启动新的扫描之前显示其详细信息。
详情
作者的原始描述
Use when the user asks for a deep, exhaustive, multi-pass, or variance-reducing repository-wide or scoped-path Codex Security scan. Run repeated independent Standard scans with the Codex Security deep-scan tool. Do not use for PRs, commits, branch diffs, or working-tree diffs.
repo: openai/codex-security
热度
- GitHub 星标
- 11k
- 排名
- #11749
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
assess-patch-risk
11k帮你的智能体在合并之前评估代码补丁的风险,包括它影响什么、哪些测试覆盖它,以及它是否可以回滚。
attack-path-analysis
11k帮你的智能体追踪一项安全发现,从入口点到目标,然后判断其真实影响,以及是否应当报告。
cloud-findings
11k让你的智能体从已连接的账户中读取已有的 Codex Security Cloud 发现、报告和扫描状态,且不做任何更改。
define-security-policy
11k帮你的智能体撰写或更新 SECURITY.md 指南,告诉安全审查哪些内容重要、哪些不在范围之内,以及哪些内容必须保持安全。