Selection guide

Prepare the pentest of your API.

An API pentest examines operations within an authorised scope, using the identities and data the assessment needs. To obtain a useful proposal, describe expected permissions between users and organisations, business workflows and excluded actions.

By rootzero · · Updated on

What to prepare before scoping an API pentest
InputWhat you prepareWhy it matters
ScopeApplication, base URL, environment and authorised domainsDistinguish a reachable API from an authorised target
InventoryOpenAPI specification or the operations and versions in useIdentify workflows and documentation gaps
IdentitiesTest accounts for the relevant roles and organisationsDefine the permission boundaries to assess
Network routesProxy, gateway, WAF and authorised application originsLocate access controls and the routes actually included
DataIdentified test objects and the expected outcome of each accessDistinguish permitted responses from unauthorised access
ConstraintsExcluded operations, test window and stop conditionsBound writes, deletions and effects on third-party services

Resource to adapt

A kit to scope your API.

Download a consistent fictional example: scope, accounts and organisations, eight expected permissions and an OpenAPI description. Adapt it to your application before requesting a proposal.

01 Choosing a service

Define an application and its operations.

List entry points and the agreed environment, then the workflows to examine: reading, creation, modification or export. A specification helps explain parameters and objects; it does not establish that every deployed route is documented.

Identify excluded third-party services and domains. An application pentest covers one named application and one agreed environment; associated APIs are scoped in the proposal. SpectrAI also tests infrastructure, networks and Active Directory according to the authorised scope. Source-code review remains separate.

02 Choosing a service

Prepare identities and roles.

Describe how test accounts obtain a session and constraints such as SSO, MFA, token expiry or renewal. Confirm how these accesses will be provided before testing. Never attach secrets or production data to a commercial enquiry.

To assess isolation, prepare the profiles and organisations the scope must cover. One administrator account cannot characterise ordinary user permissions. Any blocked access should appear among the report limitations.

03 Choosing a service

Locate the proxy and access controls.

Describe the route between the client, reverse proxy or gateway, and application. State where identity is verified, which headers are forwarded and which application origins belong to the authorised scope. Authentication at the proxy alone does not describe the permissions enforced within the API.

Agree the WAF configuration during assessment. Checking the usual route with its protections informs you about that route; a complementary application assessment may require separate, expressly agreed access. The report should distinguish an examined operation from access blocked by an intermediary.

For an operation requiring an identity, define the expected outcome without a valid session, then with accounts for each role. A public health or documentation route may respond without authentication according to its contract; HTTP status alone does not prove a bypass.

The GPUStack case shows why the source seen by the server needs a check separate from the user session. Read the CVE-2026-102895 analysis, conditions and fix

04 Choosing a service

Document the expected boundaries.

Illustrative scoping example: account A should read an invoice belonging to its organisation, while account B from another organisation should be refused. Identify both test accounts, the object and the expected behaviour before the assessment.

Successful authentication establishes an identity; authorisation determines accessible objects and functions. HTTP 200 alone does not establish a leak: the observed content, account and expected permissions must be connected. This check relates to the BOLA risk described by OWASP.

Scope roles and customer isolation for a SaaS pentest

05 Choosing a service

Agree the permitted actions.

Define the datasets, writes, deletions, message sends and third-party interactions that are permitted. Payment workflows or irreversible actions require scope-specific precautions. A public URL does not authorise testing.

For a private API, network access and any relay are prepared during scoping. Agree exclusions, the intervention window and stop conditions. Delivery capacity and dates are confirmed before committing to an engagement.

06 Choosing a service

Request contextualised evidence.

For every published finding, examine the operation, role, prerequisites, request and response demonstrating impact, then reproduction steps and recommended remediation. Demonstration data must be labelled as such.

SpectrAI evaluates findings and publishes reports automatically. The sample report shows the evidence and recommendations your team receives. For your API, the report also details assessed workflows, blocked access and exclusions.

07 Choosing a service

Compare the proposal and retests.

To compare proposals, provide the same application, environment, roles and expected deliverables. Endpoint count alone does not describe the complexity of an authorisation check or business workflow.

A SpectrAI engagement is one-off, with pricing confirmed after scoping. It includes 2 remediation retest batches within 60 days after the report. A retest checks a fix; a new full assessment is scoped separately.

Common questions

Clarify your choice.

Is an OpenAPI file enough to begin?

It helps with scoping, but authorised URLs, roles, agreed access, test data and exclusions are also needed. An incomplete or outdated specification may omit workflows.

Does the pentest need to be authenticated?

That depends on the requirement. Assessing user-only functions requires access for the relevant profiles. Define public and authenticated workflows during scoping.

Can an internal API be included?

Yes, subject to preparing and confirming network access during scoping. Any relay must expose only authorised services.

Should the WAF be disabled for an API pentest?

Configuration depends on the question being assessed. The usual route with its protections and any complementary application access should be agreed separately. Establish permitted changes, their duration and the limitations that blocked access adds to the report.

An endpoint returns 200 without a token: is that a vulnerability?

Establish the operation’s contract. A public route may respond normally; for a protected operation, check the data or actions actually accessible, the identity used and expected permissions. Status 200 alone does not demonstrate a vulnerability.

Does the report guarantee every vulnerability is found?

No. It describes established findings, test conditions and limitations. Particular business logic or critical requirements may justify additional specialist expertise.

Examine the references.

rootzero, the maker of SpectrAI, publishes this guide to help you scope an engagement and review its evidence and deliverables.

Continue your comparison.

Move from definitions to selection criteria, deliverables and terms.

Automated AI pentesting: scope, evidence and retests

Scope your next pentest.

Business, MSP or consultancy: describe the scope, access and deadline. We agree the proposal with you.