# API pentest scoping kit

rootzero / SpectrAI · version 2026-11-10

Entirely fictional example to adapt to your application. It describes no customer and contains no pentest result. No service or scanner is provided.

## Use the files

1. Replace the application name, environment and URLs in scope.json.
2. Adapt the test accounts, roles, organisations and objects without including credentials.
3. Write expected permissions in authorization-matrix.csv. Eight cases illustrate access within an organisation, across organisations and by role. In this example, adminA remains limited to tenantA.
4. Align openapi.json with actual operations. The description does not prove inventory completeness.
5. Agree access, the test window, permitted writes, exclusions and stop conditions with the supplier. This preparation does not authorise a test.

## Read a result

allow and deny describe expected permissions rather than observed results. An API may represent refusal with 403 or 404 according to its contract. Connect the response, content, account and object before drawing a conclusion; HTTP status alone does not demonstrate unauthorised access. The evidence template in scope.json is labelled not_tested.

The kit prepares a discussion. The proposal defines the evaluated scope, deliverables and retests; these examples do not guarantee service coverage.

## References

- Guide: https://spectr-ai.eu/en/pentest-api
- OWASP BOLA: https://api-security.owasp.org/editions/2023/en/0xa1-broken-object-level-authorization/
- OpenAPI 3.1.1: https://spec.openapis.org/oas/v3.1.1.html

To scope an engagement: https://spectr-ai.eu/en/contact?request=pentest
