agentleFS
NoorQureshiNoorQureshi/ronin/skills/api/api-graphql/SKILL.md

api-graphql

Skill26 starsChanged 31 days agoMITView on GitHub

Attack GraphQL APIs. Load on /graphql, /graphiql, /v1/graphql, a POST with {"query":"..."}, Apollo/Hasura/graphene stacks, or "query/mutation" language. Signals: introspection enabled, batched queries, deeply nested fields, __schema, aliases.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    AuthZ testing (BOLA/BFLA): call queries/mutations for objects and admin operations you shouldn't reach.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 abuse

When it applies

The target exposes a GraphQL endpoint. GraphQL collapses many objects behind one URL, so authorization gaps and info leaks are common and easy to miss with URL-based testing.

Why it works

One endpoint, a self-describing schema, and per-field resolvers mean access control must be enforced at every field/resolver — it frequently isn't. Introspection hands you the entire attack surface; batching/aliases turn one request into thousands.

Method

  1. Fingerprint & map: graphw00f for the engine; if introspection is on, dump the schema ({__schema{types{name fields{name}}}}) with inql/clairvoyance. If off, brute field names with clairvoyance (error messages leak valid fields).
  2. AuthZ testing (BOLA/BFLA): call queries/mutations for objects and admin operations you shouldn't reach; swap ids in arguments (same as IDOR) — resolvers often skip owner checks.
  3. Info disclosure: reach sensitive fields/types (users, tokens, internal flags) via nested relations even when the "front door" query hides them.
  4. DoS / cost: deeply nested recursive queries and aliased batching (a:login b:login ...) to bypass rate limits or brute-force — respect program rules on this.
  5. Injection: arguments feed backends — test SQLi/NoSQLi in GraphQL variable values.

Gotchas

  • Introspection off ≠ safe — field brute-forcing and suggestion errors still map the schema.
  • Rate-limit bypass via batching/aliases is a real, reportable finding on many programs.
  • Mutations are where impact lives; don't stop at read queries.

Verify success

Retrieve/modify data through a query or mutation your role shouldn't allow, or dump a schema that reveals hidden admin operations.

References

PortSwigger GraphQL labs; OWASP API Security Top 10 (2023); graphw00f/inql docs.

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.