security-review
Lightweight security sanity check before merge or when the user asks for a security pass — secrets, risky patterns, dependencies.
SKILL.md.claude/skills/security-review/SKILL.md
GitHubSecurity review (lightweight)
When to use
- User asks for a security review, secret check, or pre-merge safety pass.
- After touching auth, crypto, file paths, or dependencies.
Checklist (automate what you can)
- Secrets — Scan changed files and recent diffs for API keys, tokens, private keys, connection strings. Flag base64 blobs that look like keys.
- Git — Ensure
.env,*.pem,id_rsa, credential files are not staged; verify.gitignorecoverage. - Dependencies — If lockfiles changed, note major version jumps and known-critical packages; suggest
npm audit/pip audit/cargo auditper stack (see AGENTS.md). - Injection — SQL string concat,
eval,exec, raw HTML interop, unsanitizedinnerHTML, shell composition from user input. - Path traversal — User-controlled paths joined to filesystem without normalization.
- AuthZ — New endpoints or tools: confirm authorization is checked, not only authentication.
Output
- Findings ordered by severity (critical / high / medium / low).
- False positives called out briefly if uncertain.
- Fixes as concrete edits or steps.
Limits
This is not a substitute for professional pentesting or dependency scanners in CI. Recommend enabling org-standard SAST/secret scanning where available.