Conduct code reviews
Framework question: How do you incorporate and validate the security properties of applications throughout the design, development, and deployment lifecycle?
- Risk if not established
- Medium
- Framework verified
- 23 Oct 2026
AWS Well-Architected Framework — SEC11-BP04 Conduct code reviews
Executive summary
Why this practice matters
Require independent, risk-aware source-code reviews before changes are merged. Combine experienced human judgement with automated analysis to inspect security boundaries, authorisation and complex logic, recording decisions and verifying corrections.
Business impact
- Detects security and functional defects before release.
- Spreads knowledge of safe design patterns within teams.
- Reduces defects that reach penetration testing.
- Makes sensitive code changes more accountable.
Assign
Accountable and responsible roles
Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.
| Responsibility | Accountability type | Typical roles |
|---|---|---|
Define application security expectations Set code review requirements, risk-based review depth and the exception process. Typical roles: Security Architect, Security Engineer, Security Architect, Security Engineer | responsible | Security ArchitectSecurity EngineerSecurity Architect, Security Engineer |
Implement and review secure delivery Embed required processes and checks in development, release and team operations. Typical roles: Software Engineer, DevOps Engineer, Software Engineer, DevOps Engineer | responsible | Software EngineerDevOps EngineerSoftware Engineer, DevOps Engineer |
Own business and delivery outcomes Review risk decisions, team ownership and the effect of exceptions. Typical roles: Service Owner, Team Lead / Manager, Service Owner, Engineering Team Lead | consulted | Service OwnerTeam Lead / ManagerService Owner, Engineering Team Lead |
Assessment
Assessment and evidence state
States describe how far the practice has moved from intent to something continuously validated.
- 0
Not Assessed
No documented evaluation of the practice has been performed.
Indicators
- No one has examined how code reviews are performed or enforced.
- 1
Not Implemented
The expected process or technical security control is absent.
Indicators
- Changes can be merged without an independent review.
- Review findings and decisions are not recorded.
- 2
Partially Implemented
Some areas implement the control but key gaps, exceptions or coverage remain.
Indicators
- Independent review is required for some repositories or change types, but not all.
- Findings are recorded inconsistently, or exceptions are not governed.
- 3
Implemented
The practice is consistently applied across defined scope with accountable decisions.
Indicators
- Independent review is enforced for all in-scope changes, with depth proportional to risk.
- Findings and exceptions are traceable to commits and releases.
- 4
Continuously Validated
The practice is continuously or periodically verified with closure evidence and improvement.
Indicators
- Review effectiveness is measured, for example escaped defects and repeat findings.
- Measurements lead to verified improvements in review practice.
Assessment dimensions
Reviewer independence
Practice-specificAbsent · Partial · Operational and verified
Security risk focus
Practice-specificAbsent · Partial · Operational and verified
Finding disposition
Practice-specificAbsent · Partial · Operational and verified
Traceability
Practice-specificAbsent · Partial · Operational and verified
Caution
Do not award maturity for a written review policy or an installed tool alone. Check real outcomes: which repositories and changes are in scope, whether recent changes were independently reviewed, how findings were resolved, and how exceptions were approved.
Standard
What you should be able to demonstrate
Statements a reviewer should be able to confirm from evidence, not from intent.
- Changes require an independent reviewer other than the author.
- Review depth is proportional to security and business risk.
- Reviewers use relevant secure-coding standards and automated findings.
- Material findings lead to changes or explicit approved exceptions.
- Traceable review decisions link to commits, tests and merged releases.
Trade-offs to hold in view
- Deeper reviews increase lead time for complex changes.
- Mandatory second reviewers need staffing resilience.
- Automated tools support but do not replace expert judgement.
Assess
Questions to ask
Each question exposes the difference between an intention and an operating practice.
- discovery
How do we show that every change is independently reviewed, across all teams and applications?
Finds gaps in coverage and accountability.
Usually asked by: Software Engineer, DevOps Engineer
- challenge
How could a change reach production without an independent review, for example through self-approval, emergency merges or administrator overrides?
Challenges practical control bypasses.
Usually asked by: Security Architect, Security Engineer
- evidence
Can we trace a recent code or release decision to reviewed evidence and corrected findings?
Requires observed outcomes rather than policy claims.
Usually asked by: Software Engineer, DevOps Engineer
- executive
What business exposure remains if code reviews miss security defects?
Translates security weaknesses into decision-ready risk.
Usually asked by: Service Owner, Technology Executive
Evidence
Required and expected evidence
Reusable evidence definitions held once in the evidence library and referenced by every practice that relies on them. Each links to what good evidence looks like and to worked examples.
Secure Code Review & Decision Record
Evidence of independent risk-based code review, security-sensitive change scrutiny, reviewer expertise, identified issues and documented acceptance or remediation.
Shows which changes were reviewed, by whom, what was found, and how each finding or exception was resolved.
Minimum expected content
- Change and repository identification
- Reviewer independence and required expertise
- Risk-sensitive code areas and review criteria
- Security review findings and discussion
- Decision, exception approval and verification
- Links to tests and merged changes
Anti-patterns
- A policy alone is treated as proof of operational implementation
- Findings are collected but not remediated
- Review or testing scope is unrecorded
- Evidence and approvals cannot be traced to a release or owner
Review: Review following material application or process changes and on a documented risk-based cadence.
Automated Application Security Test & Defect Register
Records SAST, DAST, dependency, security regression and configuration-test coverage across development and release pipelines, including findings, risk decisions and verified remediation.
Corroborates review findings with automated test and scanner results, and shows whether the defects were fixed.
Minimum expected content
- Applications, environments and test coverage
- Security test suites and trigger points
- Pipeline failure thresholds and bypass approvals
- Findings, severity, owner and remediation status
- Verification and regression results
- Coverage gaps and false-positive review
Anti-patterns
- A policy alone is treated as proof of operational implementation
- Findings are collected but not remediated
- Review or testing scope is unrecorded
- Evidence and approvals cannot be traced to a release or owner
Review: Review following material application or process changes and on a documented risk-based cadence.
Diagnosis
Common evidence gaps
Self-approval
The author can merge security-sensitive code without challenge.
Rubber-stamp review
Approvals lack scrutiny of important logic and trust boundaries.
Only automated checks
No human review considers application-specific risks.
Findings ignored
Comments and exceptions are not resolved or justified.
Implementation
Implementation guidance
Set change policy
Require independent review and increase scrutiny for high-impact components.
Equip reviewers
Teach threat modelling, secure coding and code-review checklists.
Integrate useful automation
Provide scanner and test signals to support human judgement.
Record decisions
Link findings, approvals and exceptions to individual changes.
Inspect effectiveness
Review escaped defects and improve review practice.
Measure
Measurements
- Percentage of changes independently reviewed
- Security findings detected in reviews
- Repeat issues after review
- Time to approve sensitive changes
Related
Outcomes and practices
Business outcomes
Practices