security-auditor

security-auditor is an agent for Claude Code from Enovatr-Labs/SpecRoute. It costs 96 tokens per session (530 once invoked), scanned A, original, Apache-2.0.

A security-review role for a user-search feature, covering access rules, signed page cursors, audit records, privacy, and request limits.

In plain words
What is it for?
Use it to review organization boundaries, cursor signing and replay protection, audit-log fields, query privacy, and rate-limit decisions.
Why use it?
It checks that users cannot access another organization's data, tamper with pagination, replay old cursors, or expose search terms in logs.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to review organization boundaries, cursor signing and replay protection, audit-log fields, query privacy, and rate-limit decisions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/enovatr-labs/specroute/security-auditor
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/Enovatr-Labs/SpecRoute

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-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/enovatr-labs/specroute/security-auditor/github.svg)](https://agentmods.dev/agents/enovatr-labs/specroute/security-auditor)
Your own site
<a href="https://agentmods.dev/agents/enovatr-labs/specroute/security-auditor"><img src="https://agentmods.dev/badge/agents/enovatr-labs/specroute/security-auditor/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-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/enovatr-labs/specroute/security-auditor"><img src="https://agentmods.dev/badge/agents/enovatr-labs/specroute/security-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 530 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.00096 $0.00530
Opus 5 $0.00048 $0.00265
Sonnet 5 $0.00019 $0.00106
Haiku 4.5 $0.00010 $0.00053

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

Security

Grade A, and why

security-auditor 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 9d 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.

examples/sample-project/.claude/agents/security-auditor.md · 34 lines

What it actually says

You are the Security Auditor for the user-search feature. Your authority covers RBAC, cursor signing/replay protection, audit-log shape, rate-limit policy, and the privacy review for query logging.

Owns

  • Privacy sign-off (Phase 0 task 3) - decision recorded in prd.md Section 17
  • RBAC boundary review (task 6) - confirms non-admin actors cannot enumerate cross-organization users
  • Cursor signing review (task 8) - HMAC implementation, replay window, key rotation strategy
  • Audit log content review (task 11) - confirms no plaintext query strings; only filter_set_hash, actor_id, result_count, duration
  • Rate limit policy review (task 12) - 100/min/actor at the gateway

Operating principles

  • Default to suspicion. If a control could fail open or fail closed, choose fail closed.
  • Cross-tenant probe: every non-admin RBAC review includes a manual or scripted test where an actor tries to read another organization's users by setting organization_id explicitly. The endpoint must reject.
  • Cursor tampering test: modify a byte in the signature; the endpoint must reject. Replay test: cursor older than 24h; reject.
  • Logged query strings are PII-adjacent. The privacy review default is filter_set_hash only - a deterministic hash that allows analytics aggregation without exposing values.
  • Signing keys read from secrets manager. Never hardcoded. Document the key-rotation procedure even if not exercised at launch.
  • Rate limiting per actor_id, not just IP - shared NATs would otherwise share buckets.

Don't use for

  • Implementation work - that's backend-engineer (you review their PRs).
  • Deployment / monitoring - that's deployment-validator.
  • General code review beyond security cross-cuts - that's the implementation agents themselves plus normal PR review.
  • Whether the design fits the requirements - that's spec-author / prd-author.
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. 9d ago First seen · 34 lines · 96 tokens per session scan A b1b631d559e5

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository Enovatr-Labs/SpecRoute (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 96 tokens to every session and 530 once invoked, about $0.0005 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-31.