GraphQL API penetration testing checklist

A reviewable checklist of what a GraphQL API penetration test should check, mapped to the OWASP GraphQL Cheat Sheet and the OWASP API Security Top 10 2023, for buyers comparing proposals.

On this page

GraphQL API penetration testing checklist: what a buyer should expect to see

A GraphQL API penetration test proposal is credible when it names the specific weaknesses it will check and how each one will be verified. If your launch, customer security review, insurer or compliance assessment calls for a GraphQL test, use the checklist below to compare proposals. The checklist covers the threat areas the OWASP GraphQL Cheat Sheet names: injection, denial of service, broken authorization including IDOR, batching attacks and insecure default configurations. Each area maps to headings in the OWASP API Security Top 10 2023, including API1 Broken Object Level Authorization, API3 Broken Object Property Level Authorization, API4 Unrestricted Resource Consumption, API5 Broken Function Level Authorization and API9 Improper Inventory Management. GraphQL needs its own checklist because the API exposes one endpoint and a schema that defines everything a client can ask for, so exposure depends on the schema and on resolver-level authorization rather than on route-level rules. Query cost also varies widely between requests that look alike.

A proposal should show how the tester will check introspection and GraphiQL-style tooling in each environment, whether verbose errors leak schema detail outside development, and how depth, breadth, batch and rate limits are set and tested. The GraphQL Foundation's security guide also lists trusted documents and paginated list fields as demand controls, so ask whether those are in scope. Ask for authorization testing of each query and mutation against the roles you actually run, including field-level checks on sensitive properties. Ask whether the tester will receive the schema, test accounts and any persisted query lists, because these change how much of the surface can be covered.

This checklist helps you compare proposals. It does not replace a scoped test. Your provider should confirm the target, environments, roles, rules of engagement and the testing viewpoint in writing before work starts, and should state which checklist items will be verified manually, which are tool-assisted and which are out of scope. Ask the provider to show how each item becomes a finding or a documented pass in the report, and to confirm whether a retest is included. Confirm any test duration or fee with the provider against your written scope, since no public rate applies to this work.

What a GraphQL API penetration testing scope should record before work starts

A GraphQL test is only as good as the scope behind it. The decisions below should appear in writing, with rules of engagement in the scope of work, before any testing begins. Several of them change which checks are possible, so a buyer should see each one answered.

Endpoints and their count

Record every GraphQL endpoint in scope, including whether the service exposes one endpoint or several, such as separate public, partner and admin paths. Each endpoint may run its own schema, authentication and gateway rules, so a single sign-off for "the API" can leave gaps. Ask the provider to list endpoints by URL and version in the scope of work, and to state which are excluded and why.

Schema access and introspection state

Record whether introspection is enabled in the test environment, and whether the tester receives a supplied schema, works from none, or receives a schema export. Introspection status changes the work: a documented schema speeds up authorization testing, while a tester working blind must reconstruct the schema first. Confirm whether the test should also check the production setting, since the GraphQL Foundation's security guide notes that disabling introspection is not sufficient on its own.

GraphQL security guide

Environments and data

Name the environment for testing, such as staging, a pre-production copy or production under agreed limits. Record whether the test data is synthetic, whether it is a masked copy of real records, and who approves any write operations. Testing mutations against live financial or health records requires explicit sign-off, and the answer should appear in the rules of engagement.

User roles and test accounts

List each role the API serves, such as anonymous, customer, support agent, tenant administrator and service account, and the number of accounts the tester needs per role. Authorization testing depends on comparing what one role can reach against what another should not, so missing roles mean missing checks. Ask the client to supply accounts for every role, with two accounts per role where object ownership matters.

Query explorers and developer tools

Record whether GraphiQL, Apollo Sandbox, Altair or a similar query explorer is reachable in the test environment and in production. Explorers expose the schema and query history to anyone who can load a page, so their status belongs in the scope. The OWASP GraphQL Cheat Sheet lists disabling GraphiQL in production among its controls, and the test should confirm that setting rather than assume it.

OWASP GraphQL Cheat Sheet

Gateway and federation layers

Record any API gateway, WAF, rate limiter, persisted query store or federated subgraph layer between the client and the service. Controls such as depth limits or rate limits may sit in the gateway rather than the GraphQL server, so testing the server alone can misstate coverage. The scope should say which layers are tested, which are only observed, and which belong to a third party whose testing terms apply.

Contacts, change windows and rules of engagement

Name the technical contact, the escalation contact for critical findings, and the change or freeze windows that apply to the environment. Rules of engagement belong in the scope of work and should cover permitted test volumes, rate or load limits, stop conditions and how the tester reports a suspected live incident. Scope must be agreed in writing before testing starts, and any change to it should be recorded as a signed amendment.

Which GraphQL weakness categories a checklist should cover and why they matter

This table maps each GraphQL checklist area to the weakness it looks for, the OWASP control or API Top 10 identifier it relates to, and the business consequence if it is missed. Use it to check whether a proposal covers the areas that matter for your schema and clients. Each row is a question to ask the provider about how they will test it.

Checklist areaWhat the weakness looks likeMapping and business consequence
Introspection exposureSchema discovery is open outside development, so the full types, fields and mutations are visible to anyone who can reach the endpoint.Maps to the OWASP GraphQL Cheat Sheet controls on disabling introspection. Disabling alone is not enough, so the test should confirm other exposure paths too. Consequence: attackers map the schema faster and find sensitive operations.
Depth and breadth limitsThe server accepts deeply nested or very wide selections with no enforced maximum, so one request can fan out into a large amount of work.Maps to API4 Unrestricted Resource Consumption and the cheat sheet's depth and amount limits. Consequence: service degradation or denial of service for other customers.
Batching and aliasingMany operations can be sent in one request or repeated through aliases, which can bypass per-request rate counting or login attempt limits.Maps to API4 and the cheat sheet's batching section. Consequence: brute force against credentials or one-time codes that per-request controls would otherwise slow.
Query cost and rate limitingLimits count requests but not the cost of expensive fields, so cheap-looking queries can be very costly to resolve.Maps to API4. The GraphQL Foundation guidance says rate limiting is generally best applied in the business logic layer. Consequence: cost overruns, outages and unfair resource use across tenants.
Object and field level authorizationResolvers check access on some types or queries but not on nested fields, related objects or mutations, so identifiers can be swapped to reach other users' data.Maps to API1 and API3 (property level authorization), API5 (function level) and the cheat sheet's query and mutation access control section. Consequence: cross-customer data exposure and unauthorized state changes.
Mutation access controlWrite operations are reachable by roles that should only read, or skip the checks applied to the equivalent REST route.Maps to API5 Broken Function Level Authorization. Consequence: unauthorized payments, account changes or deletions, which can also trigger regulatory reporting duties.
Injection through argumentsArgument values reach databases, search engines, file paths or downstream services without validation or parameter binding.Maps to the cheat sheet's injection threat and the input handling checks in the OWASP Top 10 (A05 Injection). Consequence: data disclosure or modification in back-end stores.
Verbose error messagesErrors reveal resolver names, stack traces, type details or field suggestions that let an outsider rebuild the schema.Maps to the cheat sheet's error handling guidance and the GraphQL Foundation point that detailed errors can expose schema shape even with introspection off. Consequence: easier targeting of the other weaknesses above.
Insecure defaults such as GraphiQL in productionInteractive explorers, debug modes or development endpoints remain enabled in production, sometimes on a separate path.Maps to API8 Security Misconfiguration and the cheat sheet's guidance to disable GraphiQL outside development. Consequence: an easy interactive attack surface and exposed internal documentation.

How a GraphQL request passes the controls a tester checks

A request starts at the client, may pass a gateway or WAF, then reaches the GraphQL server, which parses and validates it against depth, breadth and cost limits before resolvers call backend services. Authorization must hold at both field and object level before data returns, and errors leave the server in a format that should not reveal the schema outside development. The GraphQL Foundation's security guide says rate limiting is generally best applied in the business logic layer, because the server often cannot know in advance whether a request includes expensive fields, so the test has to reach that layer rather than stop at the edge.

Where each control sits in one GraphQL request, and where the trust boundary falls.

How a GraphQL API penetration test runs, phase by phase

The sequence moves from agreed scope and documentation to authenticated and unauthenticated testing per role, then to rated findings, a written report and a retest that confirms the fixes.

  1. Agree scope and collect the schema documents

    The client and the tester agree in writing which endpoints, environments and roles are in scope, and the client supplies the schema, any trusted document lists, the list of paginated fields and a role matrix showing which account may read or change which types. The tester reviews these before any live requests are sent, so that the test is built around the intended design rather than guesses about it. This step is done when the scope document and the role matrix are signed off by both parties and the test accounts are confirmed working.

  2. Map controls to the OWASP GraphQL Cheat Sheet

    The tester builds a checklist from the OWASP GraphQL Cheat Sheet and the WSTG v4.2 categories for authorization, input handling, error handling and API testing, then notes which controls the client says it has, such as depth limits, breadth and batch limits, rate limiting, disabled introspection outside development and generic error responses. Each control is recorded as present, absent, partial or unknown. The output is a control map that tells the team exactly which checks apply to this API, and it is reviewed with the client before live testing begins.

  3. Test unauthenticated and authenticated access by role

    The tester runs checks as an unauthenticated user and then as each role in the matrix, covering object-level and field-level authorization, function-level access to queries and mutations, and whether the business logic rules hold across accounts. Because ASVS 5.0.0 says automated scanners cannot fully verify business logic and access control, this phase is manual and uses the schema and documents as the reference for expected behavior. The step closes when every role has been tested against every control in the map, with each result recorded as a pass, a finding or not applicable with a reason.

  4. Test input handling, demand controls and error output

    The tester checks how arguments and variables are validated and whether they reach queries, databases or downstream services unsafely, and tests whether the server enforces its depth, breadth, batching and rate limits under controlled load. The tester also checks whether error messages reveal internal field names, types or stack details, and whether introspection is available outside development. Each check is run in the agreed environment within the rules of engagement, and the output is a set of observed behaviors with the evidence needed to reproduce them.

  5. Analyze findings and assign severity

    The tester groups related observations, removes duplicates and confirms that each finding is reproducible and tied to a specific control, role or type. Severity is assigned with stated reasoning that considers the data exposed, the roles affected and the conditions under which the issue can be exploited, and the client's environment is taken into account. Findings that depend on a control the client believes is in place are confirmed or closed with the client before the report is written, so that the report reflects tested behavior.

  6. Deliver the report with mapped coverage

    The report sets out scope, method, the control map, a summary of every area checked and the findings, each with reproduction steps and a suggested fix. Coverage is stated for all checks, including those that passed or did not apply, so the reader can see what was tested rather than only what failed. The client reviews the draft for factual accuracy, and the step is complete when the final report is issued and the client has confirmed the findings to be fixed.

  7. Retest the fixes and close the findings

    After the client applies fixes, the tester repeats the reproduction steps for each finding, checks the changed controls for regressions and records each finding as resolved, partially resolved or still open. The retest result is added to the report as a dated addendum so that the client holds a complete record. Retest timing and any further rounds are agreed in the original scope, and the step closes when every finding has a documented status.

What drives the cost and duration of a GraphQL checklist test

This table compares the factors that change the effort behind a GraphQL checklist test and what to request in each quote. Read each row as a question to answer in the written scope, since DeployOpen does not publish prices and a quote follows from that scope.

Cost factorWhy it moves effortWhat to ask for in a quote
Endpoints and schemasEach GraphQL endpoint and each schema version adds checklist areas to cover, such as introspection, depth limits and authorization rules.A list of endpoints, schema versions and environments in scope, with the checklist areas tested for each.
User roles and test accountsAuthorization checks need separate accounts per role, tenant and privilege level to test object and field access across boundaries.The number of roles, who supplies test accounts, and whether accounts are pre-provisioned before testing starts.
Schema size and complexityLarge schemas with many types, mutations and nested relationships take longer to map and to test for depth, batching and resolver authorization.Type and mutation counts from the schema, and whether the tester receives an introspection export or must derive it.
Schema or source accessProvided schema files and resolver code let testers confirm field-level rules directly, while black box work infers them from responses.Whether the schema, resolver code or design notes are supplied, and how they are handled under the rules of engagement.
Authenticated versus unauthenticated depthAuthenticated testing covers object and function authorization and business flows, which takes more work than checking public surface only.Separate line items for unauthenticated and authenticated coverage, with the roles each one exercises.
First-party or public targetPublic APIs with many unknown consumers need broader abuse and rate-limit testing than first-party clients with trusted documents.A statement of who calls the API and whether trusted documents, persisted queries or paging controls exist to test.
Rounds of retestEach retest repeats checks on fixed findings and confirms no regressions, so the count of rounds adds effort.The number of retest rounds, what counts as a retest, and whether retest is included or quoted separately.
Reporting depthReports that map each finding to checklist areas, reproduction steps and fix guidance take more time than a summary list.A sample report, the mapping used (such as the OWASP GraphQL Cheat Sheet controls), and the content of the final deliverable.

Which compliance frameworks expect application testing that covers GraphQL

A GraphQL endpoint falls inside application-layer testing whenever it sits in a payment flow or a customer-facing application that a framework covers. The endpoint is not exempt because it is one URL. For PCI DSS, requirement 11.4.1 calls for application-layer penetration testing that identifies, at minimum, the vulnerabilities listed in requirement 6.2.4, and that list includes abuse or bypass of application features through manipulation of APIs. A GraphQL mutation that changes an order, a payment amount or a stored payment method is exactly that kind of API. Before you commission a test, ask your assessor whether the GraphQL service is in the cardholder data environment or connected to it, and whether the test must cover the payment-related mutations by name. The answer determines whether the schema is in scope at all.

CIS Controls v8.1 Safeguard 16.13 asks for application penetration testing and notes that, for critical applications, authenticated testing is better suited than automated scanning to find business logic flaws, with testers acting as both authenticated and unauthenticated users. For a GraphQL API, that means the tester should hold realistic accounts at each privilege level and check field and mutation access across them, not only confirm that the endpoint answers. On the OWASP ASVS side, the chapters most relevant to a GraphQL test are V4 API and Web Service, V8 Authorization and V2 Validation and Business Logic. Ask the provider which ASVS level it will test against and which of these chapters it will cover. ASVS 5.0.0 says automated DAST and SAST tools cannot fully verify many business logic and access control requirements, so a scanner-only report will not satisfy this expectation.

Two points help when you read a proposal or hand evidence to an auditor. First, an ASVS verification report should list every requirement checked, the requirements with exceptions and guidance on fixing them, and any requirements marked as not applicable, so ask for that structure rather than a list of findings alone. Second, OWASP does not certify testers, verifiers or software, so any claim of ASVS compliance from a provider is not an OWASP endorsement. CREST's OWASP Verification Standard accreditation covers web application assessments against ASVS at Levels 1 and 2, which is a useful signal when comparing firms, though you should still confirm the accreditation applies to the work quoted. Confirm the requirement mapping with your assessor before testing starts.

What a GraphQL API penetration test report should give your auditor or customer

A useful GraphQL report shows what was checked, not only what failed, so an ASVS-style verification or a customer security review can follow the work. Each card below is one part of the report that a buyer should ask to see before commissioning the test.

Scope and method statement

The report should name the exact schema version, endpoints, user roles, test accounts and environments that were covered, plus anything excluded and why. It should also state whether testing was unauthenticated, authenticated or grey box, and whether the schema was available as documentation or was discovered during the test. Without this, an auditor cannot tell whether a clean result covers the production API or a staging copy with different settings.

Checklist coverage summary

Every area tested should appear in the summary, including areas with no finding. Introspection, depth and batch limits, field-level authorization, argument handling, error output and rate limiting should each show a result such as passed, failed, not applicable or not tested. A coverage table lets the reader see the boundaries of the work and supports the ASVS practice of noting requirements that do not apply.

Findings with reproduction steps

Each finding should describe the affected query, mutation or field, the role used, the observed response and the steps a developer needs to reproduce it in a test environment. Write reproduction steps for the engineer who will fix the issue, not for a reader who wants an attack recipe. Reproduction detail should be enough to confirm a fix, and sensitive payloads should be handled under the agreed rules of engagement.

Severity with environmental context

Severity ratings should explain how the issue applies to this deployment, such as whether the field exposes personal data, whether the query is reachable without authentication, and whether a compensating control exists. Ask which scoring method the tester uses and whether the environmental factors are written down. A rating without this context is hard to defend in a risk review.

Fix guidance per finding

Each finding should carry a specific remedy, such as enforcing object-level checks in resolvers, setting depth and cost limits, returning generic errors outside development, or removing debug endpoints from production. Guidance should name the layer where the control belongs, since rate limiting for GraphQL is generally best applied in the business logic layer. Ask whether the tester will review the proposed fix before it ships.

Retest results and customer summary

The report should record which findings were retested, the date of each retest, and the result, with open items carried forward. A short summary letter for customers or auditors should state the scope, the test period, the number of open and closed findings, and the retest status. This summary is what most security questionnaires ask for, and it should not be presented as a certification, since independent auditors issue those.

How much GraphQL API penetration testing costs and what the work needs from you

How much does a GraphQL API penetration test cost?

No public rate exists for a GraphQL checklist test, so the price comes from the written scope rather than a published list. The main cost drivers are the size of the schema (number of types, queries, mutations and subscriptions), the number of user roles that must be tested for authorization, whether testers get authenticated access, whether they receive the schema and documentation, and how many environments are in scope. Ask each provider to quote against the same schema, role matrix and environments so the proposals can be compared line by line. A quote should separate the one-time test effort from any recurring work, such as retesting or continuous testing, and should state which ASVS level or checklist items it covers. DeployOpen does not publish a price list; a quote follows from the written scope.

How long does a GraphQL API penetration test take?

Duration depends mostly on how much of the schema must be examined and how many roles must be compared. A schema with many object types and nested relationships takes longer to map than a small one, because each resolver path is a place where authorization can differ. Other timeline factors include whether the tester receives the schema and a role matrix up front, how quickly test accounts are provisioned, how many findings need validation, and whether the client must approve any testing windows. Agree the start and end dates, the test window and the report delivery date in the written scope before work begins. Any duration you are quoted should be tied to these inputs, and you should ask the provider which assumptions the estimate depends on.

What does the team need to provide for a GraphQL test?

The team should prepare the inputs the tester needs to work efficiently and to avoid guessing at intent. Typically this includes:

  • The schema, or introspection access in a test environment, plus any published documentation and the list of query and mutation names
  • A role matrix showing which user roles should see or change which objects, fields and mutations
  • Test accounts for each role, with credentials provided through an agreed channel and a plan for resetting them
  • The list of environments, endpoints and any trusted documents or persisted query rules
  • Named technical and security contacts, plus an escalation path and testing window

Without a role matrix, a tester can only report what looks wrong, not what breaks a stated rule. Confirm with your provider exactly which of these items it needs before the scope is signed.

Can our internal team run a GraphQL security checklist ourselves?

An internal team can run parts of the checklist, especially configuration checks such as whether introspection, GraphiQL and verbose errors are disabled in production, and whether depth, breadth, batch and rate limits are set. The gaps usually appear in authorization testing, where a tester must compare what each role can reach across many resolvers, and in business logic checks such as abuse of mutations. The OWASP GraphQL Cheat Sheet describes batching attacks and query and mutation access control as separate areas, and the GraphQL Foundation's security guide notes that rate limiting is best applied in the business logic layer, which is hard to verify from outside the code. Internal self-testing is useful between formal tests, but an independent tester adds value for evidence that auditors and customers accept.

Does introspection have to be enabled for penetration testing?

No. A tester can work without introspection by using documentation, a schema file supplied by the client, or a test environment where introspection is enabled. The GraphQL Foundation's security guide says APIs serving only first-party clients may forbid introspection outside development, and it also says disabling introspection is not sufficient on its own. For that reason, a good test checks whether introspection is off in production and whether the schema can still be inferred through error messages or field suggestions. If the client wants production introspection tested, agree that in the scope and rules of engagement, and confirm which environment and accounts will be used.

How is GraphQL retesting priced and scheduled?

Retesting is usually a separate, defined piece of work that verifies whether the agreed fixes resolved each finding. Its cost depends on how many findings are retested, whether the fix changes the schema or resolver logic, and whether the tester must repeat authorization checks across roles. Ask whether retesting is included in the original quote or priced separately, how long after report delivery it must happen, and whether the retest result is delivered as an updated report. Schedule the retest after the fixes are deployed to the environment the tester will use, not before. Ongoing support, upgrades and continuous testing are available as retainers, which is a better fit when the schema changes often.

Will a GraphQL test report satisfy a PCI DSS assessor or customer review?

A report can serve as evidence, but it does not replace the assessor's judgment or a customer's requirements. PCI DSS requirement 11.4.1 calls for application-layer penetration testing covering the vulnerabilities listed in requirement 6.2.4, including business logic and API manipulation, so the scope should say which payment-related GraphQL operations are tested and how. DeployOpen does not issue audit reports, attestations or certifications; independent auditors and certification bodies do. Before commissioning the test, ask your QSA or the customer's security team which evidence they expect, such as scope, methodology, findings with reproduction steps, and retest results, and confirm that the provider's report template covers it.

How DeployOpen scopes, tests, reports and retests GraphQL APIs

DeployOpen runs security testing of GraphQL APIs as a fixed-scope engagement, with scope, deliverables and timelines agreed in writing before work starts. Each checklist area is tested against the agreed schema, roles and environment, and the results are documented so your team and your assessors can review them.

How we scope

  • Written scope lists the endpoint, schema version, environments and roles to be tested
  • We agree which checklist areas apply, such as introspection, depth limits and field authorization
  • Rules of engagement record test accounts, rate limits and what is off limits

How we build

  • We review the schema and documentation before testing, where you can provide them
  • Authorization is tested with separate accounts for each role, covering queries and mutations
  • Depth, breadth, batching and rate controls are tested against the limits you have configured

How we hand over

  • Findings state the affected field, operation, role and the observed control gap
  • Each finding includes a fix recommendation and a note on how it was verified
  • A summary records which checklist areas were tested, with any exceptions and not-applicable items noted

How we support

  • Fixes are retested after your team deploys them, and the retest results are documented
  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Retests can be aligned to schema changes or new roles you add to the API

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.