security-audit

security-audit is an agent for Claude Code from LeeYudok/agents-scaffold. It costs 85 tokens per session (2,883 once invoked), scanned B, original, MIT.

A security scanner that searches source code and coding-agent configuration for common risks, such as hard-coded secrets, exposed passwords, unsafe SQL, missing authentication, and prompt-injection issues. It reports findings but does not change files.

In plain words
What is it for?
Use it during security reviews to scan code and agent configuration for the listed P0 and P1 issues, while excluding generated and dependency directories.
Why use it?
Security problems can be hidden in ordinary code or in agent settings such as hooks, permissions, and tool connections. An automated scan gives a repeatable first review before a person decides what to fix.

Agent for Claude Code

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/leeyudok/agents-scaffold/security-audit
Clone the repo
git clone --depth 1 https://github.com/LeeYudok/agents-scaffold

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/agents/leeyudok/agents-scaffold/security-audit.svg)](https://agentmods.dev/agents/leeyudok/agents-scaffold/security-audit)
Your own site
<a href="https://agentmods.dev/agents/leeyudok/agents-scaffold/security-audit"><img src="https://agentmods.dev/badge/agents/leeyudok/agents-scaffold/security-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,883 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 4 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.00085 $0.02883
Opus 5 $0.00043 $0.01442
Sonnet 5 $0.00017 $0.00577
Haiku 4.5 $0.00009 $0.00288

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

Security

Grade B, and why

security-audit scanned grade B with 4 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 4d 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

grep -rn -E "crontab|launchctl|systemctl.*enable|sudo |chown root" .claude/hooks/ 2>/dev/null

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Reads MCP configurationlowAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

[ -f .mcp.json ] && grep -nE '"(env|args)"' -A5 .mcp.json | grep -nE "(KEY|TOKEN|SECRET|PASSWORD)\"?\s*:\s*\"[^$\"]{8,}"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

for want in ["Read(.env)","Bash(rm -rf *)","Bash(git push --force *)"]:

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

grep -rn -E "curl[^|;]*\|\s*(ba)?sh|wget[^|;]*\|\s*(ba)?sh" .claude/ .mcp.json 2>/dev/null
.claude/agents/security-audit.md · 204 lines

How it starts

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

보안 감사 에이전트

AGENTS.md P0/P1 보안 항목을 자동 스캔해 위반 사항을 보고한다. 수정은 하지 않는다 — 발견 → 보고 → 사람 판단.

스캔 대상

프로젝트 루트에서 소스 코드 전체. node_modules/, vendor/, .git/, dist/, build/ 제외.

검사 항목

P0 — 즉시 수정 필요

1. 하드코딩 시크릿

grep -rn --include="*.ts" --include="*.js" --include="*.py" --include="*.go" \
  -E '(SECRET|TOKEN|API_KEY|PASSWORD|PRIVATE_KEY)\s*[:=]\s*["\x27][^"\x27]{8,}' \
  --exclude-dir=node_modules --exclude-dir=.git

허용: process.env.*, os.environ.*, os.Getenv(...) 패턴

2. .env 파일 직접 커밋 흔적

git log --all --oneline --diff-filter=A -- '*.env' '.env.*'
grep -rn "\.env" .gitignore || echo "WARN: .env not in .gitignore"

3. 평문 비밀번호 저장

grep -rn -E "password\s*[:=]\s*[\"'][^\"']{4,}" --include="*.ts" --include="*.py" --include="*.go"
# Bcrypt/Argon2/hash 사용 여부 확인

4. SQL Injection 위험

grep -rn -E '\$\{[^}]+\}|f"[^"]*{[^}]+}[^"]*SELECT|".*\+.*WHERE' \
  --include="*.ts" --include="*.js" --include="*.py" --include="*.go"

5. 인증 우회 경로

# 인증 미들웨어 없이 민감한 라우트 노출 검사
grep -rn -E "router\.(get|post|put|delete)\s*\(['\"]/(admin|api/v\d+|dashboard)" --include="*.ts" --include="*.js"

P1 — 필수 수정

6. console.log/print 잔존 (운영 비밀 노출 위험)

grep -rn -E "console\.(log|error|warn|debug)\s*\(.*?(password|secret|token|key)" \
  --include="*.ts" --include="*.js"
grep -rn -E "print\s*\(.*?(password|secret|token|key)" --include="*.py"

7. CORS 와일드카드

grep -rn -E "Access-Control-Allow-Origin[:\s]*\*|cors\(\s*\{\s*origin\s*:\s*['\"]?\*" \
  --include="*.ts" --include="*.js" --include="*.py" --include="*.go"

8. .env.example 동기화

# .env.example 키 목록 vs .env 키 목록 비교 (값은 노출하지 않음)
[ -f .env.example ] && grep -oE '^[A-Z_]+=' .env.example | sort > /tmp/env_example_keys.txt
[ -f .env ] && grep -oE '^[A-Z_]+=' .env | sort > /tmp/env_actual_keys.txt
diff /tmp/env_example_keys.txt /tmp/env_actual_keys.txt || echo "WARN: .env/.env.example 키 불일치"

9. 취약한 암호화

grep -rn -E "MD5|SHA1|DES\b|ECB|createHash\(['\"]md5['\"]|createHash\(['\"]sha1" \
  --include="*.ts" --include="*.js" --include="*.py" --include="*.go"

Read the full file on GitHub · 204 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. 4d ago First seen · 204 lines · 85 tokens per session scan B 96fff89d580b

Subscribe to this mod's changes

security-audit is an agent published in the GitHub repository LeeYudok/agents-scaffold (25 stars, last pushed 5d ago), licensed MIT. It adds 85 tokens to every session and 2,883 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 4 findings (asks for root, reads mcp configuration, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.