Penetration Testing
BlogsPenetration Testing

Defining Your Penetration Testing Scope: A Complete Scoping Guide

Tejas K. Dhokane
Marketing Associate
A black and white photo of a calendar.
Updated:
July 22, 2026
A black and white photo of a clock.
12
mins read
Written by
Tejas K. Dhokane
, Reviewed by
Vijaysimha Reddy
A black and white photo of a calendar.
Updated:
July 22, 2026
A black and white photo of a clock.
12
mins read
On this page
Share

The scope definition is the single most important decision in a penetration testing engagement. Get it right and you receive a targeted, high-value assessment that validates the security of your most critical assets. Get it wrong and you pay for testing that covers the wrong systems, misses critical applications, or produces findings that don't map to your actual risk.

Most organizations approach scoping backwards. They ask their provider "what should we test?" when the question should be "what are we trying to protect and from whom?" Scope follows risk. Your customer-facing payment application handling $50 million in annual transactions is a different scoping priority than your internal wiki. Your cloud infrastructure hosting production data is a different conversation than your development sandbox.

This guide covers how to define penetration testing scope systematically: the inputs that drive scoping decisions, how to scope each type of penetration test, what to include and exclude, common scoping mistakes that waste budget, how to write a scoping document for providers, and a complete scoping checklist.

Why Scope Matters

Underscoping Wastes the Opportunity

Testing only your marketing website while your payment API goes untested. Scoping external testing but skipping internal penetration testing where lateral movement risks live. Testing the web application but excluding the APIs it calls. Each gap is a blind spot where vulnerabilities persist undiscovered.

Overscoping Wastes Budget

Testing every system with equal depth regardless of data sensitivity or business criticality dilutes tester attention across low-value targets. The result: surface-level coverage everywhere, deep coverage nowhere. Budget is finite. Scope should focus depth on what matters most.

Miscoping Creates Compliance Failures

PCI DSS requires testing of the cardholder data environment. If your scope doesn't match the CDE boundary, the audit fails. SOC 2 auditors compare pentest scope to the system boundary. Misalignment creates findings. See our penetration testing compliance guide for compliance-driven scoping requirements.

The Four Inputs That Drive Scoping

Input 1: Business Risk

What data do you hold? Customer PII, payment card data, health records, intellectual property, financial data. Systems that store, process, or transmit the most sensitive data receive the highest testing priority.

What would a breach cost? Quantify the impact of a breach on each system: regulatory fines, customer notification costs, litigation, business disruption, reputational damage. Higher-impact systems receive deeper testing. For the cost framework, see our business case for penetration testing.

Input 2: Compliance Requirements

Each compliance framework defines its own scoping rules.

PCI DSS: All systems storing, processing, or transmitting cardholder data. All systems connected to the cardholder data environment. Network segmentation must be validated. See our PCI DSS testing guide.

SOC 2: All systems within the SOC 2 trust service boundary. See our SOC 2 guide.

ISO 27001: All systems within the ISMS scope. See our ISO 27001 guide.

HIPAA: All systems storing, processing, or transmitting ePHI. See our healthcare testing guide.

GDPR: All systems processing personal data of EU residents. See our GDPR testing guide.

Input 3: Architecture and Attack Surface

Map your technology environment. What's internet-facing? What runs in the cloud? What sits behind your firewall? Where do systems interconnect?

Architecture questions that shape scope:

How many web applications serve customers? Which APIs connect your systems? What cloud platforms do you use (AWS, Azure, GCP)? What does your internal network look like? Do you have mobile applications? Do you run AI systems? Do you have IoT or OT devices? Attack surface management helps you discover what you might not know exists.

Input 4: Previous Testing Results

If you've conducted penetration testing before, previous results inform scope priorities. Systems with high-severity findings in prior tests should be retested. Systems never tested before should be prioritized. Remediated vulnerabilities should be verified through retesting. See our penetration testing reports guide for using previous findings to inform scope.

Scoping by Penetration Testing Type

Web Application Penetration Testing Scope

What to define:

Which applications are in scope? List every URL, subdomain, and web property to test. Which user roles exist? Testers need accounts at each privilege level (unauthenticated, regular user, admin, different role types). Which functionality is in scope? Payment processing, user registration, file upload, search, reporting, API calls from the frontend. Any functionality to exclude? (Production data modification, load testing, denial-of-service testing.)

Scoping checklist for web apps:

  • Application URLs and subdomains listed
  • Test accounts provisioned at each role level
  • Authentication mechanism documented (SSO, local, MFA)
  • Third-party integrations in/out of scope defined
  • Production vs staging environment decision made
  • Data handling restrictions documented (no real customer data modification)

For full web application testing methodology, see our web application penetration testing guide and security testing checklist.

API Penetration Testing Scope

What to define:

API documentation (OpenAPI/Swagger specs, Postman collections). Authentication mechanism (API keys, OAuth, JWT). All API endpoints in scope. Rate limiting and throttling considerations. Data sensitivity per endpoint. GraphQL vs REST vs gRPC.

Scoping checklist for APIs:

  • API documentation provided (OpenAPI spec, Postman collection)
  • API endpoints enumerated (or discovery is in scope)
  • Authentication credentials provisioned
  • API versioning documented (v1, v2 both in scope?)
  • Rate limiting thresholds communicated
  • Webhook endpoints included/excluded

See our API penetration testing guide and API security best practices.

Network Penetration Testing Scope

External scope: IP ranges, public-facing services, VPN endpoints, mail servers, DNS infrastructure.

Internal scope: Subnet ranges, Active Directory domain, internal services, segmentation boundaries.

Scoping checklist for networks:

  • External IP ranges defined
  • Internal subnet ranges defined (for internal testing)
  • Active Directory domain details provided
  • Network segmentation boundaries documented
  • Sensitive systems requiring caution identified (production databases, critical infrastructure)
  • VPN access provisioned (for remote internal testing)
  • Testing window defined (business hours, maintenance windows)

See our network penetration testing guide and external penetration testing guide.

Cloud Penetration Testing Scope

What to define:

Cloud provider(s) and account IDs. IAM configuration (roles, policies, cross-account access). Compute resources (EC2, AKS, GKE instances). Storage (S3 buckets, blob storage). Serverless functions. Container orchestration (EKS, AKS, GKE). Cloud provider testing policies (AWS, Azure, and GCP each have testing notification requirements).

Scoping checklist for cloud:

  • Cloud provider(s) identified
  • Account/subscription IDs provided
  • IAM review in scope
  • Compute, storage, networking resources enumerated
  • Serverless and container workloads included
  • Cloud provider notification requirements met
  • Multi-account/subscription scope defined

See our cloud penetration testing guide and cloud security testing guide.

Mobile Application Penetration Testing Scope

What to define:

Platform(s): iOS, Android, or both. App store version or test build. Backend API scope (often the mobile app is a client for APIs that also need testing). Device-specific testing requirements. Jailbreak/root detection testing.

Scoping checklist for mobile:

  • Platform(s) defined (iOS, Android, both)
  • App binary or TestFlight/beta access provided
  • Backend APIs included in scope
  • Test accounts provisioned
  • Test devices specified or provided

See our mobile app penetration testing guide.

AI System Penetration Testing Scope

What to define:

AI model type and provider. Application wrapping the AI system. RAG knowledge base (if applicable). Agentic tool integrations (each tool is an additional attack surface). Guardrail and safety system configuration.

Scoping checklist for AI:

  • Model type and provider identified
  • Application layer in scope (web, API)
  • Prompt injection testing included
  • RAG pipeline in scope (if applicable)
  • Agentic tool integrations enumerated
  • Output safety testing included

See our AI penetration testing guide and AI pentesting framework.

Red Team Engagement Scope

Red team scoping is fundamentally different. Rather than defining which systems to test, you define the objectives the red team should attempt to achieve and the rules of engagement constraining how they operate.

What to define:

Objectives (access the crown jewels, exfiltrate customer data, demonstrate ransomware deployment path). Rules of engagement (social engineering permitted? physical access? which systems are off-limits?). SOC awareness (purple team or blind assessment?).

See our red teaming guide and red teaming vs penetration testing comparison.

Testing Approach: Black Box, White Box, Grey Box

The testing approach affects scope depth and cost.

Black box: Testers receive no internal information. They discover the attack surface externally and test from an outsider's perspective. Most realistic but may miss internal-only vulnerabilities. Best for external assessments.

White box: Testers receive full documentation: source code, architecture diagrams, credentials, network maps. Deepest coverage. Best for thorough application and code-level testing.

Grey box: Testers receive some information (user credentials, API documentation) but not complete internal access. Balances realism with depth. Most common approach.

For a detailed comparison, see our black box vs white box checklist.

Production vs Staging: Where to Test

Testing in Production

Pros: Tests the real environment with real configurations. Validates actual defenses. Most realistic results.

Cons: Risk of disrupting live services. Requires careful handling of customer data. Needs tighter rules of engagement.

When to use: External infrastructure testing. Network penetration testing. When staging doesn't accurately represent production.

Testing in Staging

Pros: No risk to production services. Testers can be more aggressive. No customer data concerns.

Cons: Configuration differences between staging and production mean some findings may not apply (or production-only issues are missed).

When to use: Web application testing with destructive test cases. Load-sensitive applications. When production testing is too risky.

Best practice: Test applications in staging and infrastructure in production. Validate critical findings against production before reporting.

Common Scoping Mistakes

Mistake 1: Scoping by Budget Instead of Risk

"We have $30,000. Test whatever you can." This produces unfocused testing where the provider guesses what's important. Instead: identify your highest-risk assets first, scope testing to cover them, and adjust depth to fit budget.

Mistake 2: Excluding APIs

The web application is in scope but the APIs it calls are not. Modern applications are API-driven. Testing the frontend without the API layer misses the majority of the attack surface.

Mistake 3: Testing Only External

External penetration testing validates the perimeter. Internal penetration testing validates what happens after an attacker gets in (phishing, compromised credentials, insider threat). Both perspectives are needed.

Mistake 4: Forgetting Third-Party Integrations

Payment gateways, SSO providers, cloud services, and SaaS integrations expand your attack surface. Define whether third-party touchpoints are in scope.

Mistake 5: No Test Accounts

Providing testers without authenticated access limits testing to unauthenticated vulnerabilities. Most critical findings (IDOR, privilege escalation, business logic flaws) require authenticated access at multiple role levels.

Mistake 6: Scope Creep During Engagement

Starting with "test the web app" and adding "also check the mobile app and the cloud infrastructure" mid-engagement without adjusting timeline or budget. Define scope before engagement starts and manage changes through a formal change process.

Mistake 7: Not Aligning Scope with Compliance Boundaries

Your penetration testing scope must align with your compliance scope. If your PCI DSS CDE includes systems A, B, and C, but your pentest only covers A and B, the auditor will flag it. Map scopes explicitly.

Writing the Scoping Document

What to Include

Organization context. What does the organization do? What data does it handle? What compliance frameworks apply?

Testing objectives. What are you trying to learn? Validate defenses before a product launch? Satisfy compliance requirements? Test a specific area of concern?

In-scope assets. Specific URLs, IP ranges, API endpoints, cloud accounts, applications, and networks.

Out-of-scope assets. Systems, networks, or functionality explicitly excluded. Third-party systems you don't own. Production systems that cannot tolerate testing load.

Testing approach. Black box, white box, or grey box. What information will be provided to testers?

Environment. Production, staging, or dedicated test environment. Data handling restrictions.

Access and credentials. Test accounts at each role level. VPN access for internal testing. API keys or tokens.

Schedule. Testing window. Blackout dates. Notification requirements.

Rules of engagement. What testers can and cannot do. Social engineering permitted? Denial-of-service testing? Data exfiltration (simulated vs actual)?

Compliance mapping. Which framework requirements this testing must satisfy. See our compliance guide.

Deliverables expected. Report format. Executive summary requirement. Compliance mapping. Retesting. See our reports guide.

Writing the RFP

If issuing an RFP to multiple providers, include scope as defined above plus provider qualification requirements (CREST certification, industry experience, tester certifications). See our how to choose a penetration testing company guide for evaluation criteria. Our penetration testing companies guide covers what to look for.

Scoping for Different Organization Types

SaaS Companies

Scope should cover the customer-facing SaaS application, the API layer (often the largest attack surface), cloud infrastructure hosting the application, and authentication/SSO implementation. Compliance drivers: SOC 2, ISO 27001, GDPR. See our SaaS penetration testing guide.

Financial Services

Scope must cover payment processing systems (PCI DSS CDE), online banking applications, mobile banking apps, internal network infrastructure, and third-party integration points. Compliance drivers: PCI DSS, SOC 2, NYDFS. See our financial services testing criteria.

Healthcare

Scope must cover patient-facing portals, EHR systems, ePHI storage and transmission, medical device integrations, and cloud infrastructure hosting health data. Compliance drivers: HIPAA, HITRUST, SOC 2. See our healthcare penetration testing guide.

Startups

Start with the customer-facing application and its API layer. Expand to cloud infrastructure as the environment grows. Prioritize the product that generates revenue. See penetration testing for startups.

VAPT Scoping: Combining Assessment and Testing

Many engagements combine vulnerability assessment and penetration testing (VAPT). The scope for VAPT includes both the broad scanning scope (all systems for vulnerability assessment) and the focused testing scope (critical systems for manual penetration testing).

The VAPT process uses vulnerability assessment breadth to inform penetration testing depth. For choosing providers, see our VAPT provider selection guide.

Complete Penetration Testing Scoping Checklist

Pre-Scoping

  • Business risk assessment completed (what data, what impact)
  • Compliance requirements identified (which frameworks, which scope rules)
  • Previous testing results reviewed
  • Architecture documentation gathered
  • Budget and timeline defined

Asset Definition

  • Web applications listed with URLs
  • API endpoints enumerated or discovery is in scope
  • Cloud accounts and resources identified
  • Network IP ranges defined (external and internal)
  • Mobile applications identified (platform, version)
  • AI systems identified (models, tools, pipelines)
  • IoT/OT devices identified
  • Third-party integrations listed (in/out of scope)

Access and Environment

  • Test accounts provisioned at each role level
  • API credentials or documentation provided
  • VPN access provisioned (for internal testing)
  • Testing environment confirmed (production/staging)
  • Data handling restrictions documented
  • Cloud provider notification requirements met

Engagement Parameters

  • Testing approach defined (black/white/grey box)
  • Testing window scheduled
  • Rules of engagement documented
  • Out-of-scope exclusions explicitly listed
  • Escalation contacts identified
  • Emergency stop procedures defined

Deliverables

  • Report format agreed
  • Compliance mapping requirements defined
  • Retesting scope and timeline agreed
  • Debriefing session scheduled
  • Remediation support expectations documented

How AppSecure Supports Scoping

AppSecure provides scoping guidance as part of every engagement, ensuring your testing budget delivers maximum security value.

Risk-Based Scoping. We help you identify which systems carry the highest risk and should receive the deepest testing, based on data sensitivity, business criticality, and threat exposure.

Compliance-Aligned Scope. Scope definitions mapped to your compliance boundaries: PCI DSS CDE, SOC 2 system boundary, ISO 27001 ISMS, HIPAA ePHI systems.

Comprehensive Testing Types. Web application, API, cloud, network, mobile, IoT, and AI. Application security assessment and offensive security testing for end-to-end coverage.

Manual testing depth where it matters. Zero false positives. 3-Week delivery. 90-day support. Complimentary retesting. Continuous testing and PTaaS for ongoing validation.

Contact AppSecure:

Frequently Asked Questions

1. What is penetration testing scope?

Penetration testing scope defines which systems, applications, networks, and cloud environments will be tested, what testing approach will be used (black box, white box, grey box), what the rules of engagement are (what testers can and cannot do), and what the testing objectives are (vulnerability discovery, compliance validation, specific threat scenarios). Proper scoping ensures testing covers the right assets at the right depth to address your actual risk.

2. How do I determine what to include in scope?

Start with four inputs: business risk (which systems hold the most sensitive data), compliance requirements (which systems fall within regulatory scope), architecture (your complete technology footprint), and previous testing results (where gaps remain). Prioritize systems by data sensitivity and business criticality. Internet-facing applications handling customer data should almost always be the first priority.

3. Should I test in production or staging?

Test applications in staging when destructive test cases are needed and when production disruption risk is unacceptable. Test infrastructure in production because configuration differences between staging and production can hide real vulnerabilities. Validate critical application findings against production before final reporting. Most organizations use staging for web application testing and production for network and external testing.

4. What is the most common scoping mistake?

Excluding APIs from web application testing scope. Modern applications are API-driven. The web frontend is a thin client calling backend APIs where the real business logic, data access, and authorization decisions happen. Testing the frontend without API coverage misses the majority of the attack surface. Always include the API layer when scoping web application penetration testing.

5. How does compliance affect scope?

Each compliance framework defines what must be tested. PCI DSS requires testing the cardholder data environment and connected systems. SOC 2 covers the trust service boundary. ISO 27001 covers the ISMS scope. HIPAA covers ePHI systems. Your pentest scope must align with or exceed your compliance scope. Misalignment creates audit findings. Always map compliance boundaries before finalizing pentest scope.

6. What access should I provide to testers?

Provide test accounts at every user role level the application supports (unauthenticated, regular user, admin, different role types). Provide API documentation and credentials. Provide VPN access for internal testing. Provide architecture documentation for white box engagements. Withholding access limits testing depth: most critical vulnerabilities (IDOR, privilege escalation, business logic flaws) require authenticated testing at multiple role levels.

7. How do I scope a multi-framework compliance engagement?

Map each framework's scope to your systems. Identify the superset (all systems in scope for any framework). Define the pentest scope as this superset. The testing methodology should satisfy the most prescriptive framework (typically PCI DSS). The report should map findings to each framework separately. This approach satisfies all frameworks through a single engagement.

8. Should third-party integrations be in scope?

Include the integration points (how your application connects to third parties), but typically exclude the third-party system itself (you don't own it and testing it without authorization is prohibited). Test authentication and authorization at integration boundaries. Test data handling between systems. Test whether third-party failures create vulnerabilities in your application.

9. How often should scope be re-evaluated?

Re-evaluate scope annually at minimum, before each testing engagement. After adding new applications or infrastructure. After cloud migrations. After significant architecture changes. After compliance scope changes (new systems entering the regulated environment). Scope should evolve with your environment. Last year's scope may miss this year's critical additions.

10. What should a penetration testing RFP include?

Include organization context, testing objectives, in-scope assets with specifics (URLs, IP ranges, cloud accounts), out-of-scope exclusions, testing approach preference (black/white/grey box), environment (production/staging), compliance requirements, desired deliverables, timeline, and provider qualification requirements (CREST certification, industry experience). Specific scope details help providers deliver accurate proposals and avoid mid-engagement scope disputes.

Tejas K. Dhokane

Tejas K. Dhokane is a marketing associate at AppSecure Security, driving initiatives across strategy, communication, and brand positioning. He works closely with security and engineering teams to translate technical depth into clear value propositions, build campaigns that resonate with CISOs and risk leaders, and strengthen AppSecure’s presence across digital channels. His work spans content, GTM, messaging architecture, and narrative development supporting AppSecure’s mission to bring disciplined, expert-led security testing to global enterprises.

Protect Your Business with Hacker-Focused Approach.

Loved & trusted by Security Conscious Companies across the world.
Stats

The Most Trusted Name In Security

450+
Companies Secured
7.5M $
Bounties Saved
4800+
Applications Secured
168K+
Bugs Identified
Accreditations We Have Earned

Protect Your Business with Hacker-Focused Approach.