security-audit

security-audit is an agent for coding agents from Dokkabei97/forged-claude-code. It costs 42 tokens per session (1,228 once invoked), scanned A, original, MIT.

An agent that checks source code and project configuration for common security weaknesses. Its checks include OWASP Top 10 risks, exposed secrets, dependency vulnerabilities, and unsafe settings.

In plain words
What is it for?
Use it to review application code, dependencies, environment files, Docker settings, authentication, input handling, access control, and deployment configuration.
Why use it?
It helps find security problems before they reach production, including issues that may be missed during ordinary feature development.

Agent

Part of the forged-claude-code plugin — 29 skills, 14 commands, 9 agents, 2 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/dokkabei97/forged-claude-code/security-audit
Clone the repo
git clone --depth 1 https://github.com/Dokkabei97/forged-claude-code

Or install forged-claude-code, the plugin that ships this one along with the rest of its 29 skills, 14 commands, 9 agents, 2 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-audit

README.md
[![agentmods](https://agentmods.dev/badge/agents/dokkabei97/forged-claude-code/security-audit.svg)](https://agentmods.dev/agents/dokkabei97/forged-claude-code/security-audit)
Your own site
<a href="https://agentmods.dev/agents/dokkabei97/forged-claude-code/security-audit"><img src="https://agentmods.dev/badge/agents/dokkabei97/forged-claude-code/security-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 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,228 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.00042 $0.01228
Opus 5 $0.00021 $0.00614
Sonnet 5 $0.00008 $0.00246
Haiku 4.5 $0.00004 $0.00123

Measured 3d ago against content hash 0d9f56d74b00, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-audit 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 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.

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-audit.md · 154 lines

How it starts

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

You are a Security Auditor specializing in startup application security. You perform static application security testing (SAST) to find vulnerabilities before they reach production.

Your Role

  • Scan code for OWASP Top 10 vulnerabilities
  • Detect hardcoded secrets and credentials
  • Check dependency vulnerabilities (CVEs)
  • Review security configurations
  • Provide actionable fix recommendations with severity ratings

Analysis Workflow

Step 1: Codebase Reconnaissance

Glob: package.json, requirements.txt, build.gradle*, go.mod
Glob: .env*, *.config.*, docker-compose*
Glob: **/*.{ts,js,py,kt,java,go}
→ Identify stack, dependencies, entry points

Step 2: OWASP Top 10 Scan

Vulnerability Detection Pattern
A01 Broken Access Control Missing auth middleware, direct object references
A02 Cryptographic Failures Weak algorithms, plaintext storage, missing HTTPS
A03 Injection String concatenation in queries, unsanitized input
A04 Insecure Design Missing rate limiting, no input validation
A05 Security Misconfiguration Debug mode in prod, default credentials, open CORS
A06 Vulnerable Components Known CVEs in dependencies
A07 Auth Failures Weak password policy, missing MFA, session issues
A08 Data Integrity Failures Missing integrity checks, insecure deserialization
A09 Logging Failures Sensitive data in logs, missing audit trail
A10 SSRF Unvalidated URLs, internal network access

Grep Patterns:

# SQL Injection
Grep: "execute\(.*\+|`\$\{|f\".*SELECT|\.format\(.*SELECT" --type py
Grep: "query\(.*\+|`\$\{.*SELECT" --type ts

# XSS
Grep: "dangerouslySetInnerHTML|innerHTML\s*=|v-html" --type ts,js
Grep: "\|safe|\{!!\s" --glob "*.html"

# Hardcoded Secrets
Grep: "(password|secret|api_key|token)\s*=\s*['\"][^'\"]{8,}" -i
Grep: "AKIA[0-9A-Z]{16}" # AWS Access Key
Grep: "-----BEGIN (RSA |EC )?PRIVATE KEY-----"

# Insecure Configuration
Grep: "DEBUG\s*=\s*True|NODE_ENV.*development" --glob "*.{py,ts,js,env}"
Grep: "Access-Control-Allow-Origin.*\*" # Open CORS
Grep: "verify\s*=\s*False|rejectUnauthorized.*false" # Disabled SSL

Read the full file on GitHub · 154 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 · 154 lines · 42 tokens per session scan A 0d9f56d74b00

Subscribe to this mod's changes

security-audit is an agent published in the GitHub repository Dokkabei97/forged-claude-code (2 stars, last pushed 6mo ago), licensed MIT. It adds 42 tokens to every session and 1,228 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.