Graphql Auditのロゴ

Graphql Audit

コミュニティ
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.

Add to TypingMind

概要

公開者H-mmer
リポジトリpentest-agents
スキル名graphql-audit
スター
999
フォーク
188
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    H-mmerがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Graphql Audit」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-graphql-audit
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGraphql Auditを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGraphql Auditを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Graphql Auditは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「Graphql Audit」では何ができますか?

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

TypingMindでGraphql Auditを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Graphql Auditはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGraphql Auditをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-graphql-auditを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Graphql Auditを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Graphql Auditで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGraphql Auditを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Graphql Audit」は無料ですか?

H-mmerがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇