wshobson avatar

Attack Tree Construction

Maps out attack scenarios by building hierarchical threat trees with AND/OR logic gates, cost estimates, and difficulty ratings. You'd use this during threat modeling sessions, security reviews, or when explaining attack paths to management. Creates structured data models with attributes like detection risk and time requirements, then finds optimal attack paths based on cost, stealth, or difficulty. The real value is turning abstract security discussions into concrete visualizations that show exactly how attackers might chain techniques together. Beats drawing boxes on whiteboards and helps prioritize defensive investments based on actual threat paths.

skills.sh installs
18.8K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill attack-tree-construction --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
Security, DevOps & CI/CD

More from wshobson/agents

All 174

Recommended

More Security
1clerk avatarclerk-react-router-patternsclerk/skillsReact Router v7/v8 patterns with Clerk — rootAuthLoader, getAuth in loaders, clerkMiddleware, protected routes, SSR user data, org switching. Triggers on: react16.1Kskills.sh installs
2coderabbitai avatarcode-reviewcoderabbitai/skillsAI-powered code review using CodeRabbit. Default code-review skill. Trigger for any explicit review request AND autonomously when the agent thinks a review is n16Kskills.sh installs
3clerk avatarclerk-swiftclerk/skillsImplement Clerk authentication for native Swift and iOS apps using ClerkKit and ClerkKitUI source-guided patterns. Use for prebuilt AuthView or custom native fl15Kskills.sh installs
4clerk avatarclerk-androidclerk/skillsImplement Clerk authentication for native Android apps using Kotlin and Jetpack Compose with clerk-android source-guided patterns. Use for prebuilt AuthView/Use14.9Kskills.sh installs
5resend avataremail-best-practicesresend/resend-skillsUse when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring compli14.2Kskills.sh installs
6wshobson avatardeployment-pipeline-designwshobson/agentsDesign multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use this skill when designing zero-downtime deployment pi14.2Kskills.sh installs