Skip to main content
AutoPentestX generates professional, comprehensive PDF reports using ReportLab. This guide explains each section of the report and how to use the findings effectively.

Report Generation

Reports are automatically generated in Phase 7 of every scan:
Terminal Output

Report Location

Reports are stored in the reports/ directory with timestamped filenames:

Opening Reports

Report Sections

1. Cover Page

The first page contains:
string
PENETRATION TESTING REPORT (large, centered heading)
object
  • Target System (IP or domain)
  • Scan ID (database reference)
  • Report Date and Time
warning
CONFIDENTIAL notice in red text warning about sensitive information
object
  • Prepared by: (your name from -n flag)
  • Tool: AutoPentestX v1.0
  • Framework: Automated Penetration Testing Toolkit
Use the -n flag to customize the β€œPrepared by” field:

2. Executive Summary

Provides a high-level overview for non-technical stakeholders.

Key Metrics

Example Summary

Risk Level Indicators

πŸ”΄ Red Text - Immediate Action RequiredCharacteristics:
  • Publicly exploitable vulnerabilities
  • SQL injection vulnerabilities
  • Default credentials accepted
  • Known backdoors detected
Sample Finding:

3. Scan Details

Technical information about the scan execution:

4. Open Ports and Services

Complete inventory of discovered network services:
The report displays up to 20 ports. View all ports in the database:

5. Vulnerabilities Identified

Detailed table of all discovered vulnerabilities:

Vulnerability Categories

Found during port scanning and version detection:
  • Outdated service versions
  • Vulnerable software with known CVEs
  • Misconfigured services
  • Services with default configurations
Source: Nmap + CVE database
Found by Nikto web scanner:
  • Missing security headers
  • Directory listing enabled
  • Exposed administrative pages
  • Default files present
  • XSS indicators
Source: Nikto (unless --skip-web used)
Found by SQLMap:
  • Vulnerable GET parameters
  • Vulnerable POST parameters
  • Cookie-based injection
  • Header injection
Source: SQLMap (unless --skip-web used)Severity: ALWAYS HIGH
Matched from CVE intelligence database:
  • Known vulnerabilities for detected services
  • CVSS scores
  • Exploitability information
  • Patch availability
Source: CVE database lookup
The report displays up to 25 vulnerabilities. View all in the database:

6. Risk Assessment

Advanced risk scoring and analysis:

Risk Calculation

The risk engine (from modules/risk_engine.py) calculates scores based on:
  1. Vulnerability Severity: CRITICAL=10, HIGH=7, MEDIUM=5, LOW=3
  2. Exploitability: Known exploit (+2), CVE with CVSS 7+ (+1.5)
  3. Service Exposure: Internet-facing (+1), Authentication required (-0.5)
  4. Number of Issues: Multiple issues on same port compound risk
Overall Risk Level Thresholds:
  • CRITICAL: Total risk score > 70 OR any SQL injection
  • HIGH: Total risk score > 50 OR 3+ high-severity issues
  • MEDIUM: Total risk score > 30 OR 5+ medium-severity issues
  • LOW: Total risk score > 10
  • MINIMAL: Total risk score ≀ 10

7. Exploitation Assessment

Details about matched exploits and simulation results:
This section only appears if exploitation phase ran (no --skip-exploit flag).
See the Exploitation Guide for detailed information about each status.

8. Security Recommendations

Prioritized remediation actions:

Recommendation Categories

Patch Management

Update outdated software to latest stable versions

Configuration Hardening

Fix misconfigurations and disable unnecessary features

Access Control

Implement proper authentication and authorization

Network Security

Use firewalls, VPNs, and network segmentation

9. Conclusion

Final summary and next steps:

10. Disclaimer

Legal disclaimer and usage terms:

Customizing Report Content

Add Your Name

Use the -n or --tester-name flag:
Appears in:
  • Cover page: β€œPrepared by” field
  • Page headers (if enabled)
  • Report metadata

Report Variations by Flags

Report Includes:
  • βœ… All sections
  • βœ… Port and service inventory
  • βœ… Web vulnerabilities (Nikto)
  • βœ… SQL injection findings (SQLMap)
  • βœ… CVE intelligence
  • βœ… Exploitation assessment
  • βœ… Metasploit RC scripts referenced
Typical Page Count: 8-12 pages

Using Report Data

Share with Stakeholders

1

Prepare Report Package

Gather all relevant files:
2

Encrypt Sensitive Data

Password-protect the PDF:
3

Distribute Securely

  • Email encrypted report to authorized recipients only
  • Use secure file sharing (not public links)
  • Include remediation timeline expectations
  • Schedule a findings review meeting

Create Executive Presentation

Extract key metrics for slides:

Track Remediation Progress

Create a tracking spreadsheet from report findings:
  1. Extract vulnerabilities from database
  2. Add columns: Status, Assigned To, Due Date, Resolution Notes
  3. Re-scan after remediation to verify fixes
  4. Generate comparison report

Report File Management

Organize Reports

Report Retention Policy

Recommended retention:
string
Keep for 1 year - Current and recent scans for comparison
string
Keep for 3-7 years - Compliance and audit trail
string
Keep permanently - Proof of security improvements

Troubleshooting Report Issues

Error:
Solution:
Symptom: Report shows 0 vulnerabilities but ports were found.Possible Causes:
  • Used --skip-web flag (web vulnerabilities won’t appear)
  • No CVEs found for detected services (expected for up-to-date systems)
  • Scan was interrupted before vulnerability phase
Check database:
Symptom: PDF won’t open or displays errors.Solution: Re-run the report generation from database:
Currently, you must re-run the full scan.
Symptom: Report file is several MB in size.Cause: Very large number of findings (50+ vulnerabilities).Note: Report limits tables to 20-25 entries. Full data is in the database.View all findings:

Next Steps

CLI Reference

Complete command-line flag documentation

Database Schema

Query and analyze raw scan data