Skip to main content

CyberNexora

API Security Testing

API Security Testing

We test your REST and GraphQL APIs the way a real attacker would: who can call them, whose data they return, and what happens when requests are changed or abused. You get proven findings with evidence, a prioritised fix list, and a retest of the fixes.

  • Covers
    REST and GraphQL APIs
    RESTGraphQLSOAPMicroservices
  • Method
    Manual testing, backed by tools
    Black-boxGrey-boxWhite-box
  • Standards
    Built on public guidance
    OWASP API Top 10OWASP WSTGOWASP Top 10
  • You receive
    A report your team can act on
    Executive summaryTechnical reportFix guidanceRetest
How we test

Watch an API penetration test, start to finish

Seven stages, from written authorisation to retest. Pick a stage, or let it play.

https://api.example.comstagingUser Arole: userBearer eyJ…User Brole: userBearer eyJ…Adminrole: adminBearer eyJ…Scope cardREST API: api.example.com/v1GraphQL: api.example.com/graphqlAccounts: User A, User B, AdminEnvironment: stagingRules: no DoS, no data deletionAUTHORISEDAPI inventory48Endpoints42In docs6Not in docsGET /v1/users/{id}POST /v1/auth/loginOld versionGET /v0/users/{id}Not in docsGET /v1/admin/exportAccess token, decoded{  "sub": "1042",  "role": "user",No expiry  "exp": null}Token signaturetampered token sentRejectedPassword resetlink used twiceSingle useReplay as another userPROBE 1 OBJECT IDGET /v1/users/5001GET /v1/users/5002as User AID +1200OKOwn dataAnother user's dataCriticalPROBE 2 ADMIN FUNCTIONGET /v1/admin/exportas User A (role: user)200OKAdmin data to a userHighLimits and inputsLOGIN ATTEMPTS, 60 IN ONE MINUTE401 Unauthorized ×60No lockoutMass assignmentrole set to adminIgnoredInjection inputsSQL and NoSQL inputBlockedAPI Penetration TestExample Corp API | illustrative data1Critical2High1Medium0LowRetest passed: 4 of 4 reported findings fixedCriticalNo ownership check on user API/v1/users/{id}OpenFixedHighAdmin export open to any user/v1/admin/exportOpenFixedHighNo lockout on login attempts/v1/auth/loginOpenFixedMediumAccess tokens never expireJWT exp claimOpenFixed
Stage 1 of 7

Scope and rules of engagement

We agree the APIs, environments, test accounts and what is off limits. Written authorisation comes first.

  • APIs and environments
  • Test accounts for each role
  • Test window and request limits
You getSigned scope and rules of engagement
Stage 2 of 7

Map every endpoint

We import your API docs, then look for what they miss: old versions, hidden routes and admin functions.

  • Docs, specs and collections
  • Old versions and hidden routes
  • Traffic from your web and mobile apps
You getAPI inventory
Stage 3 of 7

Test login and tokens

We check how tokens are issued, signed and expired, and test the login and password reset flows.

  • Login, tokens and API keys
  • Token lifetime and signing
  • Password reset and MFA
You getAuthentication findings
Stage 4 of 7

Test who can reach what

We replay each call as another user and as a lower role to see what the API lets through. Safe proof of concept only.

  • Object IDs on every endpoint
  • Admin functions with user tokens
  • Fields a user should not see
You getValidated findings with evidence
Stage 5 of 7

Test limits and inputs

We check rate limits, input handling and mass assignment, within the request limits agreed up front.

  • Rate limits and lockouts
  • Input and injection checks
  • Mass assignment and large requests
You getAbuse-case findings
Stage 6 of 7

Report with evidence and fixes

You receive an executive summary and a technical report, with evidence, severity and fix steps for every finding.

  • Executive summary
  • Findings with evidence
  • Fix steps and priorities
You getExecutive summary and technical report
Stage 7 of 7

Fix, then retest

Your team fixes the issues. We retest the reported findings and confirm what is closed.

  • Fixes verified
  • Reported findings retested
  • Closure confirmed in writing
You getRetest report

Illustration with example data, not client data. Timelines depend on scope. The retest covers reported findings within the agreed window.

What we test

The attack surface of an API

Ten test areas, from the front door to the data.

Who can call it
  • 1Inventory and discovery

    Endpoints, versions, hidden and old routes

  • 2Authentication

    Login, tokens, API keys, password reset

  • 3Configuration and transport

    TLS, CORS, headers, error messages

What they can reach
  • 4Object-level access

    Can user A read user B's records?

  • 5Function-level access

    Can a normal user call admin functions?

  • 6Data exposure

    Fields returned, mass assignment

How it holds up
  • 7Input handling

    Injection, bad types, unexpected input

  • 8Rate limits and cost

    Brute force, scraping, heavy queries

  • 9Business logic

    Skipped steps, replayed or abused flows

  • 10Integrations and server-side requests

    SSRF, third-party data, webhooks

Mapped to the OWASP API Security Top 10 (2023)

The numbers show which test areas cover each category.

  • API1Broken Object Level Authorization4
  • API2Broken Authentication2
  • API3Broken Object Property Level Authorization6
  • API4Unrestricted Resource Consumption8
  • API5Broken Function Level Authorization5
  • API6Unrestricted Access to Sensitive Business Flows89
  • API7Server Side Request Forgery710
  • API8Security Misconfiguration3
  • API9Improper Inventory Management1
  • API10Unsafe Consumption of APIs10

Guided by the OWASP Web Security Testing Guide

These chapters, including its API Testing chapter, shape our test cases.

Information gatheringConfigurationAuthenticationAuthorisationSession managementInput validationBusiness logicAPI testing

OWASP guidance is referenced, not a certification held by CyberNexora, and does not imply OWASP endorsement.

REST and GraphQL

REST and GraphQL are tested differently

REST

Routes, methods and object IDs

Routes and methods
  • Method tampering
  • Object IDs in paths
  • Old versions and hidden routes
Requests and responses
  • Mass assignment
  • Excess fields in responses
  • Filters and pagination limits
Access and transport
  • Tokens and API keys
  • CORS and security headers
  • Verbose error messages

GraphQL

One endpoint, many queries

Schema
  • Introspection exposure
  • Hidden types and mutations
  • Field suggestions
Queries
  • Field-level authorisation
  • Depth and complexity limits
  • Batching and alias abuse
Input and limits
  • Injection through arguments
  • Query cost and timeouts
  • Rate limits on batched calls

REST flaws usually sit in a route or an object ID. GraphQL flaws sit in the schema, field access and query cost. Each gets its own test cases. SOAP and microservice APIs are also in scope.

Deliverables

What you receive

  • Scope & rules
  • Executive summary
  • Technical report
  • Risk ratings
  • Proof of concept
  • Fix guidance
  • Scoped retest
  • Completion summary

A clean result is reported as it is. Retests cover reported findings only and are not unlimited.

Before we start

What we need from you, and when to test

What we need from you
  • Written authorisation

    Before any testing starts

  • API documentation

    OpenAPI, Postman or GraphQL schema

  • Test accounts

    Two users per role

  • Environment

    Staging preferred

  • Test window

    And agreed request limits

  • A technical contact

    During the test

When to test
  • Before launch
  • After new endpoints or a major release
  • Before opening the API to partners
  • At least once a year
  • When a customer or auditor asks

Grey-box suits most APIs: documentation and accounts for each role show what an authenticated attacker can reach. Black-box and white-box scopes are available, and source code is not required. See the differences.

Testing stays inside agreed rules. Test accounts, staging preferred, agreed request limits, no denial-of-service, no data deletion, and proof of concept uses the minimum data needed.

Questions

API security testing frequently asked questions

What is API security testing, and how is it different from a scan?

A scanner replays known patterns and lists what a tool can detect. An API penetration test is manual: with your written permission, a tester uses several accounts to replay requests as other users and roles, changes IDs and inputs, and shows what an attacker could really reach. Access control and business logic flaws are the ones scanners tend to miss.

Do you test REST, GraphQL and SOAP APIs?

Yes. REST and GraphQL are our main focus, each with its own test cases. SOAP and microservice APIs are in scope too, and the exact coverage is confirmed when we scope the work. If your API serves a mobile app, see Mobile Application VAPT.

Can you find authorisation flaws?

Yes, they are the core of the test. Broken object level authorisation is number one on the OWASP API Security Top 10, so we test every endpoint that takes an ID, and every admin function, with accounts for each role. A safe proof of concept shows exactly what was reachable.

What do you need from us?

Written authorisation, API documentation if you have it (an OpenAPI file, Postman collection or GraphQL schema), test accounts for each role with at least two users per role, a staging environment where possible, and a test window. Source code is not required.

Will testing affect my live API or real users?

Testing runs inside the rules we agree with you: scope, test windows, exclusions and request limits. We use test accounts and safe proof-of-concept techniques, with no denial-of-service and no data deletion. We prefer a staging environment. No active test is completely risk-free.

How long does it take and what does it cost?

It depends on the number of endpoints, user roles and API types, and the depth of testing. We confirm the timeline and a quote at scoping, before you commit. See the pricing page.

What do we receive, and is there a retest?

You receive an executive summary and a technical report with affected endpoints, severity and business-impact ratings, request and response evidence, and fix guidance. A scoped retest of the reported findings within the agreed window confirms what is closed. It is not an unlimited re-test.