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.
npx agentmods add commands/khaledsaeed18/dotclaude/security-auditgit clone --depth 1 https://github.com/KhaledSaeed18/dotclaudeWrote 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.
[](https://agentmods.dev/commands/khaledsaeed18/dotclaude/security-audit)<a href="https://agentmods.dev/commands/khaledsaeed18/dotclaude/security-audit"><img src="https://agentmods.dev/badge/commands/khaledsaeed18/dotclaude/security-audit.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00096 | $0.01141 |
| Opus 5 | $0.00048 | $0.00571 |
| Sonnet 5 | $0.00019 | $0.00228 |
| Haiku 4.5 | $0.00010 | $0.00114 |
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.
How it starts
The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context
Scope: $ARGUMENTS (defaults to the entire repository if blank)
Dependency manifest:
!cat package.json 2>/dev/null | head -60
Recent changes:
!git log --oneline -10 2>/dev/null
Task
Conduct a structured security audit of the codebase (or the path given in $ARGUMENTS). Report findings ranked by severity with concrete evidence and specific remediation steps.
Step 1: Establish scope and entry points
# Identify entry points: routes, controllers, handlers
find ${ARGUMENTS:-.} -name "*.ts" -o -name "*.js" -o -name "*.py" \
| grep -v node_modules | grep -iE "route|controller|handler|api|server|app" | head -20
Read the top-level entry files first. Then trace inward through authentication middleware, input validation layers, and data access code.
Step 2: Check dependencies
npm audit --json 2>/dev/null | head -200
Flag CVEs in direct dependencies, stale packages with no recent releases, and overly permissive version ranges (*, >=0).
Step 3: Scan for hardcoded secrets
grep -rn --include="*.ts" --include="*.js" --include="*.json" --include="*.yaml" --include="*.env*" \
-E "(api_key|apikey|secret|password|passwd|token|private_key|access_key)\s*[:=]\s*['\"][^'\"]{8,}" \
${ARGUMENTS:-.} | grep -v node_modules | grep -v ".env.example" | head -40
Step 4: Audit by vulnerability class
Work through each class. Skip classes that clearly do not apply.
Injection (OWASP A03)
- Parameterized queries used everywhere, or string concatenation into SQL/NoSQL queries?
exec/spawnwith user-controlled input?path.join/ file reads on user-supplied paths without canonicalization?
Broken Access Control (OWASP A01)
- Ownership and permission checks on every resource endpoint?
- Horizontal escalation: can user A reach user B's data by changing an ID?
- Vertical escalation: can a regular user reach admin functionality?
- Any access control enforced only client-side?
Broken Authentication (OWASP A07)
- Password hashing with bcrypt, argon2, or scrypt? Never MD5/SHA1/SHA256 for passwords.
- JWT
algfield pinned?alg: noneaccepted? - Session tokens cryptographically random, HttpOnly, Secure, SameSite?
- Rate limiting on login, password reset, and OTP endpoints?
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.
- 3d ago First seen · 112 lines · 96 tokens per session scan A 19e38c497d1a
security-audit is a command published in the GitHub repository KhaledSaeed18/dotclaude (5 stars, last pushed 2d ago), licensed MIT. It adds 96 tokens to every session and 1,141 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.
Other commands, from other repositories
fest-show
Show festival progression (in-progress tasks, roadmap, and dependency view).
superpowers-execute
Execute the current GSD phase plan with Superpowers instead of gsd-execute-phase.
config
Command "config" from sdebruyn/fabric-dw-mcp-cli, covering configuration & defaults, http retry budget, sql retry budget, mcp workspace allowlist {#mcp-workspace-allowlist} and mcp server log level.
deps-age
Analyze dependency freshness and maintenance activity.
setup
Diagnose-first project setup with state machine — scans, confirms, interviews, writes.
scan
Scan AWS account for cost optimization.