troykelly/claude-skills/security-review
Claude Code and agent skill by troykelly/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
MANDATORY for security-sensitive code changes - OWASP-based security review with dedicated checklist, required before PR for auth, input handling, API, database, or credential code
Install
npx vskill@latest install troykelly/claude-skills/security-reviewSKILL.md
Security Review
Overview
Dedicated security review for code handling authentication, authorization, user input, APIs, databases, or credentials.
Core principle: Security issues require specialized attention beyond general code review.
Trigger: This review is MANDATORY when changes touch security-sensitive paths.
Announce at start: "I'm performing a security review of this code."
When Required
This skill is MANDATORY when ANY of these files are modified:
| Pattern | Examples | |
|---|---|---|
**/auth/** | src/auth/login.ts, lib/auth/session.js | |
**/security/** | src/security/encryption.ts | |
**/middleware/** | src/middleware/authenticate.ts | |
**/api/** | src/api/endpoints.ts | |
**/*password* | utils/passwordHash.ts | |
**/*token* | services/tokenService.ts | |
**/*secret* | config/secrets.ts | |
**/*credential* | lib/credentials.js | |
**/*session* | middleware/session.ts | |
**/routes/** | src/routes/protected.ts | |
**/*.sql | migrations/001_users.sql |
Check with:
OWASP Top 10 Checklist
Review against each category:
1. Injection (A03:2021)
| Check | Verify | |
|---|---|---|
| SQL Injection | All queries use parameterized statements | |
| Command Injection | No user input in shell commands, or properly escaped | |
| LDAP Injection | LDAP queries use proper escaping | |
| XPath Injection | XPath queries use parameterized approach | |
| Template Injection | Template engines configured safely |
2. Broken Authentication (A07:2021)
| Check | Verify | |
|---|---|---|
| Password Storage | Passwords hashed with bcrypt/argon2 (not MD5/SHA1) | |
| Session Management | Secure, HttpOnly, SameSite cookies | |
| Token Handling | JWTs signed, validated, short-lived | |
| Brute Force Protection | Rate limiting on auth endpoints | |
| Credential Exposure | No credentials in logs, errors, or responses |
3. Sensitive Data Exposure (A02:2021)
| Check | Verify | |
|---|---|---|
| Data in Transit | HTTPS enforced, TLS 1.2+ | |
| Data at Rest | Sensitive data encrypted | |
| Secrets in Code | No hardcoded API keys, passwords, tokens | |
| Error Messages | No sensitive info in error responses | |
| Logging | No sensitive data logged |
4. XML External Entities (A05:2021)
| Check | Verify | |
|---|---|---|
| XML Parsing | External entities disabled | |
| DTD Processing | DTD processing disabled if not needed |
5. Broken Access Control (A01:2021)
| Check | Verify | |
|---|---|---|
| Authorization Checks | Every endpoint verifies permissions | |
| Direct Object References | Object access validated against user | |
| Privilege Escalation | Cannot elevate own privileges | |
| CORS | Properly restricted origins | |
| Method Restriction | Only allowed HTTP methods accepted |
6. Security Misconfiguration (A05:2021)
| Check | Verify | |
|---|---|---|
| Default Credentials | No default passwords in use | |
| Error Handling | Stack traces not exposed to users | |
| Security Headers | CSP, X-Frame-Options, etc. set | |
| Debug Mode | Disabled in production | |
| Unnecessary Features | Unused endpoints/features removed |
7. Cross-Site Scripting (A03:2021)
| Check | Verify | |
|---|---|---|
| Output Encoding | User input encoded before display | |
| DOM XSS | innerHTML not used with user input | |
| Template Safety | Template engine auto-escapes | |
| CSP | Content Security Policy configured |
8. Insecure Deserialization (A08:2021)
| Check | Verify | |
|---|---|---|
| Object Deserialization | Untrusted data not deserialized | |
| JSON Parsing | Safe JSON.parse usage | |
| Type Validation | Deserialized objects validated |
9. Using Components with Known Vulnerabilities (A06:2021)
| Check | Verify | |
|---|---|---|
| Dependency Audit | pnpm audit / pip audit clean | |
| Outdated Packages | No critically outdated dependencies | |
| CVE Check | No known CVEs in dependencies |
10. Insufficient Logging & Monitoring (A09:2021)
| Check | Verify | |
|---|---|---|
| Auth Events | Login success/failure logged | |
| Access Control | Permission denials logged | |
| Input Validation | Validation failures logged | |
| Sensitive Actions | Admin actions logged | |
| Log Integrity | Logs protected from tampering |
Review Process
Step 1: Identify Security-Sensitive Changes
Step 2: Review Each File
For each security-sensitive file:
- Read the entire file (not just diff)
- Check against all 10 OWASP categories
- Note any findings with severity
Step 3: Check Dependencies
Step 4: Document Findings
Use severity levels:
| Severity | Description | Action | |
|---|---|---|---|
| CRITICAL | Exploitable vulnerability, data breach risk | MUST fix before merge | |
| HIGH | Significant security weakness | MUST fix before merge | |
| MEDIUM | Defense-in-depth issue | SHOULD fix before merge | |
| LOW | Minor improvement | MAY fix in future issue |
Step 5: Add Security Section to Review Artifact
Add to the main review artifact:
pnpm audit: 0 vulnerabilities
Security Review Artifact (Standalone)
If security review is extensive, post as separate comment:
found 0 vulnerabilities
Checklist
Before completing security review:
- [ ] All changed security-sensitive files reviewed
- [ ] All 10 OWASP categories checked
- [ ] Dependency audit run
- [ ] All CRITICAL/HIGH findings fixed
- [ ] Any deferred findings have tracking issues
- [ ] Security section added to review artifact
- [ ] Security-Sensitive marked YES in main artifact
Integration
This skill is triggered by:
- Changes to security-sensitive file patterns
- Explicit invocation
security-reviewersubagent
This skill integrates with:
comprehensive-review- Security is criterion #4review-gate- Verifies security review for sensitive changes
This skill is enforced by:
.claude/rules/security-sensitive.mdconditional rulesPreToolUsehook (PR blocked if security-sensitive without review)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security-review/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 8 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/troykelly/claude-skills/security-review)