mcpField
A
attack-tree-construction

attack-tree-construction

github.com/wshobsonSecurity41.9k17.9k installsUpdated 2w ago
Repository

About attack-tree-construction

A security-analysis skill for mapping and assessing attack paths. It helps security teams and stakeholders identify defensive gaps, prioritize investments, and plan penetration tests using structured attack trees.

Key features

  1. 01Maps goals into attack trees
  2. 02Models AND and OR dependencies
  3. 03Records cost, time, skill, and detection
  4. 04Supports defense-gap analysis
  5. 05Includes templates and worked examples

Use cases

  1. 01Visualizing complex attack scenarios
  2. 02Prioritizing defensive investments
  3. 03Planning penetration tests
  4. 04Reviewing security architecture

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/wshobson/agents --skill attack-tree-construction

After installing, type/attack-tree-constructionin Claude Code to confirm it loaded.

Bundled filesreferences/details.md

Details

From the project README

Attack Tree Construction

Systematic attack path visualization and analysis.

When to Use This Skill

  • Visualizing complex attack scenarios
  • Identifying defense gaps and priorities
  • Communicating risks to stakeholders
  • Planning defensive investments
  • Penetration test planning
  • Security architecture review

Core Concepts

1. Attack Tree Structure
                    [Root Goal]
                         |
            ┌────────────┴────────────┐
            │                         │
       [Sub-goal 1]              [Sub-goal 2]
       (OR node)                 (AND node)
            │                         │
      ┌─────┴─────┐             ┌─────┴─────┐
      │           │             │           │
   [Attack]   [Attack]      [Attack]   [Attack]
    (leaf)     (leaf)        (leaf)     (leaf)
2. Node Types
TypeSymbolDescription
OROvalAny child achieves goal
ANDRectangleAll children required
LeafBoxAtomic attack step
3. Attack Attributes
AttributeDescriptionValues
CostResources needed$, $$, $$$
TimeDuration to executeHours, Days, Weeks
SkillExpertise requiredLow, Medium, High
DetectionLikelihood of detectionLow, Medium, High

Templates and detailed worked examples

Full template library lives in references/details.md. Read that file when you need concrete templates for this skill.

Best Practices

Do's
  • Start with clear goals - Define what attacker wants
  • Be exhaustive - Consider all attack vectors
  • Attribute attacks - Cost, skill, and detection
  • Update regularly - New threats emerge
  • Validate with experts - Red team review
Don'ts
  • Don't oversimplify - Real attacks are complex
  • Don't ignore dependencies - AND nodes matter
  • Don't forget insider threats - Not all attackers are external
  • Don't skip mitigations - Trees are for defense planning
  • Don't make it static - Threat landscape evolves

Comments

Markdown supported