/appsec:pastafrom appsec
Dispatches 7-stage PASTA threat model analysis in strict sequential order, passing each stage's output as input to the next. For risk-centric threat modeling workflows.
Ships in appsec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Dispatch 7 PASTA stages in strict sequential order. Unlike all other framework dispatchers, PASTA runs each stage as a Task, waits for its output, and passes that output into the next stage's prompt. This is because PASTA is a risk-centric process where business objectives (Stage 1) constrain technical scope (Stage 2), which constrains decomposition (Stage 3), and so on through risk analysis (Stage 7).
Do NOT run stages in parallel. Do NOT skip stages. Do NOT reorder stages.
If a stage fails (returns empty output, errors, or times out):
Stage 3: COMPLETED (12 components identified)Stage 4: FAILED — [reason]. Stages 5–7 ran with reduced context.Read ../../shared/schemas/flags.md for the
full flag specification. This dispatcher supports all cross-cutting flags.
| Flag | Dispatcher-Specific Behavior |
|---|---|
--scope | Propagated to all stages. Default changed. Stages 2-3 may expand scope to trace architecture. |
--depth | Propagated to all stages. Default standard. |
--severity | Applied to final Stage 7 output to filter the risk-ranked findings. |
--format | Applied to final consolidated output after Stage 7. |
--only 1,4,7 | Run only the listed stages (by number 1-7). Prior stages still run if their output is needed. E.g., --only 5 implicitly runs 1-4 first. |
--fix | Propagated to Stage 5 (vulnerability analysis) and Stage 7 (risk mitigation). |
--quiet | Propagated to all stages; suppress explanations. |
--explain | Propagated to all stages; add learning material per finding. |
Read ../../shared/frameworks/pasta.md for
the full PASTA framework specification including all 7 stage definitions,
cross-framework mappings to OWASP/STRIDE/CWE, and compliance mapping templates.
The 7 stages execute strictly in order. Each stage is launched as a single Task tool call, and you MUST wait for it to complete before launching the next stage.
| Stage | Skill | Output | Feeds Into |
|---|---|---|---|
| 1. Business Objectives | skills/pasta-objectives/SKILL.md | Business context, risk tolerance, compliance requirements | Stage 2 |
| 2. Technical Scope | skills/pasta-scope/SKILL.md | Attack surface inventory, entry points, tech stack, DFD | Stage 3 |
| 3. Application Decomposition | skills/pasta-decompose/SKILL.md | Component inventory, trust boundaries, role-permission matrix | Stage 4 |
| 4. Threat Analysis | skills/pasta-threats/SKILL.md | Threat catalog, MITRE ATT&CK mappings, attack trees | Stage 5 |
| 5. Vulnerability Analysis | skills/pasta-vulns/SKILL.md | Vulnerability inventory with CWE mappings, exploitability scores | Stage 6 |
| 6. Attack Simulation | skills/pasta-attack-sim/SKILL.md | Exploit chains, DREAD scores, detection gap analysis | Stage 7 |
| 7. Risk & Impact Analysis | skills/pasta-risk/SKILL.md | Risk-ranked findings, mitigation roadmap, executive summary | Final output |
Parse flags and resolve the target file list per the flags spec. Build the initial file list that will be passed to Stage 1.
For EACH stage (1 through 7), follow this pattern:
Do NOT launch the next stage until the current stage has returned.
Each stage gets a FULLY self-contained prompt including all prior outputs:
Execute PASTA Stage {N}: {STAGE_NAME}
STEP 1: Read the skill definition at:
{ABSOLUTE_PATH_TO_PLUGIN}/skills/{SKILL_NAME}/SKILL.md
STEP 2: Read the PASTA framework reference at:
{ABSOLUTE_PATH_TO_PLUGIN}/shared/frameworks/pasta.md
Focus on the "Stage {N}" section for guidance.
STEP 3: Read the findings schema at:
{ABSOLUTE_PATH_TO_PLUGIN}/shared/schemas/findings.md
PRIOR STAGE OUTPUTS (use these as input for your analysis):
--- Stage 1 Output ---
{STAGE_1_OUTPUT or "N/A - this is Stage 1"}
--- Stage 2 Output ---
{STAGE_2_OUTPUT or "Not yet executed"}
[... include all prior stage outputs ...]
FILES TO ANALYZE:
{FILE_LIST}
FLAGS: --scope {SCOPE} --depth {DEPTH} --severity {SEVERITY}
IMPORTANT: Your output will be passed to Stage {N+1} as input. Structure
your output clearly with headers and sections so the next stage can parse
it. Return your stage-specific output only -- do NOT attempt to execute
later stages.
Stage 1 -- Business Objectives: Receives only the file list. Infers business context from code artifacts (payment processing, PII handling, authentication flows, admin interfaces). Outputs business context statement, risk tolerance, and compliance requirements.
Stage 2 -- Technical Scope: Receives Stage 1 output plus file list. Maps entry points, protocols, external dependencies, and tech stack. May request expanded file scanning to find architecture artifacts (Dockerfiles, K8s manifests, API gateway configs).
Stage 3 -- Application Decomposition: Receives Stages 1-2 output. Decomposes into components, maps trust boundaries, classifies data sensitivity, documents auth/authz flows per component.
Stage 4 -- Threat Analysis: Receives Stages 1-3 output. Identifies threats using real-world intelligence, maps to MITRE ATT&CK techniques, builds attack trees for high-value targets identified in Stage 1.
Stage 5 -- Vulnerability Analysis: Receives Stages 1-4 output. Core code analysis stage. Finds specific weaknesses that enable the threats from Stage 4. Maps to CWE identifiers. Prioritizes vulnerabilities that directly enable identified threats over theoretical weaknesses.
Stage 6 -- Attack Simulation: Receives Stages 1-5 output. Constructs multi-step exploit chains combining threats (Stage 4) with vulnerabilities (Stage 5). Scores each chain with DREAD. Identifies which attacks reach business-critical assets from Stage 1.
Stage 7 -- Risk & Impact Analysis: Receives Stages 1-6 output. Calculates business-weighted risk scores (Likelihood x Business Impact). Produces risk-ranked finding list, mitigation roadmap (quick wins / short term / long term), compliance gap report, and executive summary.
After Stage 7 completes, the dispatcher:
Gather the final risk-ranked finding list from Stage 7 output. Stage 7 already incorporates context from all prior stages.
Apply the --format flag to produce the final output. The Stage 7 output
should already contain:
If --severity is set, filter the finding list to show only findings at
or above the specified severity threshold.
Populate cross-framework references on all findings:
references.owasp: Map to OWASP Top 10 category.references.stride: Map to STRIDE category letter(s).references.mitre_attck: Already populated by Stage 4.references.cwe: Already populated by Stage 5.Output the final PASTA report. Include the stage progression summary showing how business objectives flowed through to risk-ranked mitigations.
If --depth expert is set, after Stage 7 completes, launch red team
subagents with the full PASTA output. Red team agents receive the exploit
chains from Stage 6 and attempt to extend them, finding additional attack
paths or chaining multiple exploit chains together.
Red team findings are appended to the final output with prefix RT and
metadata.tool set to "red-team".
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
62 skills in this plugin
/access-controlThis skill should be used when the user asks to "check for access control issues", "analyze authorization", "find IDOR vulnerabilities", "audit CORS configuration", "check for privilege escalation", or mentions "access control", "authorization", "IDOR", "CORS", "JWT tampering", or "directory traversal" in a security context. Maps to OWASP Top 10 2021 A01: Broken Access Control.
/apiThis skill should be used when the user asks to "check API security", "audit REST API", "find BOLA vulnerabilities", "check for mass assignment", "analyze API rate limiting", "detect excessive data exposure", or mentions "API security", "BOLA", "IDOR", "mass assignment", "rate limiting", "broken function-level authorization", "excessive data exposure", or "OWASP API Top 10" in a security context.
/attack-surfaceThis skill should be used when the user asks to "map attack surface", "list entry points", "inventory API endpoints", "find all inputs", "enumerate routes", "discover exposed endpoints", or "map external interfaces". Also triggers when the user asks about exposed APIs, form handlers, file upload endpoints, WebSocket handlers, CLI argument parsers, or wants to understand where external data enters the system.
/authThis skill should be used when the user asks to "check for authentication issues", "analyze auth", "find credential vulnerabilities", "review login security", "check session management", or mentions "authentication", "passwords", "MFA", "sessions", or "brute force" in a security context. Maps to OWASP Top 10 2021 A07: Identification and Authentication Failures.
/business-logicThis skill should be used when the user asks to "check business logic security", "find logic flaws", "audit workflow security", "check for coupon abuse", "detect negative amount exploits", "analyze state machine security", or mentions "business logic", "workflow bypass", "negative amount", "coupon abuse", "self-referral", "state manipulation", or "time-based exploit" in a security context.
/configThis skill should be used when the user asks to "configure security", "appsec settings", "security preferences", or invokes /appsec:config. Manages security tool preferences and thresholds.
npx claudepluginhub florianbuetow/claude-code --plugin appsecOther plugins' skills for the same job