Attack Tree Construction

VerifiedSafe

Build comprehensive attack trees to visualize threat paths, identify defense gaps, and communicate security risks to stakeholders.

Sby Skills Guide Bot
SecurityIntermediate
8/29/2026
Claude CodeCursorCodex
#threat-modeling#attack-trees#risk-analysis#security-assessment#defensive-planning

Recommended for

Automated summary

Builds structured AND/OR attack trees that visualize compromise paths and expose defensive gaps.

Strengths

  • Breaks an attacker goal into AND/OR sub-goals annotated with cost, skill, time and detectability
  • Maps mitigations per branch and prioritizes the highest-impact paths
  • Enforces a confirmation gate requiring an explicit target, written authorization and scope before any action
  • Ships a playbook of patterns and templates in resources/implementation-playbook.md

Limitations

  • Performs no automated analysis of the system; output quality depends entirely on the details the user supplies
  • Assumes prior written authorization, so it is a poor fit for general-purpose risk reviews
  • Produces a design artifact that still needs environment-specific testing and expert validation
When to use it

Use it when you need to model authorized attack scenarios and communicate defensive priorities to stakeholders.

When not to use it

Avoid it when authorization or scope is missing, or when the request is a generic risk review without attack-path modeling.

Security analysis

Safe
Quality score84/100

The skill is a defensive threat-modeling guide for constructing attack trees. It declares no tools, runs no commands, contains no destructive or exfiltration instructions, and includes repeated authorization and scope-confirmation gates. The only referenced resource is a local playbook, with no evidence of unsafe execution.

No concerns found

How this analysis is made

Examples

Model a web app breach path
We have written authorization to assess our staging e-commerce app at staging.example.com. Build an attack tree for the goal 'attacker obtains customer payment data', with AND/OR sub-goals and cost/skill/time ratings on the leaves.
Find defense gaps
Given this attack tree for our internal API, identify which branches have no mitigation and rank them by impact so we can prioritize hardening work.
Executive briefing
Turn this attack tree into a one-page risk summary for non-technical stakeholders, focusing on the top three attack paths and the defenses that would break them.

name: attack-tree-construction description: "Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders." risk: offensive source: community date_added: "2026-02-27"

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

AUTHORIZED USE ONLY: Use this skill only for authorized security assessments, defensive validation, or controlled educational environments.

Attack Tree Construction

Systematic attack path visualization and analysis.

Use this skill when

  • Visualizing complex attack scenarios
  • Identifying defense gaps and priorities
  • Communicating risks to stakeholders
  • Planning defensive investments or test scopes

Do not use this skill when

  • You lack authorization or a defined scope to model the system
  • The task is a general risk review without attack-path modeling
  • The request is unrelated to security assessment or design

Instructions

  • Confirm scope, assets, and the attacker goal for the root node.
  • Decompose into sub-goals with AND/OR structure.
  • Annotate leaves with cost, skill, time, and detectability.
  • Map mitigations per branch and prioritize high-impact paths.
  • If detailed templates are required, open resources/implementation-playbook.md.

Safety

  • Share attack trees only with authorized stakeholders.
  • Avoid including sensitive exploit details unless required.

Resources

  • resources/implementation-playbook.md for detailed patterns, templates, and examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/attack-tree-construction-mte1livz/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/attack-tree-construction-mte1livz' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/attack-tree-construction-mte1livz/download' --output '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md.part' && mv '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md.part' '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md' && test -s '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/attack-tree-construction' && cp -R '.skill-downloads/attack-tree-construction-mte1livz' '.claude/skills/attack-tree-construction'

Cursor
test -f '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md' && test -s '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/attack-tree-construction' && cp -R '.skill-downloads/attack-tree-construction-mte1livz' '.cursor/skills/attack-tree-construction'

Codex
test -f '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md' && test -s '.skill-downloads/attack-tree-construction-mte1livz/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/attack-tree-construction' && cp -R '.skill-downloads/attack-tree-construction-mte1livz' '.agents/skills/attack-tree-construction'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/attack-tree-construction-mte1livz'

openskills read 'attack-tree-construction-mte1livz'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/attack-tree-construction-mte1livz/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills