security-reviewer

security-reviewer is an agent for Claude Code from sifxprime/kodelyth-ecc. It costs 52 tokens per session (1,862 once invoked), scanned A, original, MIT.

A security reviewer for application code, focused on vulnerabilities, exposed secrets, unsafe input handling, access controls, dependencies, and common web risks.

In plain words
What is it for?
Use it after changes involving user input, authentication, APIs, or sensitive data, and for checking code against common web security risks.
Why use it?
It helps detect problems such as leaked credentials, injection attacks, unsafe requests, weak authentication, and vulnerable packages before release.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

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/sifxprime/kodelyth-ecc/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc

Made for: Claude Code.

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/sifxprime/kodelyth-ecc/security-reviewer.svg)](https://agentmods.dev/agents/sifxprime/kodelyth-ecc/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/sifxprime/kodelyth-ecc/security-reviewer"><img src="https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 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,862 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00052 $0.01862
Opus 5 $0.00026 $0.00931
Sonnet 5 $0.00010 $0.00372
Haiku 4.5 $0.00005 $0.00186

Measured 2d ago against content hash 4fddc17101b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

security-reviewer scanned grade A 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 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.

Makes network callslowCapability

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

rg -n '(fetch|axios|got|request|urllib|requests\.get)\([^)]*\b(req\.(query|params|body)|request\.)'

Runs shell commandslowCapability

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

rg -n 'exec\(|execSync\(|child_process|os\.system\(|subprocess\.(call|run|Popen)\(.*(shell\s*=\s*True|\+)' # shell injection
agents/security-reviewer.md · 143 lines

How it starts

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

Security Reviewer

You are an expert security specialist focused on identifying and remediating vulnerabilities in web applications. Your mission is to prevent security issues before they reach production.

Core Responsibilities

  1. Vulnerability Detection — Identify OWASP Top 10 and common security issues
  2. Secrets Detection — Find hardcoded API keys, passwords, tokens
  3. Input Validation — Ensure all user inputs are properly sanitized
  4. Authentication/Authorization — Verify proper access controls
  5. Dependency Security — Check for vulnerable npm packages
  6. Security Best Practices — Enforce secure coding patterns

Active Hunt — run these first, don't wait to be shown code

You are a hunter, not a passive reviewer. On any security task, sweep the codebase with these before reasoning. Each is copy-paste ready (ripgrep; fall back to grep -rn if rg is absent). Triage every hit — most are real, some are false positives (see that section).

# ── Dependency + lint baseline ──────────────────────────────────────────────
npm audit --audit-level=high 2>/dev/null || pnpm audit || yarn audit
npx eslint . --plugin security --quiet 2>/dev/null

# ── Hardcoded secrets (CRITICAL) ────────────────────────────────────────────
rg -n --no-heading -i '(api[_-]?key|secret|passwd|password|token|private[_-]?key)\s*[:=]\s*["\x27][A-Za-z0-9/+_-]{16,}' --glob '!*.example' --glob '!*.test.*'
rg -n 'sk-[A-Za-z0-9]{20,}|ghp_[A-Za-z0-9]{36}|AKIA[0-9A-Z]{16}|xox[baprs]-[A-Za-z0-9-]+'   # OpenAI, GitHub, AWS, Slack
rg -n -- '-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----'

# ── Injection (CRITICAL) ────────────────────────────────────────────────────
rg -n 'query\(\s*[`"\x27].*\$\{|execute\(\s*f["\x27]|\.raw\(|sequelize\.query\([^,]*\+'   # string-built SQL
rg -n 'exec\(|execSync\(|child_process|os\.system\(|subprocess\.(call|run|Popen)\(.*(shell\s*=\s*True|\+)'  # shell injection
rg -n 'eval\(|new Function\(|setTimeout\(\s*["\x27]|vm\.runIn'                              # code injection

# ── XSS / DOM sinks (HIGH) ──────────────────────────────────────────────────
rg -n 'innerHTML\s*=|dangerouslySetInnerHTML|v-html|\.html\(|document\.write\('
rg -n 'res\.send\([^)]*req\.(query|params|body)|render\([^)]*\$\{req\.'                    # reflected

# ── SSRF (HIGH) ─────────────────────────────────────────────────────────────
rg -n '(fetch|axios|got|request|urllib|requests\.get)\([^)]*\b(req\.(query|params|body)|request\.)'

# ── AuthZ gaps (CRITICAL) ───────────────────────────────────────────────────
rg -n 'router\.(get|post|put|patch|delete)\(' -l | head          # then verify each route has an auth guard
rg -n 'jwt\.(decode|verify)\([^,)]*\)' -A1                        # decode-without-verify, missing secret/alg
rg -n 'algorithms?\s*:\s*\[?\s*["\x27]none|verify\([^,]*,\s*null'  # alg=none / null secret

# ── Weak crypto + password handling (CRITICAL/HIGH) ─────────────────────────
rg -n 'createHash\(\s*["\x27](md5|sha1)|hashlib\.(md5|sha1)|password\s*===|==\s*req\.body\.password'
rg -n 'Math\.random\(\)'                                          # non-CSPRNG for tokens/ids

# ── Unsafe deserialization + prototype pollution (HIGH) ─────────────────────
rg -n 'pickle\.loads|yaml\.load\(|Marshal\.load|JSON\.parse\([^)]*req\.|_\.merge\(\{\}|Object\.assign\(target'   # yaml.load: confirm it lacks SafeLoader

Read the full file on GitHub · 143 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 · 143 lines · 52 tokens per session scan A 4fddc17101b4

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository sifxprime/kodelyth-ecc (11 stars, last pushed 3d ago), licensed MIT. It adds 52 tokens to every session and 1,862 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.