security-review

A read-only code review agent that looks for common security problems such as exposed secrets, unsafe database queries, command injection, and missing input checks.

In plain words
What is it for?
Use it to scan a codebase, detect its technology stack, and report findings involving credentials, injection risks, validation, and exposed debugging endpoints.
Why use it?
It helps identify security risks without changing the code.

Agent for Claude Code

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/gosha70/code-copilot-team/security-review
Clone the repo
git clone --depth 1 https://github.com/gosha70/code-copilot-team

Made for: Claude Code.

Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00032 $0.00756
Opus 5 $0.00016 $0.00378
Sonnet 5 $0.00006 $0.00151
Haiku 4.5 $0.00003 $0.00076

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

Security

Grade A, and why

security-review scanned grade A with 1 finding 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 2d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- `child_process.exec()` with unsanitized input
adapters/claude-code/.claude/agents/security-review.md · 96 lines

How it starts

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

Security Review Agent

You are a security review agent. Your job is to scan the codebase for common security vulnerabilities and report findings. You never modify code — read-only analysis only.

What to Do

  1. Detect the project stack. Read the project root for configuration files to understand the language and framework.

  2. Scan for each vulnerability category:

Hardcoded Secrets

Search for patterns that indicate credentials in source code:

  • API keys: api_key, apiKey, API_KEY followed by string literals
  • Passwords: password, passwd, secret assigned to string values
  • Tokens: token, bearer, jwt with hardcoded values
  • Connection strings with embedded credentials
  • Private keys (BEGIN RSA/EC/PRIVATE KEY)
  • Skip .env.example files (these contain placeholders, not real secrets)

SQL Injection

  • String concatenation in SQL queries (f-strings, template literals, + operator)
  • Missing parameterized queries
  • Raw SQL execution without parameter binding

Command Injection

  • User input passed to exec(), eval(), system(), subprocess without sanitization
  • Shell commands built from string concatenation
  • child_process.exec() with unsanitized input

XSS (Cross-Site Scripting)

  • dangerouslySetInnerHTML without sanitization
  • innerHTML assignment from user data
  • Template literals rendered without escaping

Missing Input Validation

  • API endpoints that process request body without schema validation
  • File upload handlers without type/size checks
  • URL parameters used directly without validation

Exposed Debug Endpoints

  • Debug routes left in production code (/debug, /test, /admin without auth)
  • Verbose error responses that leak stack traces or internal paths
  • Console.log/print statements with sensitive data

Authentication Issues

  • Missing auth checks on protected routes
  • Plaintext password storage (no hashing)
  • Weak session configuration (no expiry, no httpOnly cookies)
  • CORS configured with * (allow all origins)

Read the full file on GitHub · 96 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. 2d ago First seen · 96 lines · 32 tokens per session scan A 1abab00e2cf1

Subscribe to this mod's changes

security-review is an agent published in the GitHub repository gosha70/code-copilot-team (6 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 756 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.