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 Report Generator Agent

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

Overview

Concrete agent definition for penetration test report generation provided by the pentest-ai-agents toolkit.

Description

The report-generator agent is a Tier 1 (advisory-only) Claude Code subagent that produces professional penetration test reports meeting industry standards (PTES, OWASP, SANS). It generates reports with cover page, executive summary, scope and methodology, findings summary table, detailed findings (with CVSS, CWE, ATT&CK mappings), attack narrative, remediation roadmap, and appendix. It pulls data from the findings database as the single source of truth and only reports confirmed or exploited vulnerabilities.

This is a Pattern Doc: the agent defines report structure, severity definitions, formatting standards, and findings database integration.

Usage

  • Full report: Delegate to compile all engagement findings into a professional report.
  • Executive summary: Ask for a non-technical summary for leadership.
  • Finding formatting: Use to format individual findings with CVSS vectors and remediation steps.

Code Reference

Source Location

Signature

---
name: report-generator
description: >
  Delegates to this agent when the user needs to write a penetration test
  report, compile findings into a document, create an executive summary,
  format technical findings, or produce any security assessment documentation.
tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep
model: sonnet
---

Import

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

I/O Contract

Inputs

Name Type Required Description
Engagement ID text Yes Active engagement (via PENTEST_AI_ENGAGEMENT)
Findings data DB/text Yes From findings.sh list/export/stats

Outputs

Name Type Description
Pentest report Markdown Full report with executive summary, findings, remediation roadmap
Findings table Markdown Sorted by severity (Critical → Informational)
Remediation roadmap table Prioritized by timeframe (Immediate, Short-term, Long-term)

Usage Examples

Generate a Full Report

# Agent pulls data from findings database:
findings.sh list vulns          # All vulnerabilities
findings.sh list creds          # All credentials
findings.sh list chains         # All attack chains
findings.sh stats               # Engagement summary
findings.sh export              # Full JSON export

# Only reports confirmed/exploited vulnerabilities.
# Produces report with:
# 1. Cover Page
# 2. Executive Summary (1-2 pages, business language)
# 3. Scope and Methodology
# 4. Findings Summary Table
# 5. Detailed Findings (with CVSS, CWE, ATT&CK, evidence, remediation)
# 6. Attack Narrative
# 7. Remediation Roadmap (Immediate/Short-term/Long-term)
# 8. Appendix

Related Pages

Implements Principles

Uses Heuristics

Related Implementations

Page Connections

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