Development Methodologies
Security must fit the way software is actually built. This lesson covers the SDLC phases and how security integrates with Waterfall, Agile, SAFe, DevOps and DevSecOps.
Learning outcomes
After completing this lesson, you will be able to:
- Explain how security integrates with Waterfall, Agile, SAFe, DevOps and DevSecOps.
- Describe the benefits of shifting security left.
The SDLC and Waterfall
A software development life cycle (SDLC) typically moves through requirements, design, development, testing, deployment, and operation and maintenance, ending with disposal. Security activities belong in every phase: security requirements and abuse cases, threat modelling and design review, secure coding and code review, security testing, secure configuration at deployment, and vulnerability management in operation.
The Waterfall model performs these phases in sequence, each completed and approved before the next. Security reviews fit naturally at phase gates, but discovering a design flaw late is expensive because earlier phases must be revisited. The spiral model iterates through planning, risk analysis, engineering and evaluation, making risk analysis part of every cycle.
The security activities in each phase build on one another. Requirements produce security requirements and abuse cases, which the design phase addresses through architecture decisions and a threat model. The threat model tells developers which areas need the most care and tells testers what to test. Testing verifies the requirements, and deployment applies the secure configuration the design assumed. In operation, monitoring and vulnerability management detect new problems, and disposal ensures that data and credentials do not outlive the system. If any link is missing, the later phases have nothing to verify against.
Security in each phase
Agile and SAFe
Agile methods such as Scrum deliver working software in short iterations (sprints) and welcome changing requirements. Security integrates through security requirements written as user stories and abuse stories ("as an attacker, I want to..."), security criteria in the definition of done, threat modelling of new features, automated security tests and security champions within each team. Leaving security to a final phase conflicts with Agile's rhythm.
The Scaled Agile Framework (SAFe) coordinates many Agile teams on large programmes through shared planning increments and release trains; security requirements are captured as non-functional requirements and enablers across the programme.
Large programmes face a coordination problem that SAFe addresses. Security capabilities that many teams need, such as a shared authentication service or a logging standard, are planned as enablers at programme level so that each team does not build its own. Security specialists work with the release train as a whole, while security champions in each team handle day-to-day questions.
Security in Agile teams
Writing abuse stories
An Agile team is building a password reset feature from the user story "as a customer, I want to reset my password by email". How does it build security into the sprint?
Alongside the user story, the team writes "as an attacker, I want to reset another customer's password" and "as an attacker, I want to discover which email addresses have accounts". Each abuse story has acceptance criteria, such as reset links that expire after 15 minutes and work only once, and responses that do not reveal whether an address is registered.
The definition of done then requires these criteria to pass, so security work is planned, estimated and completed within the sprint like any other work.
DevOps and DevSecOps
DevOps unites development and operations with automation, continuous integration and delivery, and shared responsibility for running software. DevSecOps makes security a shared responsibility too and automates it in the pipeline: static analysis, software composition analysis, secret scanning, infrastructure-as-code scanning, container image scanning and dynamic testing run on every change, with results returned to developers quickly.
This shift left finds problems earlier, when they are cheapest to fix, and keeps security from becoming a bottleneck.
DevSecOps also changes the role of the security team. Instead of reviewing every change by hand, it provides tools, secure templates and guardrails that make the secure path the easy path, and focuses its own reviews on high-risk designs. The comparison below summarises how security fits each methodology.
The following diagram shows security checks along a DevSecOps pipeline.

Main risk of each methodology
A change through a DevSecOps pipeline
A developer pushes a change to an application built with a DevSecOps pipeline. What happens between the push and production?
Within minutes of the push, the pipeline runs unit tests, SAST, SCA and a secret scan, and posts any high-severity findings on the pull request. A reviewer approves the change, and the pipeline builds a container image, scans it, signs it and deploys it to a test environment, where DAST runs. If every quality gate passes, the release is promoted to production, and monitoring watches for errors and attacks.
Security is present at every step without a separate security phase, and because the pipeline itself can deploy to production, it is protected as a critical system.
Security in sprints
An Agile team plans to schedule a full security review and penetration test once the product is "finished" in six months. What is the BEST way to integrate security instead?
Security should be part of every sprint: security and abuse stories in the backlog, threat modelling of new features, security criteria in the definition of done, and automated SAST, SCA and secret scanning in the pipeline, supported by a security champion. A penetration test before major releases remains valuable, but it should confirm security rather than be its only source.
What does "shift left" mean in software security?
Show answer
Performing security activities earlier in the development life cycle, when flaws are cheaper to fix.
Exam Tips
Remember for the exam
- Shift left: find flaws early, when they are cheapest to fix.
- In Agile, security belongs in stories and the definition of done.
- DevSecOps automates security tests in the pipeline.