Skip to main content

Penetration Test Report Generator

Turn raw pentest findings into an audit-ready report: CVSS v3.1 scoring, executive summary, remediation roadmap, and evidence formatting.

Vul de plaatshouders in

Edit the values, then copy your finished prompt.

Jouw Prompt
prompt.txt

                                

What this prompt does

This prompt takes your unstructured raw findings — notes, tool output, scan results, whatever you captured during an engagement — and shapes them into a complete penetration test report that gives both a CISO and a remediation engineer what they need, with minimal editing required. The template enforces the full document structure that real auditors expect: executive summary calibrated for C-level readers, per-finding technical depth with CVSS v3.1 vector strings, and a prioritized remediation roadmap with three time horizons.

What makes it work is the deliberate layering of context variables. By feeding in [target_system], [scope], [test_type], and [report_standard] alongside the raw findings, you anchor the AI to your specific engagement rather than generating generic security advice. The instruction to produce both a non-technical and technical description per finding is the detail that actually saves you editing time — the AI separates the "what this means to the business" from "here is the exact attack vector," which is the split most report reviewers need.

The [methodology] variable is where this prompt goes from useful to genuinely professional. Whether you specify PTES, OWASP Testing Guide, or a custom scope, that label propagates into the Scope and Methodology section and gives auditors the traceability they look for during compliance reviews.

When to use it

  • You have completed a black-box web application assessment and need a deliverable within 24 hours.
  • Your raw notes are a mix of Burp Suite exports, Nmap XML, and personal observations that need normalizing into one document.
  • A client requires a report aligned to a specific standard (ISO 27001 audit support, SOC 2 evidence, PCI DSS requirement 11.4).
  • You are a solo consultant without a report template and need a professionally structured starting point fast.
  • You are training junior testers and want to show them what a complete, section-by-section report looks like against real findings.
  • You need to regenerate an updated report after a retest to reflect remediated versus still-open items.

Example output

## Executive Summary

During a five-day external network penetration test of api.example.com, three Critical
and two High severity vulnerabilities were identified that allow unauthenticated remote
code execution and full database read access. Left unaddressed, these expose customer
PII and payment records to exfiltration without any audit trail.

## Finding: Unauthenticated SQL Injection in /api/v2/orders
CVSS v3.1 Score: 9.8 (CRITICAL)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE: CWE-89 | OWASP: A03:2021

Steps to Reproduce:
1. Send POST /api/v2/orders with body: {"id": "1' OR '1'='1"}
2. Response returns full orders table contents.

Remediation:
Use parameterized queries. Replace raw string concatenation in OrderController.php:
  $stmt = $pdo->prepare("SELECT * FROM orders WHERE id = ?");
  $stmt->execute([$id]);

Pro tips

  • Feed real tool output into [raw_findings]. Paste Nmap service detection lines, SQLMap confirmation output, or Nuclei template matches verbatim — the AI extracts structured findings more accurately from actual evidence than from paraphrased notes.
  • Set [report_standard] precisely. "PTES" and "OWASP WSTG v4.2" produce meaningfully different methodology sections. If your client has a custom template requirement, name it here and add a note in the findings block.
  • Use [test_type] to shape impact and reproducibility language. "black-box external" produces different scope assumptions than "grey-box internal with VPN credentials" — the AI applies this distinction throughout the report, not just in the methodology section.
  • Run findings through one AI pass, then edit CVSS vectors manually. CVSS v3.1 scoring requires judgment calls the AI sometimes gets wrong on Scope and Privileges Required. Treat the generated vector string as a starting draft, not a final score — use the NVD CVSS calculator to confirm before submitting to auditors.
  • Pair with a second prompt for retest deltas. After remediation, re-run with [raw_findings] containing only the retest observations and add "compare against previous findings" to the raw block — useful for generating a retest attestation letter.

Frequently Asked Questions

Does this prompt generate CVSS v3.1 scores accurately, or do I need to verify them?
The AI will generate plausible CVSS v3.1 vector strings and base scores from your finding descriptions, but you should verify Scope (S), Privileges Required (PR), and User Interaction (UI) components manually — these require contextual judgment that depends on your specific environment. Use the NVD CVSS calculator to confirm before submitting to auditors.
What format should I use for the [raw_findings] variable?
Any readable format works: bullet points, numbered lists, pasted tool output, or a mix. The more specific the evidence you include — exact request/response pairs, CVE references you already identified, affected endpoints — the more accurate and audit-ready the generated finding sections will be. Vague inputs like 'SQL injection found on login page' produce generic output; specific inputs produce actionable remediation code.
Can this prompt handle multiple findings in a single run, or should I run it once per vulnerability?
A single run handles multiple findings well if you structure your [raw_findings] block clearly — number each finding or separate them with headers. For engagements with a large number of findings, or when using a model with a smaller context window, splitting into two runs (Critical/High in one, Medium/Low/Informational in another) produces cleaner output and avoids the later findings in the list receiving less thorough treatment.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

Meer in Cybersecurity Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support