GraphQL API penetration testing methodology

How a GraphQL API penetration test is phased, scoped and reported, and which public standards the method maps to, so buyers can judge a proposal before signing.

On this page

Why GraphQL API penetration testing methodology matters before you sign

A GraphQL API penetration testing methodology is the documented sequence of phases, techniques and checks a tester follows to assess a GraphQL service, and it is the first thing to examine when a compliance framework, customer security review, product launch or insurer asks you to prove that the API was tested. Buyers often receive a headline such as "we tested your GraphQL API" without any account of how. A written method lets you check whether the work covers the risks that matter for GraphQL, whether it follows public references such as the OWASP Web Security Testing Guide and the OWASP API Security Top 10 2023, and whether two proposals are measuring the same thing. Ask each provider to name the phases, the standards they map to and the layers they test before you compare prices.

GraphQL differs from REST in ways that change the test. A GraphQL service typically exposes one endpoint, so a tester cannot rely on a list of routes to understand the attack surface. The schema defines what can be queried, and clients can request nested fields, combine many operations in one request or send batched operations. Authorization decisions therefore have to hold at the field and resolver level, not only at the endpoint. The OWASP GraphQL Cheat Sheet names injection, denial of service, broken authorization including insecure direct object references, batching abuse and insecure default configurations as the main threats, and a sound method should address each of them. Introspection and GraphiQL exposure in production are also common review points that a route-based scan will miss.

The method also determines what you can act on. A good methodology separates transport, demand control, schema exposure and authorization into distinct layers, so findings can be traced to a control and a fix. Confirm that the provider will map findings to the OWASP API Security Top 10 2023 categories, state whether testing is authenticated and at what privilege levels, and describe how the schema, documentation and test accounts will be provided. Confirm these points in writing before you sign, because the method sets the scope, the evidence your auditor will see and the retest you will need after remediation.

What can be in scope for a GraphQL API test

A GraphQL test is only as useful as its boundaries. The decisions below set which endpoint, schema, environments, accounts and infrastructure the tester covers, and they determine how much of the authorization model can be checked. Record each one in the written scope before testing starts.

Endpoint and schema versions

Confirm which GraphQL endpoints, schema versions and deprecated fields are in scope. Many services run more than one endpoint, such as a public schema, a partner schema and an internal gateway schema, and each exposes a different set of types and mutations. Ask the client to list every endpoint and to state whether older schema versions remain reachable. Untracked endpoints and retired fields that still resolve are a common source of authorization gaps, and they are easy to miss if the scope names only the main URL.

Environments: production, staging and pre-production

Decide which environment the test runs against. Production shows the real configuration, including the gateway, caching and error handling, but it carries the risk of disrupting live data. Staging and pre-production are safer for intrusive checks, yet they can differ in introspection settings, depth limits or feature flags. If the test covers one environment, the report should say whether its findings carry over to the others, and the client should confirm that configuration drift between environments is documented.

Role-based test accounts

Authorization testing needs accounts for each role the schema distinguishes, such as anonymous, standard user, tenant administrator and support staff. Without them, a tester can check only what an anonymous caller sees. Agree how accounts are created, which tenants they belong to and who can reset them. Two accounts in the same role are useful for testing object-level access between peers. The scope should state that test data belongs to the test and must not contain real customer records.

Schema and source access

Decide whether the tester receives the schema through introspection, an exported schema file, the resolver source code or none of these. Each option changes the depth of coverage. Testing without schema material means spending effort on discovery, while source access lets the tester trace resolvers and check field-level authorization directly. The ASVS guidance favors documentation-led or source-led testing over blind testing. Record which artifacts are provided and their version, so the findings match the schema actually tested.

Transport and gateway components

A GraphQL endpoint rarely faces the internet alone. Web application firewalls, API gateways, load balancers, CDNs and persisted query layers all sit in front of it and can change what a request does. The scope should name each component, state whether it is in scope for testing and record any rules that block or rewrite queries. Testing behind the gateway shows what the application enforces, while testing through it shows what an attacker meets. Clients should confirm which view they need for their auditor or customer.

Rules of engagement: limits, data and exclusions

The rules of engagement should set request rate limits, the maximum query cost or depth the tester may send, how sensitive data seen during testing is handled and stored, and the time windows for testing. They must also list what is off limits, such as denial-of-service attempts against shared resources, third-party services reached through resolvers, and production write operations. Record a named contact for stopping the test. Agree the specific figures in writing with the client, since no fixed values are set by the standards.

How a GraphQL API test runs phase by phase

The sequence moves from agreed boundaries to a schema-aware, layered test of the endpoint, and ends with findings the client can fix and verify. Each phase produces an output that the next phase depends on.

  1. Agree scope and rules of engagement

    Before any traffic is sent, the client and the tester agree in writing which GraphQL endpoints, environments, schema versions and user roles are in scope, what is off limits, and how testing is paused if production behavior is affected. The tester confirms test accounts at each privilege level and the contact for urgent issues. This phase is complete when the signed rules of engagement name every endpoint, role and environment the test will touch. The NIST guide on information security testing frames this planning stage as the first of its four phases, covering planning, conducting, analysis and reporting.

  2. Collect the schema and map the endpoint

    The tester gathers what the client provides, such as the schema, documentation, client applications and the list of operations the front end uses, then identifies every GraphQL endpoint, including older or internal ones. The tester checks whether introspection is exposed, whether a GraphiQL or similar explorer is reachable, and how much of the schema is visible to an unauthenticated caller. The output is a schema map with each query, mutation and subscription, its arguments and the roles that should be able to reach it. The OWASP Web Security Testing Guide v4.2 places GraphQL testing under section 4.12, API Testing, and this phase follows its information gathering approach. Confirm with the client whether introspection is meant to be enabled in the tested environment.

  3. Test transport and endpoint exposure

    The first security layer covers how the endpoint is reached: TLS configuration, which HTTP methods and content types are accepted, whether GET requests can carry queries, cross-origin behavior, and whether the endpoint responds consistently to malformed requests. The tester also checks that debugging interfaces and non-production endpoints are not reachable from the internet. The phase closes with a list of transport and configuration observations, each tied to the environment where it was seen. Following the layered posture recommended in the GraphQL Foundation's security guidance, transport is tested separately so that a weakness in one layer is not mistaken for a control in another.

  4. Test demand control limits

    The tester checks whether the server bounds the work a single request can trigger: query depth, the number of aliases and fields, the number of operations sent in one batch, and the cost assigned to expensive fields. Testing is done with measured, low-impact requests under rules of engagement agreed in the first phase, so that the service stays available for other users. The output records which limits exist, what values they are set to, whether they are enforced consistently across operations, and whether rate limiting applies to batched requests. These controls match the OWASP GraphQL Cheat Sheet's guidance on depth and amount limits, query cost analysis and rate limiting.

  5. Review schema exposure and sensitive fields

    Using the schema map, the tester reviews which types, fields and arguments expose data that should be restricted, such as internal identifiers, personal data, administrative mutations and deprecated fields that remain live. The question is whether the schema reveals more than the client's clients or roles need, not only whether introspection is on. The output is a list of exposed types and fields, each with the role that can read or change it. This is where the API Security Top 10 category API9, Improper Inventory Management, and API3, Broken Object Property Level Authorization, are checked for GraphQL.

  6. Test authorization at field and resolver level

    The tester runs the same operations as users at each role, and as an unauthenticated caller, and compares what each can read and change. Object references are tried across accounts to see whether the resolver checks ownership, and mutations are checked for function-level restrictions that the front end may hide but the server does not enforce. Because a GraphQL schema can reach the same data through several paths, the tester checks each path rather than only the one the application uses. Findings map to API1 Broken Object Level Authorization and API5 Broken Function Level Authorization in the OWASP API Security Top 10 2023. This phase needs authenticated access, since automated tools cannot fully judge access rules.

  7. Test input handling and error messages

    The tester sends crafted arguments and variables to check how the server validates input, whether injection is possible through arguments that reach a database, search index or downstream service, and whether errors leak stack traces, internal paths, query plans or framework versions. Error handling is compared across operations, since one resolver may be well configured and another may not. The output lists each input weakness and each error disclosure, with the request category used and the observed response. Results are tied to the injection and misconfiguration categories in the OWASP Top 10 2025, A05 and A02, and to the GraphQL Cheat Sheet's guidance on insecure defaults.

  8. Report findings and retest fixes

    The tester analyzes the results, removes duplicates, confirms each finding by reproducing it, and scores severity with context from the client's environment. The report lists the scope, the method and each layer tested, the findings with reproduction steps and recommended fixes, and any checks that were not performed. After the client fixes the issues, the tester repeats the relevant checks and records which findings are closed, which remain open and which are accepted as risk. This closing phase is the last step of the NIST four-phase structure, and it gives the client evidence that its assessor or customer can review. Ask the provider to show a sample report before commissioning the test.

How the OWASP API Top 10 maps to GraphQL findings

Every GraphQL finding should be recorded against an OWASP API Security Top 10 2023 identifier, because that mapping is what lets a buyer compare the report with other API tests and with their own risk register. The most frequent GraphQL mappings are API1 Broken Object Level Authorization, where a resolver returns a record identified by an argument such as an id without checking that the caller owns it; API5 Broken Function Level Authorization, where a mutation or an administrative query is reachable by roles that should not hold it; and API3 Broken Object Property Level Authorization, where the schema exposes fields such as internal flags, contact details or password-related attributes that the caller's role should not read or write. API4 Unrestricted Resource Consumption covers nested queries, aliases and batched operations that multiply the work done per request, and API8 Security Misconfiguration covers introspection, GraphiQL or verbose error messages left enabled in production. Ask the provider to show the mapping for each finding, not only a category label.

A single GraphQL field often carries several of these risks at once, which is why findings should not be logged as one item per category. Consider an illustrative customer query that accepts an id argument, returns nested orders and exposes a creditLimit field. The object check may be missing (API1), the creditLimit property may be readable by support staff who should not see it (API3), and the nested orders relation may allow a single request to fetch thousands of records (API4). Introspection that reveals the full schema, which is then used to find the field, is a contributing factor under API8. A report that splits these into separate findings, with the shared root cause and the fix for the resolver stated once, is easier for engineering to act on and easier for an auditor to trace.

How a GraphQL request moves through the layers under test

A request starts at the API client and enters the gateway, where transport and access controls are tested first. It then reaches the GraphQL server, where demand control limits on depth, cost and batching are checked before the schema is examined for introspection exposure. Each operation then passes through resolver authorization, which decides what the data store may return. Testers check each boundary separately, and they confirm that rejected or unauthorized requests return errors that reveal nothing about internal structure.

Test layers at each boundary, with the error path returning to the client.

Which weakness categories the method checks, by layer

This layer covers how the GraphQL service is deployed and what it exposes before any business logic runs. The OWASP GraphQL Cheat Sheet names insecure default configurations as a main threat, and the most common issues sit here: schema introspection left on in production, an interactive query console such as GraphiQL reachable by anyone, verbose stack traces, and debug modes carried over from development. Testers check these settings against the environment the client actually runs, not only the code.

  • Introspection exposure: Testers confirm whether the full schema can be retrieved by unauthenticated and low-privilege users, and whether that answer differs between environments.
  • Interactive consoles: Testers check whether GraphiQL or similar tools are reachable in production and who can load them.
  • Transport and endpoint handling: Testers review TLS configuration, allowed HTTP methods and whether the endpoint accepts requests on paths or hosts it should not.
  • Debug and error verbosity: Testers look for debug flags and stack traces that reveal framework, library or file layout details.
  • Environment parity: Testers ask for staging and production configuration to be compared, since a setting disabled in one environment is often enabled in another.

Ask the provider which configuration files, deployment manifests and gateway settings they will review, and whether they will test production or an agreed equivalent.

What drives GraphQL API test cost and duration

How does the number of operations and schema size affect GraphQL test cost?

The size of the schema and the number of queries, mutations and subscriptions in scope are usually the largest drivers of effort, because each operation needs its arguments, nested fields and error paths exercised. A large schema with many types and resolvers takes longer to map, even when the endpoint is a single URL. Ask the provider how many operations and types they will test individually, whether they will test every field or a risk-ranked subset, and whether generated documentation or an exported schema is part of the scope. Standards bodies do not publish a rate for this work, and DeployOpen does not publish a price list. A quote follows from the written scope.

Why do the number of roles and test accounts change the price?

Authorization testing in GraphQL depends on comparing what each role can read and change, so every additional role adds a set of object and field checks. Testing as an unauthenticated user, a standard user and an administrator is a different amount of work from testing four tenant-specific roles. Ask which roles are in scope, whether the client will provision test accounts with the right data and permissions, and how many tenants are involved. Missing or poorly seeded accounts often extend the timeline because the tester must wait or work around gaps.

How do test environments change GraphQL testing effort?

Testing against a staging environment that mirrors production is usually simpler to schedule than testing in production, where the tester must limit load and avoid changing real records. Each environment in scope may need its own setup, data and rules of engagement. Ask whether the test runs in one environment or several, whether the environment has production-like data and authorization rules, and who owns the rate limits and monitoring windows. Confirm these points in writing before any work begins.

Does providing the schema or source code reduce GraphQL test effort?

Yes, in most cases. The OWASP Web Security Testing Guide treats GraphQL as an API with a defined schema, and ASVS 5.0.0 strongly encourages documentation or source code led testing over testing without either. With the schema and access to the resolver logic, a tester can map authorization rules faster and find gaps that black box probing would miss. Without them, the tester spends more time on discovery, which generally increases duration. Ask whether the schema, resolver code, authorization policy files and an architecture overview are included, and who prepares them.

How deep should authorization testing go, and what does that add to cost?

Authorization testing is the most time-consuming part of a GraphQL assessment because it checks object level access, field level access, mutations and nested resolvers across roles. A shallow pass checks the obvious paths. A deeper pass tests each sensitive field and relationship for each role and looks for inconsistent enforcement between queries and mutations. Ask the provider which authorization model they will test against, whether they will cover every type or only the highest-risk objects, and how they will map results to the relevant OWASP API Security Top 10 2023 categories, such as API1 and API5.

Is a retest included, and how does it affect the total cost?

A retest checks whether the fixes for the original findings work, and it is usually priced separately from the initial test. Its effort depends on how many findings were raised, how complex the fixes are and whether the tester must rerun broad authorization checks or only the affected paths. Ask whether one retest round is included, how long the retest window stays open, whether the retest is written into a report, and what happens if new issues appear during it. For ongoing work after launch, ask whether continuous testing is offered as a retainer.

What should a GraphQL test quote include before I compare providers?

A comparable quote states the operations and types in scope, the roles and test accounts, the environments, whether schema or source access is included, the depth of authorization testing, the retest terms and the expected deliverables. It should also name who prepares access, who is paid for what, and whether any tooling or travel costs are added. Because no public rate is published by the standards bodies, use the written scope to compare proposals line by line. DeployOpen fixes scope, deliverables and timelines in writing before work starts, and provides a quote from that scope.

What PCI DSS, ASVS and CIS expect from application testing

PCI DSS v4.0 requirement 11.4.1 expects application-layer penetration testing that goes beyond scanning. The test must identify, at a minimum, the vulnerabilities listed in requirement 6.2.4, and that list includes abuse or bypass of application features through manipulation of APIs and client-side functionality. For a GraphQL endpoint, this means the tester has to check whether a client can reach data or actions through a query shape, a batched operation or a mutation that the front end never exposes. Before commissioning a test, confirm with your assessor whether the GraphQL API sits inside the cardholder data environment or feeds it, because that decides whether the test must reach the payment-relevant resolvers and how the results are presented in your report on compliance.

CIS Controls v8.1 Safeguard 16.13 asks for application penetration testing, and it states that for critical applications, authenticated testing is better suited than code scanning and automated testing to find business logic flaws. For GraphQL, the practical decision is which roles the tester holds. Request test accounts for each privilege level that the schema distinguishes, such as customer, support agent and administrator, so the tester can check field-level and resolver-level authorization from the viewpoint of each user. Ask the provider to state in the statement of work which accounts will be used and which operations each role is expected to be unable to perform.

OWASP ASVS 5.0.0 strongly encourages documentation or source code led testing, because automated tools cannot fully verify business logic and access control requirements. Ask for the GraphQL schema, the resolver mapping or the source for authorization logic, and ask which ASVS verification level the test targets, with Level 1 as the usual starting point for the most critical concerns. The ASVS verification report should list the scope, every requirement checked, the exceptions and guidance on fixing them, and the requirements that do not apply. OWASP does not certify testers or reports, so any claim of ASVS compliance should be treated as a claim until you have seen the evidence. CREST's OVS accreditation covers organizations that run ASVS-based assessments at Levels 1 and 2, so a provider holding that accreditation is a useful, though not sufficient, sign of method. Confirm the accreditation directly with CREST before relying on it.

What a GraphQL API test report should contain

A GraphQL API test report should let a security lead act on each finding and let an auditor trace what was checked. The cards below cover the components buyers should expect, and the format they should confirm before commissioning the test.

Executive summary

The summary states the overall risk posture of the GraphQL endpoint, the number of findings by severity, and the most consequential issues in plain language for leadership. It should name which layers were tested, such as transport, demand control, schema exposure and authorization, so that a reader can see at a glance where the schema was weak. Ask for a summary that a non-specialist can act on without reading the technical sections.

Scope and method with standards

The report should restate the agreed scope, including the endpoint, schema version, environments, test accounts and roles used, and whether testing was authenticated or unauthenticated. It should name the methods and standards followed, such as NIST SP 800-115 for the overall assessment process and the OWASP Web Security Testing Guide GraphQL section for the test cases. Any test that was not run, and the reason, belongs here too.

WSTG GraphQL section

Findings with reproduction steps

Each finding should describe the weakness category, the affected type, field or resolver, the observed behavior and the evidence captured, such as a sanitized response showing an unauthorized field was returned. Reproduction should be written at a defensive level so the client's engineers can confirm the issue and verify the fix without receiving a working attack script. Every finding should state the condition that makes it reproducible and the affected role.

Severity scoring with environmental context

Severity should be scored on a documented method, and the report should explain the base score and then adjust it for the client's environment, such as whether the endpoint is internet-facing, which data the affected resolver returns, and which compensating controls already exist. Buyers should confirm which CVSS version the provider uses and whether the environmental adjustments are shown separately from the base score, so that the priority order is traceable.

OWASP API Top 10 and ASVS mapping

Each finding should map to an OWASP API Security Top 10 2023 identifier, such as API1 for object level authorization or API4 for unrestricted resource consumption, and to the relevant ASVS chapter where a verification report is required. The mapping lets a security team group findings by risk category across all its APIs. ASVS coverage should list every requirement checked, the exceptions and any requirements that do not apply, not only the failed items.

OWASP API Top 10 2023

Retest results and format choice

A complete report records the retest outcome for each finding, showing whether the fix was verified, partially addressed or still open, with the date and build tested. A customer or auditor letter is a shorter document that confirms the test was performed, the scope, the period and the high-level outcome without listing technical details. The full report serves the engineering team, while the letter serves a third party. Confirm with the auditor or customer which format they accept before the test starts.

How GraphQL testing differs by architecture

A public SaaS GraphQL endpoint is reachable by anyone with an account, and often by anyone at all for introspection and unauthenticated fields. The test therefore starts from the outside: what a stranger can learn from the schema, which operations work without a session, and how far a free-tier account can reach into other tenants' data. Scope is usually the production or production-like endpoint, and the tester needs at least two accounts in different tenants with different roles to check object and field authorization properly.

  • Exposure of the schema: Confirm whether introspection, GraphiQL or other browsable tooling is reachable on the public hostname and whether that matches the vendor's own documented intent.
  • Tenant isolation: Plan test accounts in separate tenants and roles so that cross-tenant object access can be checked directly rather than assumed.
  • Abuse controls: Ask for the documented limits on query depth, cost, batching and rate, and confirm with the client which of them the test may probe at volume without disrupting other customers.
  • Rules of engagement: Agree in writing whether the test may run against production, at what hours, and whether the provider's own terms of service permit security testing of the hosted service.
  • Shared infrastructure: Confirm that the test will not degrade a multi-tenant service, and record who is contacted if a control triggers an outage.

Before commissioning, check that the client controls the tenants used in testing and that the test accounts can be deleted or disabled afterward.

What your team prepares before a GraphQL test starts

Start by deciding what the tester can see. The most useful preparation is the GraphQL schema itself, exported as SDL or taken from introspection in a non-production environment, together with any published documentation, persisted query lists and a description of which operations the front end actually sends. Without the schema, a tester spends time rediscovering fields that your team could have handed over, and coverage of nested types and mutations becomes harder to judge. Decide in writing whether introspection output will be shared with the tester or whether the test will start from a black-box position. Both are valid, but the choice changes the scope, the effort and what the final report can say about hidden fields, and the provider should record it in the rules of engagement.

Next, prepare one test account for each role the API enforces, including an unauthenticated baseline, a standard user, a user in a different tenant or organization, and a privileged or administrative role. Authorization on GraphQL is usually decided per field and per resolver, so two accounts per role are often needed to test object-level access across tenants. Provide staging data that is safe to modify, with records that can be created, changed and deleted without touching real customers, payments or personal data. Name a technical contact who can answer questions about resolvers and data flows, and a second contact with authority to stop the test. Confirm in writing which of these owners are on call during testing windows.

Finally, align your operations teams before the first request is sent. Tell the security operations center and any web application firewall or API gateway owners when testing begins and ends, and agree whether the tester's source addresses will be allowlisted or left to trigger alerts as a detection check. Record any rate limits, query depth or cost limits, and batching controls that are expected to be active, so the tester and your team can tell a missing control from a configured one. Place a change freeze on the schema, gateway policies and the staging deployment for the test window, and confirm the freeze in writing with the provider. Ask the provider to confirm how it will handle any service degradation, and what it will report to you in that case.

What to check when choosing a GraphQL testing provider

A GraphQL test is only as useful as the method behind it, so the questions that matter are about how the provider works, not how it markets itself. The cards below cover the evidence to request before signing, from method documents and sample reports to people, written scope and retest terms.

GraphQL-specific method mapping

Ask how the provider's method maps to the GraphQL section of the OWASP Web Security Testing Guide (section 4.12, API Testing) and to the controls in the OWASP GraphQL Cheat Sheet. A generic web or REST checklist will miss schema-level issues such as introspection exposure, nested query abuse and batching. Ask for the test IDs or control names they will cover, so you can check them against your own list.

WSTG GraphQL section

Written method based on NIST SP 800-115

Request a written method that shows planning, discovery, testing and reporting as separate phases, consistent with the lifecycle described in NIST SP 800-115. The document should say which activities happen before testing, how findings are validated and how the report is evaluated. A provider that cannot describe its phases in writing is unlikely to repeat them consistently across engagements.

NIST SP 800-115 guide

Sample report review

Ask for a redacted sample report and read it for specifics. Each GraphQL finding should name the operation or type involved, show how the issue was confirmed, map to an OWASP identifier such as an API Security Top 10 category and carry a severity with the reasoning behind it. Be wary of reports that list generic issues without the schema context or that cannot explain how a result was verified.

Tester qualifications and access

Confirm who will run the test and what they have done with GraphQL, not only web applications. Ask how testers are trained on GraphQL schemas, resolvers and authorization models, and whether the same people will validate findings and write the report. Ask which professional certifications the team holds and confirm them directly with the issuing body, since no specific credentials should be assumed.

CREST OVS status when ASVS is cited

If the proposal says the test will verify against OWASP ASVS, ask whether the provider holds CREST's OWASP Verification Standard accreditation and at which level. CREST's accreditation covers web application assessments against ASVS, so check the current CREST listing rather than relying on a statement in the proposal. Note that OWASP does not certify testers, so an accreditation claim should be verified, not taken at face value.

CREST OVS announcement

Scope, rules of engagement and retest terms

Require the scope, rules of engagement and retest terms in writing before work starts. The document should list the endpoints, schema versions, environments, test accounts, testing hours and any operations that are off limits, such as load tests on production. Retest terms should state whether one retest is included, how long fixed findings have to be checked and what happens to findings that the client disputes.

Common questions about GraphQL API penetration testing

How long does a GraphQL API penetration test take?

The duration depends mainly on the size of the schema, the number of roles the tester must cover and whether the test is authenticated. No public rate or duration exists for GraphQL testing, so ask each provider for a timeline tied to a written scope. The main drivers are the count of types, queries, mutations and subscriptions; how many user roles and tenant boundaries need authorization checks; whether source code or the schema definition is provided; and how many environments are included. Ask the provider to break the estimate into schema review, authenticated and unauthenticated testing, validation of findings, and reporting, so you can see where time goes and what changes if the scope grows.

What does the client need to provide before a GraphQL test starts?

The tester needs enough access to reach the schema and to test authorization as real users would. Confirm the following before work begins:

  • The schema or introspection output for the target environment, or the documented schema if introspection is disabled
  • Test accounts for each role, with distinct tenants or object ownership so cross-account access can be checked
  • The endpoint list, including any separate batching, file upload or websocket paths
  • Rules of engagement that name permitted load levels, testing windows and off-limits data
  • A named contact who can respond during testing if a finding threatens availability

Agree in writing whether the test is unauthenticated, authenticated or both, since this changes coverage considerably.

Can our internal team run a GraphQL penetration test themselves?

Your team can run useful checks, such as reviewing the schema for exposed types, confirming that introspection is restricted, and running depth and cost limit tests against staging. A penetration test is different because it needs an independent tester to judge authorization, business context and chained weaknesses. Many organizations use internal tooling for continuous checks and commission an external test for assurance. If your team does the work, document the method, the scope, who tested and what was found, and keep the results. Compliance reviewers and customers often ask whether the tester was independent of the team that built the API.

Should introspection stay enabled during a GraphQL security test?

Testers usually need the schema to work efficiently, so enabling introspection in a test environment is common and reasonable. The OWASP GraphQL Cheat Sheet lists disabling introspection and GraphiQL in production as a control, so the production configuration is the one that matters for assurance. Ask the provider to test both states where possible: the schema exposure in production, and whether authorization still holds when a tester uses only the documented operations. If introspection is disabled in production, confirm that the test still covers the full schema, either from the supplied schema file or by testing against a staging copy with the same configuration.

Does a GraphQL API penetration test satisfy PCI DSS requirement 11.4.1?

A GraphQL test can contribute to requirement 11.4.1 when the GraphQL API is part of the in-scope cardholder data environment and the test covers the application-layer vulnerabilities that requirement lists. Requirement 11.4.1 covers the vulnerabilities in 6.2.4, including business logic abuse through API manipulation, so the test needs authenticated coverage of payment-related operations. The standard sets the requirements, and a qualified assessor decides whether your evidence meets them. Ask your assessor in advance which evidence they expect, and confirm that the testing methodology and scope document the GraphQL endpoints explicitly.

How is retesting priced and scoped after a GraphQL test?

Retesting is usually a separate line in the quote, scoped to the findings that were fixed rather than to a full repeat of the test. Ask for the retest scope in writing: which finding identifiers are included, whether the tester re-checks the surrounding authorization logic, and how many rounds are covered. Some providers include one retest in the original fixed-scope price, and others quote it separately, so confirm this explicitly. Also ask how long the retest window remains open and what evidence you receive when a finding is closed, such as a tester-verified result recorded against the original finding.

How should we compare two GraphQL penetration test quotes?

Compare the written scopes first, because a low price often covers less. Check the following in each proposal:

  • Whether authenticated testing with role-separated accounts is included, and how many roles
  • Whether authorization testing covers object and field level access, not only login
  • Whether the list of checks maps to the OWASP GraphQL Cheat Sheet controls and the OWASP API Security Top 10 2023
  • What deliverables are promised, including whether findings include reproduction steps and whether the report includes retest results
  • Whether retesting is included, and the rules of engagement for load and testing windows

Ask each provider for the tester qualifications and the methodology they follow, then compare quotes against the same scope rather than against each other's headline figure.

Which standards should a GraphQL test methodology reference?

A defensible methodology usually combines three public references. NIST Special Publication 800-115, Technical Guide to Information Security Testing and Assessment, provides the planning, conducting and analysis structure. The OWASP Web Security Testing Guide v4.2 places GraphQL testing under its API testing section, so testers can cover the GraphQL-specific checks. The OWASP API Security Top 10 2023 gives a risk vocabulary for mapping findings. Ask the provider which version of each reference they use and how the findings will be labeled against them. You can review the GraphQL section of the guide directly to check the coverage the provider describes.

How DeployOpen scopes, tests, reports and retests GraphQL APIs

DeployOpen runs GraphQL API penetration tests as fixed-scope engagements, with scope, deliverables and timelines agreed in writing before work starts. The method covers the same layers described above, from schema exposure to authorization, and ends with a findings report and a retest of the fixes.

How we scope

  • Written scope names the endpoints, schema versions, environments and tenants covered by the GraphQL test.
  • Agree which roles, test accounts and tokens the testers receive, since authorization findings depend on them.
  • Record rules of engagement, including rate limits, load ceilings and any operations that are off limits in production.

How we build

  • Start from the schema and documentation the client provides, then compare it against what the live endpoint exposes.
  • Test transport, query cost controls, schema exposure and field-level authorization as separate layers, so each finding maps to one control.
  • Pair automated checks with manual review of resolvers, since scanners cannot confirm most object-level authorization decisions.

How we hand over

  • Each finding includes a description, affected fields or operations, reproduction steps and a suggested fix.
  • Map findings to the OWASP API Security Top 10 2023 and to the relevant OWASP GraphQL Cheat Sheet controls.
  • Confirm with your auditor or customer which report format and ASVS coverage view they need before the test starts.

How we support

  • Retest agreed fixes in the same scope and issue an updated report showing which findings are closed.
  • Ongoing support, upgrades and continuous testing for your GraphQL schema are available as a retainer.
  • Schema changes after the test, such as new mutations or federated subgraphs, can be added to scope through a written change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.