graphql
Skill1 starsChanged 11 days agoMITView on GitHub
Hunt for GraphQL-specific vulnerabilities: introspection exposure, batch query/alias abuse for rate-limit bypass, deeply nested query DoS, and authorization bypass at the field/resolver level (vs. the endpoint level). Use on any target exposing a `/graphql` (or similarly named) endpoint. Keywords: GraphQL, introspection query, batching, query depth, field-level authorization, resolver, aliasing, IDOR via GraphQL, InQL, graphql-voyager, DoS via nested query. Do NOT use for generic REST IDOR (idor covers that pattern on REST) or generic rate limiting outside GraphQL batching (rate-limiting) — this skill is specifically about the GraphQL query language's own structural features as an attack surface.
- Sends data out
22 other projects use a version of this.
Adopted by
Most recently taken up by
- TheBeardedBearSAS/claude-crafttheir own version, first seen Oct 29, 2026
- SubhiSec/claude-ai-cyber-security-skillstheir own version, first seen Oct 25, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 13, 2026
- xfstudio/skillstheir own version, first seen Oct 13, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
Used with
Projects with it also use oauth-oidc, jwt-attacks and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SubhiSecSkilloauth-oidc
Hunt OAuth 2.0 and OIDC flaws — redirect_uri abuse, state CSRF, PKCE bypass, scope manipulation, implicit-flow token theft, postMessage origin tricks, ID token sub claim swap, JWKS confusion, response_type confusion, and OAuth-CSRF. Use when an app has Google/GitHub/Facebook/Apple/custom OAuth or OpenID Connect.
Also in 3 projects that use this
blacklanternsecuritySkilljwt-attacks
Exploit JWT (JSON Web Token) vulnerabilities during authorized penetration testing.
Also in 3 projects that use this
zebbernSkillsubdomain-enum
Enumerate subdomains for a target domain using passive and active reconnaissance techniques. Use when starting reconnaissance on a new target, when you need to discover the attack surface, when expanding scope from a root domain, or when the user provides a domain to investigate.
Also in 3 projects that use this
lbednerSkilli18n
Use when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/ template tree). Covers adding the real English string, stubbing the same key into every other locale for parity, and the separate translation PR that later replaces placeholders with reviewed native text.
Also in 3 projects that use this
0xSeroSkillsecurity
Also in 3 projects that use this
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- ParabolInc/parabol★ 2ksame name
- Mindrally/skills★ 275same name
- kid-sid/claude-spellbook★ 190same name
- TheBeardedBearSAS/claude-craft★ 108same name
- SubhiSec/claude-ai-cyber-security-skills★ 45same name
- 0xGhostCAT/claude-ai-cyber-security-skills★ 41same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- G1Joshi/Agent-Skills★ 15same name
- crowdin/skills★ 10same name
- xfstudio/skills★ 9same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-agent-reconSkill
- ai-supply-chainSkill
- exfiltration-via-aiSkill
- indirect-injectionSkill
- llm-fuzzingSkill
- prompt-injectionSkill
- rag-poisoningSkill
- tool-abuseSkill
- chain-analysisSkill
- chain-auth-to-takeoverSkill
- chain-customSkill
- chain-graph-walkSkill
- chain-idor-to-mass-dataSkill
- chain-info-to-exploitSkill
- chain-multi-appSkill
- chain-ssrf-to-cloudSkill
- chain-web-to-rceSkill
- chain-xss-to-account-takeoverSkill
- email-securitySkill
- engagement-flowSkill
- finding-disciplineSkill
- http-headers-securitySkill
- oob-interactionsSkill
- opsec-disciplineSkill
- research-firstSkill
- scope-disciplineSkill
- scope-importSkill
- session-contextSkill
- 2fa-bypassSkill
- api-abuseSkill
- auth-bypassSkill
- broken-access-controlSkill
- business-logicSkill
- cache-poisoningSkill
- clickjackingSkill
- corsSkill
- credential-testingSkill
- crlf-injectionSkill
- cryptographic-oracleSkill
- csrfSkill
- css-injectionSkill
- data-exfiltration-testSkill
- deserializationSkill
- email-injectionSkill
- file-uploadSkill
- fuzzingSkill
- grpcSkill
- host-headerSkill
- http-smugglingSkill
- idorSkill
- info-disclosureSkill
- jwtSkill
- lateral-movementSkill
- lfi-rfiSkill
- mass-assignmentSkill
- oauthSkill
- open-redirectSkill
- parameter-pollutionSkill
- password-resetSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
If it succeeds, export the full schema and load it into graphql-voyager (schema visualization) and Burp's InQL extension (which also …
- Distinctive: line 65
Batch/alias abuse for rate-limit and brute-force bypass: Test whether the endpoint allows multiple aliased operations in a single request, …
- Distinctive: line 129
No query cost/complexity analysis or depth limiting configured on the GraphQL server, so arbitrarily nested/aliased queries consume …
- Distinctive: line 171
Before declaring this finding complete, probe these escalation paths:
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Signals
- Any endpoint named/behaving like
/graphql,/graphiql,/api/graphql,/v1/graphql, or a POST-only JSON endpoint whose body accepts{"query": "..."}. - Introspection enabled: a standard
__schemaquery returns the full type/field graph instead of an error. - A GraphiQL/Playground/Apollo Sandbox UI reachable without authentication.
- Mutations and queries that mirror REST endpoints you've already mapped — a strong signal that the same authorization logic may (or may not) have been re-implemented per-resolver, which is where field-level bypass tends to live.
- Responses that include fields you didn't explicitly request authorization for, when the
schema exposes relationship fields (e.g., a
usertype exposing apaymentsfield resolvable from any authenticated session regardless of ownership).
Prerequisites
- At least one authenticated test account; two accounts with different privilege levels or owning different resources is strongly preferred for the authorization tests in step 4.
- The schema (via introspection if enabled, or reconstructed manually from observed queries if disabled) before attempting field-level tests — you need to know what fields/types exist to target them meaningfully.
Methodology
- Introspection check. Send the standard introspection query and record whether it
succeeds:
If it succeeds, export the full schema and load it into graphql-voyager (schema visualization) and Burp's InQL extension (which also auto-generates a query template library from the schema) to map every type, field, and mutation before testing further.curl -s -X POST https://target/graphql -H "Content-Type: application/json" \ -d '{"query":"query IntrospectionQuery { __schema { queryType { name } types { name kind fields { name } } } } "}' - Schema reconstruction if introspection is disabled. Collect real queries from
js-analysis/traffic capture and rebuild a partial schema manually, or usegraphql-cop's field-suggestion/error-message-based reconstruction (many servers leak field names in "did you mean" error messages even with introspection off) — note this is a weaker starting point and schema coverage will be incomplete. - Batch/alias abuse for rate-limit and brute-force bypass. Test whether the endpoint
allows multiple aliased operations in a single request, which can bypass per-request
rate limiting that only counts HTTP requests, not logical operations inside one:
Confirm by comparing how many underlying attempts register against the app's rate-limit counter vs. how many logical operations you sent — a counter that only increments once per HTTP request is the vulnerable behavior.curl -s -X POST https://target/graphql -H "Content-Type: application/json" \ -d '{"query":"query { a: login(user:\"test\",pass:\"guess1\"){token} b: login(user:\"test\",pass:\"guess2\"){token} }"}' - Deep-nesting / query-complexity DoS probe (low-intensity confirmation only). Submit
a query with a small number of nested levels first and measure response time/resource
signals before scaling up, to avoid an accidental denial of service against the target
without an explicit destructive-action gate:
Escalate nesting depth incrementally only while response time scales roughly linearly; stop and report as Inferred (no query-depth/complexity limit observed) rather than pushing to the point of an actual outage — DoS confirmation is a destructive action requiring operator sign-off per project rules.curl -s -w "\ntime_total: %{time_total}\n" -X POST https://target/graphql \ -H "Content-Type: application/json" \ -d '{"query":"query { a { b { c { name } } } }"}' - Field-level authorization bypass. With two accounts of different privilege/ownership,
request a field on a resource owned by account B while authenticated as account A,
using the exact field names mapped in step 1–2:
Compare against the equivalent REST endpoint's authorization (if one exists) for the same data — a mismatch (REST blocks it, GraphQL resolver doesn't) is the core finding this skill targets.curl -s -X POST https://target/graphql -H "Authorization: Bearer $TOKEN_A" \ -H "Content-Type: application/json" \ -d '{"query":"query { user(id: \"<account_B_id>\") { email paymentMethods { last4 } } }"}' - Mutation-side authorization check. Repeat step 5 against mutations (not just
queries) — write-path authorization is frequently missed where read-path checks were
actually implemented:
curl -s -X POST https://target/graphql -H "Authorization: Bearer $TOKEN_A" \ -H "Content-Type: application/json" \ -d '{"query":"mutation { updateUser(id: \"<account_B_id>\", input: {bio: \"test\"}) { id } }"}' - Type confusion / input coercion check. Where a field accepts a union or interface type, test whether supplying an unexpected concrete type bypasses validation scoped to the expected type (e.g., an authorization check written against one implementing type but not enforced against a sibling type implementing the same interface).
Tooling
- InQL (Burp extension) — schema-driven query template generation and systematic field enumeration once introspection is available.
- graphql-voyager — visual schema explorer; useful for spotting relationship fields that cross ownership boundaries (the fields most likely to carry a field-level auth gap).
- graphql-cop — automated checks for common GraphQL misconfigurations (introspection exposure, batching, missing depth/complexity limiting, field suggestion leakage).
Root Causes
- Authorization implemented at the HTTP/endpoint layer for REST but not re-implemented per resolver when the same data was exposed through GraphQL.
- No query cost/complexity analysis or depth limiting configured on the GraphQL server, so arbitrarily nested/aliased queries consume unbounded resources.
- Introspection left enabled in production, handing an attacker the full data model without any enumeration effort.
- Rate limiting implemented by counting HTTP requests rather than logical operations, trivially bypassed by batching/aliasing.
Validation Gate (minimum proof)
- Minimum: actual data access or a demonstrated behavior deviation, not just a structural observation. "Introspection is enabled" alone is Inferred/informational; it becomes a reportable finding only combined with what introspection actually revealed that shouldn't be public, or when it's used to find the field-level bypass in step 5.
- For authorization bypass: the exact query and response showing account A received data or performed a mutation scoped to account B, with both accounts' identities and the request/response pair documented.
- For batching/rate-limit bypass: a side-by-side comparison showing N logical operations processed against a rate-limit counter that incremented fewer than N times.
- For DoS: documented response-time scaling trend (Inferred) — do not escalate to an actual outage without explicit operator authorization for a destructive test.
Gotchas
- Overclaim trap: introspection being enabled is not itself a vulnerability on many modern stacks (lots of public APIs intentionally expose it) — the finding is what it reveals (internal-only types/fields/mutations not meant for the current consumer) or what it enables you to find downstream, not the exposure in isolation.
- Common N/A: a persisted-queries-only setup (client sends a query ID, not a raw query string) defeats most of steps 3–6 as written — confirm whether arbitrary queries are actually accepted before building a whole test plan on introspected schema data.
- Common N/A: per-field complexity scoring/depth limiting actually enforced (test returns a specific "query too complex" error rather than succeeding) — verify the limit is real by finding the actual threshold, not just assuming because one deep query was rejected.
- Overclaim trap: a field-level bypass that only returns data the requesting user is also entitled to see through a different, authorized path is not a vulnerability — confirm the data genuinely belongs to a different principal with no sharing relationship.
- Batch/alias requests can look identical to legitimate complex client queries in logs — document the exact query sent so the finding is unambiguous to a reviewer.
Chain Anchors
Before declaring this finding complete, probe these escalation paths:
- Introspection to full schema abuse — Does introspection exposure reveal mutations/fields not used by the official client, widening the attack surface?
- Batching/aliasing for auth bypass — Can query batching or aliasing brute-force rate-limited fields (login, OTP) past per-request limits?
- Nested query DoS — Can a deeply nested or circular query cause resource exhaustion when query complexity/depth isn't limited?
- IDOR via object-level auth gaps — Do individual resolvers enforce object-level authorization, or can other users' data be fetched by ID through a different query/mutation path?
- Error-based information disclosure — Do verbose GraphQL errors leak schema internals, stack traces, or validation details useful for further attack?
A finding without chain anchor results is INCOMPLETE. Record each anchor as tested/not-applicable/blocked with the reason.
Chains & Compositions
- Field-level authorization bypass exposing another user's data → feeds idor / broken-access-control for the broader cross-account access-control assessment.
- Batching bypassing rate limiting → combine with rate-limiting on the same mutation (e.g., login, OTP verification) for a credential-stuffing or brute-force chain.
- Newly discovered types/fields from introspection → feed back into api-discovery to expand the overall endpoint/data map before closing this pass.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

