Web application penetration testing scope and rules of engagement

A web application penetration test is only as useful as its scope. This page explains what the rules of engagement should record, which viewpoints to choose and what the guides treat as in or out of bounds.

On this page

Web application penetration testing scope starts with the question your auditor or customer will ask

Scope and rules of engagement decide what a web application penetration test can actually find, and what the resulting report can prove to an auditor or customer. When a compliance framework, a customer security review, a launch or an insurer asks for a web application test, the first task is to define which applications, roles, flows and environments the test covers. A vague scope produces a weak test because the tester cannot reach the places where the risk sits, such as a second user's data behind an object identifier, a discount rule in a checkout workflow or a payment page script that changes after release. Scope decides which risks are tested at all.

The risk categories that scoping must address are well established. In the OWASP Top 10 2025, A01 Broken Access Control and A07 Authentication Failures need test accounts at each privilege level, because a tester who only sees the public site cannot check whether one user can read another user's records. A05 Injection and A06 Insecure Design map to input validation and business logic categories in the OWASP Web Security Testing Guide (WSTG), so the scope should name which of those categories apply. For payment pages, the scope must state whether checkout scripts, headers and third-party components are in bounds, since those are the controls that PCI DSS requirements 6.4.3 and 11.6.1 single out. Confirm with your own team which categories and roles apply before the quote is requested.

Scope is also evidence. The OWASP Application Security Verification Standard (ASVS) 5.0.0 says an ASVS verification report should record the scope, summarize the requirements checked and note any requirements that do not apply, while a traditional penetration test report lists issues by exception. An auditor reading a report with no recorded scope cannot tell whether a silent area was tested, excluded or never considered. Ask the provider to state in the rules of engagement which applications, versions, roles and out-of-bounds actions were agreed, and to keep that document with the final report so the scope can be defended later.

How the scoping phase works before any testing starts

The scoping sequence turns a request for a web application test into written rules that the client approves before a tester sends a single request. NIST SP 800-115 places this work in planning, and each step below produces a record that the final rules of engagement depend on.

  1. Define the purpose and business goals

    The client states why the test is being commissioned, such as a compliance requirement, a customer security review, a pre-launch check or a change to authentication. The provider then restates the goals in its own words and confirms what a useful result looks like for the auditor, customer or internal owner who will read the report. Done when both parties sign off on a one-paragraph purpose statement that will open the rules of engagement.

  2. Identify the targets and their owners

    The team lists the applications, hostnames, APIs and user roles in scope, and names an owner for each target who can answer questions and approve changes. The client supplies an inventory or architecture view, and the provider flags anything that appears to be missing, such as a legacy portal or a third-party component the team did not expect. Done when every target has a named owner and a stated boundary.

  3. Agree the testing viewpoint and access level

    Both parties decide whether testing runs from outside the perimeter, which is typical for internet-facing applications, and whether testers receive no credentials, standard user accounts, privileged accounts or source code. The choice of overt or covert testing is recorded here, as is the level of knowledge the tester starts with. Done when the access model is written down, because it determines which WSTG categories and which business logic checks can be covered.

  4. Set environments, test accounts and schedule

    The client confirms whether testing runs against production, a staging copy or a dedicated test environment, and whether the data in it is real customer data. Test accounts, seed data, and any mail, payment or SMS sandbox integrations are listed. The schedule records allowed testing hours, which NIST SP 800-115 suggests should avoid peak business periods for operational systems. Done when the environment and account list is complete and the operations contact has confirmed the windows.

  5. Record exclusions and limits of testing

    The team lists what is out of bounds, such as denial-of-service testing, third-party hosted services the client does not control, data destruction, social engineering or specific business flows that carry financial risk. Assumptions and limitations are written alongside, including what automated tools cannot verify. Done when the exclusions are specific enough that a tester could apply them without asking, and the client has reviewed them against its own dependencies.

  6. Write and sign the rules of engagement

    The provider drafts the rules of engagement from the NIST SP 800-115 template, covering purpose, scope, assumptions, risks, logistics, communication, incident handling, the tools that will be used and how tester traffic can be told apart from attacker traffic. The client's authorized signatory approves it in writing. Done when the signed document exists, the emergency contacts are current, and both parties hold the same version.

  7. Confirm the scope before testing begins

    Before the test window opens, the provider walks the client through the signed rules and confirms the WSTG categories it will cover and how the ASVS level was chosen. Any change is handled as a written amendment rather than an informal message. Done when the kickoff record shows the scope, contacts and start date agreed, and the client confirms in writing that no further scope changes are expected.

  8. Hand over to testing, reporting and retest

    Once testing is complete, the report follows the scope so the reader can see what was checked, what was excluded and what was found. The client's retest is scoped against the same rules, so retesting covers the agreed targets. Ask the provider to confirm the phase timing and how long each phase is expected to take, since this sequence does not fix durations. Done when the report is delivered against the signed scope and a retest date is agreed.

What the rules of engagement should record for a web application test

A web application test is only as useful as the boundaries agreed before the first request is sent. The cards below cover the decisions a rules of engagement document should record, from the actions allowed to the way the client separates tester traffic from its own.

Test boundaries as actions and outcomes

NIST SP 800-115 frames the scope section in terms of permitted actions and the outcomes each action should produce, not only a list of addresses. For a web application, write down whether testers may submit forms, upload files, change account settings, trigger email or payment notifications, or attempt password resets against live users. Ask the provider to restate each permitted action and its expected result so both sides agree on what a successful test looks like.

NIST SP 800-115

Hosts, domains and versions in scope

List every hostname, subdomain, path prefix and application version that falls inside the test. Include staging or pre-production copies only if they run the same code and data handling as production, and say so explicitly. Record third-party components the application calls, such as payment processors, identity providers and content delivery networks, and mark them as out of bounds unless the owner has approved testing. Ambiguous wildcards like *.example.com cause the most disputes later.

Authenticated and unauthenticated roles

Name each role the tester will use, such as anonymous visitor, standard customer, administrator and support agent, and state what each role may do. Provide dedicated test accounts with realistic data sets that can be reset after testing. Authenticated coverage matters for access control and business logic, which unauthenticated testing rarely reaches. Confirm who issues the accounts, how multifactor prompts are handled during the test, and whether the tester may create or delete accounts.

WSTG categories selected

The OWASP Web Security Testing Guide v4.2 groups its test scenarios into categories such as information gathering, identity management, authorization, session management and business logic. The rules of engagement should list which categories apply and which do not, with a short reason for each exclusion. An unlisted category is a coverage gap the client may not notice until a finding is missed. Tie the selected categories to the ASVS level and the OWASP Top 10 2025 classes the client needs to evidence.

WSTG v4.2

Testing viewpoint and knowledge level

Record whether testing starts from outside the perimeter or from inside the client's network, and whether it is overt, with the knowledge of the IT and security teams, or covert. NIST SP 800-115 notes that each choice changes what the test covers. For most web application tests the viewpoint is external and overt, but the document should say whether source code, architecture diagrams or API specifications are provided, since that changes the test from black box to documentation-led.

Tester traffic and tools named

The rules of engagement should name every tool and scanner the testers will use, including proxies, automated scanners and any custom scripts, with their versions where possible. It should also define a way to identify tester traffic, such as a fixed source IP range, a request header or a tagged test account, so the security operations team can tell it apart from real attacks. Agree in advance how the security operations centre will be told, and what happens if a test triggers a block or an outage.

Choosing external, internal, overt or covert testing for a web application

An external test starts outside the organization's perimeter, the way an internet user or attacker would reach a public web application or API. It is the usual starting point for a public-facing application because it answers what an outsider can reach, which hostnames respond, what the edge controls such as web application firewalls and load balancers allow, and whether error pages or headers reveal more than they should. What it cannot show is what happens once a user is inside the application. Internal paths, service-to-service calls and flaws that only appear behind a login may sit outside the test unless the scope adds them.

  • Reachable surface: Coverage is limited to hosts and paths the tester can see from outside, so the inventory of subdomains and APIs must be agreed in writing.
  • Edge controls: Results reflect the protections in front of the application, which may differ from the application itself.
  • Authentication gap: Without credentials, authorization between roles usually goes untested.
  • Environment match: Confirm whether the target is production, a staging copy or a pre-production build with the same configuration.
  • Source of truth: Ask the provider how they will confirm the tested hosts match the organization's asset list.

Check whether the external viewpoint is paired with an authenticated test before you treat its findings as complete coverage.

Which parts of the target are in bounds and which are off limits

The most useful decision in this section is whether the test runs against production, staging or a copy of both, and the rules of engagement should say so explicitly. NIST SP 800-115 treats the planning phase as the point where rules are identified and documented before any testing occurs, and its template asks for test boundaries expressed as actions and expected outcomes. For a web application, that means naming the hostnames, environments and roles in scope, stating whether state-changing actions such as payments, password resets and record deletion may be exercised, and recording who can approve a change to those limits mid-test. A staging environment that does not share data stores, message queues or payment sandboxes with production is a different target, and the reader should not assume the findings transfer.

Third parties need their own line in the scope. Payment processors, identity providers, email and SMS gateways, analytics scripts and hosted checkout pages are usually not owned by the client, and their testing rules are set by the vendor, not by the client or the tester. Shared multi-tenant infrastructure has the same problem: testing one tenant can touch another. Resource exhaustion deserves special care, since the OWASP API Security Top 10 2023 lists unrestricted resource consumption as API4, and load-style or denial-of-service activity may be excluded entirely or limited to agreed rate thresholds. For each exclusion, write the reason beside it (for example, "payment processor sandbox is governed by the processor's testing terms, confirmed in writing before the test"), and confirm the provider's and third parties' rules directly rather than assuming they permit web application testing.

Data integrity and timing close the section. Records that feed regulatory reporting, ledgers, audit logs and customer statements should be listed as data that must not be altered, with a test account and sandbox data used instead. Business-critical windows, such as month-end close, a card settlement run or a planned product launch, should be written into the test schedule with the hours when testing is forbidden. Ask the provider how it will stop, what triggers a stop and who is contacted when a test causes unexpected behavior. Confirm with the client's own change and incident teams that the schedule and contacts match what the tester has been given.

Which weakness categories the scope should name and why they matter

This table lists five weakness categories from the OWASP Top 10 2025 that a web application test scope should name explicitly, with the WSTG area that covers each one. Read each row as a prompt: if the application has the feature described, the scope should say so and state how deeply it will be tested.

Weakness categoryWhat it looks like in a web targetWhy the scope should name it
A01 Broken Access Control (WSTG authorization)Users reaching records or functions that belong to other roles or tenants, and admin paths reachable by ordinary accountsTesting needs more than one test account per role, so the scope must list roles, tenants and the authenticated coverage level
A05 Injection (WSTG input validation)User-supplied input reaching databases, operating system commands, templates or query languages without proper handlingInjection checks touch every input point, so the scope should list the input-heavy areas, file uploads and any third-party components in use
A07 Authentication Failures (WSTG identity and authentication)Weak login controls, flawed password reset, MFA bypass paths, and session tokens that persist or leakAuthentication testing depends on whether login is local, federated or delegated, so the scope should name the identity provider and any MFA or SSO flows
A06 Insecure Design (WSTG business logic)Workflows that can be completed out of order, price or quantity values trusted from the client, and abuse of sensitive functionsScanners cannot judge business rules, so the scope should name the critical workflows and the business owner who can confirm expected behavior
A02 Security Misconfiguration (WSTG configuration and deployment)Debug modes, default accounts, verbose error pages, exposed administrative interfaces and permissive security headersConfiguration checks depend on environment, so the scope should name which environments, hosts and cloud components are in bounds
Business flows that depend on the payment page (checkout and payment)Third-party scripts loaded on checkout pages, tampering with payment parameters, and changes to page headers or contentPayment-related requirements in PCI DSS make these flows a named scope item, so confirm with the assessor which flows must be covered

How scope differs for production, staging and multi-tenant applications

Testing a live production application puts real customer records, real sessions and real business transactions within reach of the tester. The rules of engagement therefore have to be more restrictive about what is exercised, when it is exercised and who must be told. The NIST rules of engagement template treats the test schedule as a scoping input, and for an operational site it points toward testing outside peak business periods. Scope terms should also state how the tester's traffic is told apart from genuine customer traffic, so that monitoring teams and any automated defenses do not treat the test as an attack or, worse, miss it.

  • Data exposure: Define whether testers may read, modify or delete live records, or whether testing is limited to synthetic accounts created for the engagement.
  • Transaction limits: Agree which state-changing actions are allowed, such as placing orders or sending messages, and which are excluded.
  • Timing and change control: Set test windows and a named contact who can halt testing at any time.
  • Traffic identification: Record the source addresses, test account identifiers or headers that let the security operations team separate test activity from attacks.
  • Incident handling: Describe what happens if a tester finds unexpected access to real customer data.

Before signing, confirm with the application owner whether a production test is acceptable at all, or whether a faithful pre-production copy is the better place for destructive checks.

Which frameworks expect a scoped web application test

Several frameworks and customer reviews ask for a web application test, but each defines the expected depth, the viewpoint and the evidence differently. Reading those expectations before drafting the scope document prevents a test that passes one review and fails another.

PCI DSS application-layer testing

Requirement 11.4.1 expects application-layer penetration testing that identifies, at a minimum, the vulnerabilities listed in requirement 6.2.4, including abuse or bypass of features through API manipulation and client-side functions. The scope document should name each payment-facing application, its APIs and the client-side components in play, so the tester can cover them. Separately, requirement 6.4.2 replaced the 6.4.1 review of public-facing applications from 31 March 2025 with an automated technical solution in front of those applications. Confirm with your assessor whether a web application test still satisfies your review obligations or whether it must sit alongside that control.

PCI DSS SAQ D

CIS Control 16.13 authenticated testing

Safeguard 16.13 asks for application penetration testing and, for critical applications, favors authenticated testing by testers acting as both authenticated and unauthenticated users. The scope should therefore record which roles and test accounts are provided, which user journeys must be exercised after login, and whether business logic is in scope. Code scanning and automated testing alone will not satisfy the expectation for business logic flaws. Ask the provider how each role is covered and how the test accounts will be created and removed.

CIS 16.13 specification

ASVS 5.0.0 verification reports

An ASVS verification report is a different artifact from a traditional penetration test report. OWASP's ASVS 5.0.0 guidance expects the report to state the scope, summarize all requirements checked, list requirements with exceptions and note those that do not apply. The scope must therefore name the target ASVS level (L1 to L3), the chapters in play such as V4 API and Web Service, V6 Authentication and V8 Authorization, and any requirements excluded with a reason. Agree in writing whether the tester will have documentation or source code, since ASVS encourages that hybrid approach.

ASVS 5.0.0 source

Customer security review requirements

Enterprise customers often require a web application test before signing, and their questionnaires ask for scope, date, tester and remediation status. Customers may also ask for test results that cover their own data paths or integrations. Before scoping, collect the customer's security questionnaire and any stated testing expectations, then decide whether the test must cover the customer-facing environment, a staging copy or both. Clarify with the customer whether they accept a summary or need the full report, since that affects what the provider delivers.

What your team prepares before the scope is signed

Before the scope is signed, your team needs to produce the inputs that the rules of engagement depend on. Name a technical contact who can answer questions during testing, a business owner who can approve scope changes, and an escalation path for the moment a tester finds something that looks like a live compromise or breaks a production function. Record how each person is reached outside working hours. The NIST template for rules of engagement expects the incident handling and communication sections to name these people, so vague ownership at this stage becomes delay later. Also confirm which IP addresses or source ranges the testers will use, so your security operations team can tell test traffic from a real attack, and agree whether any of it will be allowlisted or deliberately left to trigger monitoring.

Prepare test accounts for every role the application supports, such as anonymous visitor, standard customer, tenant administrator and support agent. Each account needs the permissions it would have in production, and you should confirm with the application owner whether the accounts can be created in a staging copy, whether they carry real personal data, and how they are removed afterward. Provide representative test data, including records owned by different test users so authorization can be checked across them, and ask whether any payment or messaging functions will call live third parties. Gather the current architecture notes, login and session design, and any API specifications or route lists you have. Testers can work from documentation, which the ASVS 5.0.0 guidance favors, but undocumented endpoints are often where authorization flaws sit, so say plainly if your inventory is incomplete.

Finally, get written approval from the owner of each system in scope, including hosting, identity and third-party components you do not control, and check whether a change freeze, release train or planned maintenance window overlaps the test dates. Ask your change board to log the test so that a deployment during testing does not look like a new finding or hide one. Confirm who may approve a pause, and who receives the findings if a tester reaches sensitive data. These decisions are not paperwork: they determine what the tester is allowed to touch on day one, and a signed scope that lacks them usually gets reopened mid-engagement.

How scope decisions flow from target to signed rules of engagement

The diagram starts with the target inventory, where the client lists applications, APIs, environments and third-party services. Each item is then marked in bounds or out of bounds, with third-party components such as payment providers and hosted identity services flagged as needing their own permission. The in-scope set drives the choice of viewpoint and tester role (unauthenticated, authenticated or grey box), which in turn sets the ASVS level and the WSTG categories that apply. Check that every exclusion has a stated reason before the rules of engagement are signed and testing begins.

Scope decisions move from target inventory to signed rules of engagement.

What to ask a provider about its scoping process before you sign

A scoping process shows how a provider will protect your systems and your people during the test. The cards below cover the documents, controls and approvals to request before you sign, so you can compare proposals on the same terms.

Written rules of engagement template

Ask for the provider's rules of engagement template before the quote is signed. NIST SP 800-115 treats the planning phase as the point where rules are identified, management approval is documented and testing goals are set. The template should cover scope boundaries described as actions and expected outcomes, test hours, named tools, escalation contacts and incident handling. Check that your own approver signs it, not only the provider.

NIST SP 800-115

Separating tester traffic from your own

Ask how the provider will identify its traffic so your security operations team can tell test activity from a real attack. The rules of engagement should name the source addresses, test accounts, user agents or request headers used, and say who receives alerts during the test. Confirm whether your monitoring team knows the test is running, since an overt test and a covert test cover different things.

Handling third-party components

Ask which parts of the application belong to a third party, such as a payment provider's hosted fields, a identity provider, a content delivery network or a SaaS API. Those components often sit outside your authority to approve testing. The scope should list them as in, out or limited, and name the vendor terms that apply. Ask what the provider will do if a finding lands in a component you do not own.

Mapping findings to WSTG and Top 10 IDs

Ask how each finding will be tagged. A useful provider maps findings to WSTG test IDs, OWASP Top 10 2025 categories and, for APIs, the API Security Top 10 2023. The scope should state which WSTG categories apply, so the coverage is visible before testing starts. Ask for a sample mapping from a past engagement with client details removed.

WSTG categories
12
WSTG v4.2

CREST OVS accreditation status

Ask whether the provider holds CREST's OWASP Verification Standard accreditation. CREST announced the scheme on 28 October 2022, and it assesses whether a testing organization can run ASVS web assessments at Levels 1 and 2. Confirm the accreditation on CREST's register rather than relying on a logo, and ask which ASVS level the accreditation covers. If the provider does not hold it, ask how it demonstrates ASVS competence.

CREST OVS announcement

Approving scope changes

Ask how a change to scope is requested, reviewed and recorded. Common triggers include a new endpoint discovered during testing, a host that turns out to be hosted by someone else, or a request to test production data. The contract should name who can approve a change, how it is written down, and whether testing pauses until approval is received. A dated change log in the final report is a good sign.

Questions buyers ask about web application test scope

How long does scoping a web application penetration test take?

Scoping length depends on how many applications, user roles and environments are involved, and no public figure exists for it, so confirm the timeline in writing with each provider before you sign. Scoping typically runs as a short planning exchange: you list the applications, versions, login systems and out-of-bounds areas, and the provider returns a written scope for review. NIST SP 800-115 places this work in a planning phase where rules are identified, approval is documented and goals are set, and no testing happens yet. Ask each provider how many review rounds are included and who signs off on the final scope.

What does a provider need from us to scope a web application test?

The provider needs an accurate inventory of what is being tested, who can log in to it and what must stay untouched. Prepare the list of applications and their base URLs, the environments (production, staging or a copy), the user roles and test accounts, any API documentation you already maintain, and the third-party services the application calls. Also name the business-critical flows, such as payments or account recovery, and the hours when testing will not disrupt operations. Gaps in this list are the most common reason scopes get revised after work starts.

Can our own team scope a web application test without outside help?

Yes, an internal team can draft the scope, but the provider should review it before anything is signed. The OWASP Web Security Testing Guide organizes testing into categories such as authentication, authorization and session management, so your team can mark which categories apply and which do not. ASVS 5.0.0 also asks for a record of requirements that do not apply, which helps an auditor see that the choice was deliberate. Internal drafts tend to miss third-party integrations, legacy endpoints and roles nobody currently uses, so ask the provider to check the draft against those specific areas.

How do we change the scope during a penetration test?

Scope changes should go through a written change request that the client and provider both approve before testing continues in the new area. Record the reason, the added or removed hosts, roles or categories, the effect on schedule and cost, and any new rules for that area, such as different testing hours or additional test accounts. Do not let testers widen the work informally, even if they find a related component during testing. If a finding suggests a neighboring system is exposed, the rules of engagement should state how that is reported and whether testing extends to it.

Is authenticated testing required for a web application penetration test?

Authenticated testing is not always required by a single rule, but it is the expected approach for critical applications. CIS Controls v8.1 Safeguard 16.13 says authenticated testing is better suited than automated scanning for finding business logic flaws, with testers acting as both authenticated and unauthenticated users. PCI DSS requirement 11.4.1 requires application-layer testing that covers business logic abuse, which generally needs logged-in roles to test properly. Unauthenticated testing alone covers the public surface, so most scopes for applications with user accounts include one test account per role, plus a clear statement of what each account may do.

What must a rules of engagement document include?

A rules of engagement document should record the purpose, scope, assumptions, risks, schedule, communication plan, authorized tools and incident handling. NIST SP 800-115 Appendix B provides a template with these sections. The scope section should define test boundaries by actions and expected outcomes, not only by host names. The schedule should state testing hours and blackout periods. The document should name the tools and source addresses the testers will use, and explain how the provider's traffic can be told apart from real attacker traffic. It should also name the contacts for stopping the test, the steps for reporting critical findings during the work and who signs the document for each side.

Which parts of a web application are usually out of bounds?

Areas that can cause harm to live data or third parties are usually excluded or tested only under strict conditions. Common examples are production payment processing that moves real money, third-party services the client does not control, denial-of-service testing, and data stores containing personal records outside the agreed sample. Confirm each exclusion in writing, and confirm what the provider will do if it discovers that an excluded component is reachable from an in-scope one.

How DeployOpen scopes, tests, reports and retests web applications

DeployOpen agrees the scope and rules of engagement in writing before any testing starts, then tests the application against the viewpoints and categories the written scope names. The findings report comes with fixes and a retest, so the evidence stays current as the application changes.

How we scope

  • We agree the applications, hosts, environments and user roles to be tested in a written scope before work begins.
  • The written scope names the testing viewpoints, authenticated roles and the test categories that apply to your application.
  • Rules of engagement record permitted tools, testing windows, contacts for incidents and how test traffic is told apart from your own.

How we build

  • Testing follows the OWASP Web Security Testing Guide, with each category in the agreed scope tested and recorded.
  • Where you provide documentation, test accounts or source code access, we use it to test business logic and access control that tools miss.
  • Testing covers the parts of the application agreed in scope, and anything out of bounds is recorded as a stated exclusion.

How we hand over

  • The report includes the scope, the method used, each finding with reproduction steps and the affected requirement or category.
  • Findings come with recommended fixes, and requirements that do not apply or were not tested are stated explicitly for your auditor.
  • Deliverables are fixed in the written scope, so you know which documents you receive and in what form before testing starts.

How we support

  • Retesting checks whether agreed findings are fixed, and its scope is set in writing like the original test.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer if the application changes between tests.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.