Secure Code Review
Overview
Some vulnerabilities only show up when you read the code. A logic flaw hidden in a rarely used branch, a home-made cryptographic routine or a missing authorization check deep in a service can all be invisible from the outside, yet easy to spot with the source in front of you.
A secure code review gives us that view. We start with Static Application Security Testing (SAST) to cover the whole codebase quickly, then our reviewers go through the high-risk areas by hand. The tools give us breadth; the manual review adds depth and filters out the false positives that make raw SAST output so hard to act on.
Review Process
What We Look For
| Category | Examples |
|---|---|
| Injection | SQL, LDAP, OS command, SSTI, second-order injection |
| Authentication Flaws | Weak password hashing (MD5, SHA-1), missing rate limits, predictable tokens |
| Authorization Issues | Missing access checks, privilege escalation through parameter tampering |
| Cryptographic Weaknesses | Hardcoded keys, weak algorithms (DES, MD5), ECB mode, IV reuse |
| Insecure Data Handling | Secrets in logs, sensitive data in URLs, unencrypted personal data |
| Race Conditions | TOCTOU flaws, non-atomic operations on shared state |
| Vulnerable Dependencies | Known CVEs in third-party libraries, outdated packages |
| Deserialization | Unsafe use of pickle, Java ObjectInputStream, yaml.load, JSON type confusion |
| Business Logic | Unvalidated state transitions, negative values, bypass conditions |
| Information Disclosure | Stack traces, verbose errors, debug endpoints left enabled |
Languages and Frameworks
We review code written in:
- Python: Django, Flask, FastAPI
- Java: Spring, Quarkus
- JavaScript and TypeScript: Node.js, React
- PHP: Laravel, Symfony, WordPress
- C# / .NET: ASP.NET Core
- Go and Ruby on Rails
We also review infrastructure as code: Terraform, CloudFormation, Kubernetes manifests and Dockerfiles.
Why Combine SAST and Manual Review?
Each approach covers the other’s blind spots. Our manual effort goes where mistakes are most costly: authentication logic, cryptography, authorization checks, the flow of data from input to output, and any custom security-sensitive code.
Tools We Use
- Semgrep: pattern matching with community and custom rules
- CodeQL: data flow analysis to trace complex vulnerability chains
- Bandit: Python security linting
- SpotBugs with Find Security Bugs: Java static analysis
- ESLint security plugins: JavaScript and TypeScript analysis
- Gitleaks and TruffleHog: secrets hidden in the git history
- OWASP Dependency-Check and Trivy: software composition analysis (SCA)
- Checkov and tfsec: infrastructure-as-code scanning
Engagement Models
| Model | What We Need | Best For |
|---|---|---|
| Full repository | Complete source, git history and dependency manifests | The widest coverage, pre-launch audits |
| Module or feature | A specific component, such as an authentication service or payment module | A focused review of your highest-risk area |
| Diff review | A pull request or feature branch | Ongoing reviews built into your CI/CD pipeline |
Deliverables
- Executive summary: the overall security posture of the codebase
- Technical report: for each finding, the file path and line number, a description, exploitability, CVSS score and a recommended fix with a corrected code snippet
- Annotated SAST output: triaged results with the false positives removed
- Dependency risk report: vulnerable libraries ranked by CVE severity
- Remediation guidance: secure coding patterns, and the anti-patterns to avoid, for each category of finding
Contact us to scope a code review engagement.