security-reviewer

security-reviewer is an agent for Claude Code from sifxprime/kodelyth-ecc. It costs 52 tokens per session (2,505 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.

Good fit Use it after changes involving user input, authentication, APIs, or sensitive data, and for checking code against common web security risks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sifxprime/kodelyth-ecc/security-reviewer
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-reviewer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 2,505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.02505
Opus 5.5 $0.00021 $0.01002
Sonnet 5.5 $0.00010 $0.00501
Haiku 4.5 $0.00005 $0.00250

Measured 2mo ago against content hash dffda54d04bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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 · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 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).

# ripgrep is NOT preinstalled on macOS, Linux or Windows. Check first, or every
# scan below silently reports nothing and you conclude the code is clean.
command -v rg >/dev/null || {
  echo "ripgrep missing — install it:"
  echo "  macOS:   brew install ripgrep"
  echo "  Debian:  apt install ripgrep"
  echo "  Windows: winget install BurntSushi.ripgrep.MSVC"
  echo "Or substitute 'grep -rEn' for 'rg -n' below and drop the --glob flags"
  echo "(use --exclude/--exclude-dir instead)."
}

# ── 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

# ── Lexical-only path containment (HIGH) ────────────────────────────────────
# path.join/resolve normalise ".." but do NOT resolve symlinks. A link sitting
# lexically inside the root passes a startsWith() check while its target is
# anywhere on disk, and the read follows it. Confirmed four times across three
# unrelated files in this codebase before the guard existed.
rg -n 'startsWith\(.*(?:ROOT|DIR|BASE|root|base|dir).*sep|startsWith\(.*\+ .?/.?\)'   # then check: is there a realpathSync nearby?
rg -n 'readFileSync|createReadStream|readdirSync' --context 3 | rg -n 'path\.(join|resolve)'  # read after a lexical check = the bug
# The fix is realpath on BOTH sides before comparing, or an existing helper.

# ── Prototype keys used as map keys (HIGH) ──────────────────────────────────
# map['constructor'] returns Object.prototype.constructor — TRUTHY — so an
# `if (!map[k])` guard never fires and the next line reads a property off a
# function. "constructor" and "toString" are ordinary vocabulary, so this needs
# no attacker: one document containing the word is enough.
rg -n 'if \(!\w+\[\w+\]\)|\w+\[\w+\] = \w+\[\w+\] \|\|'   # any map keyed by user text
rg -n '= \{\};' --context 2 | rg -n 'token|term|word|tag|key|freq|count'  # should be Object.create(null)

# ── Truncate-then-write on persistent state (HIGH) ──────────────────────────
# fs.writeFileSync opens with 'w', truncating to zero BEFORE writing. A crash,
# a full disk, or a concurrent reader sees an empty file. Measured: a 6.3 MB
# store observed at 0 bytes mid-rewrite, 32 torn reads in 1423 samples.
rg -n 'writeFileSync\(' | rg -v 'tmp|\.tmp|test'   # then ask: does this file hold state worth keeping?
# Config files, registries, ledgers, and indexes need temp+rename, not writeFileSync.

Read the full file on GitHub · 178 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. 2mo ago Changed · +11 lines dffda54d04bc
  2. 2mo ago Changed · +24 lines 20614c3ce675
  3. 2mo 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 (12 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 2,505 once invoked, about $0.0002 per session on Opus 5.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.

Related

security-reviewer compared with agents from other repositories

security-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-reviewersifxprime/kodelyth-eccAgent12todayMITA52Claude Code
security-auditoraddyosmani/agent-skillsAgent121k6d agoMITA35Claude Code
gamedev-narrative-directorFluxonLab/SkillryAgent132d agononeA62Claude Code
gamedev-ui-programmerFluxonLab/SkillryAgent132d agononeA53Claude Code
perspective_reviewer_agenthamzabellouch/agent-skillsAgent81mo agoMITA22Claude Code
market-researchraja21068/AutoResearchAgent26mo agoMITA50Claude Code
frontend-specialisthoangatg/ai-agent-toolkitAgent18mo agoMITA63Claude Code