Objective 8.1
Security in the development life cycle
Put security on the path, not at the end
A bug found in design is cheaper than the same bug found in production.
- 1Say what the software must protect
- 2Design with those limits
- 3Write code that checks untrusted input
- 4Test for abuse, not only happy paths
- 5Ship, watch, and patch
What it is
The software development life cycle is the path from an idea to running code and eventually to retirement. Common shapes differ in rhythm. Waterfall moves in long stages: requirements, design, build, test, release. Agile delivers small slices frequently and revisits requirements. DevOps emphasizes automation between development and operations so changes can ship safely and often. Security belongs in every shape. That means security requirements, threat modeling in design, safe coding, tests that try abuse, secure deployment, and a plan for vulnerabilities after release. Bolting a review on the night before launch finds problems when fixing them is most expensive.
Why it matters
Most painful defects are decisions made early: trust the client, mix personal data into logs, or let one API do anything. Late discovery turns into a choice between a delay and a known hole. Agile and DevOps do not skip security. They repeat it in smaller pieces. Waterfall does not guarantee security either, if the security stage is a waived meeting. The life cycle also includes the libraries you did not write.
A simple example
Building a cafe, you decide the locks and the food-safety sinks while the walls are still drawings. Discovering you need a sink after the counter is marble is how budgets explode. A weekly renovation, agile-style, still includes the sink in each piece of counter you add. Shipping a new menu every day without ever cleaning the kitchen is not agility. It is drift.
On the exam
Put security activities on the path the team already uses. If they plan in user stories, write abuse stories. If they gate releases in a pipeline, put tests in the pipeline. Do not answer “we are agile” as a reason there are no requirements. A trap is a final penetration test as the only security activity. It is useful and far too late to be the whole program.
Words worth keeping
- SDLC
- The full life of software from needs and design through release, maintenance, and retirement.
- Agile
- A way of building in small increments, with frequent feedback, not an excuse to skip security.
- DevOps
- A culture and toolchain that connect building and running software so changes are repeatable.