agentleFS
fennihfennih/hunterkit/graphql/SKILL.md

graphql

Skill0 starsChanged 6 days agoMITView on GitHub

Focused hunt for GraphQL-specific vulnerabilities: introspection-enabled surface mapping, field-level authorization gaps, IDOR via queries/mutations, batching/DoS probes, error-based info leak, and mutation abuse. Use when the focus is a GraphQL endpoint. Not for generic REST IDOR (use access-control) or injection outside GraphQL contexts.

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oauth-oidc, jwt-attacks and 4 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.
  • SubhiSecSkill

    oauth-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

  • SubhiSecSkill

    jwt-attacks

    Hunt JSON Web Token (JWT) vulnerabilities — alg=none bypass, RS256→HS256 key confusion, weak HMAC secret cracking, kid path traversal, JWKS injection, jku/x5u header attacks, embedded JWK confusion, expired-token acceptance, claim mutability, and token replay. Use when an app uses JWT for authentication or stateless sessions.

    Also in 3 projects that use this

  • zebbernSkill

    subdomain-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

  • iAskShahramSkill

    file-upload

    Uploads a local file to Cloudflare R2 bucket `public` with wrangler and returns the public URL on assets.shahram.dev. Use when the user wants a public link, public URL, or to host/upload a local image or file to R2.

    Also in 4 projects that use this

  • lbednerSkill

    i18n

    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

  • 0xSeroSkill

    security

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 1

    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
  1. Distinctive:

    Test each with two accounts (B acting on A's resources).

    line 41

“Common” is measured: kept by at least 6 in 10 of the 22 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GraphQL

When to use

  • "Test the GraphQL API of X", "hunt GraphQL issues on X"
  • Endpoint found: /graphql, /api/graphql, /v1/graphql (also check /graphiql, /graphql-console)

When NOT to use

  • REST API access control (use access-control)

Inputs

  • Target + the GraphQL endpoint; two accounts for cross-user tests

Rationalizations to reject

  • "Introspection is open" — that's recon, not a finding (report as info/lead). Findings need a specific field/mutation with proven impact.
  • "The query works" — works with WHOSE data? Cross-account reproduction is the proof for authz findings.
  • "Aliases = DoS" — only report DoS if you demonstrated controlled, bounded impact (e.g. 100x amplification with a few requests), never by hammering.

Methodology

1. Surface mapping

  • Introspection query (full: __schema { types { name fields { name } } }, plus args/mutations). If disabled: try field suggestions ("quer" → "Did you mean 'query'?" error-based enumeration), Clairvoyance-style guessing if installed.
  • Record queries, mutations, subscriptions, and their argument types. Mark admin/internal-looking fields.

2. Field-level authorization

GraphQL servers often check at the resolver level only — or not at all:

  • As user B, query objects owned by user A (IDs from A's data): user(id: "<A>") { email orders { total } }.
  • Enumerate: private fields on public queries (email, apiKey, tokens, mfa fields), disabled/deleted users still queryable.
  • Mutations as B on A's objects: updateUser(id: A, ...), deleteOrder(id: A) (destructive only on your own objects first).

3. Mutation abuse

  • Enumerate all mutations. Check: missing ownership checks, mass-assignment-ish extra args (role, isAdmin), mutations reachable without the UI flow.
  • Test each with two accounts (B acting on A's resources).

4. Batching and cost

  • Alias-based batching: a: user(id:1) b: user(id:2) ... — measure amplification with ~20 aliases, report as DoS lead with the number.
  • Query depth/complexity: nested recursive types (if the schema has cycles) — one deep query, note cost.
  • Introspection + __directives, debug fields (_service, _entities if federation).

5. Info leak and errors

  • Verbose errors: invalid type → stack, internal paths. suggestions revealing field names.
  • Debug/Playwright endpoints: /graphiql, /playground, /altair exposed in prod.

6. Injection in resolvers

Arguments reaching DB/templates/commands: test with the matching skill's payloads (sqli, ssti) — note cross-reference in both reports.

Reporting

findings/graphql-<date>.md + coverage table query/mutation | args | as-user B on A's data | result. Field-level authz bypass = high; DoS leads = low unless impact proven.

Focus discipline

Login/session issues → ato. REST equivalents of the same authz bug → cross-note with access-control.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.