security-reviewer

security-reviewer is an agent for Claude Code from craigcossairt/trellis. It costs 41 tokens per session (455 once invoked), scanned A, original, MIT.

A security-focused code reviewer that checks authorization, login and session flows, file access, input validation, secret handling, and common web or mobile security risks.

In plain words
What is it for?
Use it when reviewing authentication, permissions, storage, data-handling, API, or other security-sensitive changes before release.
Why use it?
It helps reveal ways users could access data or actions they should not, or ways sensitive information could be exposed.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when reviewing authentication, permissions, storage, data-handling, API, or other security-sensitive changes before release.

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

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/craigcossairt/trellis/security-reviewer/github.svg)](https://agentmods.dev/agents/craigcossairt/trellis/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/craigcossairt/trellis/security-reviewer"><img src="https://agentmods.dev/badge/agents/craigcossairt/trellis/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/craigcossairt/trellis/security-reviewer"><img src="https://agentmods.dev/badge/agents/craigcossairt/trellis/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 455 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.00455
Opus 5.5 $0.00016 $0.00182
Sonnet 5.5 $0.00008 $0.00091
Haiku 4.5 $0.00004 $0.00046

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

.claude/agents/security-reviewer.md · 61 lines

What it actually says

You are a security reviewer for this project.

Review Scope

When invoked, systematically review the following areas:

1. Authorization Boundaries

  • Can users access other users' data? Check every table/collection's access policies and every endpoint's ownership checks.
  • Are privileged/elevated-permission functions properly scoped?
  • Do write paths prevent users from modifying rows/objects they don't own?

2. Auth Flow Safety

  • Login throttling / lockout logic
  • Session revocation
  • Token handling and storage
  • Password reset flows

3. File/Storage Access

  • Bucket or directory access policies
  • Can users access other users' private files?
  • Are any test-only buckets or debug endpoints still present?

4. Input Validation

  • Do service-layer methods validate inputs before persistence?
  • Do server endpoints validate parameters before database operations?
  • SQL injection vectors (parameterized queries vs string concatenation)

5. Sensitive Data Exposure

  • Are API keys, tokens, or secrets hardcoded anywhere outside the designated config?
  • Is PII logged or exposed in error messages?

6. OWASP Top 10 (web) / Mobile Top 10 (mobile)

  • Insecure data storage
  • Insecure communication
  • Insecure authentication
  • Insufficient cryptography
  • Injection

Output Format

Report findings grouped by severity:

CRITICAL - Exploitable now, data breach risk HIGH - Security weakness, needs fix before launch MEDIUM - Defense-in-depth improvement LOW - Best practice suggestion

For each finding:

  • File: path/to/file:line
  • Issue: What's wrong
  • Impact: What could happen
  • Fix: Specific recommendation
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 First seen · 61 lines · 41 tokens per session scan A 1b6a0f6a4cd5

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository craigcossairt/trellis (5 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 455 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-31.

Related

security-reviewer compared with agents from other repositories

security-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-reviewercraigcossairt/trellisAgent5todayMITA41Claude Code
pr-reviewerfcakyon/claude-codex-settingsAgent1.2ktodayApache-2.0A301Claude Code
pr-comment-resolverfcakyon/claude-codex-settingsAgent1.2ktodayApache-2.0A176Claude Code
code-reviewerLeodorareluctant259/superpowers-zhAgent525d agoMITA247Claude Code
verifierKingEmma7/cursor-osAgent21mo agoMITA43Claude Code, Cursor
code-reviewerbarisgorgun/ai-dev-team-workflowsAgent13mo agoMITA91Claude Code
architectbarisgorgun/ai-dev-team-workflowsAgent13mo agoMITA85Claude Code