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 Engagement Planner Agent

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

Overview

Concrete agent definition for penetration test engagement planning provided by the pentest-ai-agents toolkit.

Description

The engagement-planner agent is a Claude Code subagent defined as a Markdown system prompt with YAML frontmatter. It produces structured, phased engagement plans based on PTES, OWASP Testing Guide, and NIST SP 800-115 methodologies, with every technique mapped to MITRE ATT&CK IDs. It generates rules of engagement (RoE) templates and integrates with the findings database by calling `findings.sh init` to create the engagement record.

This is a Pattern Doc: the agent is a system prompt, not a library API. It is invoked by Claude Code's agent delegation system when the user's request matches the agent's `description` field.

Usage

  • New engagement: Delegate to this agent when planning a new penetration test to produce a phased plan with MITRE ATT&CK mappings.
  • Rules of engagement: Use to generate RoE templates with fillable placeholders for client sign-off.
  • Engagement initialization: The agent calls `findings.sh init` to create the SQLite engagement record that all other agents will write to.

Code Reference

Source Location

Signature

---
name: engagement-planner
description: >
  Delegates to this agent when the user needs to plan a penetration test,
  define attack methodology, scope an engagement, map techniques to MITRE
  ATT&CK, or create a rules of engagement template.
tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep
  - WebFetch
  - WebSearch
model: sonnet
---

Import

# No import needed — Claude Code loads agents from .claude/agents/
# Agent is activated by delegation when the user's request matches the description.
# Install via: install.sh --global

I/O Contract

Inputs

Name Type Required Description
Engagement context text Yes Client name, engagement type, scope, environment
Engagement type enum No external, internal, web, wireless, cloud, red team, etc.
Scope text Yes IP ranges, domains, URLs, cloud accounts

Outputs

Name Type Description
Phased engagement plan Markdown Structured plan with phases, techniques, tools, time estimates, risk levels
RoE template Markdown Fillable template with bracket placeholders
MITRE ATT&CK mappings table Technique mappings per phase
DB record SQLite Engagement row created via findings.sh init

Usage Examples

Plan an Internal Network Engagement

User: "Plan an internal network pentest for Acme Corp. Scope is 10.10.0.0/24. 
The engagement is gray-box with VPN access provided."

# Agent produces:
# 1. Phased plan: Scoping → Recon → Enumeration → Vuln Analysis → 
#    Exploitation → Post-Exploit → Reporting
# 2. Each phase with: Objectives, Techniques (ATT&CK IDs), Tools, 
#    Expected Artifacts, Time Estimate, Risk Level, Dependencies
# 3. RoE template with [CLIENT NAME], [DATE RANGE], etc.
# 4. Initializes findings database:
#    findings.sh init "acme-internal" --client "Acme Corp" \
#      --type "internal" --scope "10.10.0.0/24"

Plan a Web Application Assessment

User: "Plan a web app pentest for https://shop.example.com using OWASP methodology"

# Agent produces a plan focused on OWASP Testing Guide phases with
# web-specific techniques (T1190, T1059, T1505) and tools 
# (ffuf, sqlmap, nuclei, burp suite).

Related Pages

Implements Principles

Uses Heuristics

Related Implementations

Page Connections

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