security-auditor

security-auditor is an agent for Claude Code from brain-bootstrap/claude-code-brain-bootstrap. It costs 39 tokens per session (651 once invoked), scanned A, original, MIT.

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

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Good fit Scanning code and configuration for credentials, authentication and authorization gaps, injection risks, known dependency vulnerabilities, unsafe logging or storage, and insecure deployment settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/brain-bootstrap/claude-code-brain-bootstrap/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/brain-bootstrap/claude-code-brain-bootstrap

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/brain-bootstrap/claude-code-brain-bootstrap/security-auditor/github.svg)](https://agentmods.dev/agents/brain-bootstrap/claude-code-brain-bootstrap/security-auditor)
Your own site
<a href="https://agentmods.dev/agents/brain-bootstrap/claude-code-brain-bootstrap/security-auditor"><img src="https://agentmods.dev/badge/agents/brain-bootstrap/claude-code-brain-bootstrap/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/brain-bootstrap/claude-code-brain-bootstrap/security-auditor"><img src="https://agentmods.dev/badge/agents/brain-bootstrap/claude-code-brain-bootstrap/security-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00039 $0.00651
Opus 5.5 $0.00016 $0.00260
Sonnet 5.5 $0.00008 $0.00130
Haiku 4.5 $0.00004 $0.00065

Measured 3mo ago against content hash 65eefb60563b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 7mo ago), licensed MIT. It adds 39 tokens to every session and 651 once invoked, about $0.0002 per session on Opus 5.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

security-auditor compared with agents from other repositories

security-auditor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-auditorbrain-bootstrap/claude-code-brain-bootstrapAgent117mo agoMITA39Claude Code
code-reviewerserpro69/claude-toolboxAgent15510d agoApache-2.0A40Claude Code
design-reviewerserpro69/claude-toolboxAgent15510d agoApache-2.0A34Claude Code
eval-graderserpro69/claude-toolboxAgent15510d agoApache-2.0A48Claude Code
spec-reviewerserpro69/claude-toolboxAgent15510d agoApache-2.0A37Claude Code
architecture-reviewerserpro69/claude-toolboxAgent15510d agoApache-2.0A87Claude Code
cpp-revieweraffaan-m/ECCAgent314kyesterdayMITA41Claude Code, Kiro