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:
| Phase | Security work | Pila example |
|---|---|---|
| Plan | Decide what needs protecting, and who’s responsible | Patients’ phone numbers and visit history; Jun leads on security |
| Requirements | Security and privacy requirements, and abuse cases | “Nobody can see another patient’s number”; “someone texts PILA 1,000 times” |
| Design | Threat modelling (lesson 4.7) | What if the gateway is spoofed? The admin page guessed? |
| Build | Code review, dependency checks, no secrets in code | A scanner in CI; keys in environment variables (lesson 7.3) |
| Test | Test the abuse cases, not only the happy ones | A test that floods take_number from one phone |
| Release | Protected branches, signed releases, safe settings | Only the pipeline can deploy |
| Maintain | Patch dependencies, handle reports, learn from incidents | Update 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:
| Group | In 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
Train every developer on common web security mistakes
Decide who is responsible for security on the team
Require two-factor sign-in, and protect the main branch
Sign release tags, and keep the build reproducible
Threat-model the SMS handler in the design
Review every pull request, and run a security scanner in CI
Publish how to report a security problem, and answer within days
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
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
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.
- NIST SP 800-218: Secure Software Development Framework (SSDF) Version 1.1: the four practice groups
- OWASP SAMM: Software Assurance Maturity Model: security across governance, design, implementation, verification and operations
- CISA: Secure by Design: the principles, and the case for secure defaults
- OWASP Top 10: the most common serious web application security risks