attack-path-simulator
Review a repository, architecture, or local folder and simulate plausible attacker paths by orchestrating multiple security review skills. Use when Codex needs to combine threat modeling, vulnerabilit
SKILL.mdskills/attack-path-simulator/SKILL.md
GitHubAttack Path Simulator
Overview
Use this skill to build a coherent attacker path through a system by coordinating other security review skills instead of analyzing the repo from only one angle. The goal is to produce a grounded kill chain: where an attacker starts, which weaknesses they exploit, how they progress, what they achieve, and which controls would break the chain.
This skill is an orchestrator. It should reuse specialized skills where they fit and synthesize their outputs into one attacker-centered narrative.
When To Use This Skill
Use this skill when the user wants:
- an attack path through a repo or design
- a kill-chain style analysis
- a simulation of how an attacker could move from entry to impact
- a combined report instead of separate STRIDE, ATT&CK, vulnerability, or architecture outputs
Do not use this skill when the user only wants one narrow review type. In that case, use the more specific skill directly.
Skill Coordination
Use the smallest set of supporting skills that materially improves the simulation. Typical sequence:
github-repo-data-flow-revieworarchitectUse to establish the main system flow, trust boundaries, and high-value targets.authentication-review,data-storage-review,data-in-transit-reviewUse to understand how identity, storage, and movement of data shape the attack surface.vulnerability-reviewUse to identify exploitable weaknesses and likely entry points.mitre-attack-reviewUse to frame plausible attacker behavior and tactic progression.mitre-defend-revieworsecure-by-design-reviewUse to identify defensive gaps and control failures that allow the path to continue.attack-tree-reviewUse when a tree structure helps show alternate branches or prerequisite conditions.- STRIDE category skills Use selectively when one category needs deeper enumeration.
Do not mechanically run every available skill. Choose only the ones that sharpen the path.
Workflow
1. Establish the attacker goal
Choose a concrete end goal first, such as:
- steal customer or tenant data
- modify critical business state
- gain admin or operator capability
- exfiltrate secrets or tokens
- disrupt service or degrade availability
- compromise the environment or trust plane
If the user does not specify a goal, infer the most meaningful one from the repo and state that choice clearly.
2. Establish the likely entry point
Identify the most plausible attacker foothold:
- external API or UI input
- imported file or batch workflow
- shared credential or secret material
- internal integration or callback
- operator workstation or automation path
- weak default or trusted internal boundary
Choose one primary path first. Secondary paths can be noted later.
3. Build the attack path
Simulate the path as a sequence of attacker steps:
- foothold
- initial exploit or abuse
- trust-boundary crossing
- privilege gain, lateral movement, or control expansion
- access to target data or action
- final impact
For each step, capture:
- attacker action
- enabling weakness or assumption
- supporting evidence from code or architecture
- preconditions
- likely impact if the step succeeds
- evidence quality:
confirmed,inferred, ornot verified
4. Map the kill chain
Represent the path in kill-chain or ATT&CK-style language where helpful:
- initial access
- execution
- persistence
- privilege escalation
- defense evasion
- credential access
- discovery
- lateral movement
- collection
- exfiltration
- impact
Do not force every phase. Only include the ones supported by the repo.
5. Identify branch points and choke points
After the main path is clear, call out:
- alternate branches the attacker could take
- places where the path depends on one critical weakness
- controls that would collapse multiple downstream steps
- points where detection or containment is most realistic
6. Deliver a concise report
Default to this structure:
- Attacker goal and scope
- Primary attack path
- Kill-chain mapping
- Alternate branches
- Defensive choke points
- Findings and open questions
Output Rules
- Keep the analysis attacker-centered and sequential.
- Prefer one strong primary path over many speculative mini-paths.
- Be explicit about evidence quality:
confirmedwhen code or architecture directly supports the stepinferredwhen the step is plausible but not fully provednot verifiedwhen runtime or deployment detail is missing
- Name the supporting skills you used when they materially informed the result.
- Prefer real files, functions, and components over abstract labels.
Example Requests
- Simulate an attack path through this repo.
- Build a kill chain for how an attacker could reach customer data in this system.
- Use the installed review skills to produce one attacker path and control-break analysis for this folder.
- Review this architecture and model the most plausible compromise path from ingress to impact.