Join our Newsletter — 33% off our NHI Course

What do teams get wrong about the scope of a penetration test?

A common mistake is scoping only public websites or a narrow test environment and ignoring the real attack surface. Teams should define which IPs, domains, cloud assets, email accounts, user roles, and objectives are in scope, then state clear exclusions such as denial of service or physical intrusion. Good scoping makes the test more realistic and avoids wasted effort.

What Teams Commonly Miss When Defining the Test Boundary

Penetration tests become useful only when the boundary reflects how the environment is actually attacked, not how a project team prefers to describe it. The most common miss is treating scope as a checklist of visible assets, such as a single website or a staging subnet, while leaving out cloud services, exposed admin paths, email, external identity hooks, and third-party connections that materially change the attack surface.

Teams also under-specify objectives. If the tester is not told whether the goal is credential theft, privilege escalation, data access, or lateral movement, the engagement often degenerates into shallow validation instead of realistic adversary simulation. A stronger scope defines what is in and out, what assumptions are allowed, and what success looks like so the test measures risk, not just presence.

That is why scoping should be based on trust boundaries and business-critical paths, not only on what is easiest to enumerate. The environment that matters most is often the one least visible in the asset register.

How Good Scope Changes Test Design

Good scoping changes both the techniques used and the conclusions drawn. If the scope includes cloud control planes, identity-provider dependencies, and user-facing workflows, the tester can evaluate chained access paths rather than isolated hosts. If the scope excludes only a narrow slice of infrastructure, the engagement may still be valid, but it should be understood as a constrained assessment rather than a statement about the organisation’s real exposure.

Practical scope definitions usually need four parts:

  • Asset boundaries: IP ranges, domains, applications, SaaS instances, cloud subscriptions, and named business systems.
  • Access boundaries: user roles, test accounts, external partners, support channels, and authentication paths that the tester may use.
  • Technique boundaries: whether social engineering, phishing, denial of service, physical intrusion, or destructive testing is permitted.
  • Success criteria: the outcomes the test is meant to prove, such as data access, admin control, or movement between environments.

That level of definition helps avoid two failure modes. One is over-scoping, where the test becomes noisy, risky, and hard to approve. The other is under-scoping, where the assessment misses the pathways an attacker would actually use. The best scope documents make it easy for the tester to follow realistic paths without improvising outside the agreed boundary.

For teams looking at credentialed access paths and over-permissioned identities, the difference between a narrow box-check and a realistic boundary is often the difference between finding a real compromise path and merely confirming that a login page exists. The OWASP Web Security Testing Guide is useful here because it reinforces structured, technique-driven testing rather than ad hoc probing, and the Ultimate Guide to NHIs, Key Challenges and Risks is a useful companion when the environment includes machine-access paths, secrets, or service accounts that can widen the attack surface.

These controls tend to break down when teams scope by ownership boundaries instead of technical trust boundaries, because real attack paths usually cross both.

Common Edge Cases, Trade-offs, and Scope Decisions

Tighter scope often reduces cost and coordination overhead, but it also increases the chance that the result underestimates exposure, so teams have to balance realism against operational restraint. That trade-off becomes sharper in hybrid estates, SaaS-heavy environments, and organisations with shared identities or outsourced administration.

Some common edge cases deserve explicit treatment:

  • Shared services: a test against one application may be incomplete if it omits shared authentication, logging, or storage services that an attacker would reach next.
  • Third parties: managed providers, contractors, and external integrations may be out of direct ownership but still in the real attack path.
  • Cloud and ephemeral assets: short-lived resources, test tenants, and autoscaling components can disappear before testing is complete unless they are named up front.
  • Social or physical methods: these are often excluded for safety, but the exclusion should be deliberate, not assumed.

There is also a practical distinction between “not in scope” and “not tested this time.” If a team excludes production email or external identity systems, that should be recorded as a limitation, because those services often sit on the path to broader compromise even when the application itself is otherwise well built. For that reason, many organisations pair a narrow exploitation scope with a broader reconnaissance boundary so the tester can understand the environment without touching every system.

When the environment contains secrets, shared admin roles, or machine credentials, the scope should also state whether the tester may follow those paths if discovered incidentally. Otherwise, testers either stop too early or go beyond what stakeholders expected. In practice, the most expensive scope mistakes are usually not technical, they are assumptions no one wrote down.

Risk and Threat Considerations

Mis-scoped penetration tests create two classes of risk, incomplete assurance and unintended exposure. If the test boundary is too narrow, decision-makers may believe an environment has been validated when the most reachable attack paths were never exercised. If the boundary is too loose or vague, the exercise can create operational disruption, legal uncertainty, or accidental access to systems the business never intended to expose.

Failure mechanism: Attackers do not respect organisational silos, so a realistic compromise path often moves from a public asset to an adjacent service, identity provider, cloud control plane, or third-party integration. When scope excludes those dependencies, the test cannot model the trust relationships that make compromise possible, which leaves lateral movement, privilege escalation, and credential-based access paths unexamined.

Impact: Teams may leave critical pathways untested, miss high-risk misconfigurations, and underestimate blast radius. In the worst case, the organisation treats a partial test as evidence of resilience and delays remediation on the very systems an attacker would target first.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 — Secrets and Credential Management Scope must include credentialed machine and service access paths that change attack paths.
NHI-05 — Third-Party and Supply Chain Trust Pen tests often miss external integrations and provider access that alter real attack paths.
NHI-09 — Visibility and Inventory Narrow scope often reflects incomplete asset visibility rather than true risk reduction.
Recommendation — Include service credentials and secrets in scope when they can enable realistic compromise paths. Document third-party trust boundaries and test the access paths they create. Inventory all in-scope assets and dependencies before approving the test boundary.
CIS Controls v8 CIS-01 — Inventory and Control of Enterprise Assets Pen test scope depends on knowing which assets and boundaries actually exist.
CIS-16 — Application Software Security A penetration test should reflect application and dependency boundaries, not just the front door.
Recommendation — Maintain an accurate asset inventory before defining what the test covers. Test the application and its exposed dependencies as one attack surface.

Practitioner Guidance

What to prioritise: Start with the systems and relationships that would let an attacker turn initial access into meaningful impact. That usually means defining the boundary around business-critical applications, identity dependencies, cloud control paths, and externally reachable services, not just visible web assets.

What to verify: Confirm that the statement of work names concrete exclusions, permitted techniques, and success criteria. If the scope cannot tell the tester whether adjacent systems, shared credentials, or partner access are fair game, it is too vague to produce a reliable result.

Common mistake: Treating a penetration test as complete because it covered the “production application” while ignoring the supporting services that make compromise useful. The test should reflect how an adversary would chain access, not how the org chart is drawn.

Practitioner takeaway: A good penetration-test scope is less about limiting the tester and more about preventing false confidence, because a narrow boundary can look rigorous while missing the paths that matter most.