Agent Skills › openai/codex-security › attack-path-analysis

attack-path-analysis

GitHub

用于安全扫描的攻击路径分析,追踪漏洞从源头到终点的路径并校准严重性。适用于已处于该阶段或用户明确要求溯源的场景,不用于全量代码扫描。

plugins/codex-security/skills/attack-path-analysis/SKILL.md openai/codex-security

触发场景

用户要求追溯安全发现的攻击路径 Codex处于安全扫描的攻击路径分析阶段

安装

npx skills add openai/codex-security --skill attack-path-analysis -g -y
更多选项

非标准路径

npx skills add https://github.com/openai/codex-security/tree/main/plugins/codex-security/skills/attack-path-analysis -g -y

不安装直接使用

npx skills use openai/codex-security@attack-path-analysis

指定 Agent (Claude Code)

npx skills add openai/codex-security --skill attack-path-analysis -a claude-code -g -y

安装 repo 全部 skill

npx skills add openai/codex-security --all -g -y

预览 repo 内 skill

npx skills add openai/codex-security --list

SKILL.md

Frontmatter
{
    "name": "attack-path-analysis",
    "description": "Use when Codex is already in the attack-path-analysis phase of a security scan or the user explicitly asks to trace a security finding from source to sink and calibrate severity. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans."
}

Security Attack Path Analysis

Determine whether each supplied finding has a supported attacker path, what impact it has, and whether it is reportable. Before creating or retaining files, read ../../references/artifact-storage.md.

Establish the attack path

For a scan phase, use its per-scan threat model and candidate set from ../../references/scan-artifacts.md. Preserve supplied input paths. If a required scan artifact is unavailable, report the missing input.

For standalone analysis, use the supplied finding, repository, threat model or security policy, and context. A per-scan artifact is not required. State material assumptions and ask for missing context only when it prevents a meaningful assessment.

  1. Establish the in-scope attacker, affected product surface, entry point, controlled input, security boundary, and sensitive operation. Trace the path from repository evidence.
  2. Identify relevant controls and the strongest counterevidence. Explain what they establish, which prerequisites remain, and whether the exact claimed boundary is crossed.
  3. Assess impact and likelihood from those facts, then apply references/severity-policy.md. Keep facts, severity calibration, and the final policy decision distinguishable in the result.
  4. Return an explicit decision for every eligible candidate, including ignored or deferred candidates. Do not replace a supported instance with a neighboring finding or lose its root-control location.

Use repository evidence and explicitly supplied context. Access the network only when the user has expressly authorized it; an offline scan never accesses the network. Do not invent unsupported attack chains. Missing deployment or public-ingress evidence can limit confidence without defeating an otherwise supported finding.

Scan integration

Standard scans and Deep Scan workers assess attack paths within their ordinary Standard scan workflow; neither invokes this separate phase skill.

Compact Workbench Diff

When a workbench-backed $security-diff-scan has a scanId:

  • Load the per-scan threat model and all validated candidates with list_codex_security_candidates({ scanId, cursor?, limit? }).
  • Analyze every reportable or deferred validation candidate. Preserve candidate identity and existing discovery and validation fields.
  • Submit every decision together with record_candidate_attack_paths({ scanId, attackPaths: [{ candidateId, attackPath }] }). Submit attackPaths: [] when no candidate enters this phase. The tool preserves the stored candidate order.
  • These nested decisions are the complete phase output. Do not create duplicate reports, receipts, or manual ledgers.

Other phase-based scans

Use the active workflow's report and receipt paths in ../../references/scan-artifacts.md. Every candidate entering this phase must have an explicit decision and a receipt with its ID, facts or exact proof gap, and report reference. Record ignored candidates before excluding them from the surviving finding set.

For repository-wide or scoped-path scans, include validation closure rows marked reportable or survives: yes, even if discovery did not assign a polished finding number. Preserve affected entrypoint/wrapper, root-control, sink, and concrete-implementation locations supplied by validation.

Output

For standalone analysis, follow the caller's format or return a concise assessment per finding. Scan phases use their output contract above. Include:

  • title and supplied candidate, instance, and ledger identities;
  • precise affected locations and attacker-to-impact steps;
  • relevant facts from references/attack-path-facts.md;
  • controls, counterevidence, prerequisites, and material proof gaps;
  • impact, likelihood, calibrated severity, and final policy decision with their reasons.

Retain enough evidence to explain both surviving and suppressed findings. Apply the severity policy to the established facts rather than reopening discovery or substituting a different attack story.

版本历史

  • aeee7f2 当前 2026-11-02 11:10

    简化安全技能指令,优化了关于工件解析和紧凑工作台模式的描述结构。

  • f8aeff2 2026-10-18 18:41

    修复 CI 中 Markdown 文件变更检查的一致性逻辑,优化参数传递与列表读取方式。

  • 86f6afc 2026-09-22 01:59

    新增Compact Workbench-Backed Diff Mode,支持通过scanId原子化记录候选项攻击路径,优化标准扫描工作流中的攻击路径处理逻辑。

  • 69c5003 2026-09-02 22:22

同 Skill 集合

plugins/codex-security/skills/assess-patch-risk/SKILL.md
plugins/codex-security/skills/cloud-findings/SKILL.md
plugins/codex-security/skills/deep-security-scan/SKILL.md
plugins/codex-security/skills/define-security-policy/SKILL.md
plugins/codex-security/skills/finding-discovery/SKILL.md
plugins/codex-security/skills/fix-finding/SKILL.md
plugins/codex-security/skills/propose-security-hardening/SKILL.md
plugins/codex-security/skills/publish-findings/SKILL.md
plugins/codex-security/skills/resolve-dependency-alert/SKILL.md
plugins/codex-security/skills/security-diff-scan/SKILL.md
plugins/codex-security/skills/security-scan/SKILL.md
plugins/codex-security/skills/threat-model-visualize/SKILL.md
plugins/codex-security/skills/threat-model/SKILL.md
plugins/codex-security/skills/track-findings/SKILL.md
plugins/codex-security/skills/triage-finding/SKILL.md
plugins/codex-security/skills/validation/SKILL.md
plugins/codex-security/skills/verify-fix/SKILL.md
plugins/codex-security/skills/vulnerability-writeup/SKILL.md
sdk/typescript/_bundled_plugin/skills/assess-patch-risk/SKILL.md
sdk/typescript/_bundled_plugin/skills/attack-path-analysis/SKILL.md
sdk/typescript/_bundled_plugin/skills/deep-security-scan/SKILL.md
sdk/typescript/_bundled_plugin/skills/define-security-policy/SKILL.md
sdk/typescript/_bundled_plugin/skills/finding-discovery/SKILL.md
sdk/typescript/_bundled_plugin/skills/fix-finding/SKILL.md
sdk/typescript/_bundled_plugin/skills/security-diff-scan/SKILL.md
sdk/typescript/_bundled_plugin/skills/security-scan/SKILL.md
sdk/typescript/_bundled_plugin/skills/threat-model/SKILL.md
sdk/typescript/_bundled_plugin/skills/track-findings/SKILL.md
sdk/typescript/_bundled_plugin/skills/triage-finding/SKILL.md
sdk/typescript/_bundled_plugin/skills/validation/SKILL.md
sdk/typescript/_bundled_plugin/skills/verify-fix/SKILL.md
sdk/typescript/_bundled_plugin/skills/vulnerability-writeup/SKILL.md
sdk/typescript/_bundled_plugin/skills/propose-security-hardening/SKILL.md

元信息

文件数
0
版本
aeee7f2
Hash
2cb8d984
收录时间
2026-09-02 22:22

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 12:03
浙ICP备14020137号-1