본문으로 건너뛰기
cccskills
무료GitHub에 공개

attack-path-analysis

Trace a security finding from an attacker’s entry point to its impact using repository evidence. Examine access, permissions, existing defenses, and counterevidence to assess severity and decide whether the finding warrants reporting.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • Trace how an attacker could exploit a finding
  • Reassess severity against existing defenses
  • Check counterevidence before reporting
  • Document decisions for each candidate finding

포함된 파일(4)

  • SKILL.md8.4 KB
  • agents/openai.yaml261 B
  • references/attack-path-facts.md2.8 KB
  • references/severity-policy.md14.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Security Attack Path Analysis

Before choosing paths or saving retained output, read ../../references/artifact-storage.md and follow its storage policy.

Objective

Turn validated or still-plausible findings into explicit attacker stories, structured attack-path analysis facts, severity calibration, and a final reportability decision grounded in the threat model.

Artifact Resolution

The path references in this skill are the default locations for this phase. If the user explicitly provides a different path for a required input or output, use the user-provided path instead of the corresponding default path referenced in this skill. If a required input is still missing, stop and ask the user for it before continuing. Use the shared scan artifact path conventions in ../../references/scan-artifacts.md.

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

Compact Workbench-Backed Diff Mode

When a workbench-backed $security-diff-scan has a scanId, load the per-scan threat model and read the validated candidates with list_codex_security_candidates({ scanId, cursor?, limit? }). Analyze every reportable or deferred candidate, preserve every discovery and validation field and the original candidate order, and submit all decisions together with one record_candidate_attack_paths({ scanId, attackPaths: [{ candidateId, attackPath }] }) call. Submit attackPaths: [] when no candidate enters this phase. The existing tool atomically updates the stored candidates; do not create per-finding reports, receipts, or manual candidate ledgers in this compact diff mode. Keep attack-path facts, counterevidence, severity calibration, and policy adjustment as separate reasoning steps. Other scan and standalone workflows retain their existing artifact behavior.

Workflow

  1. Load the per-scan threat model path from ../../references/scan-artifacts.md as the repo-specific threat-model source of truth. Start from this along with the potential findings. Both inputs are required for this workflow.
    • For repository-wide and scoped-path scans, include validation closure rows marked reportable or survives: yes even if they were not assigned polished candidate numbers during discovery.
  2. Determine whether the affected code is in scope for the repository threat model and whether it belongs to a product surface or production workflow.
  3. Build a factual attack path using repository evidence only:
    • service mapping
    • exposure and entry points
    • identity, privilege, and trust boundaries
    • secrets handling and sensitive-data flow
    • reachability
    • existing controls and mitigations
  4. Before finalizing scope or reportability-driving facts, identify the strongest repository counterevidence against the key scoping fields and explain why it is or is not dispositive.
  5. Calibrate impact and likelihood from the repository evidence.
  6. Apply a separate final policy-adjustment pass mechanically using those facts and the calibrated severity.
  7. Record final policy decision ignore explicitly; in compact diff mode, retain its candidate record for coverage, and otherwise drop it from the surviving finding set.
  8. For a durable diff scan, submit the nested decision for every eligible candidate in the single compact tool call. Otherwise, save that finding's visible attack-path report and append one attack-path receipt per candidate id at the default paths from ../../references/scan-artifacts.md. The receipt must record the candidate id, attack-path reportability decision, attack-path facts or exact proof gap, and attack-path artifact/report reference for that candidate finding.

Scope and Attack Path Checklist

Use this checklist before finalizing the attack-path facts or policy decision:

  • Determine whether the finding is actually a real security vulnerability rather than a correctness bug or false positive.
  • Determine whether the affected code belongs to a product surface or production workflow.
  • Map the relevant service, component, or workflow context from repository evidence.
  • Establish exposure and entry points from repository evidence such as listeners, ingress, load balancers, service ports, manifests, routing, or network policy.
  • Establish identities, privileges, and trust boundaries that matter for the path.
  • Establish whether sensitive data, secrets references, or privileged control paths are involved.
  • Determine whether a realistic attacker can actually reach and use the issue from an in-scope attack surface.
  • Identify the strongest repository counterevidence against the scoping and reportability-driving fields before finalizing them.
  • Lower confidence or keep fields unknown when repository evidence is incomplete; do not automatically suppress a finding solely because deployment evidence is missing.

Counterevidence Checklist

For the most interpretive fields, explicitly ask what repository evidence suggests the opposite and why it does or does not defeat the finding:

  • In-Scope Status According to the Threat Model
  • Vector
  • Auth Scope
  • Exposure
  • Cross-Boundary Behavior
  • Preconditions
  • Impact Surface

Look specifically for repository evidence that the path is:

  • out of scope
  • internal-only
  • admin-only
  • not cross-boundary
  • not attacker-reachable
  • not meaningfully reportable

Severity and Policy Checklist

Apply severity and policy calibration using references/severity-policy.md.

Output Contract

In compact diff mode, every candidate with validation disposition reportable or deferred must receive exactly one nested attack-path decision. The recorded decisions are the complete phase output; do not also create narrative reports or receipts. Otherwise, use the following report contract.

For each surviving finding include:

  • title
  • candidate id, instance key, and ledger row id when provided
  • affected lines from validation, preserving labeled entrypoint/wrapper, root_control, sink, and concrete_implementation locations
  • attack path steps
  • rendered attack-path facts
  • counterevidence summary and challenges
  • severity calibration
  • final policy decision
  • enough reasoning that a later reader can understand why the finding survived or was suppressed

Render attack-path facts using references/attack-path-facts.md.

Hard Rules

  • Use repository evidence and explicitly supplied context. Access the network only when the user has expressly authorized that access; an offline scan never accesses the network.
  • Do not invent attack chains that the code does not support.
  • Do not leave candidate coverage implicit. In compact diff mode, record a nested attack-path decision for every eligible candidate, even when the final policy decision is ignore or deferred. Otherwise, every candidate that reaches attack-path analysis must leave an attack-path receipt in its candidate-ledger path from ../../references/scan-artifacts.md.
  • Do not drop exact affected locations while converting validated findings into attack paths. Repository-wide seeded/root-control rows that survive validation must keep their root-control file:line even when a wrapper, route, or transport is easier to explain.
  • Do not skip a reportable validation row because a neighboring same-family finding has a cleaner story. Either produce attack-path facts for that exact row or make an explicit final policy decision with repository counterevidence.
  • Missing public-ingress evidence is not by itself dispositive counterevidence.
  • Keep attack-path analysis, severity calibration, and final policy suppression as separate sub-stages.
  • Use the final policy-adjustment matrix mechanically rather than re-arguing severity from scratch after the facts are set.
  • Outside compact diff mode, save a final visible report for each candidate finding using that finding's attack-path analysis report path from ../../references/scan-artifacts.md.

-- Considerations for attack path --

  • A bug matters if evidence shows an attacker could exploit it.
  • The attack surface should generally be one that is plausibly exposed to end users / external actors (or another actor explicitly in scope in the threat model).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Assess a fixed patch or pull request diff before merging. Trace affected behavior, evaluate regression risks, tests, and recovery options, then provide an evidence-based recommendation and advisory automatic-merge eligibility without modifying or merging the patch.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Assess a generated patch before merging
  • Trace how a pull request affects production behavior
  • Evaluate tests and rollback options
openai/codex-security1.1만2026년 10월 18일 업데이트

Read existing findings, reports, recorded assignments, verification results, and scan status from a connected Codex Security Cloud account. Summarize available evidence and distinguish missing information from confirmed outcomes without changing Cloud data.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Inspect a finding from its Cloud link
  • List findings by severity or recorded assignee
  • Review saved validation and patch check reports
openai/codex-security1.1만2026년 10월 18일 업데이트

Run repeated, independent security reviews of an entire repository or a selected directory. The skill combines validated findings and coverage records into a final report, helping reduce variation between individual reviews.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing an entire repository through repeated security audits
  • Running an intensive review of a selected directory
  • Combining validated findings and coverage into one report
openai/codex-security1.1만2026년 10월 18일 업데이트

Create or review SECURITY.md guidance so Codex Security understands what to examine, which protections must hold, and what is excluded. Compare existing policies with repository evidence and preview proposed changes before writing.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Define security review scope for a repository
  • Document required security protections
  • Check whether existing guidance matches the code
openai/codex-security1.1만2026년 10월 18일 업데이트

Inspect repository code or code changes for plausible security vulnerabilities. The skill records candidate issues with affected locations, attacker-controlled inputs, failing safeguards, and possible impact, preserving the evidence needed for later validation.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Finding security issues that may arise from code changes
  • Investigating vulnerability candidates in repository code
  • Organizing source evidence for later validation
openai/codex-security1.1만2026년 10월 18일 업데이트

Fix a validated or plausible security vulnerability with a focused code change, then verify that the attack no longer works and legitimate behavior remains intact. Report when existing code is safe or essential evidence is missing.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Fix a reported vulnerability and verify the result
  • Check for alternate inputs that bypass a proposed fix
  • Confirm that a security patch preserves legitimate behavior
openai/codex-security1.1만2026년 10월 18일 업데이트

openai의 스킬 모두 보기

이 스킬의 문제 신고