| name | security-review-checklist |
| description | Reviews Java backend for secrets, input validation, authZ, IDOR, data exposure, dependency safety. TRIGGER: HIGH-risk delivery or auth/data changes. NOT FOR: secret scanning (use security-sentinel). |
Security Review Checklist
CRITICAL RULE: Run this checklist on any HIGH risk change, auth-related code, or data-processing code BEFORE finalizing the response. If any item fails, fix immediately and re-evaluate. Max 2 retries per item before escalating to human security review.
This checklist complements code-review-checklist — it does NOT replace it. Run both for HIGH risk changes.
When to Use
- Risk is rated HIGH in the task focus card
- Change touches authentication, authorization, or permission logic
- Change processes, stores, or transmits PII or sensitive data
- New dependency added
- New API endpoint added that accepts external input
When NOT to Use
- Pure refactoring with no logic change (method rename, extract method, etc.)
- Documentation-only changes
- Test-only changes with no production code modification
Self-Correction Loop
- Evaluate: run each checklist item against the changed code.
- Fix: if a check fails, fix it immediately before moving on.
- Re-evaluate: re-run the failed item after the fix.
- Escalate (Max 2 retries): if the same item cannot be fixed in 2 attempts due to architectural constraints, STOP and produce an
escalation_note.md explaining the issue. Ask the human security reviewer for guidance. Do not ship unfixed HIGH severity security issues.
Checklist
1. Secret Scanning
2. Input Validation
3. Authentication & Authorization
4. Data Exposure
5. Dependency Safety
6. Error Handling
7. Soft Delete Safety
Output Format
At the end of the review, append a brief Security Review Report:
Security Review Report:
- Checks run: [list of categories]
- Issues found and fixed: [list any self-corrections made]
- Escalated items: [list any items that could not be resolved, with escalation_note.md reference]
- Result: PASS / ESCALATED
Related Skills