Penetration Testing

How to Scope Your First Penetration Test

Learn how to scope a pentest correctly. Covers scope types, common scoping mistakes, grey-box vs black-box, and how to decide what to test first.

AK
Ashok Kamat
Cybersecify
10 min read

To scope a pentest, identify each distinct target (web app, API, mobile app, cloud environment) as a separate scope, define what is off limits, and choose grey-box testing for the best cost to coverage ratio. Most SaaS startups should start with one scope covering their main web application or API.

Your first pentest engagement starts with a question that sounds simple: “What do you want us to test?”

If you answer wrong, you either pay for coverage you don’t need or miss the systems where your real risk lives. Scoping is the most important decision in a pentest engagement. Get it right, and the tester spends every hour on the systems that matter. Get it wrong, and you get a report full of findings on things nobody attacks while your actual attack surface goes untested.

Here is how to scope your first pentest without wasting time or money.

What “Scope” Actually Means

In penetration testing, scope defines three things:

1. The target: What systems, applications, or infrastructure will be tested. Each distinct target is typically counted as one “scope.” A web application is one scope. An API is one scope. A mobile app is one scope. A cloud environment (AWS, GCP, Azure) is one scope. If you are not certain what is actually exposed to the internet, a free external attack surface scan lists your live subdomains and services so you scope from a real inventory instead of memory.

2. The boundaries: What is explicitly off-limits. Production databases with real customer data? Third-party integrations you don’t own? Payment processors? These are usually excluded from testing to avoid disruption.

3. The rules of engagement: Testing hours, communication protocols, escalation contacts, and whether the engagement is black-box, grey-box, or white-box.

Your pentest firm should document all of this in a formal scope agreement before any testing begins. If they start testing without a signed scope document, that’s a red flag.

Types of Scope

Each scope type targets a different part of your technology stack. Understanding what each covers helps you prioritize.

Scope TypeWhat Gets TestedTypical TimelineBest For
Web ApplicationAuthentication, authorization, session management, input validation, business logic, OWASP Top 105 business days (single app)SaaS products, customer portals, admin panels
APIREST/GraphQL endpoints, authentication, authorization between endpoints, rate limiting, data exposure, OWASP API Security Top 105 business daysAPI-first products, mobile backends, integrations
Mobile ApplicationLocal storage, certificate pinning, reverse engineering, runtime manipulation, backend API calls7-10 days (per platform)Consumer apps, B2B apps with sensitive data
Cloud SecurityIAM policies, storage permissions, network segmentation, logging, infrastructure-as-code review7-10 daysAWS/GCP/Azure hosted products
Network / InfrastructureExternal perimeter, internal network segmentation, firewall rules, exposed services5-7 daysCompanies with on-premise or hybrid infrastructure

Important: Each row in this table is a separate scope. If you need a web application pentest and an API pentest, that is two scopes, not one.

Common Scoping Mistakes Startups Make

Mistake 1: Testing everything at once

You have a web app, a mobile app, three APIs, and a cloud environment. Your instinct is to test all of it in one engagement. The problem: a tester splitting time across five targets goes shallow on all of them instead of deep on the ones that matter.

Better approach: Start with the system that handles the most sensitive data or faces the most external exposure. For most SaaS startups, this is the web application or the primary API.

Mistake 2: Forgetting the API

Your web app has a React frontend that talks to a backend API. You scope the pentest for “the web application.” The tester tests the frontend. But the API has its own authentication, its own authorization logic, and its own set of endpoints that the frontend doesn’t even use (internal admin endpoints, webhook receivers, batch processing endpoints).

If the API isn’t explicitly in scope, those endpoints go untested. And API endpoints are where most serious vulnerabilities live: BOLA, broken authentication, excessive data exposure.

Better approach: Ask your pentest firm whether the API and web app are one scope or two. If the API has its own authentication and can be tested independently, it’s a separate scope.

Mistake 3: Scoping too narrow to save money

You scope the pentest for just the login page and the payment flow because those feel like the highest-risk areas. The tester finds a few issues there. Meanwhile, the user profile endpoint has an IDOR that exposes every customer’s personal data, but it wasn’t in scope.

Better approach: Scope the entire application, not individual features. The tester should be able to follow attack chains across the full application, the same way a real attacker would. Restricting scope to specific pages defeats the purpose.

Mistake 4: Scoping too broad without budget to match

You include your web app, API, mobile app, cloud infrastructure, and internal network in one engagement for ₹75,000. The tester has 5 business days to cover everything. They spend one day on each target and miss the business logic flaws that take 3 to 4 days of focused testing to find.

Better approach: Match scope to budget. A single-scope engagement with 5 business days of focused testing finds more real vulnerabilities than a five-scope engagement with one day each.

Mistake 5: Not including staging/test credentials

You want a black-box test because “that’s how real attackers work.” True. But a real attacker has months. Your pentester has 5 business days. If the tester spends two of those days figuring out how to create an account and work through basic workflows, that’s two days not spent on finding authorization bypasses and business logic flaws.

Better approach: Provide test credentials for each user role (regular user, admin, read-only, etc.) and basic API documentation. This is grey-box testing, and it’s the most cost-effective approach for SaaS startups.

How to Decide What to Test First

If budget forces you to choose one scope for your first pentest, use this decision framework:

Test the web application first if:

  • It’s your primary product and handles customer data
  • Enterprise buyers or auditors are asking for a pentest report
  • You haven’t had any security testing done before

Test the API first if:

  • Your product is API-first (mobile app frontend, third-party integrations)
  • Your API is publicly documented or accessible without authentication
  • You have different authentication mechanisms for the API vs the web app

Test the cloud environment first if:

  • You recently migrated to AWS/GCP/Azure and haven’t reviewed IAM policies
  • You’ve had incidents related to storage exposure or misconfigured services
  • Your infrastructure team is small and hasn’t had external review

Test mobile first if:

  • Your app handles sensitive data locally (financial data, health records, authentication tokens)
  • Your app is consumer-facing with a large install base
  • You’re in a regulated industry (fintech, healthtech) where mobile security is audited

For most SaaS startups doing their first pentest, the answer is the web application. If you have a separate API (most modern SaaS products do), consider the Growth plan at ₹1,79,999 which covers two scopes with 10 business days of testing.

Grey-Box vs Black-Box vs White-Box

These terms describe how much information the tester starts with. The choice affects what the tester can find and how efficiently they find it.

ApproachWhat the Tester GetsProsConsBest For
Black-boxNothing. No credentials, no documentation, no source code.Simulates external attacker perspectiveTester wastes time on reconnaissance that could be spent on deeper testingExternal perimeter testing, network pentests
Grey-boxUser credentials for each role, API documentation, application architecture overviewMaximizes time spent on real vulnerability discoveryRequires some preparation from your teamWeb app and API pentests (most common)
White-boxEverything: source code, architecture diagrams, database schemas, deployment configsDeepest coverage, finds issues in code that may not be exploitable yetMost expensive, requires more tester timeHigh-security applications, pre-release audits

Our recommendation for startups: Grey-box. Provide the tester with test accounts for each user role and your API documentation. This lets them skip the setup phase and spend 100% of testing time on finding real vulnerabilities in your application logic.

Questions Your Pentest Firm Should Ask During Scoping

A good pentest firm asks detailed scoping questions before quoting. If a firm quotes you without asking these questions, they’re guessing at scope, and the engagement will either be too shallow or too expensive.

About your application:

  • What does the application do? What industry are you in?
  • How many user roles exist (admin, regular user, read-only, API consumer)?
  • How does authentication work (username/password, SSO, OAuth, API keys)?
  • Is the frontend a single-page app that talks to a backend API?
  • Are there separate environments (staging, production)? Which should we test?

About integrations:

  • Do you integrate with third-party services (payment processors, identity providers, cloud storage)?
  • Which integrations are in scope and which are off-limits?
  • Are there webhook endpoints or background processing jobs?

About infrastructure:

  • Where is the application hosted (AWS, GCP, Azure, on-premise)?
  • Is the cloud environment in scope or just the application layer?
  • Are there any IP restrictions or WAF rules we should know about?

About compliance:

  • Are you pursuing SOC 2 or ISO 27001? (This affects report format and compliance mapping.)
  • Does your auditor have specific requirements for the pentest report?
  • Do you need the report formatted for a specific audience (investor, customer, regulator)?

About logistics:

  • What is the preferred testing window?
  • Who is the escalation contact if we find a critical issue during testing?
  • Do you need a retest after remediation?

Putting It Together: A Scoping Example

Here’s a typical scoping conversation for a Series A SaaS startup:

The product: A B2B SaaS platform with a React frontend, a REST API backend, and an admin dashboard. Hosted on AWS. 50 enterprise customers. Pursuing SOC 2 Type 1.

The decision: The web application and API share the same backend but have different authentication (session-based for the web app, API keys for the API). The admin dashboard is a separate React app with its own routes.

The scope: Two scopes. Scope 1: the customer-facing web application and its API (same backend, tested together). Scope 2: the admin dashboard and admin API endpoints. This maps to the Growth plan: 2 scopes, 10 business days, ₹1,79,999, with SOC 2 + ISO 27001 audit prep evidence included.

Grey-box setup: The startup provides test accounts for three roles (regular user, team admin, super admin), API documentation via Swagger, and access to a staging environment.

Boundaries: Third-party integrations (Stripe, Auth0) are out of scope. AWS infrastructure review is saved for a separate cloud pentest engagement next quarter.

Next Steps

If you’re planning your first pentest, here’s the path:

  1. List your targets. Web app, API, mobile app, cloud, network. Each is a potential scope.
  2. Prioritize by risk. Which system handles the most sensitive data or has the most external exposure?
  3. Choose one or two scopes. Match to budget. Deep testing on fewer scopes beats shallow testing on many.
  4. Prepare grey-box materials. Test credentials for each role, API documentation, architecture overview.
  5. Talk to your pentest firm. If they don’t ask the questions listed above, find a firm that does.

For a single-scope engagement, our Startup plan covers one target with 5 business days of testing at ₹74,999, including a full manual retest within one month of the v1.0 report. For two scopes, the Growth plan at ₹1,79,999 adds a second scope, 10 business days of testing, and SOC 2 + ISO 27001 audit prep evidence.

Not sure what scope you need? Book a free 30-min discovery call with the founders. We will assess your current posture and help you decide where a pentest delivers the most value.

For more on the testing process itself, read Penetration Testing 101 or see the difference between API pentests and web app pentests.

See our service pages for scope-specific details: web application pentest, API pentest, cloud pentest, Android application pentest, iOS application pentest, and internal network pentest for the network and infrastructure scope.

Want to see what you actually receive? Our sample penetration test report is published in full, no email gate: finding format, severity ratings, reproduction steps, and the retest that closes each finding as remediated.

Frequently Asked Questions

What does pentest scope mean?

Scope is the written definition of what will be tested, what is off limits, and the rules everyone follows while testing runs. Each distinct target counts as one scope: a web application is one, an API with its own authentication is one, each mobile platform is one, a cloud environment is one. The boundaries matter as much as the targets. Third party services you do not own, production data you cannot risk, and payment processors are normally excluded in writing. The rules of engagement cover testing hours, who gets called if a Critical issue is found mid test, whether denial of service testing is permitted, and whether the engagement is black box, grey box or white box. All of this belongs in a signed scope document before any traffic reaches your systems. A firm willing to start testing without one is also a firm that will argue about coverage afterwards.

How many scopes do I need?

Most SaaS startups need one or two. Start with the system that holds customer data and faces the internet, which is usually the main web application. Whether the API is a second scope comes down to one question: does it have its own authentication, and can it be tested independently of the frontend? If your React app talks to a backend that also serves mobile clients, partners or webhooks, then yes, it is a separate scope, and those non browser endpoints are usually where the serious findings are. Mobile counts as one scope per platform, and cloud is its own scope with its own method. Our Startup Pentest covers one scope in 5 business days at INR 74,999, and the Growth Pentest covers two scopes in 10 business days at INR 1,79,999. Three or four scopes run as parallel batches and finish in 15 business days. Five or more gets a custom scoping proposal rather than a stretched plan.

What is grey-box vs black-box testing?

Black box gives the tester nothing: no credentials, no documentation, no architecture. Grey box gives working test accounts for every role plus API documentation. White box adds source code. Grey box is the right default for a SaaS startup, for a simple reason of arithmetic. A real attacker has months; your tester has five business days. Every hour spent registering an account, working out how onboarding behaves and guessing at roles is an hour not spent testing authorisation between those roles. Black box has a legitimate place in external perimeter and network testing, where the question genuinely is what an outsider can reach. White box suits pre release audits and high assurance applications where you want issues found in code even when they are not yet exploitable. For a customer facing SaaS product being tested for the first time, grey box finds more real issues per rupee than either alternative.

What do we need to prepare before testing starts?

Five things, and having them ready on day one is the biggest single difference between a smooth engagement and a wasted first day. One: working credentials for every user role, including at least two separate accounts at the same privilege level so authorisation between accounts can be tested. Two: the environment URL plus any IP allowlisting or WAF rules that need adjusting, so the tester is not silently blocked. Three: API documentation, a Postman collection or an OpenAPI spec if you have one. Four: a named technical contact reachable during the testing window, and an agreed escalation path if a Critical issue is found mid test. Five: written confirmation of what is out of scope, typically third party integrations and anything you do not own. If workflows like payments or approvals need test data to exercise, seed it before kickoff rather than during.

What causes a pentest scope to grow in the middle of an engagement?

Almost always something that was invisible at scoping time. The common ones, roughly in order: an admin panel or internal dashboard on a separate subdomain that nobody mentioned, API endpoints that exist for mobile clients or partners but are missing from the documentation the tester was given, a second authentication path such as SSO alongside password login, and an environment that turns out to be a different deployment from the one described. None of this is bad faith. These are the parts of a system that live in one engineer's head. You can prevent most of it by walking the tester through the product live before the scope is signed, and by listing every hostname you own that serves the application. When something genuinely new appears mid engagement, the honest options are to add it as a scope with the days it needs, or to record it as untested in the report so nobody mistakes silence for coverage.

Should we test staging or production?

Test the environment closest to what your customers use, which for most SaaS products means production with a dedicated test tenant. Staging is safer, but it is only useful when it is a genuine mirror: same code version, same configuration, same authentication providers, same infrastructure. In practice staging drifts, and findings from a drifted environment are worth little to an auditor or an enterprise reviewer who wants evidence about the live system. If you do test production, control the risk rather than avoid the environment. Use dedicated test accounts, agree a testing window, exclude destructive actions, tell whoever watches your alerting so the traffic is not handled as an incident, and keep a technical contact reachable. Auditors are explicit on this point: a pentest of staging when production is inside the audit boundary is a gap they will raise.

How far in advance should we book a pentest?

Work backwards from the date somebody else is holding you to. Testing is 5 business days for one scope and 10 for two, with the report following shortly after. What people forget is the part after the report. Your engineers need time to fix the Critical and High findings, and the retest has to happen before whoever asked for the report reads it. Allow six to eight weeks end to end from kickoff to a clean, retested evidence package. If the deadline is a SOC 2 or ISO 27001 audit, count backwards from the audit date rather than the report date, because an auditor reading open Critical findings records a deficiency. If the deadline is an enterprise customer's security review, the same arithmetic applies with less forgiveness, since the deal usually waits on the answer. Booking two weeks out is possible, and it removes all room to remediate.

Does an application pentest cover our AWS or GCP account?

No, unless you scope it separately. An application pentest looks at the product from the outside in: authentication, authorisation, session handling, input validation, business logic and the API surface. A cloud pentest is a different exercise with a different method, usually starting from read access to your account and examining IAM policies and role trust relationships, storage permissions, network segmentation, secrets handling and logging coverage. The two find different failures, and a misconfigured IAM role will not surface in an application test however thorough it is. For a first engagement most SaaS teams should test the application, because that is what the customer, investor or auditor asked about. Add cloud as a second scope once your infrastructure has grown past the point where one person holds it all in their head, or when an auditor asks specifically about infrastructure controls.

Security questions, worries, or not sure what to use?

Cybersecify is a founder-led penetration testing firm for AI and SaaS startups. Tell us what you are weighing and we will give you a straight answer. Ask the team or book a free 30-minute call.

Share this article
pentest scopepenetration testing scopehow to scope a pentestpentest planningsecurity assessmentpentest cost India

Spotted something wrong on this page? Facts change and we get things wrong. Tell us and we will check it. We publish corrections on the page rather than editing quietly.