ssrf

ssrf is a skill for Claude Code from ByamB4/find-cve-agent. It costs 28 tokens per session (978 once invoked), scanned C, original, Apache-2.0.

A security review for server-side request forgery, where an attacker makes a server send requests to unintended destinations such as internal services.

In plain words
What is it for?
Use it to inspect webhooks, URL previews, imports, image proxies, PDF generators, and other features that fetch remote resources.
Why use it?
It helps find user-controlled URLs that can cross network boundaries or reach private systems and cloud metadata services.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the find-cve-agent plugin — 21 skills, 7 commands, 5 agents shipped together

Good fit Use it to inspect webhooks, URL previews, imports, image proxies, PDF generators, and other features that fetch remote resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/byamb4/find-cve-agent/ssrf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ByamB4/find-cve-agent --skill ssrf
Clone the repo
git clone --depth 1 https://github.com/ByamB4/find-cve-agent

Made for: Claude Code.

Or install find-cve-agent, the plugin that ships this one along with the rest of its 21 skills, 7 commands, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ssrf

README.md
[![agentmods](https://agentmods.dev/badge/skills/byamb4/find-cve-agent/ssrf/github.svg)](https://agentmods.dev/skills/byamb4/find-cve-agent/ssrf)
Your own site
<a href="https://agentmods.dev/skills/byamb4/find-cve-agent/ssrf"><img src="https://agentmods.dev/badge/skills/byamb4/find-cve-agent/ssrf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ssrf

Your own site · 80×15
<a href="https://agentmods.dev/skills/byamb4/find-cve-agent/ssrf"><img src="https://agentmods.dev/badge/skills/byamb4/find-cve-agent/ssrf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 978 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00978
Opus 5 $0.00014 $0.00489
Sonnet 5 $0.00006 $0.00196
Haiku 4.5 $0.00003 $0.00098

Measured 9d ago against content hash 3a66939afb83, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

ssrf scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- AWS IMDSv1: `http://169.254.169.254/latest/meta-data/iam/security-credentials/`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

grep -rn "urllib\|url\.parse\|new URL(" .
skills/ssrf/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SSRF Detection

When to Use

Audit webhook handlers, URL preview generators, import-from-URL features, image proxy endpoints, PDF generators that fetch remote resources, and any endpoint that makes HTTP requests based on user-supplied URLs.

Process

Step 1: Find HTTP Request Sinks

# JavaScript
grep -rn "fetch(\|axios\|got(\|node-fetch\|http\.get\|https\.get\|request(" .
grep -rn "urllib\|url\.parse\|new URL(" .

# Python
grep -rn "requests\.get\|requests\.post\|urllib\.request\|urlopen\|httpx" .

# Go
grep -rn "http\.Get\|http\.Post\|http\.NewRequest\|httpClient" .

# Ruby
grep -rn "Net::HTTP\|open-uri\|Faraday\|HTTParty\|RestClient" .

Step 2: Check If URL is User-Controlled

Trace the URL parameter backwards:

  • Does it come from request parameters, body, headers?
  • Is it stored in database but originally user-supplied?
  • Can the user control the host/port/path/scheme?

Step 3: Check URL Validation

grep -rn "isPrivate\|isInternal\|isLocalhost\|blocked\|allowlist\|blocklist" .
grep -rn "127\.0\.0\.1\|0\.0\.0\.0\|169\.254\|10\.\|172\.16\|192\.168" .

Step 4: Test IP Validation Bypasses

Common bypass techniques:

  • Decimal IP: 2130706433 = 127.0.0.1
  • Hex IP: 0x7f000001 = 127.0.0.1
  • Octal IP: 0177.0.0.1 = 127.0.0.1
  • IPv6 mapped: ::ffff:127.0.0.1
  • IPv6 localhost: ::1, 0:0:0:0:0:0:0:1
  • URL encoding: http://127%2e0%2e0%2e1
  • DNS rebinding: domain that resolves to 127.0.0.1 after initial check
  • Redirect following: allowed URL redirects to internal URL
  • 0.0.0.0 on some systems maps to localhost
  • localtest.me resolves to 127.0.0.1

Step 5: Check Protocol Handling

Dangerous protocols beyond http/https:

  • file:///etc/passwd -- local file read
  • gopher:// -- arbitrary TCP data (SSRF amplifier)
  • dict:// -- dictionary service probe
  • ftp:// -- FTP data exfiltration

Step 6: Evaluate Cloud Metadata Access

If the target runs on cloud infrastructure:

  • AWS IMDSv1: http://169.254.169.254/latest/meta-data/iam/security-credentials/
  • AWS IMDSv2: requires token header (harder to exploit)
  • GCP: http://metadata.google.internal/computeMetadata/v1/
  • Azure: http://169.254.169.254/metadata/instance
  • DigitalOcean: http://169.254.169.254/metadata/v1/

Read the full file on GitHub · 100 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 100 lines · 28 tokens per session scan C 3a66939afb83

Subscribe to this mod's changes

ssrf is a skill published in the GitHub repository ByamB4/find-cve-agent (48 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 28 tokens to every session and 978 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories