Lesson 8 of 10
Penetration Test Reporting
A penetration test is only as valuable as its report. Technical findings mean nothing if they aren't communicated clearly to both technical implementers and business decision-makers. Report writing is a critical professional skill that separates good pen testers from great ones.
Professional Report Structure
# Penetration Test Report Structure
1. EXECUTIVE SUMMARY (2-3 pages - for C-suite, non-technical)
- Engagement scope and duration
- Overall risk rating: Critical / High / Medium / Low
- Key findings summary in business language
- Top 3 recommended actions (prioritized)
- "We were able to access customer data within X hours of starting"
2. METHODOLOGY (1 page)
- Testing approach: Black/White/Gray box
- Standards referenced: OWASP, PTES, NIST
- Tools used
- Testing windows and constraints
3. FINDINGS (bulk of report - one section per finding)
Per finding:
- Title: Clear, descriptive (e.g., "SQL Injection in User Search API")
- Risk Rating: Critical/High/Medium/Low/Informational (with CVSS score)
- Affected Systems: Specific URLs, IP addresses, services
- Description: What is the vulnerability and why is it a risk?
- Evidence: Screenshots, HTTP requests/responses, command output
- Proof of Concept: Steps to reproduce (so developers can verify and test fix)
- Remediation: Specific, actionable steps to fix
- References: CVE numbers, OWASP links, CWE IDs
4. APPENDICES
- Full list of tested endpoints/targets
- Raw tool output
- Vulnerability scan exportsRisk Rating Guidelines
- Critical: Immediate action required. Remote code execution, complete data breach, complete authentication bypass. CVSS 9.0-10.0. Example: Unauthenticated RCE - attacker can run any code on the server without logging in
- High: Fix within 7 days. Authentication bypass, SQL injection with data extraction, SSRF to cloud metadata. CVSS 7.0-8.9. Example: SQL injection giving access to user account table
- Medium: Fix within 30 days. XSS (stored), CSRF on sensitive functions, IDOR for non-critical resources, missing security headers. CVSS 4.0-6.9
- Low: Fix in next regular release. Missing rate limiting, informational disclosure, security header best practices. CVSS 0.1-3.9
- Informational: No direct risk, but worth knowing. Verbose error messages, server version disclosure, outdated but unexploitable software
Writing Effective Remediation Guidance
# Bad remediation (too generic):
"Fix the SQL injection vulnerability"
# Good remediation (specific and actionable):
"""
Remediation for SQL Injection in /api/products/search
Immediate (temporary):
Disable the affected endpoint until a fix is deployed
OR add a WAF rule blocking single quotes and SQL keywords
Long-term (permanent fix):
Replace all string concatenation in SQL queries with parameterized queries:
# Vulnerable (current code):
query = f"SELECT * FROM products WHERE name LIKE '%{user_input}%'"
# Fixed code:
query = "SELECT * FROM products WHERE name LIKE ?"
cursor.execute(query, (f"%{user_input}%",))
Apply this pattern to all database interactions in the codebase.
Run a code search for: db.execute(f" or db.execute('
Validation:
Retest the endpoint by submitting: ' OR '1'='1
Expected result: No results returned, no SQL error
Reference:
OWASP SQL Injection Prevention Cheat Sheet:
https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html
"""Common Mistakes
- Writing purely technical reports without an executive summary - executives make security funding decisions; they need to understand business risk, not technical CVEs
- Submitting screenshots without context - every piece of evidence needs explanation: what it shows, why it matters, what an attacker could do with it
- Generic remediation like 'update the software' - provide specific code examples, configuration changes, or library versions. Developers should be able to implement the fix without further research
Tip
Tip
Practice Penetration Test Reporting in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.
The foundational security model: Confidentiality (privacy), Integrity (trust), and Availability (uptime).
Practice Task
Note
Practice Task - (1) Write a working example of Penetration Test Reporting from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.
Quick Quiz
Common Mistake
Warning
A common mistake with Penetration Test Reporting is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready cybersecurity code.
Key Takeaways
- A penetration test is only as valuable as its report.
- Critical: Immediate action required. Remote code execution, complete data breach, complete authentication bypass. CVSS 9.0-10.0. Example: Unauthenticated RCE - attacker can run any code on the server without logging in
- High: Fix within 7 days. Authentication bypass, SQL injection with data extraction, SSRF to cloud metadata. CVSS 7.0-8.9. Example: SQL injection giving access to user account table
- Medium: Fix within 30 days. XSS (stored), CSRF on sensitive functions, IDOR for non-critical resources, missing security headers. CVSS 4.0-6.9
Finished this lesson?