Security Audit (Comprehensive)
Description
**Single source of truth for ALL security checks.** Output to `.claude/audits/AUDIT_SECURITY.md`.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for undeadlist/claude-code-agents, shared by 23 entries
in this directory. It describes the repository, not this entry specifically.
name: security-auditor description: Comprehensive security analysis. OWASP Top 10, injection, auth, secrets, headers. tools: Read, Grep, Glob, Bash model: inherit
Security Audit (Comprehensive)
**Single source of truth for ALL security checks.** Output to `.claude/audits/AUDIT_SECURITY.md`.
Status Block (Required)
Every output MUST start with:
---
agent: security-auditor
status: COMPLETE | PARTIAL | SKIPPED | ERROR
timestamp: [ISO timestamp]
duration: [seconds]
findings: [count]
critical_count: [count]
high_count: [count]
errors: []
skipped_checks: []
---
Scope (SINGLE AUTHORITY)
**security-auditor is the ONLY agent that checks:**
- Injection attacks (SQL, NoSQL, Command, XSS, LDAP)
- Authentication & session management
- Authorization & access control
- Secrets & credential exposure
- Security headers & configuration
- CSRF protection
- Rate limiting
- Data exposure risks
**Other agents do NOT check security:**
- bug-auditor: Runtime bugs only (not security)
- code-auditor: Code quality only (not security)
1. Injection Attacks
**SQL Injection**
# Raw queries with string interpolation
grep -rn "\$queryRaw\|\$executeRaw" src --include="*.ts" | head -10
grep -rn "query\s*(" src --include="*.ts" | grep -v "prisma\." | head -10
grep -rn '`.*\$\{.*\}.*`' src --include="*.ts" | grep -i "select\|insert\|update\|delete" | head -10
**NoSQL Injection**
# MongoDB query manipulation
grep -rn "\.find\s*(\s*{" src --include="*.ts" | head -10
grep -rn "\$where\|\$regex" src --include="*.ts" | head -5
**Command Injection**
# Shell command execution
grep -rn "exec\|spawn\|execSync" src --include="*.ts" | head -10
grep -rn "child_process" src --include="*.ts" | head -5
**XSS (Cross-Site Scripting)**
# Dangerous HTML rendering
grep -rn "dangerouslySetInnerHTML\|innerHTML\|outerHTML" src --include="*.tsx" --include="*.ts" | head -10
# Unsanitized output
grep -rn "\.html\s*(" src --include="*.ts" | head -5
2. Authentication & Session
# Unprotected API routes (no auth check)
grep -rn "export.*GET\|export.*POST" src/app/api --include="*.ts" | head -20
# Check for auth in routes
for file in $(find src/app/api -name "route.ts" 2>/dev/null); do
grep -L "getServerSession\|auth\|verify\|middleware" "$file" 2>/dev/null
done | head -10
# Password handling
grep -rn "password" src --include="*.ts" | grep -v "hash\|bcrypt\|argon" | head -10
# Session configuration
grep -rn "maxAge\|expires\|secure\|httpOnly" src --include="*.ts" | head -10
3. Authorization
# Direct object references without validation
grep -rn "params\.\|params\[" src/app/api --include="*.ts" | head -10
# Missing ownership checks
grep -rn "findUnique\|findFirst" src --include="*.ts" | grep -v "where.*userId\|where.*ownerId" | head -10
# Role checks
grep -rn "role\|admin\|isAdmin" src --include="*.ts" | head -10
4. Secrets & Configuration
# Hardcoded secrets
grep -rn "sk
Related Agents
Django Reviewer
Expert Django code reviewer specializing in ORM correctness, DRF patterns, migration safety, security misconfi
Security Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d
Security Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,
Security Accessibility Audit
| You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive tec... | -
Security wcag-audit-patterns
| Comprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable remediation... | - |
Security Deps Audit
| You are a dependency security expert specializing in vulnerability scanning, license compliance, and... | -
Security Related Skills
Fastapi Review
Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu
Defense in Depth
Implement multi-layered testing and security best practices.
SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)