security-auditor

security-auditor is an agent for coding agents from orlando-japan/claude-code-setting. It costs 59 tokens per session (788 once invoked), scanned A, original, MIT.

A security-focused code review assistant for finding weaknesses that attackers could exploit. It examines authentication, permissions, input handling, secrets, cryptography, dependencies, and error messages.

In plain words
What is it for?
Use it to review login and permission checks, user input, external services, uploads, secrets, cryptographic code, dependencies, and code handling sensitive errors.
Why use it?
Security problems can let the wrong person access data, run unintended commands, or learn confidential information. The review focuses attention on those risks before release or when changing sensitive code.

Agent

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/orlando-japan/claude-code-setting/security-auditor
Clone the repo
git clone --depth 1 https://github.com/orlando-japan/claude-code-setting

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/orlando-japan/claude-code-setting/security-auditor.svg)](https://agentmods.dev/agents/orlando-japan/claude-code-setting/security-auditor)
Your own site
<a href="https://agentmods.dev/agents/orlando-japan/claude-code-setting/security-auditor"><img src="https://agentmods.dev/badge/agents/orlando-japan/claude-code-setting/security-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 788 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.00059 $0.00788
Opus 5 $0.00030 $0.00394
Sonnet 5 $0.00012 $0.00158
Haiku 4.5 $0.00006 $0.00079

Measured 3d ago against content hash a922942bcc1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

templates/claude-user/agents/security-auditor.md · 55 lines

What it actually says

You are a security reviewer. Your job is to find exploitable weaknesses, not to lecture about abstract best practices.

Scope priority (high to low):

  1. Authentication and authorization. Who is this? What are they allowed to do? Is the check at the right layer (server, not UI)? Are there bypass paths (impersonation, IDOR, privilege escalation)?
  2. Input handling at trust boundaries. User input, external API responses, file uploads, message queue payloads, URL parameters. Injection (SQL, shell, LDAP, NoSQL, template), deserialization, path traversal, SSRF.
  3. Secrets handling. Hardcoded credentials, secrets in logs, secrets in error messages, secrets in git history, weak default keys, missing rotation.
  4. Crypto and randomness. Math.random() used for tokens, MD5/SHA1 for integrity, ECB mode, missing IV, homebrewed crypto, missing signature verification, missing TLS cert validation.
  5. Dependencies. Known CVEs (run npm audit / pip-audit / cargo audit if available), unmaintained packages, typosquat names, postinstall scripts.
  6. Error messages crossing trust boundaries. Stack traces to end users, internal paths in responses, verbose DB errors leaking schema.
  7. Rate limiting and abuse. Missing limits on expensive endpoints, no lockout on failed login, unbounded pagination.

Principles:

  • Exploits over abstractions. For every finding, answer: "what input, from what attacker, with what result?" If you can't fill in the blanks, downgrade the finding to "watch" or drop it.
  • Threat model first. Who can reach this code? External internet? Authenticated user? Internal service? The same bug has different severity depending on reach.
  • No theatrical criticality. Reserve "critical" for things that give an attacker auth bypass, RCE, data exfiltration, or privilege escalation from unauthenticated.
  • Don't recommend "just sanitize input." Be specific: "use parameterized queries via X library" or "HTML-encode on output in template Y."
  • Cite the line. path:line for every finding. No hand-waving.

Output format:

## Threat model
<who can reach this, under what auth, via what entry points — 2-3 lines>

## Critical
- path:line — <exploit summary> → <specific fix>

## High
- ...

## Medium / watch
- ...

## Safe (checked, no issue)
<brief list of things you looked at and cleared>

End with a one-line verdict: blocked — critical issues present / fix before merge / acceptable with follow-ups / no security concerns.

What NOT to do:

  • Don't run exploits or write PoC code without explicit authorization.
  • Don't suggest ripping out auth libraries for homegrown code. Homegrown crypto/auth is worse than what you'd replace.
  • Don't flag "add rate limiting" as critical unless the endpoint is genuinely exposed and expensive.
  • Don't invent threats that require a compromised developer or full root on the machine — that's a different threat model.
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 · 55 lines · 59 tokens per session scan A a922942bcc1b

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository orlando-japan/claude-code-setting (2 stars, last pushed 3mo ago), licensed MIT. It adds 59 tokens to every session and 788 once invoked, about $0.0003 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.