Most penetration tests that disappoint were lost at scoping: the wrong systems were listed, a fragile server was hit in business hours, a cloud provider rule was broken, or nobody could say afterwards which test accounts still existed. This template is a pre-engagement checklist and scope of work to send to a testing provider or internal team and get back completed and signed. It covers objectives, targets and exclusions, windows, rules of engagement, cloud provider policies, test credentials, contacts, data handling, reporting, retest and written authorisation, drawing on NIST SP 800-115, NCSC penetration testing guidance, PCI DSS v4.0.1 requirement 11.4 and the PCI SSC penetration testing guidance supplement, CIS Control 18 and the AWS, Microsoft Azure and Google Cloud testing policies. It is for security managers commissioning tests, testers and the system owners who sign.
How to use this template
- Replace text in square brackets, such as [Organisation], [Testing provider] and [X days], with your own terms and values.
- "Must" is mandatory; "should" is recommended, with exceptions agreed in writing by the [Engagement sponsor].
- Complete one copy per engagement. Send sections 2 to 13 to the tester as the pre-engagement questionnaire, agree them in a scoping call, then sign section 14. No testing starts before both parties sign. Anything not listed in section 4 is out of scope.
- For test types, methodologies and running a testing programme, see the Penetration Testing Guide; for objective-led adversary emulation, see the Red Teaming Guide. Choosing the provider is covered in our companion Penetration Testing Provider Buyer's Guide.
1. Purpose
This document defines the scope, rules and authorisation for the penetration test of [System or environment name] by [Testing provider] on behalf of [Organisation], so that the test answers [Organisation]'s questions, stays within systems it can authorise, avoids harm to production and produces an actionable report. NIST SP 800-115 advises that "A security assessment should be treated as any other project", with defined goals, scope, roles, limitations, assumptions, resources, timeline and deliverables; this document is that project definition.
2. Objectives and drivers
Tick every driver that applies and state the question the test must answer.
| Driver | What it requires | Applies |
|---|---|---|
| PCI DSS v4.0.1 11.4.1 | Documented methodology covering the cardholder data environment (CDE) perimeter and critical systems, segmentation, application and network layers; results kept 12 months | [Yes / No] |
| PCI DSS 11.4.2 and 11.4.3 | Internal and external tests at least every 12 months and after significant change, by a qualified, organisationally independent tester | [Yes / No] |
| PCI DSS 11.4.5 and 11.4.6 | Segmentation testing at least every 12 months, or every six months for service providers | [Yes / No] |
| CIS Controls v8.1, 18.2 and 18.5 | External tests at least annually through a qualified party; internal tests annually (IG3) | [Yes / No] |
| Contract, customer or certification | [ISO/IEC 27001 surveillance, SOC 2, customer security schedule, CHECK for UK public sector] | [Yes / No] |
| Assurance or a specific risk | [Go-live, cloud migration; for example: can an exposed API key escalate to cloud administrator] | [Yes / No] |
Primary question the test must answer: [one sentence]. Scenarios, chosen from previous incidents and threat intelligence as NCSC advises (for example "Lost laptop, unauthorised device connected to internal network, and compromised DMZ host"): [list].
3. Test types and approach
| Test type | Typical targets | Reference method | Selected |
|---|---|---|---|
| External infrastructure | Internet-facing IPs, VPN and remote access gateways, mail and DNS | NIST SP 800-115, PTES | [ ] |
| Internal infrastructure | Active Directory, servers, workstations from an assumed-breach position | NIST SP 800-115, PTES | [ ] |
| Web application | Named applications, authenticated and unauthenticated | OWASP Web Security Testing Guide | [ ] |
| API | REST, GraphQL and gRPC endpoints, including machine-to-machine APIs | OWASP Web Security Testing Guide | [ ] |
| Mobile application | iOS and Android builds and their back-end APIs | OWASP MASVS and MASTG | [ ] |
| Cloud configuration and identity | Cloud accounts, subscriptions and projects, IAM, storage, workload identities | Provider policies in section 8 | [ ] |
| Segmentation | Controls isolating the CDE or other restricted zones | PCI DSS 11.4.5 | [ ] |
| Wireless, physical, social engineering | Only if section 7 permits | [Scenario plan] | [ ] |
- Knowledge level: [Open box / Closed box / Grey box]. Open box finds more per tester day; closed box shows what an outsider can learn.
- Visibility: [Overt: IT and the SOC are told / Covert: only named senior managers know]. NIST SP 800-115 describes covert testing "with the full knowledge and permission of upper management", with a trusted third party to confirm activity is the test.
- Effort: [X] tester days, [start date] to [end date], plus [X] days for reporting.
- Inputs shared: your current vulnerability assessment (NCSC advises sharing it with the testers), network and data flow diagrams, and the previous report.
4. In-scope assets
List every target explicitly. The [Asset owner] confirms [Organisation] owns or may authorise testing of each entry; a released IP address now belongs to someone else.
| Asset type | Identifier | Environment | Owner | Hosted by | Notes and constraints |
|---|---|---|---|---|---|
| External IP ranges | [203.0.113.0/28] | [Production] | [Name] | [ISP / data centre / cloud] | [Exclude .14, shared load balancer] |
| Internal ranges | [10.20.0.0/16] | [Production] | [Name] | [On premises] | [Starting point: standard user laptop on VLAN 30] |
| Domains and URLs | [https://app.example.com] | [Staging] | [Name] | [Cloud] | [WAF in place: allowlist tester IPs Yes / No] |
| Web applications | [App name, version, user roles] | [ ] | [ ] | [ ] | [Roles to test: customer, admin] |
| APIs | [Base URL, OpenAPI file reference] | [ ] | [ ] | [ ] | [Auth method: OAuth client credentials / API key] |
| Mobile apps | [Bundle ID, build number] | [ ] | [ ] | [App store / MDM] | [Jailbroken or rooted device testing Yes / No] |
| Cloud accounts | [AWS account ID / Azure subscription ID / GCP project ID] | [ ] | [ ] | [Provider] | [Services in scope; see section 8] |
| SaaS tenants, sites, Wi-Fi | [Tenant, address, SSID] | [ ] | [ ] | [ ] | [Vendor permission reference] |
Tester source IPs (a rules of engagement item in the PCI SSC supplement): [list]. [Allowlisted in WAF and IPS / not allowlisted]; record the choice in the report, because it changes what the result means.
5. Out-of-scope and fragile systems
- Explicitly excluded: [systems, ranges, third-party services, other customers' tenants, shared infrastructure]. NIST SP 800-115 warns assessors not to "inadvertently scan devices owned or operated by neighboring organizations".
- Fragile systems: [legacy, OT, medical or mainframe systems], tested only with [passive discovery / named safe checks / not at all]; state known failures, for example "crashes under full port scan".
- Third-party hosted assets: need the supplier's written permission (section 14) or stay out of scope. The PCI SSC supplement notes scope "may not include the infrastructure provided by the third party", nor its management portals.
- Production data: records the tester must not alter or extract, for example [cardholder data, patient records].
Verify the final target list against the asset inventory before testing starts. In the Meta Muse Spark evaluation incident, a misconfigured cyber test pointed an AI model at a real website.
6. Testing windows
| Item | Agreed value |
|---|---|
| Test period | [Start date and time] to [end date and time], time zone [ ] |
| Permitted hours per target group | [Business hours / out of hours / weekends]; NIST SP 800-115 suggests some tests run "during periods of low network traffic" |
| Blackout dates | [Change freezes, month end, peak trading, releases] |
| Daily start and stop notification | [Email or chat channel, to whom] |
| Backups confirmed before testing | [System owner, date] |
7. Rules of engagement
7.1 Permitted and prohibited activities
| Activity | Permitted | Conditions |
|---|---|---|
| Port and vulnerability scanning | [Yes] | [Rate limit, for example 100 packets per second for fragile ranges] |
| Exploitation of identified vulnerabilities | [Yes / Ask first] | [Ask first for anything that could cause outage or data change] |
| Password guessing and spraying | [Yes / No] | [Below the lockout threshold of [X] attempts; named accounts only] |
| Privilege escalation and lateral movement | [Yes / No] | [Stop at domain or cloud administrator and report] |
| Persistence (implants, new accounts, scheduled tasks) | [Yes / No] | [All artefacts logged and removed by test end] |
| Social engineering (phishing, vishing, physical) | [Yes / No] | [Approved pretexts, target list, HR and legal sign-off] |
| Denial of service and load testing | No | Prohibited unless a separate written plan is approved; AWS, Microsoft and Google rules also apply |
| Data exfiltration | [Proof only] | [Use a canary file or file listing; never real records. The PCI SSC supplement: "Only a proof-of-concept test should be performed"] |
| Command and control infrastructure | [Yes / No] | [Tester-owned, declared IPs; AWS requires prior approval for C2] |
| AI-assisted or autonomous tooling | [Yes / No] | [Constrained to the section 4 list; tester remains accountable] |
7.2 Stop conditions
The tester must stop and call the technical contact immediately if: a service degrades or fails; evidence of a real attacker or prior compromise is found; a critical vulnerability with immediate exposure is confirmed; data outside scope, including another customer's data, is reached; or the tester is unsure whether an action is in scope.
7.3 Tooling
The tester must declare tools likely to have side effects, disable denial of service capability in any tool (the AWS policy requires this for tools used against AWS), and keep timestamped activity logs to reconcile against [Organisation]'s security monitoring.
7.4 Scope changes
Any change to targets, techniques or windows must be requested in writing and approved by the [Engagement sponsor] before it is acted on; NCSC places that decision with the risk owner.
8. Cloud provider and hosting policies
[Organisation] authorises cloud testing within the provider's terms. Reconfirm each policy per test; the lists change.
| Provider | Notification | Key restrictions | Confirmed by, date |
|---|---|---|---|
| AWS | No prior approval for listed services (including EC2, RDS, Aurora, CloudFront, API Gateway, Lambda, ECS, Fargate); check the current list for any other service | Prohibited: DoS and DDoS (including simulations), port, protocol and request flooding, Route 53 zone walking, hijacking and pharming, S3 bucket and subdomain takeover. C2 testing needs prior approval; Simulated Events form at least two weeks ahead for red team, simulated phishing and malware testing | [Name, date] |
| Microsoft Azure | No pre-approval since 15 June 2017 (Azure only, not other Microsoft cloud services) | Unified Rules of Engagement: own tenant only, no DoS, no phishing of Microsoft staff, no network-intensive fuzzing; report service flaws through the MSRC Research Portal; if out-of-scope data is reached, "stop immediately" | [Name, date] |
| Google Cloud | "You are not required to contact us" | Abide by the Acceptable Use Policy and Terms of Service; "ensure that your tests only affect your projects" | [Name, date] |
| SaaS, CDN, MSSP and hosting providers | [Per contract] | [Written permission reference, or exclude] | [Name, date] |
AWS makes the customer responsible for damage caused by testing and for contracted third parties following its policy, so flow these rules down into the tester's contract.
9. Test accounts and credentials
Test credentials are real credentials into production. Manage them as temporary privileged identities with a full lifecycle.
| Stage | Requirement | Record |
|---|---|---|
| Issuance | Named accounts per tester (for example pt-[provider]-[name]), never shared or employee accounts. API keys, OAuth clients and cloud roles are created for the test, not borrowed from production workloads | [Account, role, issued by, date] |
| Scope | One account per role being tested; cloud access through an assumed role limited by source IP and session duration where supported | [Permissions granted] |
| Delivery | Through [secrets manager share / encrypted channel], never email or this document; MFA enrolled to the tester's device | [Method] |
| Expiry | Every account and key carries an expiry set to the test end date plus [2 days] | [Expiry date] |
| Created by the tester | Any account, key, token or role created during exploitation is logged with time and location and handed over at test end | [Tester log reference] |
| Revocation | Within [1 working day]: disable accounts, delete keys and OAuth clients, revoke sessions and refresh tokens, remove roles and trust policies, rotate any production secret the tester read | [Revoked by, date, evidence] |
Forgotten test identities are an attacker's way in: the Midnight Blizzard breach started with a forgotten test tenant account and an OAuth app. See the Service Account Security Guide and the API Key Management Guide.
10. Contacts and escalation
| Role | Name | Phone (24x7 where marked) | |
|---|---|---|---|
| Engagement sponsor (approves scope changes) | [ ] | [ ] | [ ] |
| Technical point of contact (available at all times during testing, as NCSC advises) | [ ] | [ ] 24x7 | [ ] |
| SOC or MDR duty contact (deconfliction) | [ ] | [ ] 24x7 | [ ] |
| Tester lead | [ ] | [ ] 24x7 | [ ] |
| System owners for fragile systems | [ ] | [ ] | [ ] |
| Cloud or hosting provider contact | [ ] | [ ] | [ ] |
Deconfliction: the SOC calls the tester lead with source IP and time; activity not in the tester's log is a real incident under [incident response procedure]. Critical findings are phoned through within [4 hours], not held for the report.
11. Data handling
- NIST SP 800-115 asks organisations to "Appropriately handle technical data (collection, storage, transmission, and destruction)". Classify test data (credentials, hashes, screenshots, network maps) as [Confidential] at minimum.
- Collect the minimum evidence needed to prove a finding, mask personal data in screenshots and never copy bulk records.
- Store evidence encrypted on tester-controlled systems in [jurisdiction], accessible only to the named test team, and transfer it only through [secure portal / encrypted archive with key sent separately].
- Cracked passwords are reported as counts and account names, not plaintext.
- The tester must securely delete [Organisation] data within [30 days] of report acceptance and confirm deletion in writing. [Organisation] retains the report and remediation evidence for at least 12 months (PCI DSS 11.4.1) or [retention period].
12. Reporting requirements and severity scheme
- Executive summary: answer to the primary question in section 2, overall risk, top issues.
- Scope, methodology and limitations: what was and was not tested, constraints (allowlisting, fragile systems skipped), dates, source IPs and tools used, matching the statements of scope, methodology and limitations in the PCI SSC supplement's report outline.
- Findings: description, affected assets, evidence, reproduction steps, risk rating, and "a method of resolving" each issue (NCSC); map to CWE where applicable.
- Attack narrative: chained path for any escalation, including which credentials and identities were used or created.
- Vulnerability assessment opinion: NCSC recommends the report gives "an opinion on the accuracy of your organisation's vulnerability assessment".
- Clean-up record: artefacts, accounts and keys created and confirmation of removal.
| Severity | CVSS v4.0 range | Example | Remediation target |
|---|---|---|---|
| Critical | 9.0 to 10.0 | Unauthenticated remote code execution on an internet-facing host | [7 days] |
| High | 7.0 to 8.9 | Standard user to domain administrator | [30 days] |
| Medium | 4.0 to 6.9 | Stored cross-site scripting needing authentication | [90 days] |
| Low | 0.1 to 3.9 | Verbose server banners | [Next release] |
| Informational | 0.0 or not scored | Hardening advice | [Discretionary] |
Ask for CVSS-BTE scores where the tester has the context: FIRST describes Threat and Environmental metrics as "a more comprehensive input to risk assessment". UK CHECK reports must rate risk as "HIGH, MEDIUM, LOW or INFORMATIONAL", with CVSS "in addition to (but not in place of)" that rating. Remediation decisions remain [Organisation]'s: NCSC says "risk assessment and decisions on the application of fixes are your responsibility" and should not be wholly outsourced to the test team.
13. Remediation and retest
- Findings are logged in [ticketing system] within [5 working days], with an owner and section 12 due date.
- PCI DSS 11.4.4 requires exploitable findings to be corrected per the entity's risk assessment and "Penetration testing is repeated to verify the corrections."
- Retest scope: all Critical and High findings, plus [Medium findings on in-scope PCI systems], within [X days] of remediation, at [included / additional] cost.
- After each test, the SOC reviews whether it detected the tester's techniques and adds detections where it did not (CIS Safeguard 18.4).
14. Legal authorisation and sign-off
Unauthorised access to computer material is a criminal offence in many jurisdictions, for example under section 1 of the UK Computer Misuse Act 1990 and, in the US, the Computer Fraud and Abuse Act (18 U.S.C. 1030). The US Department of Justice's 2022 policy on good-faith security research binds federal prosecutors only and is no substitute for permission. This signed section is the tester's written authorisation (the "get out of jail" letter), carried by the tester throughout. It is not legal advice; have [Legal] review it.
| Item | Entry |
|---|---|
| Authorising party | [Name, title], who has authority over every asset in section 4 |
| Testing provider and named testers | [Company, tester names] |
| Scope reference | Sections 4, 5 and 7 of this document, version [x.y] |
| Test period | [Dates and times] |
| Third-party permissions | [Hosting, SaaS, MSSP written consent references] |
| Cloud provider confirmations | [Section 8 completed; AWS Simulated Events reference if required] |
| Contract, NDA and insurance | [References] |
| Signed for [Organisation] | [Name, signature, date] |
| Signed for [Testing provider] | [Name, signature, date] |
15. Framework mapping
| Framework | Reference | What this template evidences |
|---|---|---|
| NIST SP 800-53 Rev. 5 | CA-8, CA-8(1) | Penetration testing; independent penetration testing agent or team (sections 2, 3 and 14) |
| NIST CSF 2.0 | ID.IM-02 | Improvements identified from security tests and exercises (sections 12 and 13) |
| CIS Controls v8.1 | Safeguards 18.1 to 18.5 | Programme, external and internal tests, remediation, validation |
| ISO/IEC 27001:2022 | Annex A 8.8, 8.29 | Technical vulnerability management; security testing in development and acceptance |
| PCI DSS v4.0.1 | 11.4.1 to 11.4.6 | Methodology, internal and external frequency, correction and retest, segmentation |
16. Source references
- NIST: SP 800-115, Technical Guide to Information Security Testing and Assessment
- NCSC: Penetration testing
- PCI SSC: Information Supplement, Penetration Testing Guidance
- PCI DSS v4.0.1 requirement 11.4.1 (requirement text as published by Cloudaware)
- CIS: Controls v8 Assessment Specification, Control 18 Penetration Testing
- AWS: Penetration Testing policy
- Microsoft: Microsoft Cloud Unified Penetration Testing Rules of Engagement
- Microsoft Learn: Penetration testing (Azure)
- Google Cloud: Cloud Security FAQ
- FIRST: CVSS v4.0 Specification Document
- UK legislation: Computer Misuse Act 1990, section 1
- US Department of Justice: New policy for charging cases under the Computer Fraud and Abuse Act
Implementation guidance
- Scope from risk, not from last year's list: start with the question in section 2, then pick targets that answer it. Involve "all relevant risk owners" and technical staff in the scoping call, as NCSC advises.
- Reconcile the target list: check every IP, domain and cloud account in section 4 against the asset inventory and DNS the day before testing; remove anything [Organisation] cannot prove it owns. See the Attack Surface Management Guide.
- Pilot fragile targets: run safe checks against one fragile host with its owner watching before scanning the group; if it degrades, fall back to passive discovery for that group.
- Close the identity loop: run section 9 revocation as a tracked change with evidence, then check cloud audit logs for any use of test identities after the end date.
- Feed results forward: load findings into vulnerability management (see the Vulnerability Management Guide), and turn the attack paths into breach and attack simulation scenarios so the controls are rechecked between annual tests. A point-in-time test does not replace a standing disclosure route for flaws found by outsiders; see the Bug Bounty and Vulnerability Disclosure Guide.
Small and large organisations: small organisations can use sections 2, 4, 7, 9 and 14 as a short scope letter for a single application test. Large or regulated estates should keep this document as a master scope per environment, version it each year and reuse sections 8 to 11 across providers.
Common failure patterns: vague scope ("the website") with no identifiers; hosted assets tested without the supplier's permission; testers allowlisted without anyone recording it; credentials emailed and test accounts and keys left active after the report; findings never retested, so the next annual report repeats them. Track these measures:
- Scope accuracy: targets found to be out of [Organisation]'s ownership at reconciliation (target zero reaching the tester).
- Test identity hygiene: test accounts, keys and roles still active [2 days] after test end (target zero).
- Remediation: Critical and High findings closed and retested within target.
- Repeat findings: findings that recur from the previous test.
- Detection: share of tester techniques detected by the SOC.
This template is provided for guidance and must be adapted to your organisation. It is not legal advice. Related NHI Mgmt Group resources: Penetration Testing Guide · Red Teaming Guide · Exposure Management and CTEM Guide · PCI DSS 4.0 Guide · Breach and Attack Simulation (BAS) Guide