Api Security Testingのロゴ

Api Security Testing

コミュニティ
mn-youssef
api-security-testing

Use when testing REST, GraphQL, gRPC, or WebSocket APIs against the OWASP API Security Top 10 — object- and function-level authorization (BOLA/BFLA), excessive data exposure, mass assignment, unrestricted resource consumption, and GraphQL-specific abuse. For apps you own or are authorized to test.

概要

公開者mn-youssef
リポジトリsecurity-skills
スキル名api-security-testing
スター
49
フォーク
7
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mn-youssef/security-skills.git /tmp/security-skills
mkdir -p .claude/skills
cp -r /tmp/security-skills/skills/api-security-testing .claude/skills/api-security-testing
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

API Security Testing (FIND/EXPLOIT — OWASP API Top 10)

Overview

Modern apps are API-first, and APIs fail differently from web pages: the bugs are in authorization per object/field and resource limits, not rendering. Test the API directly, bypassing the UI entirely.

Core principle: The UI is one client; attackers talk to the API raw. Every endpoint, field, and method must enforce authz and limits on its own — the front-end protects nothing.

Applies when / Skip when

  • Applies when: the app exposes a programmatic API — REST, GraphQL, gRPC, or WebSocket — including the API behind a SPA or mobile client.
  • Skip when: the app is purely server-rendered HTML with no API anyone calls → N/A.
  • If N/A: report "api-security-testing: N/A — no API surface" and stop.

⚠️ Authorization

Your own/authorized API. Use test accounts and a non-production instance for stateful tests.

Get the spec first

Pull the contract, then test every operation it (and the UI) reveals:

  • OpenAPI/Swagger (/swagger, /openapi.json, /api-docs), GraphQL introspection, gRPC reflection, Postman collections, mobile-app traffic via proxy.
  • Diff documented endpoints vs. what the app actually calls — undocumented endpoints are gold.

OWASP API Top 10 — the checklist

#RiskTest
API1BOLA (object authz)Swap object ids across accounts → see access-control-testing
API2Broken authenticationWeak tokens/JWT/keys → see authentication-testing
API3BOPLA (property authz)Read fields you shouldn't (excessive exposure) / write fields you shouldn't (mass assignment)
API4Unrestricted resource consumptionNo rate/size/page limits; expensive queries; cost/DoS
API5BFLA (function authz)Call admin/privileged operations as a normal user
API6Unrestricted access to business flowsAutomate a flow meant to be human-paced (scalping, spam)
API7SSRFServer fetches a URL you supply → see file-upload-and-ssrf
API8MisconfigurationVerbose errors, permissive CORS, missing security headers
API9Improper inventoryOld /v1 next to /v2, staging APIs, undocumented endpoints
API10Unsafe third-party consumptionApp trusts an external API's response blindly

See references/api-attacks.md for REST, GraphQL, gRPC, and WebSocket recipes.

Excessive data exposure vs. the UI

The API often returns more than the UI shows (full user objects with passwordHash, internal flags, other users' fields). Inspect raw JSON responses, not the rendered page.

GraphQL specifics (high-value)

  • Introspection enabled → full schema map. Pull it.
  • Batching / aliasing → bypass rate limits, brute-force via one request.
  • Query depth/complexity → nested recursive queries for DoS.
  • Field-level authz → a field guarded in one query exposed via another path/mutation.

Output

Per finding: endpoint/operation, method, account used, the raw request/response, which API-Top-10 class, and impact. BOLA/BFLA findings are typically High–Critical.

Hand-off

Deep authz → access-control-testing; auth/JWT → authentication-testing; flow abuse → business-logic-testing; reproduce → active-pentest; fix → security-hardening.

Common mistakes

  • Testing through the UI only — hit the API directly; that's the real attack surface.
  • Reading the rendered page instead of the raw JSON — that's where over-exposure hides.
  • Forgetting GraphQL introspection/batching and gRPC reflection — they hand you the whole map.
  • Ignoring old API versions — /v1 often lacks /v2's fixes.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Api Security Testing」では何ができますか?

Use when testing REST, GraphQL, gRPC, or WebSocket APIs against the OWASP API Security Top 10 — object- and function-level authorization (BOLA/BFLA), excessive data exposure, mass assignment, unrestricted resource consumption, and GraphQL-specific abuse. For apps you own or are authorized to test.

TypingMindでApi Security Testingを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mn-youssef/security-skills/tree/master/skills/api-security-testingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Api Security Testingを使えるAIモデルはどれですか?

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

Api Security Testingは何個のAIモデルで使えますか?

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

AIスキル「Api Security Testing」は無料ですか?

はい。mn-youssefがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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