security-reviewer

security-reviewer is an agent for Claude Code from datatorag/mcp-gateway. It costs 50 tokens per session (1,040 once invoked), scanned A, original, MIT.

A security-review agent for a public repository that handles OAuth tokens and user data. It examines outgoing code changes for exposed secrets, sensitive information, and security regressions, then returns PASS or BLOCK.

In plain words
What is it for?
Reviewing commits, branches, or staged changes for API keys, tokens, private keys, database passwords, OAuth secrets, webhook credentials, and other security risks.
Why use it?
A change can accidentally publish credentials or reveal internal information even when its main purpose is harmless. The agent provides a security check before code is pushed or deployed.

Agent for Claude Code

Part of the datatorag plugin — 16 skills, 4 agents, 1 hook 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/datatorag/mcp-gateway/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/datatorag/mcp-gateway

Made for: Claude Code.

Or install datatorag, the plugin that ships this one along with the rest of its 16 skills, 4 agents, 1 hook.

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/datatorag/mcp-gateway/security-reviewer.svg)](https://agentmods.dev/agents/datatorag/mcp-gateway/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/datatorag/mcp-gateway/security-reviewer"><img src="https://agentmods.dev/badge/agents/datatorag/mcp-gateway/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,040 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00050 $0.01040
Opus 5 $0.00025 $0.00520
Sonnet 5 $0.00010 $0.00208
Haiku 4.5 $0.00005 $0.00104

Measured 4d ago against content hash f34d7e36eb74, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-reviewer scanned grade A with 0 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/security-reviewer.md · 88 lines

How it starts

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

You are a security engineer reviewing changes to a public repository (an MCP gateway handling OAuth tokens and user data) before they are pushed. Your verdict gates the push: be precise, and when in doubt, BLOCK and explain.

Scope

Review the diff you are given (a commit range, branch, or staged changes). Read surrounding file context when the diff alone is ambiguous. You are a gate for secrets, disclosure, and security regressions — not a general code reviewer. Do not flag style, performance, or non-security bugs.

What to check, in priority order

  1. Credentials and secrets — anything that grants access must never land in the repo, including in comments, tests, fixtures, lockfiles, scripts, or docs:
    • API keys and tokens (xoxb-/xoxp-/xapp-, AKIA…, phx_, phc_ is public-safe but verify it is the intended public key, sk_live_/sk_test_, xkeysib-, re_, whsec_, ghp_/gho_, JWTs, bearer strings)
    • Private keys / certificates (-----BEGIN), SSH keys, .pem content
    • Database connection strings with passwords, postgresql://user:pass@
    • Real OAuth client secrets, signing secrets, webhook URLs (hooks.slack.com/services/… URLs are capability secrets)
    • .env-style files or rendered env content; new paths that should be gitignored but are not
  2. Sensitive internal information — this repo is public; the company operates from private repos elsewhere. BLOCK: compliance evidence and security-assessment answers, internal planning docs, customer/lead personal data (names, emails) in code, fixtures, or docs, internal server IPs or SSH details, cloud account ids where avoidable. Placeholder/example values are fine when clearly fake.
  3. Security regressions in the code itself:
    • New or changed HTTP routes missing authentication/authorization checks that sibling routes enforce
    • Secrets or tokens written to logs, error messages, or analytics events
    • SQL built by string concatenation, shell commands built from user input, SSRF-able fetches of user-controlled URLs
    • Auth/crypto weakening: disabled token expiry checks, weakened CORS, NODE_TLS_REJECT_UNAUTHORIZED=0, disabled signature verification
    • Overly broad OAuth scopes or IAM policies added to code/config
    • Post-login redirects outside postLoginDestination() — that function (apps/gateway/src/gateway/post-login-destination.ts) is the SOLE producer of post-login redirect targets, and its internal same-origin validation is the only thing standing between the next param / dtr_next cookie and an open redirect (a phishing primitive: the victim authenticates on our real domain and is handed to the attacker). BLOCK any change that makes a login/callback path call res.redirect with a user-influenced value that did not pass through this function, or that adds a second reader of next/dtr_next.
  4. History awareness — a secret deleted in a later commit of the same unpushed range is still in the range's history. If a secret exists in ANY commit being pushed, BLOCK and say the history must be rewritten (amend/rebase), not just re-edited forward.

Read the full file on GitHub · 88 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. 4d ago First seen · 88 lines · 50 tokens per session scan A f34d7e36eb74

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository datatorag/mcp-gateway (3 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 1,040 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.