本文へスキップ
Skillpedia
セキュリティ42k · #6430

competition-graphql-rpc-drift

できること

このツールは、システムが「どのように動くと宣言しているか」(コントラクト)と、「実際にどう動いているか」(ハンドラー)を比較します。隠れた操作や古くなった操作などの違いを見つけ、システムの理解を深めるのに役立ちます。

使う場面

  • ✓存在すべきでないGraphQLやRPCの操作を見つけたいとき。
  • ✓クライアントが期待していることと、サーバーが実際に行っていることを比べたいとき。
  • ✓システムとやり取りするために生成されたコードが古くなっていないか調べたいとき。

スキルのリンク

https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-graphql-rpc-drift/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-graphql-rpc-drift/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“GraphQLのコントラクトとライブのハンドラーを比較して、隠れた操作を見つけてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

まず、システムがどうあるべきかの情報(コントラクト)を集めます。次に、リクエストに対して実際にどのように応答するかを観察します。最後に、両者を比較して食い違いを見つけます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Competition Graphql Rpc Drift

Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.

Use this skill when the hard part is matching declared contracts with live handlers to find hidden, stale, or privileged operations.

Reply in Simplified Chinese unless the user explicitly requests English.

Quick Start

  1. Collect the declared contract surface first: schema, manifest, generated client, persisted query map, or OpenAPI spec.
  2. Record actual request shapes, operation names, variables, method, path, and auth context before mutating anything.
  3. Compare declared contract, generated client behavior, and live handler behavior side by side.
  4. Preserve one accepted operation and one drifted or hidden operation with the smallest delta.
  5. Reproduce the smallest contract-to-handler mismatch that proves the decisive branch.

Workflow

1. Map The Declared Contract Surface

  • Record GraphQL schema, introspection output, persisted query ids, RPC manifests, generated clients, or OpenAPI documents that define the intended surface.
  • Note versioned endpoints, client-only guards, hidden enums, optional fields, and operation naming conventions.
  • Keep document source and generation path tied to the observed requests.

2. Prove Live Handler Behavior

  • Capture the real request and response pairs, including operation name, variables, headers, cookies, and status.
  • Compare client-side validation, schema expectations, and live handler normalization or fallback behavior.
  • Record hidden operations, stale fields, undocumented methods, or handler-only branches that still execute.

3. Reduce To The Decisive Drift Path

  • Compress the result to the smallest sequence: declared contract -> actual request -> handler branch -> resulting capability.
  • State clearly whether the decisive drift lives in generated client assumptions, persisted query mapping, schema version skew, RPC manifest mismatch, or handler-side hidden logic.
  • If the task shifts into generic JWT, OAuth, or queue behavior after acceptance, hand off to the tighter specialized skill.

Read This Reference

  • Load references/graphql-rpc-drift.md for the contract checklist, live-handler checklist, and evidence packaging.

What To Preserve

  • Schemas, manifests, generated clients, persisted query ids, operation names, and version markers
  • One accepted and one drifted request pair that proves the mismatch
  • One minimal contract-to-handler sequence that reaches the decisive effect
よくある質問

この文脈での「コントラクト」とは何ですか?

システム(APIなど)がどのように動くべきかを示す公式の説明で、受け付けるデータや返すデータの内容を含みます。

「ハンドラー」とは何ですか?

届いたリクエストを実際に処理する、システムのコードの部分のことです。

「ドリフト」とは何を意味しますか?

「ドリフト」とは、コントラクト(あるべき姿)と実際の動作(現状)の間にずれがあることを意味します。

詳細

作者による元の説明

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for GraphQL schemas, persisted queries, RPC manifests, generated clients, OpenAPI drift, hidden operations, and contract-to-handler mismatches. Use when the user asks to inspect GraphQL or RPC requests, compare client contracts to live handlers, recover hidden operations, trace generated clients, or explain how schema or

repo: zhaoxuya520/reverse-skill

人気

GitHubのスター
42k
ランキング
#6430
ライセンス
MIT
更新日
2026/9/22

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル