Penetration Test Plan Template
Plan an authorized penetration test with this template: objectives, scope, rules of engagement, methodology, timeline, and deliverables before testing begins.
A penetration test plan is the contract between the people testing and the people owning the systems. Get it wrong and you get the two classic failure modes: testers poking at systems that were never in scope, or a week of effort that produces findings nobody can act on. I started keeping this exact structure after an engagement where “the staging environment” turned out to share a database with production — the plan was one paragraph long and nobody had written down the exclusions. Every section in this template exists because of a scar like that one.
Overview
The plan gets signed before a single packet is sent. It covers what will be tested, what is off-limits, how testers may behave, how findings are reported, and what happens if something breaks. For the document produced after the test, see the Penetration Test Report Template; for tracking fixes afterward, use the Remediation Template.
When to Use
Use this resource when:
- You’re commissioning an external pentest or running an internal one
- A customer, auditor, or compliance framework asks for documented test authorization
- The test touches production systems, third-party infrastructure, or shared environments
- Security, engineering, and product teams need to agree on scope, timing, and escalation before testing starts
- A retest is due after a previous report and someone needs a scoped, signed document for it
Skip it when you’re running a fully automated vulnerability scan with no exploitation — a scope list and a maintenance window are enough for that.
Choosing the Testing Type
The plan’s “Testing type” field drives most of the questionnaire and the pre-test checklist:
| Type | What the client hands over | When it fits |
|---|---|---|
| Black box | Only the target URLs/IPs | Simulating an external attacker with zero inside knowledge |
| Gray box | Test accounts, some architecture docs | Most common — realistic depth without burning days on recon |
| White box | Source code, credentials, full documentation | Deepest coverage per hour; best for pre-release audits |
Gray box is the default for a reason: black box spends the first two days discovering what a five-minute architecture call would have revealed, and white box requires the client to trust the testers with far more than most engagements justify.
Whatever the type, the plan should say it explicitly — “gray box, two accounts, architecture diagram attached” is unambiguous in a way that “limited information provided” never is. When a dispute comes up later about whether testers were allowed to see something, this single field is what settles it.
Solution
# Penetration Test Plan — <System / Engagement Name>
## 1. Engagement Overview
- **Client / System owner:** <team or company>
- **Testing organization:** <internal team or vendor>
- **Primary contact (client):** <name, email, phone>
- **Primary contact (tester):** <name, email, phone>
- **Test window:** <start date> to <end date>
- **Testing type:** Black box | Gray box | White box
- **Environment:** Production | Staging | Dedicated test environment
## 2. Objectives
- Validate the security posture of <system> against <threat model>
- Identify exploitable vulnerabilities in <attack surface>
- Assess effectiveness of existing controls: <WAF, auth, segmentation>
- Satisfy requirement: <PCI DSS 11.3 / SOC 2 / customer contract>
## 3. Scope
### In scope
| Asset | Type | Notes |
|-------|------|-------|
| https://app.example.com | Web app | Customer-facing SPA |
| https://api.example.com/v2/* | REST API | Auth via OAuth2 |
| 10.0.4.0/24 | Internal subnet | App tier only |
| test-user@example.com | Test account | Role: standard user |
| test-admin@example.com | Test account | Role: admin |
### Out of scope
- https://billing.example.com — handled by third-party processor
- Physical security and social engineering — not authorized
- Denial of service — would breach hosting SLA
- Any system not listed above — if discovered during testing, STOP and request scope confirmation in writing
## 4. Rules of Engagement
- Testing hours: <09:00–18:00 UTC>
- Traffic limits: max <100> requests/second; no aggressive fuzzing on <endpoint>
- Prohibited: DoS/DDoS, social engineering, physical access, data exfiltration of real records
- Testers must use source IPs: <IP list> — whitelist these in the WAF for accurate detection coverage
- If a Critical vulnerability is found: notify <contact> within <4> hours, do not continue exploiting
- If systems become unstable: stop immediately and call <on-call contact>
## 5. Methodology
- Framework: OWASP Testing Guide v4.2 + OWASP API Security Top 10 / PTES
- Phases: reconnaissance → vulnerability analysis → exploitation → post-exploitation → reporting
- Evidence: screenshots + request/response captures for every finding
- Severity ratings: CVSS 4.0 base score + business-context adjustment
## 6. Schedule
Week 1 — intrusive phases:
| Day | Activity | Deliverable |
|-----|----------|-------------|
| 1 | Reconnaissance, attack surface mapping | Scope confirmation document |
| 2–3 | Automated scanning + manual testing | Daily status email |
| 4 | Exploitation, privilege escalation attempts | Draft findings list |
| 5 | Reporting, severity validation | Final report + debrief call |
Week 2 — if a broader engagement is authorized:
| Day | Activity | Deliverable |
|-----|----------|-------------|
| 6–7 | Lateral movement, chained exploitation | Status email |
| 8 | Persistence and post-exploitation review | Draft findings update |
| 9 | Evidence consolidation, retest prep | Evidence package |
| 10 | Final report + debrief | Accepted report |
## 7. Communication Plan
- Daily standup: <time, channel> during the test window
- Escalation path: tester → client security lead → engineering on-call
- Status format: findings so far + blockers + next day's plan
- Out-of-band channel for urgent notices: <phone / Signal / pager>
## 8. Deliverables
- Executive summary (leadership-readable, top 3–5 risks)
- Technical report (findings, reproduction steps, evidence, CVSS)
- Machine-readable findings (CSV/JSON for tracker import)
- Debrief session (<60–90> min, engineering + security)
## 9. Sign-off
| Role | Name | Signature | Date |
|------|------|-----------|------|
| System owner | | | |
| Testing lead | | | |
| Security approver | | | |
## 10. Legal Authorization
This document authorizes <testing organization> to perform security testing against the systems listed in Section 3 during the window in Section 1. Testing outside the defined scope, window, or rules of engagement is not authorized. Signatories confirm they hold authority to approve testing on these systems.
Evidence handling: all artifacts (screenshots, request captures, discovered credentials) transfer via <secure channel>, are stored in <location>, and are destroyed within <N> days of report acceptance.
## 11. Pre-Test Checklist
- [ ] Scope table reviewed and confirmed by the system owner
- [ ] Test accounts created and verified for each required role
- [ ] Tester source IPs whitelisted in WAF/IDS
- [ ] Monitoring and SOC teams notified of the test window
- [ ] Backup or snapshot verified within the last <24> hours
- [ ] Escalation contacts confirmed reachable
- [ ] Out-of-scope systems briefed to the testing team
- [ ] Signatures collected (Section 9)
## 12. Incident and Rollback
- If testing destabilizes a system: stop testing that asset, notify <on-call>, log what triggered it
- If real customer data is reached: stop, preserve evidence, notify the security lead — treat it as an incident, not a finding
- If indicators of a real-world compromise surface during testing: pause the engagement until triage confirms it's unrelated
- Rollback authority: <who can call off the test and through which channel>
## 13. Finding Log Format
Findings are logged in the shared tracker during the test, not at report time:
| ID | Title | Severity (CVSS + context) | Asset | Status |
|----|-------|---------------------------|-------|--------|
| PT-01 | SQL injection in /v2/users filter | Critical (9.1) | api.acme.io | Confirmed |
| PT-02 | Missing rate limit on /login | Medium (5.3) | api.acme.io | Under review |
Status values: `Suspected` → `Confirmed` → `Under review` → `Accepted` / `Rejected`. The client can follow progress live instead of waiting for the report.
Pre-Engagement Questionnaire
Send this to the client before drafting the plan — it produces most of the scope and ROE answers:
1. Which systems are you authorizing us to test? (domains, IP ranges, app names)
2. Which systems must we NOT touch under any circumstance?
3. Are there third-party-hosted components? Who owns them?
4. Black box, gray box, or white box? Will you provide test accounts?
5. Preferred test window and prohibited hours?
6. Any rate limits, fragile endpoints, or batch jobs we should avoid?
7. Is production in scope, or a staging mirror?
8. Who is the technical contact during the test and who can call it off?
9. What triggered this test? (compliance, customer requirement, internal review)
10. Which framework should findings map to? (OWASP, CVSS, internal taxonomy)
Explanation
Three details make or break a plan. First, out-of-scope lists: “everything except” language is how staging tests hit production databases — enumerate exclusions explicitly and add the stop-condition for anything discovered mid-test. Second, test accounts: without seeded accounts per role, gray-box testers burn a day on access setup. Third, the Critical-finding clause: it lets testers keep moving on medium issues while a real incident gets handled now instead of at report time.
The communication plan matters more than it looks. Most engagements die in silence — a tester finds something ambiguous at 14:00, nobody answers until the next standup, and half a day is gone. Naming an out-of-band channel and a reachable on-call person is what keeps the test window productive.
Section 12 exists because pentests occasionally uncover things that aren’t the test’s fault: a forgotten admin panel, an exposed S3 bucket, signs of an older breach. Pausing for triage protects both sides — the client learns about a real incident early, and the testers can’t be blamed for touching it.
The schedule table is deliberately day-by-day rather than week-level. Intrusive phases (exploitation, privilege escalation, fuzzing) are the ones that can slow or destabilize systems, so everyone needs to know which days they happen. When the plan says “days 2–3: automated scanning,” the ops team knows exactly when to expect noise in the logs — and anything suspicious on day 1 or day 5 is not the testers.
Section 13 closes the loop the plan opened: findings logged live in a shared tracker turn the report from a surprise into a confirmation. If the client disputes a severity rating, it happens during the test while the tester can still demonstrate it — not three weeks later over email.
A Filled Scope Table
Abstract scope tables are where plans go wrong. Here’s what “exhaustive” actually looks like for a SaaS product:
| Asset | Type | Notes |
|---|---|---|
| https://app.acme.io | Web app | React SPA, customer-facing |
| https://api.acme.io/v1/, /v2/ | REST API | OAuth2, exclude /v2/billing/* |
| https://admin.acme.io | Admin panel | Gray-box only, provided accounts |
| pentest-user@acme.io | Test account | Standard role |
| pentest-admin@acme.io | Test account | Admin role, read-only DB |
| 34.102.18.0/28 | Staging subnet | Mirrors prod, same code version |
Two things to notice: the exclusions are written inside the in-scope row (/v2/billing/*), and every test account is listed by name so nothing depends on a shared credential nobody rotated. The staging subnet is also in scope — a detail people forget to write down and then argue about when testing spills over.
Variants
| Engagement | Adjustments |
|---|---|
| External web/API pentest | Emphasize OWASP API Top 10, rate limits, WAF whitelisting |
| Internal network pentest | Add network segments, credentialed scanning, AD-specific ROE |
| Cloud environment review | Add IAM permission boundaries, provider notification requirements (AWS pre-authorization is no longer required, but document it anyway) |
| Bug bounty program | Replace schedule with continuous window; keep ROE and out-of-scope verbatim |
| Red team engagement | Strip the detailed scope table — keep only hard exclusions; widen methodology to cover physical and social vectors if authorized |
| Compliance-driven test (PCI DSS 11.4) | Map objectives and scope directly to the requirement; document segmentation testing explicitly |
| Retest after remediation | Cut scope to previously found issues; keep the full ROE and evidence-handling clauses |
Best Practices
- Keep the scope table exhaustive — every IP, URL pattern, and account in writing
- Whitelist tester IPs before day 1 so WAF/IDS telemetry reflects real coverage
- Agree the severity model (CVSS + business context) before findings exist, not after
- Put the escalation path and stop-conditions in one place everyone can find
- Get signatures from the person who actually owns the systems, not just procurement
- Notify the SOC/monitoring team — an alert that fires during a planned test is a detection success, not a fire drill
- Version the plan — if scope changes mid-engagement, amend it in writing instead of editing silently
Common Mistakes
- Vague scope (“the app”) — enumerate assets or accept that anything reachable is fair game
- No stop-condition for out-of-scope discoveries — testers keep going because nobody wrote down “stop”
- Skipping test accounts — gray-box work stalls on day 1 waiting for access
- Missing data rules — never test against real customer records; say so in the plan
- Treating the plan as a formality — it’s the only document that prevents legal and operational blowups
- No agreed evidence-destruction window — captures of real credentials left in an inbox become a liability
- Confusing the plan with the SOW — the commercial terms belong to the contract, the plan stays operational
Frequently Asked Questions
What is the difference between a penetration test plan and a report?
The plan is written before testing and defines objectives, scope, rules of engagement, and schedule — it's the authorization contract. The report is produced after testing and documents findings, severity ratings, and remediation guidance. Both documents reference each other: the report validates work against the agreed plan.
Who signs off on a penetration test plan?
At minimum: the system owner (who accepts the risk of testing), the testing lead (who accepts the constraints), and a security approver. When a third party tests, procurement or legal often countersigns — but the technical sign-off must come from whoever can actually stop the test if systems destabilize.
Should penetration testing be done on production?
Ideally no — use a staging environment that mirrors production. When production testing is unavoidable (common for realistic assessments), tighten the rules of engagement: narrow hours, strict rate limits, no destructive payloads, and an on-call engineer aware of the window.
How long should a penetration test take?
A focused web app or API test typically runs 3–5 days. Broader scopes — an internal network segment, a suite of applications, social engineering — run 2–4 weeks. The schedule section should show a day-by-day breakdown so everyone knows when intrusive phases happen.
What methodologies do pentest plans reference?
Common ones: OWASP Testing Guide and API Security Top 10 for web/API work, PTES for full lifecycle coverage, NIST SP 800-115 for methodology structure, and MITRE ATT&CK for adversary emulation. Pick the framework your report's findings will be mapped against.
Who writes the penetration test plan — the tester or the client?
Usually the testing team drafts it and the client reviews, corrects the scope table, and signs. The questionnaire exists for exactly this: the client holds the answers about fragile endpoints, prohibited hours, and hidden dependencies. A plan written without client input tends to have an unrealistic scope and gets renegotiated mid-test.
Does a vulnerability scan need a test plan?
Not this one. A plan is required when humans will actively probe, exploit, and attempt lateral movement — actions that can destabilize systems and need legal authorization. Automated scanning still benefits from a scope list and maintenance windows, but the rules of engagement and sign-off exist for human-led testing.
What happens if the scope needs to change mid-test?
Amend the plan in writing — same document, new version, both parties sign again. Discovering an adjacent system that looks interesting isn't authorization. The out-of-scope clause should already say "stop and request confirmation," which is the mechanism for expanding scope legitimately without stopping the whole engagement.
How far in advance should the plan be signed?
One to two weeks before the test window. That leaves time to provision test accounts, whitelist tester IPs, brief the monitoring team, and fix anything the pre-test checklist flags — like a missing backup or an unreachable escalation contact. Signing the day before testing starts is how engagements lose their first day to logistics.
What is the difference between a test plan and a statement of work?
The SOW is the commercial contract: pricing, payment terms, liability, intellectual property over the report. The plan is the operational document: what gets tested, when, under which constraints, and who to call. Vendors sometimes merge them, but keeping them separate means the plan can be amended mid-engagement without reopening legal review.
Related Resources
Penetration Test Report Template with Remediation
Document security assessment findings with this penetration test report template — risk ratings, reproduction steps, and remediation guidance.
DocPenetration Test Report Template
A practical template for documenting authorized penetration tests, including scope, limitations, risk, redacted evidence, remediation, and retesting.
DocPenetration Test Remediation Template
A practical template for prioritizing penetration test findings, assigning owners, documenting risk decisions, and verifying fixes safely.
DocAPI Security Review Template (OWASP Checklist)
A fillable checklist template for reviewing API authentication, authorization, rate limiting, and OWASP API Security Top 10 coverage.
DocSecurity Audit Checklist
A checklist for security audits covering network security, application security, data protection, access control, monitoring, incident response, and compliance.