Quality, safety and people · lesson 1 of 8
Ideas in this lesson
ASSDFNIST SP 800-218: prepare, protect, produce, respond
BShift leftmove security work earlier in the life cycle
CSecure by defaultsafe settings out of the box

A secure life cycle

Last updated

Pila holds the phone numbers and health visits of thousands of patients. Security can't be a check at the end; by then the design is fixed, and the cheapest fixes are gone. In this lesson you'll see how security fits into every phase of the life cycle, using three widely used frameworks: NIST's Secure Software Development Framework, OWASP's maturity model SAMM, and the US cybersecurity agency's Secure by Design principles.

By the end of this lesson you can

  • Place security practices in each phase of the life cycle
  • Name the four groups of practices in NIST’s Secure Software Development Framework
  • Explain why security added at the end costs more and protects less

Security in every phase

Each phase of the wheel has security work in it:

Security across Pila’s life cycle
PhaseSecurity workPila example
PlanDecide what needs protecting, and who’s responsiblePatients’ phone numbers and visit history; Jun leads on security
RequirementsSecurity and privacy requirements, and abuse cases“Nobody can see another patient’s number”; “someone texts PILA 1,000 times”
DesignThreat modelling (lesson 4.7)What if the gateway is spoofed? The admin page guessed?
BuildCode review, dependency checks, no secrets in codeA scanner in CI; keys in environment variables (lesson 7.3)
TestTest the abuse cases, not only the happy onesA test that floods take_number from one phone
ReleaseProtected branches, signed releases, safe settingsOnly the pipeline can deploy
MaintainPatch dependencies, handle reports, learn from incidentsUpdate the web framework within a week of a security fix

Moving this work earlier is often called shifting left, from the left-to-right drawing of the life cycle. A problem found in design costs a conversation; the same problem found after launch costs a fix, a release, possibly a breach, and patients' trust.

NIST’s four groups

The US National Institute of Standards and Technology (NIST) publishes the Secure Software Development Framework (SSDF), SP 800-218. It doesn't prescribe a method; it lists practices any life cycle should include, in four groups:

NIST SSDF practice groups
GroupIn short
Prepare the Organization (PO)Roles, training, tools and security requirements, set up before the work
Protect the Software (PS)Keep the code and releases from being tampered with
Produce Well-Secured Software (PW)Design, write, review and test with security in mind
Respond to Vulnerabilities (RV)Find, fix and learn from vulnerabilities after release

OWASP, a non-profit for application security, offers SAMM, a model a team can use to measure itself across five areas (governance, design, implementation, verification and operations) and choose what to improve next. Its Top 10 lists the most common serious risks in web applications; in its 2025 list, as in 2021, broken access control, letting people see or do what they shouldn't, comes first.

Sort the practices

0 of 8 placed right

  1. Train every developer on common web security mistakes

  2. Decide who is responsible for security on the team

  3. Require two-factor sign-in, and protect the main branch

  4. Sign release tags, and keep the build reproducible

  5. Threat-model the SMS handler in the design

  6. Review every pull request, and run a security scanner in CI

  7. Publish how to report a security problem, and answer within days

  8. After fixing a vulnerability, look for the same mistake elsewhere

Secure by design, and by default

The US Cybersecurity and Infrastructure Security Agency (CISA) asks software makers to be secure by design: to take responsibility for their customers' security outcomes, rather than leaving it to customers to configure things safely.

One concrete part is secure by default: the safe choice should be the one users get without doing anything. For Pila:

  • The admin page needs a strong password and two-factor sign-in from the first day, not as an option in settings.
  • Logs leave out phone numbers unless someone deliberately turns them on to investigate (lesson 7.7).
  • A new health centre starts with the least access, and gets more when it's needed.

Health workers are busy. If the safe way needs extra steps, it won't always happen; if it's the default, it happens every time.

Spot the trap: a security review after launch

Spot the trapKap. Ernesto

The launch date is fixed. Kap. Ernesto suggests: “Build it first, and we’ll hire someone to do a security review the week after launch.”

What happens if…

Check what you learned

What does “shift left” mean?
Publishing how to report a security problem belongs to which SSDF group?
What does secure by default mean?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development