
Security Audit
This runs a thorough security audit across your codebase, checking for exposed secrets in files and git history, injection vulnerabilities (SQL, NoSQL, command, XSS, path traversal), authentication and authorization flaws like IDOR, data exposure in API responses, missing input validation, and vulnerable dependencies. It uses grep and bash commands to scan for hardcoded credentials, then walks through code patterns looking for common mistakes like string concatenation in queries or missing ownership checks on resources. The checklist is comprehensive enough that you'll probably find something even in codebases you thought were clean. Good for pre-deployment reviews or when inheriting a project and need to know what you're dealing with.
- skills.sh installs
- 165
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aakash-dhar/claude-skills --skill security-audit --agent claude-codeInstalls into .claude/skills of the current project.
Files
Security Audit Skill
When auditing code for security, follow this structured process. Treat every finding seriously — a single vulnerability can compromise an entire system.
1. Secrets & Credentials
Scan the entire codebase for exposed secrets:
- Hardcoded API keys, tokens, passwords in source code
- Secrets in config files committed to Git (.env, config.json, settings.py)
- Secrets in logs — sensitive data printed in console.log, logger.info, etc.
- Secrets in error messages — stack traces or error responses leaking internals
- Secrets in comments — old credentials left in TODO or commented-out code
- Secrets in Git history — check if secrets were committed and later removed (still in history)
Check commands:
# Search for common secret patterns
grep -rn "password\|secret\|api_key\|apikey\|token\|private_key\|AWS_SECRET\|DATABASE_URL" --include="*.ts" --include="*.js" --include="*.py" --include="*.env" --include="*.json" --include="*.yaml" --include="*.yml" .
# Check for .env files committed
git ls-files | grep -i "\.env"
# Check git history for secrets
git log --all --diff-filter=D -- "*.env" "*.pem" "*.key"
Sponsors
Details
- Repository
- github.com/aakash-dhar/claude-skills
- Categories
- Backend & APIs, Security, Git & Pull Requests, Code Review & Quality
- First seen
- Jun 3, 2026