Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0xSteph Pentest ai agents Attack Planner Agent

From Leeroopedia
Knowledge Sources
Domains Security, Attack_Planning, Methodology
Last Updated 2026-10-22 12:00 GMT

Overview

Concrete agent definition for strategic attack chain construction and path prioritization provided by the pentest-ai-agents toolkit.

Description

The attack-planner agent is a Tier 1 (advisory-only, no Bash) Claude Code subagent that correlates findings from multiple tools to build optimal multi-step attack paths. Unlike the tactical exploit-chainer, this agent provides the strategic view: it identifies the optimal exploitation path through a network, prioritizes attack vectors, and plans lateral movement strategies. It produces chain comparison matrices and network movement maps.

The agent uses an 11-link-type model (Initial Access through Impact) and a 5-factor scoring system (Probability, Stealth, Business Impact, Time, Skill). It produces dual-perspective documentation (red team + blue team + risk) for every chain.

This is a Pattern Doc: the agent defines attack chain construction methodology, link types, scoring factors, and output formats as prompt-level logic.

Usage

  • Strategic planning: Delegate when you need a high-level attack plan across multiple findings and hosts.
  • Path comparison: Use to compare multiple candidate attack paths side by side.
  • Lateral movement mapping: Ask for network movement maps showing pivot points.

Code Reference

Source Location

Signature

---
name: attack-planner
description: >
  Delegates to this agent when the user wants to correlate findings from
  multiple tools or agents, build multi-step attack chains, identify the
  optimal exploitation path through a network, prioritize attack vectors
  across an engagement, or plan lateral movement strategies.
tools:
  - Read
  - Write
  - Edit
  - Grep
  - Glob
  - WebFetch
  - WebSearch
model: sonnet
---

Import

# Loaded by Claude Code from .claude/agents/ when installed via install.sh

I/O Contract

Inputs

Name Type Required Description
Findings text/DB Yes Vulnerability, host, service, credential data
Environment context text No Network topology, AD structure, cloud accounts

Outputs

Name Type Description
Attack chain analysis Markdown Phased chain with ATT&CK IDs, confidence, OPSEC per step
Chain comparison matrix table Side-by-side: score, steps, confidence, time, detection risk, impact
Network movement map ASCII diagram Pivot points and network paths
Validation steps list Commands to confirm each chain link

Usage Examples

Strategic Attack Chain Analysis

User: "Correlate all findings from the acme engagement and build attack paths"

# Agent pulls findings, normalizes, and builds attack graph.
# Produces:
# ## Attack Chain Analysis
# ### Chain 1: Jenkins to Domain Admin (Score: 85/100)
# **Confidence**: Confirmed
# **Detection Risk**: Medium
#
# Step 1: Initial Access — CVE-2024-XXXXX on Jenkins (T1190, Confirmed)
# Step 2: Credential Access — Jenkins credential store (T1555, High)
# Step 3: Lateral Movement — PSExec to DC (T1021.002, Moderate)
# Step 4: Impact — Domain Admin (T1484)
#
# Chain Comparison Matrix:
# | Metric | Chain 1 | Chain 2 | Chain 3 |
# | Score  | 85      | 72      | 65      |
# | Steps  | 4       | 6       | 3       |

Related Pages

Implements Principles

Related Implementations

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment