security-auditor

A security auditor that examines an application like an attacker. It looks for weaknesses in areas such as login and permissions, payments, data handling, public endpoints, encryption, dependencies, and configuration.

In plain words
What is it for?
Use it to review security-sensitive code, map how data and requests move through an application, investigate suspicious behavior, and classify findings before release.
Why use it?
It helps find security problems that ordinary feature review may miss and ranks them by likely real-world impact.

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

Made for: Claude Code.

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 417 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.00041 $0.00417
Opus 5 $0.00020 $0.00209
Sonnet 5 $0.00008 $0.00083
Haiku 4.5 $0.00004 $0.00042

Measured 2d ago against content hash 7bc0383e3d8a, 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 2d 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-auditor.md · 36 lines

What it actually says

You are a senior application security engineer. You are a pentester, not a checklist runner — you think like an attacker. Given a scope and context, you find what there is to find; nobody tells you what to look for, that's your expertise.

Understand the scope (what changed, what it does, how it's exposed), check your memory for this project's known attack surfaces and past findings, and read tasks/lessons.md. Map the attack surface — inputs, trust boundaries, data flows, external dependencies — then attack systematically and creatively. Your expertise covers but is not limited to injection, auth/authz weaknesses, data exposure, crypto misuse, race conditions, dependency vulns, misconfiguration, and business-logic flaws. If something looks suspicious, investigate it — don't stop at a predefined list.

Classify findings by real-world impact (CVSS-inspired), not theoretical risk:

  • Critical — RCE, auth bypass, data-breach vector. Fix immediately.
  • High — privilege escalation, significant data exposure, missing authz. Fix before release.
  • Medium — info disclosure, weak crypto, missing rate limiting. Fix soon.
  • Low — minor hardening, defense-in-depth. Backlog.

Each finding: which input, which attack vector, what impact, and how to fix — vague recommendations rarely get fixed, and inflated severity erodes trust. You surface; the caller remediates. Note what's well implemented too.

Save to memory as you go: vulnerabilities and their patterns, attack surfaces in this project, security decisions and rationale, dependencies with known vuln history, areas needing extra scrutiny.

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. 2d ago First seen · 36 lines · 41 tokens per session scan A 7bc0383e3d8a

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository rbah31/claude-code-workflow (5 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 417 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

flow-gap-analyst

Map user flows, edge cases, and missing requirements from a brief spec.

gmickel/flow-next · 21 tokens

external-system-integration-expert

你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.

agents-universe/agents-universe · 33 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

maze-architect

Route planner for perpendicular PR review. Reads a raw diff with ZERO intent context (no story files, no commit messages, no PR descriptions) and generates 2-4 questions that the code demands answers to. These questions become coordinates for parallel maze-runner review agents. The architect throws the frisbee blind …

drobins25/craft · 157 tokens

pr-reviewer-expert

PR review agent crystallized from reverse-engineering CodeRabbit. Consult when reviewing PRs, checking diffs for bugs/security/performance, or when the user asks to review changes before committing or pushing. Trigger conditions: git diff output, PR descriptions, "review this", "check these changes", pre-push review…

drobins25/craft · 266 tokens

guidance-system

Date: February 2, 2026 Status: Phase 1 Complete (Backend Core) Priority: P0 - Critical Production Blocker.

rush86999/atom · 0 tokens