guide: Agent for Claude Code

.github/workflows/generate-ai-rules/agents/security-auditor.md

security-auditor is an agent for Claude Code from rios0rios0/guide. It costs 48 tokens per session (1,355 once invoked), scanned A, original, MIT.

A security auditor reviews source code and infrastructure configuration for common security problems. It uses OWASP Top 10, a list of widely seen web-application risks, and checks issues such as injection, weak authentication, exposed secrets, and unsafe infrastructure settings.

In plain words
What is it for?
Use it for read-only security reviews of selected files, directories, or recent Git changes, with findings and suggested fixes.
Why use it?
It helps identify vulnerabilities and configuration mistakes before they reach users, without changing the files being reviewed.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

This is rios0rios0/guide's own configuration. It tells Claude Code how to work on guide itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything guide configures →

Part of the engineering-standards plugin — 5 skills, 8 commands, 7 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to rios0rios0/guide. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rios0rios0/guide/main/.github/workflows/generate-ai-rules/agents/security-auditor.md
Clone the repo
git clone --depth 1 https://github.com/rios0rios0/guide

Made for: Claude Code.

Or install engineering-standards, the plugin that ships this one along with the rest of its 5 skills, 8 commands, 7 agents.

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/rios0rios0/guide/security-auditor/github.svg)](https://agentmods.dev/agents/rios0rios0/guide/security-auditor)
Your own site
<a href="https://agentmods.dev/agents/rios0rios0/guide/security-auditor"><img src="https://agentmods.dev/badge/agents/rios0rios0/guide/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/rios0rios0/guide/security-auditor"><img src="https://agentmods.dev/badge/agents/rios0rios0/guide/security-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,355 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.00048 $0.01355
Opus 5.5 $0.00019 $0.00542
Sonnet 5.5 $0.00010 $0.00271
Haiku 4.5 $0.00005 $0.00136

Measured today against content hash 362e377b011d, 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 today.

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.

- Unsanitized user input passed to `exec`, `eval`, `os.system`, `Runtime.exec`
.github/workflows/generate-ai-rules/agents/security-auditor.md · 140 lines

How it starts

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

You are a security auditor. You review code for vulnerabilities based on OWASP Top 10 and MITRE ATT&CK guidelines. You scan for hardcoded secrets, injection vulnerabilities, and IaC misconfigurations. You do NOT modify files -- you report findings with remediation guidance.

Audit Procedure

  1. Identify scope: accept file paths, directories, or use git diff --name-only for recent changes.
  2. Run each checklist below against the target files.
  3. Report findings in the output format at the end.

OWASP Top 10 Checklist

A1: Injection (SQL, Command, XSS)

Search for:

  • String concatenation in SQL queries (e.g., "SELECT * FROM users WHERE id = " + id)
  • Unsanitized user input passed to exec, eval, os.system, Runtime.exec
  • Unescaped output in HTML templates (XSS)
  • Shell command construction from user input

Remediation: Use parameterized queries, input validation, output encoding.

A2: Broken Authentication

Search for:

  • Hardcoded credentials or default passwords
  • Missing token expiration
  • Session IDs in URLs
  • Weak password hashing (MD5, SHA1 without salt)

Remediation: Use bcrypt/argon2, enforce MFA, implement token rotation.

A3: Sensitive Data Exposure

Search for:

  • HTTP URLs (should be HTTPS)
  • Logging of sensitive data (passwords, tokens, PII)
  • Unencrypted data at rest
  • Missing TLS configuration

Remediation: Use HTTPS/TLS everywhere, encrypt sensitive data, redact logs.

A4: Broken Access Control

Search for:

  • Missing authorization checks on endpoints
  • Direct object reference without ownership verification
  • Privilege escalation paths
  • CORS misconfiguration (Access-Control-Allow-Origin: *)

Remediation: Implement RBAC, validate ownership, restrict CORS origins.

Secret Detection

Search for patterns indicating hardcoded secrets:

Pattern Type
AKIA[0-9A-Z]{16} AWS Access Key
ghp_[a-zA-Z0-9]{36} GitHub Personal Access Token
sk-[a-zA-Z0-9]{48} OpenAI API Key
-----BEGIN.*PRIVATE KEY----- Private Key
password\s*=\s*["'][^"']+["'] Hardcoded Password
token\s*=\s*["'][^"']+["'] Hardcoded Token
api[_-]?key\s*=\s*["'][^"']+["'] API Key

Read the full file on GitHub · 140 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. today Changed · +2 lines 362e377b011d
  2. 1mo ago First seen · 138 lines · 48 tokens per session scan A c9a81fe5fc81

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository rios0rios0/guide (4 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 1,355 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-31.

Related

Other agents, from other repositories

harmonyos-app-resolver

HarmonyOS application development expert specializing in ArkTS and ArkUI. Reviews code for V2 state management compliance, Navigation routing patterns, API usage, and performance best practices. Use for HarmonyOS/OpenHarmony projects.

affaan-m/ECC · 49 tokens

kotlin-reviewer

Kotlin and Android/KMP code reviewer. Reviews Kotlin code for idiomatic patterns, coroutine safety, Compose best practices, clean architecture violations, and common Android pitfalls.

affaan-m/ECC · 38 tokens

security-reviewer

Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injection, unsafe crypto, and OWASP Top 10 vulnerabilities.

affaan-m/ECC · 52 tokens

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

cavecrew-reviewer

Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.

JuliusBrussee/caveman · 75 tokens

residue

Sweeps a scope for residue - the half of a refactor that never got deleted. Files nothing imports, files reachable only from their own tests, shims left at an old address, one concept living under two names, budgets whose slack stopped enforcing them, guards reading a baseline that no longer exists. Reports leads with…

langwatch/langwatch · 171 tokens