The short answer
A comprehensive assessment of microservices and GraphQL APIs is difficult because one customer request can cross several identities, resolvers, services and data stores. Testing the public GraphQL endpoint alone does not establish what a downstream service will do with the caller’s identity. Testing internal services alone may miss what a user can request through GraphQL. The scope must join the two views without assuming every system uses a service mesh, Kubernetes, federation or an event bus.
For a useful assessment, map the actual architecture first, give testers representative users and tenants, agree safe test limits, and require findings that show an observed identity, request, response and impact. The existing Fortbridge API Penetration Testing guide covers general API testing; this article focuses on the cross-service and GraphQL-specific questions a product security lead should add to a brief.
Table of contents
Map the application before choosing test cases
Start with an architecture sketch rather than a tool list. Identify the public GraphQL entry point and any other APIs; which schemas, resolvers and mutations expose data; which backend services they call; and where user and workload identities are checked. Add the data stores, caches and queues that actually exist. Mark the boundaries between tenants, user roles and third parties. These maps can be approximate, but the assessor needs to know what can be reached and what permission is granted to test it.
| Boundary | Question for the owner and assessor | Evidence to agree in the scope |
|---|---|---|
| User to GraphQL | Which queries and mutations can each role make? | Test accounts, schema or operation list, representative objects |
| Resolver to data/service | Where is object or field authorisation enforced? | Resolver ownership, data-source map, service calls |
| Service to service | Which workload identity and permissions travel with a request? | Call graph, gateway policies, service accounts if used |
| Events and workers | Which producer and consumer can create or act on an event? | Queue ownership, test events and approved data |
| Third parties | Which component is outside the organisation’s control? | Explicit permission and an exclusion if not approved |
A single scan of a web front end cannot prove that these boundaries were assessed. Likewise, “all microservices” is not a meaningful scope without a service inventory, permitted vantage and exclusions.
Check GraphQL authorisation at the data boundary
GraphQL can expose the same underlying object through more than one query path. The important question is whether a caller receives only the objects and fields allowed by their role and tenant, including through nested selections and mutations. GraphQL’s authorisation guidance discusses locating access decisions in the business layer; the OWASP GraphQL Cheat Sheet offers security considerations for an implementation.
With authorised test identities, an assessor can compare permitted and denied operations on representative objects and fields. If a user can read a different tenant’s record, a useful report includes the tested roles, the request and response, the access expected, and the observation that contradicted it. OWASP API1:2023 Broken Object Level Authorization names the risk category; it is not evidence that a particular deployment is vulnerable.
GraphQL’s flexible queries also raise resource-management questions. Depth, aliases, pagination and batching deserve configuration review and small, bounded checks where relevant. Do not turn a content assessment into a load or denial-of-service test: set written limits and stop conditions. Schema introspection or a GraphiQL interface may disclose useful structure, but its availability alone does not show unauthorised access. Disabling introspection cannot replace object and field authorisation. If a deployment uses GraphQL federation, assess how identities and permissions cross that additional boundary; do not assume federation exists.
Follow identities through microservices
A gateway can authenticate a user, yet downstream services still need the context required for their decisions. Ask where a user token is validated, what identity is propagated, how service workloads authenticate, and whether a backend can be reached through an approved path that bypasses a front-end control. Network location or transport encryption alone does not answer whether a workload may perform a particular business action. The OWASP microservices security architecture guidance is a useful framework for these boundaries.
Some systems use Kubernetes service accounts; others do not. Where they do, compare permissions with the workloads that actually need them, using the Kubernetes service account documentation to understand the platform mechanism. Do not infer a cluster-wide compromise from a broad permission alone; show which authorised path and operation the observation affects.
Session expiry, caching and token revocation can produce different outcomes across services. Event buses introduce further questions about who can publish a message, who consumes it, how sensitive fields travel and what happens when work is retried. Multi-step state changes can expose consistency errors, but a race condition is only a hypothesis until observed under approved conditions. Use low-volume test data and agreed safe limits; do not submit high-frequency transactional requests or malicious payloads to production in order to manufacture an example for a report.
Commission and evaluate the assessment
Write down authorised assets, external versus internal vantage, user roles and tenants, test data, staging versus production, third-party consent and a way to stop work quickly. The NCSC’s penetration-testing guidance helps buyers scope work and use the findings. Risky validation needs specific approval rather than an assumption that “comprehensive” permits any technique.
Ask each bidder for an approach mapped to your architecture and a redacted sample report. A good finding states the identity and build tested, expected versus observed access, reproducible evidence, business impact, remediation and retest method. It should also state what was not tested. Automated coverage is useful, but it does not substitute for analyst review of permissions and multi-step behaviour; equally, a confident manual-testing slogan is not evidence of a result.
| Compare proposals on… | Ask for… |
|---|---|
| GraphQL scope | Query/mutation inventory, roles, object/field checks and bounded complexity review |
| Service scope | Named service boundaries, identities, permissions and approved internal vantage |
| Event/worker scope | Explicit inclusion, permitted test data and producer/consumer roles |
| Safe operation | Rules of engagement, stop conditions and third-party permissions |
| Deliverables | Sample finding, review process, exclusions, engineering handoff and retest terms |
Five practical questions for the shortlist:
- Which GraphQL operations and user/tenant roles would you assess, and how do you trace their downstream data access?
- What services and workload identities are in scope, and which are inaccessible from the agreed test vantage?
- If we use queues, federation or Kubernetes, how would you account for them without assuming a feature we do not have?
- How will you review query complexity and state changes without disrupting the service?
- What evidence, exclusions and retest terms will appear in the final report?
The result is evidence about specified controls and services at a point in time, not a certification of the entire platform. If you need help defining a testable scope, share a non-sensitive architecture outline and assurance objective with Fortbridge. Do not include live credentials or customer records in an initial enquiry.
Frequently asked questions
Is GraphQL introspection a vulnerability?
Not by itself. It reveals schema information to callers allowed to use it, and teams may restrict it for their own exposure needs. An authorisation finding needs evidence that an operation returned or changed data the caller was not permitted to access.
Does mTLS between services solve authorisation?
No. Transport identity can help one workload recognise another, but the application still needs to decide whether the requested object, field or action is allowed for the originating user and service.
Should an assessment include denial-of-service testing of query depth?
Not by default. A security review can examine configured limits and use small agreed test cases. High-volume or disruptive testing is a separate decision with explicit safety controls.
Can one API scan cover a microservice architecture?
No general claim of “full coverage” follows from one scan. The answer depends on which operations, identities, services and internal paths were included and whether the assessor could observe the downstream decisions.