Overview
Curated: · Written: · Reviewed:
Secure Software Development Lifecycle
In one line
Build security evidence into planning, design, build, release, operation and retirement, so each phase catches the defect classes it is best placed to catch. Reach for it when a team's only security control is a scan or pen test before release, because those controls see code and configuration late and miss design flaws entirely.
Key definitions
- Security requirement: a testable statement of what the system must enforce, such as "refund requests must be authorized for the owning tenant's approver."
- Threat model: a record of trust boundaries, data and control flows, identities, admin paths, and build and update mechanisms, used to find design flaws before code exists.
- Provenance: a signed statement of how and where an artifact was built. It establishes identity and process, not that the source is safe.
- SBOM: an inventory of components and versions. It shows what was shipped, not what code is reachable or executed.
- Exception: a recorded release waiver naming the unmet requirement, compensating control, risk approver and expiry.
- Secure default: a shipped configuration that is safe without the customer editing anything.
Formulas and complexity
Quote the coverage question as a ratio, not an activity count:
For the MCQ 9 gate:
How it works
Each phase owns a class of defect. Requirements and threat models catch missing controls before code exists. Code review, SAST and dependency checks catch implementation and component defects at pull request time. API and authorization tests catch broken invariants that scanners cannot see. Release gates block on unresolved exposure. Operations and disclosure close the loop by fixing whole classes, not single instances.
When to use and when not to
| Situation | Use a full SDLC program | A lighter control is enough |
|---|---|---|
| New tenant boundary, auth flow or privilege model | Yes: threat model and tests before build | No |
| Copy change or internal script with no new data | No | Standard review and existing checks |
| Team ships often with many services | Yes: paved-road templates and libraries | Ad hoc review does not scale |
| Single small tool, no exposure | Scoped checks only | Yes |
| Gate with no owners or expiries on suppressions | Fix the gate first | Blocking on it adds noise |
Traps interviewers probe
- Treating a green scanner as coverage. Fix: state what each tool reads. SAST sees injection patterns, SCA sees lockfile CVEs, neither reads tenant IDs. Add a test for the invariant that matters.
- Assuming more scanners fix design flaws. Fix: move the control earlier. Design defects need a threat model and requirement, since most of them are absent requirements, not bad code.
- Reading provenance as a safety guarantee. Fix: provenance proves the artifact came from a named builder and digest. It says nothing about whether the source is benign, so keep runtime controls.
- Trusting an SBOM to show exposure. Fix: an SBOM lists components. Reachability needs call-graph or runtime evidence, and a devDependency does not ship in a
--omit=devimage. - Re-signing a compromised artifact and calling it fixed. Fix: revoke trust, rebuild from known foundations, and verify the rebuilt artifact independently.
Interview tips
Open with the phase-by-phase claim: "Each phase catches a defect class the next one cannot, so I'd put the control where the defect is cheapest to fix." Then name the evidence per phase.
Expected follow-ups:
- Which defects does SAST miss, and what covers them? (Design flaws and authorization invariants; a threat model and API tests.)
- How do you stop the gate becoming checkbox theater? (Scoped populations, owners and expiries on suppressions, exceptions bound to the artifact digest.)
- What does provenance not prove? (Source safety, absence of vulnerabilities, fitness for every consumer.)
30-second outline: Name the lifecycle phases in one sentence. Give the defect class each catches. State one gap the next phase closes. Finish with the metric you would track: coverage of in-scope services and exception age, not scan counts.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.