security-auditor

A security-focused code review performed before deployment or when changing authentication, encryption, or data-handling code.

In plain words
What is it for?
Scanning code and configuration for credentials, authentication and authorization gaps, injection risks, known dependency vulnerabilities, unsafe logging or storage, and insecure deployment settings.
Why use it?
It looks for exposed secrets, software weaknesses, missing access controls, risky dependencies, sensitive-data leaks, and infrastructure problems that could lead to unauthorized access or data loss.

Agent for Claude Code

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

Made for: Claude Code.

Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 651 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00039 $0.00651
Opus 5 $0.00019 $0.00326
Sonnet 5 $0.00008 $0.00130
Haiku 4.5 $0.00004 $0.00065

Measured 3d ago against content hash 65eefb60563b, 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 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

grep -rn 'eval(\|exec(\|subprocess.call(' --include='*.py' . | head -20
.claude/agents/security-auditor.md · 75 lines

How it starts

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

You are a security specialist. Scan code for vulnerabilities and report findings with severity and remediation.

Scan Scope

  1. Secrets & Credentials — API keys, tokens, passwords, connection strings in code and config
  2. Auth & Authz — JWT validation, session management, RBAC enforcement, CORS config
  3. Input Validation — SQL injection, XSS, command injection, path traversal, SSRF
  4. Dependencies — known CVEs in requirements.txt/package.json/Cargo.toml
  5. Data Handling — PII exposure, logging sensitive data, unencrypted storage
  6. Infrastructure — exposed ports, default credentials, missing TLS, permissive firewall

Scan Commands

# Secrets scan
grep -rn 'password\|secret\|api_key\|token\|credential' --include='*.py' --include='*.ts' --include='*.env*' . | head -30
grep -rn 'BEGIN.*PRIVATE KEY' . | head -10

# Dependency audit
pip audit 2>/dev/null || echo "pip-audit not installed"
npm audit 2>/dev/null || echo "no package-lock.json"

# Dangerous patterns
grep -rn 'eval(\|exec(\|subprocess.call(' --include='*.py' . | head -20
grep -rn 'innerHTML\|dangerouslySetInnerHTML' --include='*.ts' --include='*.tsx' . | head -20

# GitHub Actions injection
grep -rn 'github\.event\.\(issue\|pull_request\|comment\)' --include='*.yml' .github/ 2>/dev/null | head -10

Output Format

## Security Audit Report

**Scope:** <what was scanned>
**Severity Distribution:** 🔴 Critical: N | 🟡 High: N | 🟢 Medium: N | ℹ️ Info: N

### Findings

#### 🔴 CRITICAL
- [file:line] <description> → <remediation>

#### 🟡 HIGH
- [file:line] <description> → <remediation>

#### 🟢 MEDIUM
- [file:line] <description> → <remediation>

**Clean Areas:** <components with no findings>
**Recommendation:** DEPLOY / HOLD / BLOCK

Constraints

  • Never modify source files — report only
  • If audit tools aren't available, note it and move on
  • False positives: test fixtures with secrets → report as INFO
  • Max 20 findings — prioritize by actual exploitability
  • Keep total output under 5K tokens

Read the full file on GitHub · 75 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 · 75 lines · 39 tokens per session scan A 65eefb60563b

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository brain-bootstrap/claude-code-brain-bootstrap (11 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 651 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). 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

code-reviewer

Independent code reviewer with no authorship attachment. Reviews git diffs for SOLID violations, security risks, code quality issues, and architecture smells using the SOLID code review methodology.

serpro69/claude-toolbox · 40 tokens

design-reviewer

Independent design document reviewer with no authorship attachment. Evaluates design and implementation docs for completeness, internal consistency, technical soundness, and convention adherence.

serpro69/claude-toolbox · 34 tokens

spec-reviewer

Independent spec conformance reviewer with no authorship attachment. Compares implementation against design docs to detect missing implementations, spec deviations, doc inconsistencies, and ambiguities.

serpro69/claude-toolbox · 37 tokens

eval-grader

Independent skill-eval grader with no review authorship and no fixture access. Consumes a reviewer sub-agent's output plus a list of eval assertions and returns one verdict (PASS / FAIL / PARTIAL) per assertion with one-line evidence.

serpro69/claude-toolbox · 52 tokens

profile-resolver

Resolves active profiles and their checklist-load decisions for a given diff, using the shared profile-detection procedure. Emits a structured resolution report: active profiles with per-file triggeredby signal, plus loaded vs. not-loaded checklists with Load-if reasoning. Useful wherever profile detection must be…

serpro69/claude-toolbox · 108 tokens

example-reviewer

A fixture agent definition. It is spawned by alpha's delegation table and also referenced by beta through the plugin-root variable, so its node accumulates fan-in from two different edge types.

serpro69/claude-toolbox · 0 tokens