Secure SDLC
A Secure SDLC integrates security across the whole development lifecycle, instead of leaving it as an audit at the end. The principle is shift-left: the earlier a flaw is found, the cheaper it is to fix — a design bug in production costs orders of magnitude more than in the requirements phase. It’s not a tool, it’s a way of spreading security controls across requirements, design, code, build, deployment, and operations.
What it solves
Section titled “What it solves”Classic AppSec was a one-week pentest right before going to production: late, expensive, and with no time to fix anything fundamental. A Secure SDLC turns security into a continuous property of the process, not a final snapshot.
- Cost of fixing: a flaw caught in design is fixed by changing a diagram; in production it means an incident, an emergency patch, and sometimes a breach.
- Coverage: controls in each phase (threat modeling, SAST/DAST, SCA, IaC review) catch different classes of flaw.
- Ownership: security stops being “the security team” and becomes a shared responsibility of the product team.
The phases and their controls
Section titled “The phases and their controls”Each phase of the lifecycle has a security control that fits it naturally:
flowchart LR
R[Requirements] --> D[Design]
D --> C[Code]
C --> B[Build / CI]
B --> DE[Deploy]
DE --> O[Operations]
O -. feedback .-> R
R -.- r1["Security requirements / abuse cases"]
D -.- d1["Threat modeling"]
C -.- c1["SAST · secrets scan · peer review"]
B -.- b1["SCA · signing · SBOM · DAST"]
DE -.- e1["IaC scan · hardening · config"]
O -.- o1["Monitoring · vuln management · WAF"]
- Requirements: explicit security requirements and abuse cases (how the feature would be abused). Here OWASP ASVS comes in as a catalog of verifiable requirements.
- Design: threat modeling on the architecture before writing code.
- Code: SAST, secrets scanning, and peer review with a security checklist.
- Build/CI: dependency SCA, signing and SBOM, and DAST against an ephemeral environment.
- Deploy: IaC review, container and Kubernetes hardening.
- Operations: monitoring, vulnerability management, and incident response, which feed back into requirements.
Maturity models
Section titled “Maturity models”You don’t implement everything at once. Reference frameworks let you measure where you are and where to go:
- OWASP SAMM (Software Assurance Maturity Model): five business functions (Governance, Design, Implementation, Verification, Operations) with levels 1-3. Used to self-assess and prioritize.
- NIST SSDF (SP 800-218): Secure Software Development Framework, groups practices into PO (prepare the organization), PS (protect the software), PW (produce well-secured software), and RV (respond to vulnerabilities). It’s the reference required by the U.S. government’s software supplier regulation.
- BSIMM: a descriptive study of what companies actually do, useful for benchmarking.
The key difference: SAMM and SSDF are prescriptive (what you should do), BSIMM is descriptive (what others do).
Gates and shift-left culture
Section titled “Gates and shift-left culture”A gate is a point in the process where the pipeline stops if a security criterion isn’t met. The typical mistake is to put all gates at the end and in blocking mode from day one: the team works around it or disables it.
- Start in informational mode (report, don’t block) to build a baseline.
- Move to block only the critical (leaked secret, dependency with an exploitable critical CVE).
- Measure remediation time (vulnerability MTTR), not just the number of findings.
- Give teams security champions: one dev per team with extra training who acts as a bridge.
Red Team
Section titled “Red Team”A Secure SDLC isn’t just defense; understanding how the process is attacked informs which controls matter:
- Weak phases: without threat modeling, business-logic and authorization flaws slip through to production — no automated tool catches them.
- Cosmetic gates: a SAST that only runs on a branch nobody uses, or a gate you can skip with a
skip-securitylabel, gives a false sense of security. - The pipeline as a target: increasingly, the attacker doesn’t look for the flaw in the app but in the process that builds it (see CI/CD and dependencies). Compromising the build is compromising everything it produces.
Blue Team
Section titled “Blue Team”- Integrate, don’t overlap: each control covers a class of flaw. SAST doesn’t replace threat modeling or SCA.
- Automate in the pipeline: a control that requires manual action gets skipped under delivery pressure.
- Measure with actionable metrics: vulnerability density per KLOC, MTTR, percentage of PRs with a security review.
- Continuous training: most flaws come from lack of knowledge, not bad faith. Train devs on the flaw classes of your stack.
Checklist
Section titled “Checklist”- Explicit security requirements and abuse cases for each relevant new feature.
- Threat modeling in design for architecture changes.
- SAST and secrets scanning on every PR.
- Dependency SCA with a critical-CVE policy.
- Artifact signing and SBOM generation in the build.
- IaC review before deployment.
- Gates starting informational, blocking only the critical.
- Vulnerability MTTR metrics, not just counts.
- Periodic self-assessment with SAMM or SSDF.
- Security champions per product team.