Skip to content
SP StackPractices
intermediate By StackPractices

Penetration Test Scope Template

A template for defining the boundaries, targets, rules, and deliverables for a penetration testing engagement.

Note: This guide follows English-language naming conventions and terminology standards common in international development teams. Examples use English identifiers and comments to maximize compatibility across codebases and tooling.

Overview

A Penetration Test Scope Template defines what will be tested, what will not be tested, how the testing will be conducted, and what the organization expects to receive. A clear scope protects the organization from unintended disruption, prevents legal issues for testers, and ensures the engagement delivers actionable value.

When to Use

  • Hiring an external security firm for a penetration test.
  • Running an internal red-team or purple-team exercise.
  • Meeting compliance requirements for annual testing.
  • After a major architecture change or product launch.
  • Scoping a bug bounty or crowdsourced testing program.

Prerequisites

  • An inventory of systems, applications, and network ranges.
  • Legal and compliance approval for testing.
  • A contact list for emergency escalation.
  • An understanding of the testing methodology, such as OWASP or PTES.

Solution

Template

1. Engagement Details

FieldDescriptionValue
OrganizationEntity being testedAcme Corp
Engagement typeBlack box, gray box, or white boxGray box
Start dateWhen testing begins2026-07-01
End dateWhen testing ends2026-07-15
Testing windowAllowed hours08:00 - 18:00 UTC
Emergency contact24/7 contact for critical findingssecurity@example.com
Report due dateWhen findings are delivered2026-07-22

2. Targets In Scope

TargetTypeEnvironmentURL / IP RangeNotes
app.example.comWeb applicationProduction203.0.113.10Public-facing
api.example.comAPIProduction203.0.113.11OAuth2 protected
k8s clusterCloud infrastructureStaging10.0.0.0/16Read-only credentials provided
Admin portalWeb applicationProductionadmin.example.comMFA enabled

3. Out-of-Scope Items

ItemReason
Third-party SaaS providersOutside organizational control
Physical securityNot included in this engagement
Social engineeringExcluded per legal request
Denial-of-service attacksRisk to production uptime
Employee personal devicesPrivacy and legal boundaries
Production database writesCould corrupt customer data

4. Rules of Engagement

RuleDescription
Authorized testingOnly listed targets may be tested
CommunicationCritical findings reported immediately
Data handlingNo customer data exfiltration unless approved
ToolingCommercial and open-source tools allowed; no auto-exploitation on production
EvidenceScreenshots and logs required for all findings
ConfidentialityResults stored encrypted and shared only with named recipients
Clean-upTester must remove any persistence or accounts created during testing

5. Testing Methodology

PhaseActivitiesDeliverable
ReconnaissanceCollect public information and map targetsTarget inventory
ScanningVulnerability and configuration scanningScan output
ExploitationAttempt to validate vulnerabilitiesExploitation evidence
Post-exploitationAssess impact and lateral movementImpact analysis
ReportingDocument findings, risk, and remediationFinal report
RetestVerify fixes after remediationRetest report

6. Success Criteria

CriterionTarget
Coverage100% of in-scope targets tested
Critical findingsReported within 24 hours of discovery
Report qualityIncludes risk rating, evidence, and remediation steps
RetestAll high and critical findings remediated and retested
DebriefExecutive and technical sessions delivered

Explanation

The scope template aligns the organization and testers before any traffic is sent. It reduces legal risk, prevents production outages, and ensures the findings are relevant. Rules of engagement are especially important because they separate authorized testing from criminal activity under computer fraud laws.

Variants

  • Web application penetration test: Focuses on OWASP Top 10 testing for a single app.
  • Cloud penetration test: Targets AWS, Azure, or GCP configurations and IAM.
  • Red team exercise: Broader scope with stealth objectives and longer duration.
  • Bug bounty scope: Public-facing targets with safe harbor language and reward rules.
  • Internal network test: Assumes an insider or compromised endpoint perspective.

Best Practices

  • Get written authorization before any testing begins.
  • Include both technical and business owners in scope definition.
  • Define emergency contacts and escalation paths.
  • Exclude third-party systems unless explicit permission is obtained.
  • Require proof-of-concept evidence for every finding.
  • Schedule retesting to validate remediation.
  • Store findings securely and limit distribution.

Common Mistakes

  • Defining a scope that is too narrow to find real risks.
  • Forgetting to include APIs, microservices, and mobile backends.
  • Not providing test credentials for authenticated testing.
  • Allowing testing on production without a rollback plan.
  • Skipping retest and assuming fixes are complete.
  • Not informing SOC or NOC that testing will occur.

FAQs

What is a gray box test?

A gray box test provides the tester with some internal knowledge, such as credentials, architecture diagrams, or source code, while still simulating an attacker with limited access.

Can we test production systems?

Production testing is allowed if explicitly included in the scope, during agreed windows, and with rollback plans. Many organizations prefer testing staging first.

What should a report include?

At minimum: executive summary, methodology, scope, risk-rated findings, evidence, impact, remediation steps, and retest results. Include timelines and CVSS scores where applicable.