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

Principle:0xSteph Pentest ai agents Pentest Reporting

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

Overview

Methodology for producing professional penetration test reports, detection rules, and compliance mappings from validated engagement findings.

Description

Pentest Reporting is the final phase of a penetration test, converting technical findings into actionable deliverables for both technical and executive audiences. It addresses the problem that raw vulnerability data is useless without context: an executive needs business impact, an engineer needs remediation steps, a SOC team needs detection rules, and an auditor needs compliance mappings.

The principle produces four deliverable types:

  • Technical Report: Executive summary, findings with CVSS/CWE/ATT&CK, evidence, remediation roadmap.
  • Detection Rules: Sigma, Splunk SPL, Elastic KQL, YARA rules for blue team detection.
  • Compliance Mappings: PCI DSS, NIST 800-53, ISO 27001, CIS Controls control-gap analysis.
  • Cross-Session Handoff: Structured Markdown summary for continuity between operators.

A critical rule: only confirmed or exploited vulnerabilities appear in the report. Unvalidated findings must not pass through.

Usage

Use this principle when:

  • Compiling engagement findings into a professional pentest report
  • Creating detection rules (Sigma/SPL/KQL/YARA) for confirmed exploitation techniques
  • Mapping technical findings to compliance frameworks for audit
  • Generating cross-session handoff reports for engagement continuity

Theoretical Basis

Reporting transforms technical findings into audience-appropriate deliverables:

Report=Transform(Findingsconfirmed,Audience)

Each finding is enriched with:

Failed to parse (syntax error): {\displaystyle \text{Finding}_{\text{enriched}} = \text{Finding} \times \text{CVSS} \times \text{CWE} \times \text{ATT\&CK} \times \text{Evidence} \times \text{Remediation} }

Pseudo-code Logic:

# Abstract reporting algorithm (NOT real implementation)
def generate_report(engagement_id):
    findings = db.get_confirmed_vulns(engagement_id)  # only confirmed/exploited
    chains = db.get_chains(engagement_id)
    stats = db.get_stats(engagement_id)

    report = Report()
    report.executive_summary = summarize_for_executives(findings, stats)
    report.findings_table = format_by_severity(findings)

    for finding in findings:
        report.detailed_findings.append(
            title=finding.title,
            severity=finding.severity,
            cvss=calculate_cvss(finding),
            cwe=map_to_cwe(finding),
            attck=finding.mitre_id,
            evidence=finding.evidence_file,
            impact=business_impact(finding),
            remediation=prioritize_fixes(finding)
        )

    report.remediation_roadmap = prioritize_by_timeframe(findings)
    report.detection_rules = generate_detection(chains)
    report.compliance_mappings = map_to_frameworks(findings)
    return report

Practical Guide

  1. Only report confirmed findings: Never pass unvalidated findings to the report.
  2. Two audiences: Executive summary for leadership, technical findings for engineers — never mix the register.
  3. Consistent format: Every finding uses the same structure: title, severity, CVSS, CWE, ATT&CK, description, evidence, impact, remediation, verification.
  4. Severity definitions: Critical (9.0-10.0), High (7.0-8.9), Medium (4.0-6.9), Low (0.1-3.9), Informational (0.0).
  5. Actionable remediation: Steps must be specific enough for an engineer to implement without additional research.
  6. Include verification steps: Every remediation includes how to confirm the fix works.
  7. Detection rules: For every confirmed exploitation technique, produce Sigma rules with false positive analysis.
  8. Compliance mappings: Map findings to specific control IDs (PCI DSS, NIST, ISO, CIS) with justification.
  9. Remediation roadmap: Prioritize by timeframe: Immediate (0-30 days), Short-term (30-90), Long-term (90-180).
  10. Use database as source of truth: Pull all data from findings.sh — don't manually re-enter data.

Related Pages

Implemented By

Uses Heuristics

Page Connections

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