Course map

Topic 172 / Advanced

Secure development lifecycle: secure design reviews, SAST, DAST, dependency scanning, secrets scanning, vulnerability remediation

Chapter 10.6 · Privacy, Compliance, and the Secure Lifecycle

What and why

Every control taught so far in Part 10 is only as good as the process that makes sure it's actually built, checked, and kept checked as the system changes. The secure development lifecycle is that process: a sequence of gates, from design through running code, that catch classes of mistake systematically instead of relying on one reviewer noticing them. Builds on: → 158 (security fundamentals and threat modeling — the secure design review reuses this process).

Diagram

Gate Catches Stage
Secure design review Design-level flaws, reusing the threat model (→ 158) Before code
SAST (static analysis) Known-risky code patterns, e.g. injection (→ 166) At commit / pull request
DAST (dynamic testing) Runtime behavior a static scan can't see (auth flows, live config) Against a running test instance
Dependency scanning Known-vulnerable third-party library versions At build
Secrets scanning Credentials accidentally committed (→ 165) At or right after commit
Vulnerability remediation Turns every finding above into a tracked fix with a deadline Ongoing

How it works

  1. Run a secure design review before code is written for any change crossing a trust boundary, reusing the threat-modeling process (→ 158) rather than inventing a new one.
  2. Run SAST on every commit or pull request — it scans source code for known-risky patterns without executing it.
  3. Run DAST against a running instance in a test environment — it finds issues that only show up at runtime, which static analysis structurally cannot see.
  4. Run dependency scanning at build time to flag third-party libraries with known vulnerabilities, by version.
  5. Run secrets scanning at or immediately after commit to catch credentials (→ 165) that land in source control by accident.
  6. Give every finding from any gate a severity, an owner, and a remediation deadline — a scan with no remediation path is a report nobody acts on, not a control.
  7. Wire all six steps into CI/CD (→ 186) so they run on every change automatically, not as an annual manual exercise.

Practical example

(illustrative). A dependency scan flags a library version with a known vulnerability during a pull request. The remediation path assigns it to the owning team with a deadline set by severity, and the pipeline (→ 186) blocks the merge until it's resolved or an exception is explicitly recorded and approved — the scan alone changes nothing without that enforced path.

When to use it

  • Use a secure development lifecycle, scaled to risk, on any codebase handling user data or doing anything security-sensitive — essentially always, at some depth.
  • Avoid running every gate at full depth on every trivial change if it makes the pipeline too slow to actually use — match gate frequency and depth to the risk of the change, not a fixed ritual.
  • Failure scenarios: a SAST tool generating findings nobody triages, so real issues drown in noise; a DAST scan run once before launch and never again as the system changes; a dependency scan with no remediation deadline, so a known-vulnerable library persists for years after it's flagged.
  • Simpler alternative: for a small, early-stage project, secrets scanning and dependency scanning alone — both cheap, both high-signal — cover a large share of the risk before investing in full SAST/DAST tooling.

Practice

(Process kind — fill the template on a small real system; 20–30 min, no lab services). For Project 1's pipeline (conceptual — no tool needs to actually run), map each of the six gates above to a stage in the pipeline, stating for each one whether a finding blocks a merge/deploy or only warns, and why that severity was chosen. Done when every gate has a stage, a block-or-warn decision, and a stated reason.

Key takeaway

Security holds up only when design review, static and dynamic testing, dependency and secrets scanning, and remediation deadlines are run on every change, wired into the pipeline — not performed once. Done when you can: map all six gates to stages in a real pipeline and state what blocks a release versus what only warns. Used next in → 173 (supply chain security extends dependency scanning), → 186 (where these gates physically run); Project 8.

References

NIST SP 800-218: Secure Software Development Framework — see references.md.

Source directory

Search the guide