Skip to content
Security
Skill

/attack-tree

Build an attack tree for a stated attacker goal or asset, decomposing it into AND/OR sub-goals and leaf attack steps, then render it. Use when threat modeling, planning an engagement, or explaining how an asset could be compromised.

From plugin
awesome-claude-security
7111 skills17 agents13 commands1 MCP
Install
$ npx -y skills add jassics/awesome-claude-security --skill attack-tree --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/attack-tree

Context preview

The summary Claude sees to decide when to auto-load this skill.

Build an attack tree for a stated attacker goal or asset, decomposing it into AND/OR sub-goals and leaf attack steps, then render it. Use when threat modeling, planning an engagement, or explaining how an asset could be compromised.

SKILL.md

attack-tree.SKILL.md
name: attack-tree
description: >-
  Build an attack tree for a stated attacker goal or asset, decomposing it into
  AND/OR sub-goals and leaf attack steps, then render it. Use when threat
  modeling, planning an engagement, or explaining how an asset could be
  compromised.

Goal

Produce a clear attack tree: a root attacker goal decomposed via AND/OR logic into intermediate sub-goals and concrete leaf attacks, optionally annotated with cost / difficulty / detectability, and rendered as a diagram.

Steps

1. **Define the root.** Confirm the single attacker goal (e.g. "exfiltrate customer PII", "obtain domain admin"). One tree per goal. 2. **Decompose top-down.** Break the goal into sub-goals. Mark each node:

  • **OR** — any child achieves the parent (alternative paths).
  • **AND** — all children required together.

Continue until leaves are concrete, actionable attack steps. 3. **Annotate leaves** (optional but recommended): cost, skill required, likelihood, and detectability. These drive prioritization and detection gaps. 4. **Identify cheapest/least-detectable path** to the root — that's the priority to mitigate and to build detections for. 5. **Render** with the `architecture-diagram` rendering approach: prefer the Excalidraw MCP; otherwise emit a Mermaid `flowchart TD` (root at top, AND nodes labeled, leaves as boxes) plus Graphviz DOT.

Output

  • The attack tree diagram (rendered or as importable Mermaid/DOT/Excalidraw JSON).
  • A short table of leaf paths ranked by cost × likelihood ÷ detectability.
  • A "mitigations & detections" list keyed to the highest-risk path.

Notes

Use AND/OR semantics correctly — mislabeling changes the risk story. Keep node labels short; put detail in the ranked table. Hand the ranked findings to `security-reporting` if a writeup is needed.

Read more
Ships withawesome-claude-security

A Claude Code plugin marketplace for the full cybersecurity & GenAI-security lifecycle — from recon and threat modeling to detection engineering, GRC, and CISO-level strategy. A pentester knows which OWASP test bends a broken-access-control endpoint.

Get the whole plugin

Other skills on awesome-claude-security.