Reviews a change for security and privacy risk and writes security-review.md with findings ranked by severity. Use when a brief's Security review section says required, when the review tier is 2, or when asked for a security review of a diff or work item.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Review Security?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nguyenquocduyloc-review-security)
---
name: review-security
description: Reviews a change for security and privacy risk and writes security-review.md with findings ranked by severity. Use when a brief's Security review section says required, when the review tier is 2, or when asked for a security review of a diff or work item.
metadata:
requires: work-tracker
---
# Review security
**Role:** reviewer. This skill is the security lens: the same fresh session that reviews the item applies it, independent of the builder. The reviewer's `ROLE.md` holds when you apply it and what you must never do (paste a secret, above all). Follow both.
Use this for changes that add inputs, trust boundaries, secrets, dependencies, permissions or user-facing surface. It is a focused review, not a substitute for the repo's tests.
1. Read the brief and the diff. Map what the change adds or alters: inputs, data flows, trust boundaries, secrets, dependencies, permissions and error paths.
2. Compare against the threat model in `docs/security/`. If the change adds surface the model does not cover, update the model. If `docs/security/` does not exist (the `security` module was cut), skip this step and say so in `security-review.md`.
3. Look for the common failures:
- untrusted input reaching a shell, query, path or template;
- secrets in code, logs, fixtures or error messages;
- missing authorization, not just missing authentication;
- unsafe defaults, permissive CORS or broad tokens;
- dependencies with known vulnerabilities or unexpected install scripts, or a new package that is not in the registry or not the intended name (typosquatting, a hallucinated package);
- personal data collected, logged or kept without a reason.
4. Create `security-review.md` with `python3 tools/item_file.py <id> security-review`, then fill it: findings ranked blocker (must fix before approval), major (must fix or the human accepts) or minor (fix now or log it), each with impact, evidence and a recommended fix. If the file already exists (the item came back for a second look), add a dated section to it: the tool will not overwrite it.
5. If a finding needs the human (risk acceptance, disclosure, spend), raise it as `agents/protocols/escalation.md` says, with a recommendation and the cost of guessing wrong.
6. Report; do not fix. The verdict stays the reviewer's: `review-work` turns the findings into `approve` or `changes requested`.
## Verify
- The review names the change and the surfaces it adds.
- Every finding has impact, evidence and a fix; secrets are described by location, never by value.
- The threat model is current, the update is listed, or the review says `docs/security/` is absent.
- The human, not you, owns any accepted risk.
## Stop and ask
- You find an exposed secret, a data-loss risk or a privacy issue.
- A finding needs disclosure or risk acceptance.
- The change needs production access or spend to verify, or you cannot tell whether the behavior is intended.