PLANTESTSCANCI CHECKS1def find_user(db, name):2 q = ("SELECT id FROM users "3 f"WHERE name = '{name}'") "WHERE name = ?")4 cur = db.execute(q) cur = db.execute(q, (name,))5 return cur.fetchone()POPREPAREPSPROTECTPWPRODUCERVRESPOND
Back row: the pipeline a change travels throughMiddle: the code being changed, and an outside researcherFront: the four NIST SSDF practice groupsAt the back, the stages a change passes through: plan, CI checks, code review, a signed release and the live service. A function that pastes a name into SQL fails a unit test and a scanner in CI; the fix passes the name as a parameter, and the change is reviewed, released and signed. Later a researcher's report is fixed and its root cause studied. In front, the four practice groups of NIST's Secure Software Development Framework (SP 800-218). The figure shows one tidy path. Real teams vary it: CI and review usually run side by side on a pull request, and many checks run before code is ever pushed.

Plan and write

  1. The software development life cycle (SDLC) is the path every change takes: plan, write code, check, review, release, run. A secure SDLC builds security into each stage, instead of testing for it once at the end.

Checks catch the mistake

Review, release, respond

The frameworks

What happens

;; step 1/11 · sdlc
SDLC   the stages every change goes through
  plan → code → CI checks → review → release → run
secure SDLC
  a security task at every stage,
  not one test just before release

The figure shows one tidy path. Real teams vary it: CI and review usually run side by side on a pull request, and many checks run before code is ever pushed. Bandit 1.9.4 reports this pattern as B608 (CWE-89) with low confidence. Scanners give hints, not proof, and miss some flaws, which is why tests and human review are still needed.