Sh Kb Ssrfのロゴ

Sh Kb Ssrf

コミュニティ
dmdhrumilmistry
sh-kb-ssrf

Knowledge base for finding Server-Side Request Forgery - when the server makes outbound requests to attacker-controlled destinations. Use when hunting SSRF or reviewing URL/host inputs that reach HTTP/network clients. CWE-918, OWASP A10:2021-SSRF.

概要

公開者dmdhrumilmistry
リポジトリsecurity-harness
スキル名sh-kb-ssrf
スター
42
フォーク
11
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Server-Side Request Forgery (SSRF) - Hunter Knowledge Base

The server fetches a URL the attacker controls, letting them reach internal services, cloud metadata, or the loopback interface from the server's trusted position.

When to hunt this

Features that fetch remote resources: webhooks, URL preview/unfurl, image/PDF fetchers, import-from-URL, SSO/OIDC discovery, PDF/HTML renderers, avatar-by-URL, proxy endpoints, XML/SVG with remote refs.

Sources

Any user-supplied URL/host/IP/port: request params/body, redirect targets, Location following, filenames that become URLs, hostnames in config uploaded by users.

Sinks (grep targets)

  • Python: requests.get/post(, urllib.request.urlopen(, httpx., aiohttp, urllib3.
  • JS/TS: fetch(, axios(, http.get/request(, got(, node-fetch, request(.
  • Java: URL(...).openConnection(), HttpClient.send(, RestTemplate, OkHttpClient.
  • Go: http.Get/Post(, http.NewRequest(. PHP: curl_exec, file_get_contents($url), fopen.
  • Also: SVG/XML parsers, PDF generators (wkhtmltopdf/headless Chrome), image libraries fetching remote.

Detection recipe

  1. graft grep "requests\.|urlopen|fetch\(|axios|http\.Get|HttpClient|curl_exec|file_get_contents" --json.
  2. Check whether the destination URL/host derives from user input.
  3. Look for the (usually missing) allowlist / SSRF guard: DNS-resolve + IP range check, scheme check, blocking of 169.254.169.254, 127.0.0.1, ::1, metadata.google.internal, RFC1918, .internal.

Payloads / PoC

  • Cloud metadata: http://169.254.169.254/latest/meta-data/iam/security-credentials/ (AWS), http://metadata.google.internal/computeMetadata/v1/ (GCP, header Metadata-Flavor: Google), http://169.254.169.254/metadata/instance?api-version=2021-02-01 (Azure).
  • Internal scan: http://127.0.0.1:<port>/, http://localhost/admin, internal hostnames.
  • Bypasses: http://0/, http://0177.0.0.1, http://2130706433 (decimal IP), http://127.0.0.1.nip.io, redirect chains (allowed host 302s to internal), DNS rebinding, http://[::], http://[::ffff:127.0.0.1].
  • Non-HTTP schemes: file://, gopher:// (craft raw TCP to Redis/SMTP), dict://, ftp://.
  • URL-parser confusion (differential parsing, per Orange Tsai's research): if the validator and the actual HTTP client parse the URL with different libraries/standards, craft a URL both parse differently - e.g. http://expected-host\@evil.com (backslash before @): WHATWG-URL-based parsers normalize \ to / and treat evil.com as the host, while an RFC-3986-only parser may read expected-host as the userinfo host. Also test embedded credentials (http://expected-host@evil.com), http://evil.com#@expected-host, and mixed-case/percent-encoded hosts if the validator and the fetch call use different URL parsers.
  • PoC: point the fetcher at a collaborator/attacker host and confirm the server connects (out-of-band).

False-positive filters

  • Destination is a hardcoded/allowlisted host or a fixed base URL with only a path from the user.
  • A real SSRF guard runs: scheme allowlist (https only) and resolved-IP range check after DNS resolution, with redirects disabled or re-validated (validating the string before resolving is bypassable).
  • The validation step and the fetch step use the same URL-parsing library/call to extract the host (no parser-confusion gap) - if they differ (e.g. a regex/manual parse for the allowlist check vs. the language's URL/HTTP-client parser for the actual request), still flag even with an allowlist present.
  • Egress is network-restricted to specific hosts (note as mitigation, still flag if the code guard is absent).

CWE / OWASP / severity

CWE-918. OWASP A10:2021. critical when it reaches cloud metadata/credentials or internal admin; high for internal network access; medium if only blind/limited.

Chaining hints

SSRF -> cloud metadata -> IAM credentials -> account/infra takeover; SSRF -> internal unauth admin API -> RCE; SSRF + gopher -> Redis/DB command exec; pairs with open-redirect (to bypass allowlists) and XXE.

Mitigation

Allowlist destinations (scheme + host); resolve DNS then verify the IP is public and not in blocked ranges, re-checking on each redirect (or disable redirects); drop non-HTTP schemes; isolate egress; use a dedicated metadata-blocking proxy; enforce IMDSv2 on AWS.

よくある質問

AIスキル「Sh Kb Ssrf」では何ができますか?

Knowledge base for finding Server-Side Request Forgery - when the server makes outbound requests to attacker-controlled destinations. Use when hunting SSRF or reviewing URL/host inputs that reach HTTP/network clients. CWE-918, OWASP A10:2021-SSRF.

TypingMindでSh Kb Ssrfを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-kb-ssrfを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Sh Kb Ssrfを使えるAIモデルはどれですか?

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

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

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

AIスキル「Sh Kb Ssrf」は無料ですか?

はい。dmdhrumilmistryがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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