Security Review
Runs a bounded static security audit and writes a local threat-model report under .friday.
Design pattern: Reviewer
Review Protocol
- Load the checklist from
references/security-checklist.md. - Scan the target scope (repo, diff, or specified files) against each checklist section.
- For each finding, report:
- Severity (critical / high / medium / low)
- Category (auth, input validation, data protection, dependency, infra)
- Location (file:line or config path)
- Evidence (the vulnerable pattern found)
- Remediation (specific fix with code example)
- Group findings by category, then by severity.
- Write the threat-model report to
.friday/security-review-<timestamp>.md.
Constraints
- Stay within static analysis — do not execute code or make network requests.
- Flag uncertainty explicitly ("potential issue — needs manual verification").
- Prioritize actionable findings over exhaustive coverage.
Typical triggers:
run a security reviewthreat model this repoaudit auth and token safety