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.
npx agentmods add agents/maniasacha/web-mcp/security-reviewergit clone --depth 1 https://github.com/ManiaSacha/web-mcpWrote 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.
[](https://agentmods.dev/agents/maniasacha/web-mcp/security-reviewer)<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>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.
| Model | Per session | Once 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 |
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 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/httpsonly? Watch forfile://,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_fetchablemust 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_fetchablereturns the address it approved, andopen_pinnedbuilds 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 passesserver_hostnameso certificate validation is against the name rather than the address. - Redirects must stay manual.
fetchfollows30xitself and re-runsassert_fetchableon every hop, because any library that follows redirects internally will not re-check them — a public URL can 302 tohttp://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. ConfirmMAX_REDIRECTSis still enforced and that a missingLocationraises rather than looping.
Resource exhaustion
- Is
MAX_FETCH_BYTESstill 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 roughlyMAX_REDIRECTS × timeout. - XML parsing:
xml.etree.ElementTreeis 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. limitparameters onsearch/recent/trending/digest— confirm they're still clamped toMAX_LIMITand 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_allcatch exceptions fromfetch/parse_feedper-feed, so one hostile or broken feed can't take down indexing for the others.
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.
- 5d ago First seen · 31 lines · 48 tokens per session scan B b6af6a560ba8
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.
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.
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…
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…
bt6-pr-auditor
Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.
Reviewer
Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.
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.