Offensive Security

Secure Code Review

Secure code reviews are a manual or automated process that examines an application’s source code. The goal of this examination is to identify any existing security flaws or vulnerabilities. Code review specifically looks for logic errors, examines spec implementation, and checks style guidelines, among other activities.

Generally, there are two main types of secure code reviews:

  1. Automated code review: A process in which a tool automatically reviews the source code of an application, using a predefined set of rules to look for inferior code. Automated review can find issues in source code faster than identifying them manually, however, these findings still need expert interpretation.
  2. Manual code review: Involves a human looking at source code, line by line, to find vulnerabilities. Manual code review helps to clarify the context of coding decisions. Automated tools are faster, but they cannot take the developer’s intentions and general business logic into consideration. Manual review is more strategic and looks at specific issues.

Secure code review can occur at any time during the software development life cycle (SDLC), but it’s most impactful when performed earlier, because that’s when it’s easiest and fastest to make fixes to the code.   We recommend using automated code scanning tools as an integral part of your CI/CD pipeline.