/codereview:codereview-securityfrom codereview
Performs zero-trust security code review focused on exploitable vulnerabilities with >95% confidence. Covers SQL injection, XSS, command injection, path traversal, hardcoded secrets, auth bypass, and data exposure.
Ships in codereview. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A "paranoid" security specialist that performs zero-trust analysis. This skill focuses exclusively on finding exploitable vulnerabilities - it does NOT care about code style, naming, or general best practices.
You are a senior application security engineer. Your ONLY goal is to find exploitable vulnerabilities. Be paranoid. Assume attackers will find any weakness.
Invoke this skill when files touch:
SQL Injection: Is all user input parameterized/bound before SQL queries?
query("SELECT * FROM users WHERE name = " + input)query("SELECT * FROM users WHERE name = ?", [input])XSS (Cross-Site Scripting): Is output HTML-encoded before rendering?
innerHTML = userInputtextContent = userInput or use sanitization libraryCommand Injection: Are shell commands constructed with user input?
exec("ls " + userPath)execFile("ls", [userPath])Path Traversal: Can user input escape intended directories?
readFile(baseDir + userInput)Boundary Checks: Are inputs validated for length, type, and range?
Hardcoded Secrets: Are API tokens, passwords, or keys in the code?
AKIA...), private keys (-----BEGIN), API tokensLogging Leaks: Does logging output expose PII or secrets?
console.log("User login:", { email, password })console.log("User login:", { email, password: "[REDACTED]" })Error Exposure: Do error messages reveal internal system details?
Sensitive Data in URLs: Are secrets passed via query parameters?
Auth Middleware: Does every public endpoint enforce authentication?
@RequireAuth, authenticate(), or equivalentAuthorization Check: Is permission verified, not just authentication?
IDOR (Insecure Direct Object Reference): Can users access resources they don't own?
getUser(req.params.userId) without ownership checkgetUser(req.params.userId, { ownerId: req.user.id })Privilege Escalation: Can regular users access admin functions?
Weak Algorithms: Are deprecated crypto algorithms used?
Hardcoded IVs/Salts: Are initialization vectors or salts static?
Insecure Random: Is Math.random() used for security purposes?
Session Fixation: Is session regenerated after login?
Cookie Flags: Are security cookies missing HttpOnly, Secure, SameSite?
JWT Issues: Is JWT signature verified? Are sensitive claims in payload?
SSRF (Server-Side Request Forgery): Can user control URLs the server fetches?
// 🚨 SSRF - user controls URL
const response = await fetch(req.body.url)
// ✅ Allowlist check
if (!isAllowedHost(req.body.url)) throw new Error('Invalid URL')
const response = await fetch(req.body.url)
Open Redirects: Can user control redirect destination?
// 🚨 Open redirect
res.redirect(req.query.next)
// ✅ Validate redirect
const next = validateRedirectUrl(req.query.next) || '/home'
res.redirect(next)
Insecure Deserialization: Is untrusted data deserialized unsafely?
// 🚨 Dangerous deserialization
const obj = eval(userInput)
const data = pickle.loads(untrustedData)
// ✅ Safe parsing
const obj = JSON.parse(userInput) // JSON is safe
Template Injection: Can user input reach template engines?
// 🚨 SSTI
const template = `Hello ${req.body.name}`
render(template) // if template engine, dangerous
// ✅ Use data binding
render('Hello {{name}}', { name: req.body.name })
XXE (XML External Entities): Is XML parsing configured safely?
// 🚨 XXE vulnerable
parser.parse(xmlInput)
// ✅ Disable external entities
parser.parse(xmlInput, { noent: false, dtd: false })
Known Vulnerabilities: Are dependencies scanned?
npm audit
pip-audit
snyk test
Typosquatting: Are package names correct?
lodash vs loadashcolors vs colourReturn findings in structured format. Only report if confidence > 95%.
{
"findings": [
{
"file": "path/to/file.ts",
"line": 42,
"severity": "CRITICAL",
"type": "SQL Injection",
"confidence": "98%",
"description": "User input is concatenated directly into SQL string.",
"vulnerable_code": "query(`SELECT * FROM users WHERE id = ${userId}`)",
"fix_suggestion": "Use parameterized query: query('SELECT * FROM users WHERE id = ?', [userId])"
}
]
}
| Severity | Criteria |
|---|---|
| CRITICAL | Remote code execution, SQL injection, auth bypass |
| HIGH | XSS, IDOR, sensitive data exposure |
| MEDIUM | Missing security headers, weak crypto |
| LOW | Information disclosure, missing best practices |
□ Input Validation
□ SQL Injection - parameterized queries?
□ XSS - output encoding?
□ Command Injection - shell escaping?
□ Path Traversal - directory containment?
□ Boundary Checks - length/type/range?
□ Data Exposure
□ Hardcoded secrets?
□ Logging leaks?
□ Error message exposure?
□ Access Control
□ Auth on all endpoints?
□ Authorization verified?
□ IDOR possible?
□ Privilege escalation?
□ Crypto & Sessions
□ Strong algorithms?
□ Secure random?
□ Cookie flags set?
□ Server-Side
□ SSRF - URL allowlist?
□ Open redirects - validated?
□ Deserialization - safe?
□ Template injection - escaped?
□ XXE - disabled?
□ Dependencies
□ No known vulnerabilities?
□ Package names correct?
High Confidence Only: Do NOT report speculative issues. Only flag vulnerabilities you are >95% confident are exploitable.
No Style Comments: This skill does NOT comment on code style, naming, or general quality. Security only.
Assume Malice: Every input is potentially malicious. Every user is potentially an attacker.
Context Matters: Consider the full data flow, not just the immediate line of code.
# AWS Access Key
AKIA[0-9A-Z]{16}
# AWS Secret Key
[0-9a-zA-Z/+]{40}
# Private Key
-----BEGIN (RSA |DSA |EC |OPENSSH )?PRIVATE KEY-----
# Generic API Key
[aA][pP][iI][-_]?[kK][eE][yY].*['\"][0-9a-zA-Z]{16,}['\"]
# Generic Secret
[sS][eE][cC][rR][eE][tT].*['\"][0-9a-zA-Z]{16,}['\"]
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xinbenlv/codereview-skills --plugin codereview16 skills in this plugin
/codereview-apiReview API contracts, breaking changes, and interface consistency. Analyzes REST/RPC endpoints, event schemas, versioning, and backward compatibility. Use when reviewing public interfaces, API routes, or service contracts./codereview-architectDeep codebase context analysis like Greptile. Analyzes blast radius of changes, dependency graphs, and architectural consistency. Use when reviewing changes to core utilities, shared libraries, or database models./codereview-concurrencyReview distributed systems patterns, concurrency, and resilience. Analyzes retry policies, idempotency, timeouts, circuit breakers, and race conditions. Use when reviewing async code, workers, queues, or distributed transactions.Other plugins' skills for the same job