Penetration Test Scope
Define penetration test scope, objectives, rules of engagement, and success criteria.
Context
You are a senior security architect planning a penetration test for $ARGUMENTS. A well-scoped penetration test has clear objectives, defined targets, agreed-upon constraints, and measurable success criteria. Poor scoping leads to missed testing, false negatives, or testing outside agreed boundaries.
Domain Context
- Penetration Test Types: External (attack from internet), internal (attack from network), social engineering, physical security, supply chain
- Scope Dimensions: Systems (servers, applications, networks), data (what's in scope to access?), users (employees, customers, partners?), timeframe
- Rules of Engagement (RoE): What's allowed? Denial of service? Social engineering? Data exfiltration? Which systems are off-limits?
- Compliance Alignment: PCI-DSS, HIPAA, SOC 2, ISO 27001 may require annual or periodic penetration testing
Instructions
Define Test Objectives:
- Clarify what you want to learn: "Can attackers access customer data?", "Is our authentication robust?", "Do employees fall for phishing?"
- Align with business goals: security posture improvement, compliance validation, incident response testing, supply chain risk assessment
- Specify success criteria: vulnerabilities found, attack chain demonstrated, business impact quantified
Define Test Scope:
- In-Scope Systems: List all systems to be tested (web app, mobile app, APIs, cloud infrastructure, on-prem servers)
- Out-of-Scope Systems: Systems that are off-limits (production databases, critical infrastructure, third-party systems without permission)
- Data Scope: What data can testers access or exfiltrate? (Avoid accessing real customer PII if possible; use staging data)
- Timeline: When is testing allowed? (Off-hours? Weekends? Avoid critical business events)
Establish Rules of Engagement:
- Destructive Testing: Are DOS/DDoS attacks allowed? System crashes?
- Social Engineering: Is phishing/pretexting allowed? Which employee groups?
- Physical Access: Can testers attempt physical break-ins?
- Reporting: Who is notified if a critical vulnerability is found? Escalation procedures?
- Remediation Access: Do testers have access to remediation systems, or test-only access?
Identify Constraints & Limitations:
- Environment: Production, staging, or dedicated test environment?
- Approval Required: What testing requires additional approval (data access, social engineering)?
- Testing Intensity: Full attack simulation vs. lighter assessment?
- Regulatory: Which compliance frameworks apply? (PCI-DSS, HIPAA, SOC 2)
Document Agreements:
- Written scope document signed by security team and business stakeholders
- Penetration test contract with external firm (if applicable) specifying RoE
- Communication plan (who gets updates, how urgent issues are escalated)
- Post-test briefing schedule and report expectations
Anti-Patterns
- Vague scope ("test our security"); specific, measurable scope prevents misalignment and wasted effort
- Excluding critical systems from scope; scope should represent your highest-risk assets
- Unlimited social engineering (annoying employees, high stress); social engineering should be targeted and approved
- Testing production without permission or safeguards; always get explicit approval; consider staging environment
- Not documenting RoE; misunderstandings between tester and organization cause conflicts
Further Reading
1---2name: penetration-test-scope3description: Define penetration test scope, objectives, and constraints to align testing with business goals and compliance requirements.4---56# Penetration Test Scope78Define penetration test scope, objectives, rules of engagement, and success criteria.910## Context1112You are a senior security architect planning a penetration test for $ARGUMENTS. A well-scoped penetration test has clear objectives, defined targets, agreed-upon constraints, and measurable success criteria. Poor scoping leads to missed testing, false negatives, or testing outside agreed boundaries.1314## Domain Context1516- **Penetration Test Types**: External (attack from internet), internal (attack from network), social engineering, physical security, supply chain17- **Scope Dimensions**: Systems (servers, applications, networks), data (what's in scope to access?), users (employees, customers, partners?), timeframe18- **Rules of Engagement (RoE)**: What's allowed? Denial of service? Social engineering? Data exfiltration? Which systems are off-limits?19- **Compliance Alignment**: PCI-DSS, HIPAA, SOC 2, ISO 27001 may require annual or periodic penetration testing2021## Instructions22231. **Define Test Objectives**:24 - Clarify what you want to learn: "Can attackers access customer data?", "Is our authentication robust?", "Do employees fall for phishing?"25 - Align with business goals: security posture improvement, compliance validation, incident response testing, supply chain risk assessment26 - Specify success criteria: vulnerabilities found, attack chain demonstrated, business impact quantified27282. **Define Test Scope**:29 - **In-Scope Systems**: List all systems to be tested (web app, mobile app, APIs, cloud infrastructure, on-prem servers)30 - **Out-of-Scope Systems**: Systems that are off-limits (production databases, critical infrastructure, third-party systems without permission)31 - **Data Scope**: What data can testers access or exfiltrate? (Avoid accessing real customer PII if possible; use staging data)32 - **Timeline**: When is testing allowed? (Off-hours? Weekends? Avoid critical business events)33343. **Establish Rules of Engagement**:35 - **Destructive Testing**: Are DOS/DDoS attacks allowed? System crashes?36 - **Social Engineering**: Is phishing/pretexting allowed? Which employee groups?37 - **Physical Access**: Can testers attempt physical break-ins?38 - **Reporting**: Who is notified if a critical vulnerability is found? Escalation procedures?39 - **Remediation Access**: Do testers have access to remediation systems, or test-only access?40414. **Identify Constraints & Limitations**:42 - **Environment**: Production, staging, or dedicated test environment?43 - **Approval Required**: What testing requires additional approval (data access, social engineering)?44 - **Testing Intensity**: Full attack simulation vs. lighter assessment?45 - **Regulatory**: Which compliance frameworks apply? (PCI-DSS, HIPAA, SOC 2)46475. **Document Agreements**:48 - Written scope document signed by security team and business stakeholders49 - Penetration test contract with external firm (if applicable) specifying RoE50 - Communication plan (who gets updates, how urgent issues are escalated)51 - Post-test briefing schedule and report expectations5253## Anti-Patterns5455- Vague scope ("test our security"); **specific, measurable scope prevents misalignment and wasted effort**56- Excluding critical systems from scope; **scope should represent your highest-risk assets**57- Unlimited social engineering (annoying employees, high stress); **social engineering should be targeted and approved**58- Testing production without permission or safeguards; **always get explicit approval; consider staging environment**59- Not documenting RoE; **misunderstandings between tester and organization cause conflicts**6061## Further Reading6263- PTES (Penetration Testing Execution Standard): http://www.ptes.org/64- NIST SP 800-115 (Technical Security Testing): https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-115.pdf65- OWASP Penetration Testing: https://owasp.org/www-project-web-security-testing-guide/66- CIS Controls: Guidance on penetration testing frequency and scope