Code review

A human examination of source code against its requirements and secure coding expectations, ranging from an informal peer read to a formal structured inspection.

Code review is the examination of source code by people, to find defects and security weaknesses before the software runs in production. The ISC2 exam outline lists “Code review and testing” under 6.2, conducting security control testing. Reviews are commonly described as formal or informal. At the formal end is a structured inspection with defined roles, entry and exit criteria and recorded defects, the best-known form being the Fagan inspection. At the informal end are peer review of a change before it merges, pair programming and over-the-shoulder reads.

A code review is a test type in its own right, not another name for automated scanning. Tools such as static application security testing read code at scale and flag patterns, but they generally cannot judge whether the logic meets the business requirement or whether an authorisation check is in the right place. Human review and tooling are commonly used together, with the tools covered in CISSP Domain 8. Dynamic tests such as fuzz testing differ again, because they run the program.

Exam relevance: a scenario is likely to describe developers reading one another’s changes, or a meeting that walks through code against a checklist. Candidates are expected to identify that as code review, and to avoid answering a question about human review with the name of a tool.