security-audit

security-audit is a command for Claude Code from strikersam/autonomous-ai-agency. It costs 0 tokens per session (529 once invoked), scanned A, original, MIT.

A security-audit command for checking a codebase or selected module for vulnerabilities, dependency problems, unsafe code, and exposed secrets.

In plain words
What is it for?
Auditing dependencies, running static checks, searching for hardcoded secrets, and reviewing authentication code.
Why use it?
It provides a repeatable review before changes are merged or after security-sensitive work.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

Good fit Auditing dependencies, running static checks, searching for hardcoded secrets, and reviewing authentication code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/strikersam/autonomous-ai-agency/security-audit
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.

Clone the repo
git clone --depth 1 https://github.com/strikersam/autonomous-ai-agency

Made for: Claude Code.

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/commands/strikersam/autonomous-ai-agency/security-audit/github.svg)](https://agentmods.dev/commands/strikersam/autonomous-ai-agency/security-audit)
Your own site
<a href="https://agentmods.dev/commands/strikersam/autonomous-ai-agency/security-audit"><img src="https://agentmods.dev/badge/commands/strikersam/autonomous-ai-agency/security-audit/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-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/strikersam/autonomous-ai-agency/security-audit"><img src="https://agentmods.dev/badge/commands/strikersam/autonomous-ai-agency/security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.00529
Opus 5 $0.00000 $0.00264
Sonnet 5 $0.00000 $0.00106
Haiku 4.5 $0.00000 $0.00053

Measured 8d ago against content hash 5125ba3d22f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 8d 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/commands/security-audit.md · 64 lines

What it actually says

/security-audit — Security Agent

Perform a targeted security audit of the codebase or a specific module.

When to use

  • Before any PR that touches admin_auth.py, key_store.py, agent/tools.py, rbac.py, social_auth.py, or proxy.py auth middleware
  • After adding a new API endpoint
  • After adding a new dependency
  • On a scheduled basis (monthly)

Steps

  1. Read context

    • Read AGENTS.md sections: Security Requirements, Risky Modules
    • Read audit/security-analysis.md for known open issues
    • Run graphify query "security vulnerabilities" to check known concerns
  2. Dependency audit

    pip-audit --requirement requirements.txt --output json > /tmp/pip_audit.json
    cat /tmp/pip_audit.json
    
  3. Static analysis

    # Run bandit on the codebase
    bandit -r . -x .venv,tests,node_modules --severity-level medium -f json
    
  4. Hardcoded secrets check

    grep -rn --include="*.py" --exclude-dir=.venv --exclude-dir=tests \
      'SECRET_KEY\s*=\s*["\x27][^"]+["\x27]' .
    
  5. Auth path review

    • Read proxy.py lines 195-292 (auth middleware)
    • Read admin_auth.py
    • Verify hmac.compare_digest or equivalent used for secret comparison
    • Verify rate limiter cannot be bypassed
  6. CORS check

    grep -n "CORS_ORIGINS" proxy.py
    

    Verify it's not * in production.

  7. Agent filesystem boundary check

    • Read agent/tools.py _resolve_path()
    • Verify AGENT_WORKSPACE_ROOT is set and does not equal repo root
  8. Report findings

    • Severity: P0 (immediate), P1 (this sprint), P2 (next sprint)
    • Create GitHub issues for P0/P1 findings
    • Update audit/security-analysis.md with new findings

Escalation

Stop and ask the user before fixing:

  • Any P0 security vulnerability (immediate escalation required)
  • Any change to risky modules that affects auth flows
  • Any change that could break existing authenticated sessions
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. 8d ago First seen · 64 lines · 0 tokens per session scan A 5125ba3d22f8

Subscribe to this mod's changes

security-audit is a command published in the GitHub repository strikersam/autonomous-ai-agency (8 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 529 tokens. 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-09-03.