Claude Cursor Skill

attack-tree-construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

LLM Mart · 0 points · 15 views 0 listing impressions 0 install-command copies
Download wshobson-agents-plugins_security-scanning_skills_attack-tree-construction-554237f.zip · 5 KB

Install

skills CLI npx skills add https://github.com/wshobson/agents/tree/main/plugins/security-scanning/skills/attack-tree-construction
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install wshobson-agents@llmmart
Git git clone https://github.com/wshobson/agents.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole wshobson/agents collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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

Type Symbol Description
OR Oval Any child achieves goal
AND Rectangle All children required
Leaf Box Atomic attack step

3. Attack Attributes

Attribute Description Values
Cost Resources needed $, $$, $$$
Time Duration to execute Hours, Days, Weeks
Skill Expertise required Low, Medium, High
Detection Likelihood of detection Low, 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
Files (agents)
  • references
    • details.md 19.4 KB
      Loading…
  • SKILL.md 2.6 KB
    ---
    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.
    ---
    
    # 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
    
    | Type     | Symbol    | Description             |
    | -------- | --------- | ----------------------- |
    | **OR**   | Oval      | Any child achieves goal |
    | **AND**  | Rectangle | All children required   |
    | **Leaf** | Box       | Atomic attack step      |
    
    ### 3. Attack Attributes
    
    | Attribute     | Description             | Values             |
    | ------------- | ----------------------- | ------------------ |
    | **Cost**      | Resources needed        | $, $$, $$$         |
    | **Time**      | Duration to execute     | Hours, Days, Weeks |
    | **Skill**     | Expertise required      | Low, Medium, High  |
    | **Detection** | Likelihood of detection | Low, 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 (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.