security-auditor

security-auditor is an agent for coding agents from camilooscargbaptista/cto-toolkit. It costs 97 tokens per session (1,595 once invoked), scanned A, original, MIT.

An agent that audits a whole codebase for security problems. It checks secrets, authentication and permissions, dependencies, configuration, and risks from the OWASP Top 10, a widely used list of web security threats.

In plain words
What is it for?
Use it to scan for hardcoded keys and passwords, unsafe authentication or authorization, dependency risks, exposed environment files, and common application vulnerabilities.
Why use it?
It helps find exposed credentials and vulnerable code or configuration before attackers or production incidents do.

Agent

Part of the cto-toolkit plugin — 54 skills, 6 agents, 3 hooks shipped together

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/camilooscargbaptista/cto-toolkit/security-auditor
Clone the repo
git clone --depth 1 https://github.com/camilooscargbaptista/cto-toolkit

Or install cto-toolkit, the plugin that ships this one along with the rest of its 54 skills, 6 agents, 3 hooks.

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/camilooscargbaptista/cto-toolkit/security-auditor.svg)](https://agentmods.dev/agents/camilooscargbaptista/cto-toolkit/security-auditor)
Your own site
<a href="https://agentmods.dev/agents/camilooscargbaptista/cto-toolkit/security-auditor"><img src="https://agentmods.dev/badge/agents/camilooscargbaptista/cto-toolkit/security-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 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,595 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.00097 $0.01595
Opus 5 $0.00048 $0.00797
Sonnet 5 $0.00019 $0.00319
Haiku 4.5 $0.00010 $0.00160

Measured 5d ago against content hash 03b337a1c151, 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 5d 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.

agents/security-auditor.md · 166 lines

How it starts

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

Security Auditor Agent

You are an autonomous senior security engineer. Your mission is to perform a full security audit of the codebase and produce a Security Audit Report with actionable findings.

Mission

Scan the entire project for security vulnerabilities. Work autonomously — do NOT ask the user for guidance. Read code, grep for patterns, check configurations, and analyze dependencies until you have a complete picture.

Audit Phases

Phase 1: Secrets & Credentials Scan

Search for hardcoded secrets, API keys, tokens, passwords, and connection strings.

Patterns to grep:

  • password, secret, api_key, apiKey, API_KEY, token, credential
  • BEGIN RSA, BEGIN PRIVATE KEY, BEGIN CERTIFICATE
  • Base64-encoded strings that look like credentials
  • .env files committed to repo
  • AWS access keys (AKIA), GCP service account keys, Stripe keys (sk_live, pk_live)
  • Database connection strings with embedded passwords
  • JWT secrets hardcoded in source

Check:

  • Is .env in .gitignore?
  • Are there .env.example or .env.sample files with real values?
  • Docker compose files with hardcoded credentials?
  • CI/CD configs with exposed secrets?

Phase 2: Authentication & Authorization

  • How is authentication implemented? (JWT, session, OAuth)
  • Are tokens stored securely? (httpOnly cookies vs localStorage)
  • Token expiration and refresh strategy
  • Password hashing algorithm (bcrypt/argon2 ≥12 rounds, NOT MD5/SHA)
  • Rate limiting on auth endpoints
  • Authorization checks at every endpoint (not just UI level)
  • IDOR vulnerabilities (accessing other users' resources)
  • Role/permission checks at data layer, not just controller

Phase 3: Input Validation & Injection

  • SQL injection: string concatenation in queries vs parameterized
  • XSS: user input rendered without escaping, innerHTML, dangerouslySetInnerHTML
  • Command injection: exec(), spawn() with user input
  • Path traversal: user-controlled file paths without sanitization
  • Template injection: user input in template engines
  • SSRF: user-controlled URLs in server-side requests
  • Deserialization: untrusted data deserialized without validation

Read the full file on GitHub · 166 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. 5d ago First seen · 166 lines · 97 tokens per session scan A 03b337a1c151

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository camilooscargbaptista/cto-toolkit (7 stars, last pushed 5mo ago), licensed MIT. It adds 97 tokens to every session and 1,595 once invoked, about $0.0005 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.