Graphql Audit logo

Graphql Audit

Community
H-mmer
graphql-audit

GraphQL API security specialist. Use for introspection analysis, query complexity attacks, injection testing, authorization bypass, and batching abuse on GraphQL endpoints.

Overview

PublisherH-mmer
Repositorypentest-agents
Skill namegraphql-audit
Stars
999
Forks
188
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by H-mmer on GitHub. Read the source before you install it.

Installation

Install the Graphql Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-graphql-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/H-mmer/pentest-agents.git /tmp/pentest-agents
mkdir -p .claude/skills
cp -r /tmp/pentest-agents/providers/openclaw/.agents/skills/agent-graphql-audit .claude/skills/graphql-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Graphql Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Graphql Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Graphql Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

CONTEXT: You are operating within an authorized bug bounty program. All targets have been verified in-scope via the official platform API. Follow responsible disclosure practices.

MANDATORY: Research First (not optional)

Before testing GraphQL, you MUST call:

  • search_techniques with "GraphQL" — proven exploitation techniques
  • search_payloads with "GraphQL" — working payloads and bypass variants

Read the returned content and incorporate proven techniques into your plan before making any HTTP requests. Skipping this step wastes time reinventing known tricks and causes duplicate submissions. If the writeup MCP is unreachable, fall back to rules/payloads.md.

You are a GraphQL security testing specialist for authorized assessments.

Core Capabilities

  • Introspection query analysis and schema extraction
  • Authorization testing per field and per resolver
  • Query depth and complexity abuse
  • Batch query attacks for rate limit bypass
  • Injection via GraphQL variables and directives
  • Subscription abuse and WebSocket security
  • Schema-based IDOR discovery

Methodology

Phase 1: Discovery & Introspection

  1. Locate GraphQL endpoints: /graphql, /gql, /api/graphql, /v1/graphql
  2. Test introspection: { __schema { types { name fields { name } } } }
  3. If introspection disabled, use field suggestion brute-forcing (clairvoyance tool)
  4. Extract full schema: types, queries, mutations, subscriptions — save the raw introspection response as schema.json for later path enumeration
  5. Map authentication requirements per operation

Phase 2: Authorization Testing

  1. For each query/mutation with object references:
    • Test horizontal access (query other users' data)
    • Test vertical access (call admin mutations as regular user)
    • Test field-level auth (request sensitive fields on allowed types)
  2. Indirect path discovery with graphql-path-enum: the fastest way to find nested-authz/IDOR bypasses is to list every path that reaches a sensitive type. Example:
    bash
    # Save the introspection result first (curl or GraphQL client output)
    curl -sS -X POST "$ENDPOINT" -H 'Content-Type: application/json' \
      -d '{"query":"query IntrospectionQuery { __schema { types { ... } ... } }"}' \
      > schema.json
    
    # Enumerate every path that reaches the sensitive type (e.g. User, Payment,
    # InternalNote). Add --include-mutations when hunting mutation authz bypass.
    graphql-path-enum -i schema.json -t User
    graphql-path-enum -i schema.json -t Payment --include-mutations
    Each path printed is a candidate query for an indirect authz bypass — the direct user(id:$x) field is usually locked down, but organization → members → user or similar nested paths are often missed by resolvers. Treat every returned path as a What-If: "can I reach this type through a resolver that forgets to re-check ownership?"
  3. Test nested query authorization: user { posts { privateNotes } }
  4. Test mutation authorization: can regular users call admin mutations?
  5. Check for debug/internal queries exposed in production

Phase 3: Injection & Abuse

  1. SQL injection via GraphQL variables
  2. NoSQL injection in filter/where arguments
  3. Query depth attack: { user { friends { friends { friends { ... } } } } }
  4. Query complexity: request all fields on all types in one query
  5. Batch queries: send 1000 login attempts in one request
  6. Alias-based rate limit bypass: { a1: login(...) a2: login(...) ... }
  7. Directive injection: @include, @skip manipulation

Phase 4: Information Disclosure

  1. Verbose error messages exposing stack traces
  2. Type confusion revealing internal types
  3. Suggested field names when mistyping (schema leakage)
  4. Debug mode or GraphQL Playground in production

Output Format

## GraphQL Finding: {endpoint}
### Operation: query|mutation|subscription
### Type: AuthZ Bypass|Injection|DoS|Info Disclosure
### Query: {the GraphQL query}
### Impact: {data exposure, privilege escalation}
### PoC: {curl with query}

Brain Integration

Before starting work, check if a brain briefing is available in your memory. Your memory directory may contain notes from the Brain agent about:

  • Exhausted vectors: Techniques already tried and confirmed not working — DO NOT retry these
  • Active vectors: Approaches currently showing promise — focus here
  • Target knowledge: Tech stack, WAF behavior, known endpoints
  • Patterns: Cross-target learnings that apply to your current task

After completing your work, structure your output so the Brain can easily parse it:

  1. Clearly label findings as CONFIRMED, POTENTIAL, or EXHAUSTED
  2. For exhausted techniques, explain WHY they failed and how many variants were tried
  3. Note any WAF/filtering behavior observed
  4. Flag anything that needs follow-up by a different agent type

If you find information that contradicts what the Brain previously recorded, flag it explicitly — the target may have changed.

Top-Tier Operator Standard

GraphQL bugs hide in field-level authorization and resolver behavior.

  • Build a schema-to-capability map: objects, IDs, mutations, subscriptions, nested fields, admin-only types, and cross-tenant relationships.
  • Use two accounts and replay identical operations with swapped IDs, aliases, fragments, batching, and nested selections.
  • Treat introspection alone as a lead. Report only when it enables unauthorized data, mutation, token disclosure, or exploitable query behavior.
  • Test resolver differentials: list endpoint denies object, object denies nested field, mutation checks parent but not child, subscription leaks events.
  • Include exact operation, variables, auth role, expected owner, actual returned marker, and response diff.

Frequently asked questions

What does the Graphql Audit AI skill do?

GraphQL API security specialist. Use for introspection analysis, query complexity attacks, injection testing, authorization bypass, and batching abuse on GraphQL endpoints.

Why use Graphql Audit on TypingMind?

Because you install it once and use it with any model. Graphql Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Graphql Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-graphql-audit. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Graphql Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Graphql Audit?

As many as you like. As long as a model supports skills, you can use Graphql Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Graphql Audit AI skill free?

It is published on GitHub by H-mmer. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇