Attack path analysis

From CoWork-OS/CoWork-OS · View interactive version

Attack path analysis is an AI agent skill from the GitHub repository CoWork-OS/CoWork-OS. 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.

How to use this skill

Skill file

Security Attack Path Analysis

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.

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.
  1. Determine whether the affected code is in scope for the repository threat model and whether it belongs to a real product surface or real production workflow.
  2. Build a factual attack path using repository evidence only:
  1. 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.
  2. Calibrate impact and likelihood from the repository evidence.
  3. Apply a separate final policy-adjustment pass mechanically using those facts and the calibrated severity.
  4. Drop any candidate whose final policy decision is ignore.
  5. Save that finding's visible attack-path report to its per-finding attack-path analysis report path from ../../references/scan-artifacts.md.
  6. Append one attack-path receipt per candidate id to that finding's candidate ledger path 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:

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:

Look specifically for repository evidence that the path is:

Severity and Policy Checklist

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

Output Contract

For each surviving finding include:

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

Hard Rules

-- Considerations for attack path --

-- Considerations for severity / criticality re-rating --

Non-exhaustive examples of vulnerabilities that often support critical when evidenced in code and context:

Non-exhaustive examples of vulnerabilities that often support high when evidenced in code and context:

Strong factors that often push a plausible high up to critical:

Examples that usually should not remain high/critical without very strong proof of it leading to the class of vulnerabilities above:

High/Critical acceptance checklist (all should be true, unless the threat model strongly justifies an exception):

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.