security-review
Skill439 starsChanged 8 months agoMITView on GitHub
Use when reviewing code for vulnerabilities, implementing authentication or authorization, handling user input, storing sensitive data, or before any feature that touches security boundaries goes to production
- Reads credentials
We split this skill into the rules it gives an agent
9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Before a security-sensitive feature ships
- Distinctive: line 19
After any change to auth flows or data access controls
- Very specific: line 29
Search: grep -rn 'req\.params\.id\|req\.query\.id' --include='*.js' --include='*.ts' — verify each result checks ownership
- Very specific: line 46
Search: grep -rn 'query\s*[+\].*\(req\.\|user\.\|input\|params\)' --include='*.js' --include='*.ts' --include='*.py'`
- Very specific: line 71
Run: npm audit or pip-audit or snyk test
- Very specific: line 73
Run: npm audit --audit-level=high (exits non-zero if high/critical found)
- Very specific: line 77
Search: grep -E '"\^|"~|">=|">' package.json — each result is a non-pinned dependency
- Very specific: line 83
Search: grep -rn 'reset.*token\|token.*reset' --include='*.js' --include='*.ts' --include='*.py' — verify expiry and single-use enforcement
- Distinctive: line 130
If no vulnerabilities found: output "Security Review: PASS.
“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security Review
Overview
Security is not a feature — it's a property of the entire system. Review security boundaries systematically, not ad-hoc.
When to Use
- Authentication, authorization, session management code
- Any user input that touches storage, commands, or rendering
- Secrets, credentials, API keys in code or config
- Before a security-sensitive feature ships
- After any change to auth flows or data access controls
OWASP Top 10 Checklist
Work through these for every security-relevant code change:
A01 - Broken Access Control
- Every endpoint checks authorization, not just authentication
- Search:
grep -r 'router\.\|app\.\(get\|post\|put\|delete\|patch\)' --include='*.js' --include='*.ts' | grep -v 'auth\|authorize\|permission\|role'
- Search:
- Users can only access their own data
- Search:
grep -rn 'req\.params\.id\|req\.query\.id' --include='*.js' --include='*.ts'— verify each result checks ownership
- Search:
- Admin functions require explicit admin role check
- Search:
grep -rn 'admin' --include='*.js' --include='*.ts' | grep -v 'isAdmin\|requireAdmin\|role.*admin\|admin.*role'
- Search:
A02 - Cryptographic Failures
- No secrets in source code or env files committed to git
- Search:
grep -rn 'password\s*=\s*["\x27][^"\x27]\|api_key\s*=\s*["\x27][^"\x27]\|secret\s*=\s*["\x27][^"\x27]' --include='*.js' --include='*.py' --include='*.ts'
- Search:
- Passwords hashed with bcrypt/argon2 (not MD5/SHA1)
- Search:
grep -r 'password' --include='*.js' --include='*.ts' --include='*.py' | grep -v 'bcrypt\|argon2\|hash' - Also check:
grep -rn 'md5\|sha1\|sha256' --include='*.js' --include='*.ts' --include='*.py' | grep -i 'password'
- Search:
- Data in transit uses TLS
- Search:
grep -rn 'http://' --include='*.js' --include='*.ts' --include='*.py' | grep -v 'localhost\|127\.0\.0\.1\|test\|spec\|comment'
- Search:
- Sensitive data not logged
- Search:
grep -rn 'console\.log\|logger\.' --include='*.js' --include='*.ts' | grep -i 'password\|token\|secret\|key\|ssn\|credit'
- Search:
A03 - Injection
- All database queries use parameterized queries / ORM (never string concat)
- Search:
grep -rn 'query\s*[+\].(req.|user.|input|params)' --include='.js' --include='.ts' --include='.py'` - Also:
grep -rn '"SELECT\|"INSERT\|"UPDATE\|"DELETE' --include='*.js' --include='*.ts' | grep '\+'
- Search:
- All shell commands use safe exec (never
evalwith user input)- Search:
grep -rn 'eval(\|exec(\|system(\|spawn(' --include='*.js' --include='*.ts' --include='*.py'
- Search:
- All HTML output is escaped or uses safe template engine
- Search:
grep -rn 'innerHTML\s*=' --include='*.js' --include='*.ts' | grep -v '//.*innerHTML'
- Search:
A04 - Insecure Design
- Authentication flows validated against known-good patterns
- Rate limiting on authentication endpoints
- Search:
grep -rn 'login\|signin\|auth' --include='*.js' --include='*.ts' | grep -v 'rateLimit\|rate_limit\|throttle'
- Search:
- Account enumeration prevented (same response for unknown user vs wrong password)
- Search:
grep -rn '"User not found"\|"Invalid username"\|"No account"' --include='*.js' --include='*.ts' --include='*.py'
- Search:
A05 - Security Misconfiguration
- Debug mode disabled in production
- Search:
grep -rn 'debug\s*=\s*true\|DEBUG\s*=\s*True\|NODE_ENV.*development' --include='*.js' --include='*.ts' --include='*.py' --include='*.env'
- Search:
- Default credentials changed
- Search:
grep -rn 'admin.*admin\|root.*root\|password.*password\|default.*password' --include='*.js' --include='*.ts' --include='*.py'
- Search:
- Unnecessary features/endpoints disabled
- Error messages don't expose stack traces to users
- Search:
grep -rn 'err\.stack\|error\.stack\|traceback' --include='*.js' --include='*.ts' --include='*.py' | grep -v 'log\|console\|logger'
- Search:
A06 - Vulnerable and Outdated Components
- Dependencies checked against known CVE databases (npm audit, pip-audit, snyk)
- Run:
npm auditorpip-auditorsnyk test
- Run:
- No dependencies with known critical/high CVEs in production
- Run:
npm audit --audit-level=high(exits non-zero if high/critical found)
- Run:
- Lock files committed (package-lock.json, poetry.lock, etc.)
- Search:
git ls-files | grep -E 'package-lock\.json|yarn\.lock|poetry\.lock|Pipfile\.lock|Gemfile\.lock'
- Search:
- Direct dependencies pinned to specific versions
- Search:
grep -E '"\^|"~|">=|">' package.json— each result is a non-pinned dependency
- Search:
A07 - Authentication Failures
- Session tokens invalidated on logout
- Search:
grep -rn 'logout\|signout\|sign_out' --include='*.js' --include='*.ts' --include='*.py' | grep -v 'destroy\|invalidate\|clear\|delete\|revoke'
- Search:
- Password reset tokens expire and are single-use
- Search:
grep -rn 'reset.*token\|token.*reset' --include='*.js' --include='*.ts' --include='*.py'— verify expiry and single-use enforcement
- Search:
- Brute force protection on login
- Search:
grep -rn 'login\|signin' --include='*.js' --include='*.ts' | grep -v 'attempts\|lockout\|rateLimit\|throttle'
- Search:
A08 - Software and Data Integrity
- Dependencies pinned to verified versions
- No eval() or dynamic code execution with user input
- Search:
grep -rn 'eval(' --include='*.js' --include='*.ts' --include='*.py' - Also:
grep -rn 'new Function(' --include='*.js' --include='*.ts'
- Search:
A09 - Logging and Monitoring
- Authentication events logged (success and failure)
- Search:
grep -rn 'login\|signin\|authenticate' --include='*.js' --include='*.ts' --include='*.py' | grep -v 'log\|audit\|event\|monitor'
- Search:
- Sensitive operations audited
- Logs don't contain secrets or PII
- Search:
grep -rn 'log\.' --include='*.js' --include='*.ts' | grep -i 'password\|token\|secret\|ssn\|credit_card\|cvv'
- Search:
Common Vulnerabilities to Check
| Vulnerability | Check |
| SQL Injection | All queries parameterized? |
| XSS | All user content escaped before rendering? |
| CSRF | State-changing requests have CSRF protection? |
| Path traversal | File paths sanitized and validated? |
| Secret exposure | No hardcoded keys/tokens in code? |
| Mass assignment | Only allowed fields accepted from user input? |
Red Flags in Code
These patterns require immediate review:
eval(),exec(),system()with any user-influenced input- String concatenation in SQL:
"SELECT * FROM users WHERE id = " + userId innerHTML = userContent(XSS)require(userInput)or dynamic imports with user data- Secrets in
.envfiles committed to git - MD5 or SHA1 for password hashing
Output
For each finding, document:
- Vulnerability type (OWASP category)
- Severity (Critical/High/Medium/Low)
- Location (file:line)
- Description (what's wrong and why)
- Fix (specific code change or pattern to use)
If no vulnerabilities found: output "Security Review: PASS. No issues found in [scope]. Reviewed: [list of OWASP categories checked]. Verified: [date and reviewer]."
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- affaan-m/ECC★ 246ksame name
- github/awesome-copilot★ 41ksame name
- langfuse/langfuse★ 37ksame name
- nearai/ironclaw★ 13ksame name
- joe-bell/cva★ 6.9ksame name
- doorkeeper-gem/doorkeeper★ 5.5ksame name
- compozy/compozy★ 2.8ksame name
- getsentry/sentry-python★ 2.2ksame name
- trycompai/comp★ 2.1ksame name
- xu-xiang/everything-claude-code-zh★ 1.9ksame name
182 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use dependency-cve-sweep, fleet-standard-adoption and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
berntpoppSkilldependency-cve-sweep
Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.
Also in 12 projects that use this
berntpoppSkillfleet-standard-adoption
Use when bringing this repo into compliance with a GeneFoundry fleet standard (tool-naming, response-envelope, container-hardening, versioning, MCP transport, or logging) or closing its tracking issue.
Also in 12 projects that use this
niloykumarbarmanSkillagent-sort
Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.
Also in 12 projects that use this
ysyecustSkillbrand-discovery
Use when a brand needs to discover or articulate its identity through structured multi-session interviews. Covers purpose, positioning, audience, personality, voice, narrative, and founder-brand tension across 8 modules using laddering, 5 Whys, and projective techniques. Produces a resumable session with disk-persisted state and a master brandbook (90_SYNTHESIS.md).
Also in 5 projects that use this
InfopibeSkilleverything-claude-code
Also in 11 projects that use this
royaluniondesign-sysSkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 10 projects that use this
- +2 more from berntpopp
In this repository19 other files it gives its agents.
- architecture-designSkill
- brainstormingSkill
- browser-agentSkill
- confidence-checkSkill
- deep-researchSkill
- dependency-managementSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- performance-optimizationSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-superantigravitySkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

