Run a security review for: "$ARGUMENTS"
- Use
Grepto scan all files in scope for hardcoded secrets, tokens, and credentials (patterns:secret,password,api_key,tokenin assignments). - Check all HTTP endpoints for authentication and authorization guards — verify no route is accessible without identity verification.
- Audit input validation on every user-controlled parameter (query strings, request bodies, file paths).
- Check for path traversal risks on any
open()orPathoperations that accept external input. - Review dependency list in
pyproject.tomlfor known vulnerable packages using known CVE patterns. - Verify that SQL queries use parameterized statements — scan for string-formatted queries via
Grep. - Check OWASP Top 10 categories applicable to this codebase: injection, broken auth, SSRF, insecure deserialization.
- Produce a PASS or FAIL verdict with a severity-ranked list of findings.
Output format:
- Verdict: PASS or FAIL
- Section "Critical Findings" — must fix before release (severity: critical/high)
- Section "Moderate Findings" — should fix (severity: medium)
- Section "Informational" — low severity or hardening suggestions
- Each finding: file path, line number, description, recommended remediation
