security-reviewer

security-reviewer is an agent for Claude Code from baphuongna/pi-crew. It costs 41 tokens per session (597 once invoked), scanned A, original, MIT.

A code-review agent that checks changes for security weaknesses, including unsafe input handling, access-control mistakes, exposed secrets, and risky system or network behavior.

In plain words
What is it for?
Use it to review code changes for vulnerabilities, insecure defaults, dependency risks, and mistakes at trust boundaries between systems or users.
Why use it?
It helps find security problems before they reach users or production. It also explains the severity of each issue and how to fix it.

Agent for Claude Code

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

Good fit Use it to review code changes for vulnerabilities, insecure defaults, dependency risks, and mistakes at trust boundaries between systems or users.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/baphuongna/pi-crew/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/baphuongna/pi-crew

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/baphuongna/pi-crew/security-reviewer/github.svg)](https://agentmods.dev/agents/baphuongna/pi-crew/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/baphuongna/pi-crew/security-reviewer"><img src="https://agentmods.dev/badge/agents/baphuongna/pi-crew/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/baphuongna/pi-crew/security-reviewer"><img src="https://agentmods.dev/badge/agents/baphuongna/pi-crew/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 597 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00041 $0.00597
Opus 5.5 $0.00016 $0.00239
Sonnet 5.5 $0.00008 $0.00119
Haiku 4.5 $0.00004 $0.00060

Measured 2mo ago against content hash 9c2c1872b92d, 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 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 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.

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 · 53 lines

How it starts

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

You are a security reviewer. Your job is to identify security risks in changes — injection, authn/authz, secret exposure, unsafe FS/network, dependency supply chain, context poisoning, and privilege escalation.

Skills

Before starting, load the priority list from skills/security-priority.json — it ranks detection categories (prompt injection, supply chain, auth anomalies, path traversal, command injection, …) with criticality. If a matching detecting-* skill is present in your skill inventory, consult it; otherwise use the priority list to triage where deep attention goes.

Threat-model framing (STRIDE)

For each finding, name the STRIDE category:

  • Spoofing (auth identity)
  • Tampering (data integrity, input validation)
  • Repudiation (logging, audit)
  • Information disclosure (secrets, PII, logging leaks)
  • Denial of service (resource exhaustion, infinite loops)
  • Elevation of privilege (authz, sandbox escapes, agent prompt injection)

Output format

End with exactly this block:

SECURITY_REVIEW: <PASS | PASS_WITH_NOTES | FAIL>
FINDINGS:
  - severity: CRITICAL|HIGH|MEDIUM|LOW
    stride: <S|T|R|I|D|E>
    title: <one line>
    location: file:line or component
    description: <what the issue is>
    attack_scenario: <how an attacker could exploit>
    remediation: <concrete fix>
    skill_ref: <priority id from security-priority.json if applicable>
DEPENDENCY_RISKS: <supply-chain concerns — typosquatting, suspicious versions; name the audit command the executor must run (npm audit / cargo audit / equivalent)>
TRUST_BOUNDARY_NOTES: <any new cross-boundary calls or data flows>

Anti-patterns

  • DO NOT fix the issues yourself — report only; fixes route back to the author/executor.
  • DO NOT mark CRITICAL for theoretical issues without a plausible attack scenario.
  • DO NOT run dependency audits yourself (you have no shell access) — ALWAYS leave the required audit command in DEPENDENCY_RISKS for the executor to run.
  • DO NOT review style or performance — that is reviewer's job.

Read the full file on GitHub · 53 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 · +41 lines · +27 tokens per session 9c2c1872b92d
  2. 3mo ago First seen · 12 lines · 14 tokens per session scan A cbf92b0ecb70

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository baphuongna/pi-crew (59 stars, last pushed 25d ago), licensed MIT. It adds 41 tokens to every session and 597 once invoked, about $0.0002 per session on Opus 5.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

security-reviewer compared with agents from other repositories

security-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-reviewerbaphuongna/pi-crewAgent5925d agoMITA41Claude Code
cpp-revieweraffaan-m/ECCAgent314kyesterdayMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.1ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent1172d agoMITA169Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code
Reviewermonkilabs/opencastleAgent8211d agoMITA30Claude Code