New to Claude Skills? Learn how to install them →

sickn33 on GitHub

Attack Tree Construction

Free

Visualize threat paths and identify security gaps.

Get this skill

Free · Opens the source repo

What Attack Tree Construction does

The Attack Tree Construction skill provides a structured approach to visualize potential attack paths in security assessments. By creating comprehensive attack trees, users can systematically analyze complex scenarios, identify vulnerabilities, and communicate risks effectively to stakeholders. This skill is particularly useful for security professionals and teams involved in threat modeling, risk assessment, and strategic defense planning.

To use the skill, users must first confirm the scope of their assessment, including the target assets and the attacker's goals. The skill guides users through the process of breaking down the attack into sub-goals using an AND/OR structure. Each leaf node can be annotated with critical information such as cost, skill level required, time to execute, and the detectability of the attack. This detailed mapping allows users to prioritize high-impact paths and develop appropriate mitigations for each branch of the tree.

The skill also emphasizes the importance of authorization and safety. Users are reminded to obtain explicit permission before conducting any assessments and to share their findings only with authorized stakeholders. For those looking for templates and detailed patterns, the included implementation playbook serves as a valuable resource to enhance the attack tree construction process.

Overall, Attack Tree Construction is an essential tool for security professionals aiming to enhance their threat modeling capabilities and improve their organization's security posture.

When to use it

Use this skill when you need to map attack scenarios, assess security risks, or plan defensive strategies.

When not to use it

Avoid using this skill if you lack authorization for the assessment or if the task does not involve attack path modeling.

What you can build with it

Mapping a New System's Vulnerabilities

When assessing a new system, use this skill to visualize potential attack paths and identify critical vulnerabilities.

Communicating Risks to Management

Utilize the attack trees to present complex security risks to stakeholders in a clear and structured manner.

Planning Security Investments

Employ this skill to prioritize defensive investments based on the high-impact attack paths identified in your analysis.

How to install Attack Tree Construction

View source

1. Install with the skills CLI

npx skills add sickn33/agentic-awesome-skills/attack-tree-construction --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by sickn33

⚠️ 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.

Frequently asked questions about Attack Tree Construction

Similar skills