# Security Review

> Scan code changes for security vulnerabilities including OWASP Top 10, hardcoded secrets, injection flaws, and authentication issues. Use after implementation to catch security problems before marking a task complete.

- Skill: `diegosouzapw/security-review-7` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add diegosouzapw/security-review-7`
- Raw SKILL.md: https://api.skillmd.com/api/skills/diegosouzapw/security-review-7/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: diegosouzapw (https://skillmd.com/u/diegosouzapw)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/diegosouzapw/security-review-7

---


# Security Review

Perform a security review of all code changes you just made for this task.

## What to check

1. **Hardcoded secrets**: API keys, passwords, tokens, connection strings in source code
2. **Injection**: SQL injection, command injection, XSS via unsanitized user input
3. **Input validation**: Is all external input validated at system boundaries?
4. **Authentication & authorization**: Are sensitive endpoints protected? Are permissions checked?
5. **Data exposure**: Are error messages leaking internal details? Are logs safe?
6. **Dependencies**: Any known-vulnerable packages or insecure configurations?
7. **Cryptography**: Weak algorithms, hardcoded IVs, missing encryption for sensitive data?
8. **Race conditions**: TOCTOU bugs, shared mutable state without synchronization?

## Instructions

- Review each file you changed or created with a security mindset
- If you find vulnerabilities, fix them immediately
- For secrets found in code, replace with environment variables
- For injection flaws, add parameterized queries or input sanitization
- After fixing, verify the fix doesn't break functionality
- Summarize findings with severity (critical / high / medium / low)

