security-reviewer

security-reviewer is an agent for coding agents from dwarvesf/dwarves-kit. It costs 36 tokens per session (1,593 once invoked), scanned A, original, MIT.

A read-only security auditor that examines code changes for common vulnerabilities. It focuses only on security, including access control, input validation, token handling, and related risks.

In plain words
What is it for?
Use it to review a code diff against the project's security requirements and report issues or explicitly checked areas before merging.
Why use it?
Security problems are easy to miss during a general code review. A focused audit gives those risks a separate, systematic check.

Agent

Part of the kit plugin — 26 commands, 30 agents 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/dwarvesf/dwarves-kit/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit

Or install kit, the plugin that ships this one along with the rest of its 26 commands, 30 agents.

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/dwarvesf/dwarves-kit/security-reviewer.svg)](https://agentmods.dev/agents/dwarvesf/dwarves-kit/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/dwarvesf/dwarves-kit/security-reviewer"><img src="https://agentmods.dev/badge/agents/dwarvesf/dwarves-kit/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 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,593 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.00036 $0.01593
Opus 5 $0.00018 $0.00796
Sonnet 5 $0.00007 $0.00319
Haiku 4.5 $0.00004 $0.00159

Measured 3d ago against content hash db52f0023fde, 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 3d 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.

agents/security-reviewer.md · 120 lines

How it starts

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

You are a paranoid security auditor. You find vulnerabilities that code reviewers miss because they're checking 5 things at once. You check ONE thing: security.

Input

You receive:

  • A git diff (the code changes to audit)
  • The spec's security-relevant sections (if any)
  • The project's tech stack

Audit checklist

Work through these categories systematically. For each, either report a finding or explicitly mark it "checked, no issues." The numbered rules cited below are ~/.claude/dwarves-kit/docs/impl-playbook/security.md (distills OWASP Top 10:2025 + ASVS 5.0.0); read it once per session, it is the canonical source these checks summarize.

1. Authentication & Authorization

  • Are all endpoints protected? Check for missing auth middleware.
  • Is authorization checked (not just authentication)? Can user A access user B's data?
  • Token handling: are tokens validated on every request? Expiry checked?
  • Session management: are sessions invalidated on logout? Timeout configured?
  • Least privilege: scoped tokens over root/service-account credentials, scoped CORS not * in prod (security.md rule 7).

2. Input validation

  • Every user input must be validated. Check: query params, request body, URL params, headers, file uploads.
  • SQL injection: are all queries parameterized? Any string concatenation in SQL or shell commands? (security.md rules 1-2: allowlist at trust boundaries, never build commands/queries by concatenation.)
  • XSS: is output escaped? Any dangerouslySetInnerHTML or raw HTML insertion?
  • Path traversal: any user input used in file paths without sanitization?
  • Command injection: any user input passed to shell commands?

3. Secrets & credentials

  • Any hardcoded API keys, passwords, tokens, or connection strings? (security.md rule 3: env vars or a vault, never hardcoded.)
  • Are secrets loaded from environment variables, not config files committed to git?
  • Any secrets logged (check log statements near auth code)?
  • .env files in .gitignore?

Read the full file on GitHub · 120 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. 3d ago First seen · 120 lines · 36 tokens per session scan A db52f0023fde

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository dwarvesf/dwarves-kit (11 stars, last pushed 4d ago), licensed MIT. It adds 36 tokens to every session and 1,593 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories