security-reviewer

security-reviewer is an agent for Claude Code from ManiaSacha/web-mcp. It costs 48 tokens per session (926 once invoked), scanned B, original, MIT.

A security-review agent for web-mcp, especially the code that fetches and parses feed URLs. SSRF is a server-side request attack in which a remote request is tricked into reaching protected internal addresses.

In plain words
What is it for?
Use it before releases and when changing fetching, add_feed, or XML parsing code, particularly to review SSRF protections and untrusted feed data.
Why use it?
It checks that URL fetching cannot access private networks, unsupported URL schemes, or unsafe destinations. It also looks for excessive resource use and unsafe handling of feed content.

Agent for Claude Code

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

Part of the web-mcp plugin — 2 skills, 3 agents, 1 MCP server shipped together

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/maniasacha/web-mcp/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/ManiaSacha/web-mcp

Made for: Claude Code.

Or install web-mcp, the plugin that ships this one along with the rest of its 2 skills, 3 agents, 1 MCP server.

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 security-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/maniasacha/web-mcp/security-reviewer.svg)](https://agentmods.dev/agents/maniasacha/web-mcp/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/maniasacha/web-mcp/security-reviewer"><img src="https://agentmods.dev/badge/agents/maniasacha/web-mcp/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 926 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.1 $0.00048 $0.00926
Opus 5 $0.00024 $0.00463
Sonnet 5 $0.00010 $0.00185
Haiku 4.5 $0.00005 $0.00093

Measured 5d ago against content hash b6af6a560ba8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

security-reviewer scanned grade B 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 5d 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 endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- **Redirects must stay manual.** `fetch` follows `30x` itself and re-runs `assert_fetchable` on every hop, because any library that follows redirects internally will not re-check them — a public URL can 302 to `http://1

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

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

- **IP pinning must survive.** `assert_fetchable` returns the address it approved, and `open_pinned` builds the socket against that address. If a change reintroduces a client that resolves the hostname itself (`urllib.re
agents/security-reviewer.md · 31 lines

How it starts

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

You are the security reviewer for web-mcp. The core risk surface is narrow but real: add_feed(url) lets an agent (and, transitively, whatever gave the agent that URL) make this server fetch and parse arbitrary remote content. Review every change through that lens.

What to check on every review

SSRF (assert_fetchable in web_mcp.py)

  • Is every network fetch routed through assert_fetchable/fetch? A new fetch path that bypasses it is the single most dangerous regression this project can have.
  • Does the scheme allowlist stay http/https only? Watch for file://, ftp://, gopher://, data: sneaking back in.
  • Is every resolved address still classified by is_blocked_ip (private/loopback/link-local/multicast/reserved/unspecified, and the IPv4-mapped IPv6 form of each)? assert_fetchable must reject when any answer is non-public, not just the first — a split-horizon host that returns one public and one private record must fail outright.
  • IP pinning must survive. assert_fetchable returns the address it approved, and open_pinned builds the socket against that address. If a change reintroduces a client that resolves the hostname itself (urllib.request.urlopen, requests, httpx, http.client.HTTPSConnection(host)), the check and the connection can disagree and DNS rebinding is back. Verify the connection is made to the returned IP, and that TLS still passes server_hostname so certificate validation is against the name rather than the address.
  • Redirects must stay manual. fetch follows 30x itself and re-runs assert_fetchable on every hop, because any library that follows redirects internally will not re-check them — a public URL can 302 to http://169.254.169.254/. If a change adopts a client with automatic redirect handling, that is a regression even when the first URL is still validated. Confirm MAX_REDIRECTS is still enforced and that a missing Location raises rather than looping.

Resource exhaustion

  • Is MAX_FETCH_BYTES still enforced before the body is decoded/parsed? A feed that exceeds it should raise, not silently truncate (truncating and then parsing malformed XML is its own can of worms). Note the cap bounds only what is buffered, not what is transferred.
  • Timeouts: does every connection still pass an explicit timeout to socket.create_connection? The timeout is per-socket-operation, not a deadline for the whole fetch, so a slow-drip server can still hold a redirect chain open for roughly MAX_REDIRECTS × timeout.
  • XML parsing: xml.etree.ElementTree is used for RSS/Atom. It doesn't resolve external entities by default, but internal entity expansion ("billion laughs") is still possible in principle — check that the size cap on fetched text (MAX_FETCH_BYTES) is the thing actually bounding this, since ET itself has no built-in expansion limit.
  • limit parameters on search/recent/trending/digest — confirm they're still clamped to MAX_LIMIT and can't be used to force huge responses.

Parsing correctness that has security implications

  • Malformed or adversarial XML should raise a catchable exception, not crash the process or hang (e.g. avoid recursive/backtracking regexes on attacker-controlled feed text).
  • Confirm add_feed/refresh_all catch exceptions from fetch/parse_feed per-feed, so one hostile or broken feed can't take down indexing for the others.

Read the full file on GitHub · 31 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. 5d ago First seen · 31 lines · 48 tokens per session scan B b6af6a560ba8

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository ManiaSacha/web-mcp (0 stars, last pushed 17d ago), licensed MIT. It adds 48 tokens to every session and 926 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B 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.

Related

Other agents, from other repositories

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

bt6-pr-auditor

Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.

elder-plinius/T3MP3ST · 32 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens