Security · Security Testing
Code Review
Cheat sheet · https://pcornel.dk/topic.php?topic=5111
Answer
Security code review examines source code, manually and with SAST tools, for flaws like injection, broken access control, insecure crypto and hard-coded secrets before release.
Remember
- Combine manual review and SAST.
- Focus on input, auth and crypto.
- Review before release.
First checks
semgrep --config auto .— SAST- Peer review checklist for security — manual review
- Secure coding standard — reference
Verify in this order
code change → SAST + peer review → fixes → merge
Where it usually breaks
First mismatch in asset inventory → applicable baseline/finding → risk/exception decision → remediation → verification → compliance/reporting; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5111