TExcelTAD
Home › Ethical Hacking & Penetration Testing Methodology › The Penetration Test Report: Structure and Template

The Penetration Test Report: Structure and Template

The report is the product. The client paid for days of testing, but what remains a month later is a document that several very different people will read: a director who has five minutes and needs to decide on budget, a security manager who must plan remediation, engineers who must reproduce and fix each finding, an auditor who must judge whether the test was adequate, and, at the retest, the testers themselves. A good structure gives each reader their own entry point. This lesson gives the structure (following the course roadmap's list: executive summary, scope and limitations, methodology, findings with title, severity, affected assets, evidence, impact, reproduction for the audience, remediation, and retest results), a complete template, and a generator that assembles the report from structured findings and refuses to produce it while required parts are missing.

How to write a single finding well is in Writing Findings That Get Fixed; the following lessons cover the executive summary, evidence and reproduction and the retest.

The structure

Part Reader Content
Cover and document control everyone title, client, dates, version, classification ("Confidential"), distribution list, change history
1 Executive summary management the overall picture in plain language, the three to five things that matter, a severity chart, strategic recommendations
2 Scope and limitations security manager, auditor what was in scope (by reference to the signed scope), what was excluded, what couldn't be tested and why, test dates, accounts used, test position
3 Methodology auditor, security manager standards followed and deviations, phases, tools, rules of engagement highlights (rates, validation limits)
4 Findings summary security manager table: id, title, severity, affected assets, status
5 Findings in detail engineers per finding: title, severity with vector, affected assets, description, evidence, impact, reproduction, remediation, references, status
6 Attack paths security manager, engineers chains of findings, drawn as a path, with the single changes that break them
7 Positive observations and coverage everyone what held up (tested, nothing found), detections that fired
8 Retest results everyone per finding: retest date, result, evidence (added after the retest)
Appendices engineers, auditor scanner triage list, tool versions, activity log summary, cleanup status, glossary

The template

text
PENETRATION TEST REPORT                                    CONFIDENTIAL
Client: ......................   Engagement: ................   Version: 1.0 (final)
Test dates: ........ to ........ (UTC)   Report date: ........   Retest date: ........
Authors: ....................   Reviewed by: ....................
Distribution: ..........................................................................
Change history: v0.9 draft (date, reviewer) / v1.0 final / v1.1 retest

1. EXECUTIVE SUMMARY
   1.1 Purpose and question the test answered
   1.2 Overall result (two or three sentences, plain language)
   1.3 Key findings and their business impact (three to five bullets)
   1.4 Severity overview (counts by rating; chart)
   1.5 Strategic recommendations (themes, not tickets)

2. SCOPE AND LIMITATIONS
   2.1 In scope (reference: scope document vX signed DATE): addresses, names, applications
   2.2 Out of scope and exclusions
   2.3 Test position, accounts and information provided (black / grey / white box)
   2.4 Limitations: systems not reachable, time constraints, techniques not permitted,
       findings observed but not tested (out-of-scope hosts, third parties)

3. METHODOLOGY
   3.1 Standards followed (e.g. PTES phases, OWASP WSTG v4.2 for web), deviations
   3.2 Phases and dates
   3.3 Rules of engagement highlights (rates, validation limits, stop events that occurred)
   3.4 Severity model (CVSS version, how context changed ratings, prioritisation buckets)

4. FINDINGS SUMMARY
   | ID | Title | Severity | Affected | Priority | Status |

5. FINDINGS
   5.n  F-nn  <weakness> in <where>
        Severity: <rating> (CVSS x.y <score>, <vector>); priority: <bucket>
        Affected assets: host / URL / parameter / version
        Description: what is wrong (CWE-nnn)
        Evidence: requests, responses, listings, screenshots (redacted, timestamped)
        Impact: demonstrated chain and business consequence; plausible next steps labelled
        Reproduction: numbered steps for engineers (detail appropriate to the audience)
        Remediation: specific fix, defence in depth, detection to add
        References: CWE, advisories, vendor guidance
        Status: open / fixed (retest DATE) / risk accepted (by WHOM, DATE)

6. ATTACK PATHS
7. POSITIVE OBSERVATIONS AND COVERAGE
8. RETEST RESULTS
APPENDICES: A triage list; B tools and versions; C activity summary; D cleanup status; E glossary

Generating the report from data

Teams keep findings as structured records and render the report, so that numbering, summaries and the retest stay consistent. The generator below builds the findings summary and the severity overview, and refuses to produce a final report if a finding lacks a required field or if the limitations section is empty, the two omissions reviewers complain about most.

python · try it yourself
REQUIRED = ["title", "severity", "affected", "evidence", "impact", "reproduction", "remediation", "status"]
ORDER = ["Critical", "High", "Medium", "Low", "Info"]

report = {
    "scope_ref": "scope v2 signed 2026-11-24",
    "limitations": ["10.10.0.21:3389 not reachable from the test position",
                    "status.lab.test hosted by a third party: observed, not tested"],
    "findings": [
        {"id": "F-02", "title": "Jenkins console without authentication", "severity": "Critical",
         "affected": "jenkins.lab.test:8080", "evidence": "E-02a page load 2026-12-03 14:20 UTC",
         "impact": "VPN users reach db01 via stored deploy credentials", "reproduction": "3 steps",
         "remediation": "enable authentication; remove stored credentials", "status": "open"},
        {"id": "F-03", "title": "Invoices of other customers readable (IDOR)", "severity": "High",
         "affected": "shop.lab.test /api/invoices/{id}", "evidence": "E-03a", "impact": "all customers' invoices",
         "reproduction": "3 steps with lab-a, lab-b", "remediation": "owner check in query", "status": "open"},
        {"id": "F-06", "title": "Payroll scans readable by all staff", "severity": "High",
         "affected": "\\\\files01\\Scans", "evidence": "E-06a listing", "impact": "employee personal data",
         "reproduction": "", "remediation": "restrict share to HR group", "status": "open"},
        {"id": "F-07", "title": "Weak SSH algorithms", "severity": "Low", "affected": "legacy01:22",
         "evidence": "E-07a ssh2-enum-algos", "impact": "theoretical", "reproduction": "1 step",
         "remediation": "upgrade OpenSSH", "status": "open"},
    ],
}

def build(r, final=True):
    problems = [f"{f['id']}: missing {k}" for f in r["findings"] for k in REQUIRED if not f.get(k)]
    if not r["limitations"]:
        problems.append("limitations section is empty (write 'none' only if that is true)")
    if final and problems:
        return None, problems
    counts = {s: sum(1 for f in r["findings"] if f["severity"] == s) for s in ORDER}
    lines = ["4. FINDINGS SUMMARY", f"{'ID':<5} {'Severity':<9} {'Status':<7} {'Affected':<34} Title"]
    for f in sorted(r["findings"], key=lambda f: (ORDER.index(f["severity"]), f["id"])):
        lines.append(f"{f['id']:<5} {f['severity']:<9} {f['status']:<7} {f['affected']:<34} {f['title']}")
    lines.append("")
    lines.append("1.4 Severity overview: " + ", ".join(f"{s} {n}" for s, n in counts.items()))
    lines.append("    " + "  ".join(f"{s[0]} {'#' * n}" for s, n in counts.items() if n))
    return lines, problems

lines, problems = build(report)
print("final report:", "refused" if lines is None else "built")
for p in problems:
    print("  -", p)
report["findings"][2]["reproduction"] = "1. log on as any staff account 2. open \\\\files01\\Scans 3. observe the listing"
lines, problems = build(report)
print("final report:", "refused" if lines is None else "built")
print("\n".join(lines))
final report: refused
  - F-06: missing reproduction
final report: built
4. FINDINGS SUMMARY
ID    Severity  Status  Affected                           Title
F-02  Critical  open    jenkins.lab.test:8080              Jenkins console without authentication
F-03  High      open    shop.lab.test /api/invoices/{id}   Invoices of other customers readable (IDOR)
F-06  High      open    \\files01\Scans                    Payroll scans readable by all staff
F-07  Low       open    legacy01:22                        Weak SSH algorithms

1.4 Severity overview: Critical 1, High 2, Medium 0, Low 1, Info 0
    C #  H ##  L #

The first attempt is refused because F-06 has no reproduction steps. Filling them in produces the summary table and the overview that the executive summary uses. The point is not the code. It is that a report built from one set of records can't have a summary that disagrees with its findings, a mistake that costs credibility in front of exactly the readers who only read the summary.

How report quality is checked

A second tester reviews every report before release (the "four eyes" rule): each finding is reproduced from its own steps, each claim is checked against its evidence, severities are checked for consistency across the report, evidence is checked for unredacted secrets, and the executive summary is read by someone who wasn't on the test. Clients check scope and limitations against what they signed.

Pitfalls

  • One document for one reader. A report that only engineers understand is not funded; one that only executives understand is not fixed.
  • Missing limitations. Without them, "no critical findings" reads as "secure" when it may mean "not tested".
  • Copying findings from earlier reports. Stale references, wrong host names and the previous client's name have all appeared in real reports.
  • Sending the report unencrypted, or to people outside the distribution list.

Practice

  1. Add a check to build() that every Critical or High finding marked "risk accepted" names a person and a date.
  2. Write section 2.4 (limitations) for the lab engagement in three bullets.
Answers
  1. For each finding with severity in {"Critical", "High"} whose status starts with "risk accepted", require a pattern such as r"risk accepted by .+ on \d{4}-\d{2}-\d{2}" and add a problem otherwise.
  2. For example: "RDP on files01 (10.10.0.21:3389) was documented but not reachable from the internal test position, so it was not tested. status.lab.test (203.0.113.80) is hosted by a third party and was observed in reconnaissance but not tested. Denial-of-service and social-engineering techniques were excluded by the rules of engagement; firmware vulnerabilities on the VPN appliance were validated by version only."

Test yourself

Which report section tells an auditor what was NOT tested and why?

  1. Executive summary
  2. Scope and limitations
  3. Appendix of tool versions
  4. The cover

Why generate the findings summary from the same records as the detailed findings?

  1. It looks nicer
  2. So the summary can never disagree with the findings
  3. It is shorter
  4. It hides low findings

What does the 'four eyes' review of a report include?

  1. Spell-checking only
  2. Reproducing findings from their steps, checking claims against evidence, consistent severities and redaction
  3. Changing the severities
  4. Removing limitations

Which reader is the executive summary written for?

  1. Engineers fixing the bugs
  2. Management deciding on priorities and budget
  3. The scanner vendor
  4. The testers