pasta
This skill should be used when the user asks to "run PASTA analysis", "PASTA threat model", "risk-centric threat analysis", or invokes /appsec:pasta…
от florianbuetow★ 22 звезды на GitHub
Установить pasta в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
PASTA Threat Model Dispatcher (Sequential)
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.
Stage Failure Handling
If a stage fails (returns empty output, errors, or times out):
- Record the failure: stage number, error details, partial output if any.
- Check if remaining stages can proceed:
- Stages 1–3 are foundational. If any fails, STOP the pipeline and report partial results from completed stages.
- Stages 4–7 can run with degraded input from prior stages. Note the gap explicitly in their output.
- Present completed stage outputs to the user with clear status markers:
Stage 3: COMPLETED (12 components identified)Stage 4: FAILED — [reason]. Stages 5–7 ran with reduced context.
- NEVER discard completed stage outputs due to a later stage failure.
Supported Flags
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. |
Framework Reference
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.
Stage Pipeline
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 |
Sequential Dispatch Workflow
Step 1: Resolve Scope
Parse flags and resolve the target file list per the flags spec. Build the initial file list that will be passed to Stage 1.
Step 2: Execute Stages Sequentially
For EACH stage (1 through 7), follow this pattern:
- Build the subagent prompt with all prior stage outputs embedded.
- Launch a single Task tool call for this stage.
- Wait for the Task to complete and capture its full output.
- Store the output for inclusion in subsequent stage prompts.
- Proceed to the next stage.
Do NOT launch the next stage until the current stage has returned.
Subagent Prompt Template
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 a
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pasta?
This skill should be used when the user asks to "run PASTA analysis", "PASTA threat model", "risk-centric threat analysis", or invokes /appsec:pasta. Dispatches 7 stages SEQUENTIALLY -- each stage's output feeds the next. This is the ONLY framework that runs sequentially.
Как установить скилл pasta?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pasta запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…