# API pentest: scope, access and expected evidence · SpectrAI

> Prepare an API pentest: OpenAPI documentation, test accounts, roles, data and exclusions. Evidence to request and the inputs needed for a scoped proposal.

URL: https://spectr-ai.eu/en/pentest-api · Language: English · Legal publisher: RootZero · [Legal notice](https://spectr-ai.eu/en/mentions-legales)

[SpectrAI](https://spectr-ai.eu/en)API pentest: scope, access and expected evidence

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 · 10 November 2026 · Updated on 15 November 2026

[Download the API scoping kit](#kit-cadrage)[Define an application and its operations.](#perimetre)[Prepare identities and roles.](#authentification)[Locate the proxy and access controls.](#proxy-et-passerelle)[Document the expected boundaries.](#autorisations)[Agree the permitted actions.](#precautions)[Request contextualised evidence.](#rapport)[Compare the proposal and retests.](#devis-retests)

What to prepare before scoping an API pentest
| Input | What you prepare | Why it matters |
| --- | --- | --- |
| Scope | Application, base URL, environment and authorised domains | Distinguish a reachable API from an authorised target |
| Inventory | OpenAPI specification or the operations and versions in use | Identify workflows and documentation gaps |
| Identities | Test accounts for the relevant roles and organisations | Define the permission boundaries to assess |
| Network routes | Proxy, gateway, WAF and authorised application origins | Locate access controls and the routes actually included |
| Data | Identified test objects and the expected outcome of each access | Distinguish permitted responses from unauthorised access |
| Constraints | Excluded operations, test window and stop conditions | Bound 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.

-   [Markdown instructions](https://spectr-ai.eu/ressources/pentest-api/en/README.md)
-   [JSON scoping example](https://spectr-ai.eu/ressources/pentest-api/en/scope.json)
-   [CSV authorisation matrix](https://spectr-ai.eu/ressources/pentest-api/en/authorization-matrix.csv)
-   [JSON OpenAPI example](https://spectr-ai.eu/ressources/pentest-api/en/openapi.json)

**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](https://rootzero.eu/en/research/gpustack-cve-2026-102895-proxy-authentication/)

**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](https://spectr-ai.eu/en/pentest-saas)

**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.

-   [OWASP Web Security Testing Guide 4.2](https://owasp.org/www-project-web-security-testing-guide/v42/)
-   [SpectrAI methodology](https://spectr-ai.eu/en/methodologie)
-   [SpectrAI sample report](https://spectr-ai.eu/en/exemple-de-rapport)
-   [OWASP API Security Top 10: BOLA](https://api-security.owasp.org/editions/2023/en/0xa1-broken-object-level-authorization/)
-   [OWASP WSTG 4.2: Testing for Bypassing Authentication Schema](https://wstg.owasp.org/v4.2/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema/)
-   [OWASP API8: Security Misconfiguration](https://api-security.owasp.org/editions/2023/en/0xa8-security-misconfiguration/)
-   [About rootzero](https://rootzero.eu/en/about/)

### Continue your comparison.

Move from definitions to selection criteria, deliverables and terms.

[Automated AI pentesting: scope, evidence and retests](https://spectr-ai.eu/en/pentest-ia)

## Scope your next *pentest*.

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

[Scope an API pentest](https://rootzero.eu/en/contact/?subject=spectrai&need=api&content=api-guide) [MSP and consultancy partner programme](https://spectr-ai.eu/en/partenaires)

## Explore tools and *agents*.

[Cybersecurity AI agents and multi-agent systems: uses, evidence and limits](https://rootzero.eu/en/research/cybersecurity-ai-agents-multi-agent/)

[Follow articles and research through RSS](https://rootzero.eu/en/feeds/)
