ssrf-attacker

A security agent that looks for server-side request forgery, where an application is tricked into sending network requests chosen or partly controlled by a user. It checks source code for dangerous request patterns, cloud metadata addresses, and unsafe URL schemes.

In plain words
What is it for?
Use it to scan PHP, Python, Node.js, and Java code for common SSRF patterns.
Why use it?
It helps find code that could let attackers access internal services or sensitive cloud information through the application.

Agent

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.

agentmods
npx agentmods add agents/morodomi/dev-crew/ssrf-attacker
Clone the repo
git clone --depth 1 https://github.com/morodomi/dev-crew
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 762 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00033 $0.00762
Opus 5 $0.00016 $0.00381
Sonnet 5 $0.00007 $0.00152
Haiku 4.5 $0.00003 $0.00076

Measured yesterday against content hash 4998c497aef6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

ssrf-attacker 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 yesterday.

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.

| critical | Cloud metadata service access (169.254.169.254) |

Makes network callslowCapability

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

- 'urllib\.request\.urlopen\s*\(\s*request\.'
agents/ssrf-attacker.md · 78 lines

How it starts

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

Detection Targets

Type Description Pattern
ssrf ユーザー入力URLへのリクエスト Direct URL from user input
blind-ssrf レスポンス非表示のSSRF Response not returned to user
partial-ssrf URL一部のみユーザー制御 Path/query controlled by user

Dangerous Patterns

patterns:
  # PHP - SSRF
  - 'file_get_contents\s*\(\s*\$_(GET|POST|REQUEST)'
  - 'curl_setopt\s*\([^,]+,\s*CURLOPT_URL\s*,\s*\$'
  - 'fopen\s*\(\s*\$_(GET|POST|REQUEST)'

  # Python - SSRF
  - 'requests\.(get|post|put|delete|head)\s*\(\s*request\.'
  - 'urllib\.request\.urlopen\s*\(\s*request\.'
  - 'httpx\.(get|post)\s*\(\s*request\.'

  # Node.js - SSRF
  - 'axios\.(get|post)\s*\(\s*req\.(query|body|params)'
  - 'fetch\s*\(\s*req\.(query|body|params)'
  - 'http\.request\s*\(\s*req\.'
  - 'got\s*\(\s*req\.(query|body|params)'

  # Java - SSRF
  - 'new\s+URL\s*\(\s*request\.getParameter'
  - 'HttpURLConnection.*request\.getParameter'
  - 'RestTemplate.*request\.getParameter'

  # Cloud Metadata Services
  - '169\.254\.169\.254'
  - 'metadata\.google\.internal'
  - 'metadata\.azure\.com'
  - 'X-aws-ec2-metadata-token'

  # Dangerous Protocol Schemes
  - '\b(file|gopher|dict|ldap|tftp)://'
  - 'localhost|127\.0\.0\.1|0\.0\.0\.0|::1'

Output

Base: {metadata: {scan_id, scanned_at, agent}, vulnerabilities: [{id, type, vulnerability_class, cwe_id, severity, file, line, code, description, remediation}], summary: {total, critical, high, medium, low}} Extra: prefix=SSRF, types=ssrf|blind-ssrf|partial-ssrf

Severity Criteria

Severity Criteria
critical Full URL control with response returned to user
critical Cloud metadata service access (169.254.169.254)
high Blind SSRF - no response but request is made
medium Partial URL control (path/query only)
low URL parsing without request execution

CWE/OWASP Mapping

Reference ID
CWE CWE-918: Server-Side Request Forgery (SSRF)
OWASP Top 10 A10:2021 Server-Side Request Forgery
OWASP Top 10 A01:2025 Broken Access Control (as CWE-918)

Read the full file on GitHub · 78 lines

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. yesterday First seen · 78 lines · 33 tokens per session scan C 4998c497aef6

Subscribe to this mod's changes

ssrf-attacker is an agent published in the GitHub repository morodomi/dev-crew (1 stars, last pushed 3d ago), licensed MIT. It adds 33 tokens to every session and 762 once invoked, about $0.0002 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-31.