Secure SDLC: Secure Software Development Lifecycle
Definition
A secure software development lifecycle, or secure SDLC, embeds security activities into the existing development process rather than adding a separate approval process at the end. It connects requirements, threat modeling, secure implementation, verification, release controls, and operational response. NIST SSDF supplies a practice baseline; Microsoft SDL provides implementation guidance. The skill is implementing this lifecycle with accountable owners and repeatable evidence, not merely knowing a framework or installing a scanner.
Why it matters for AI jobs
AI engineering roles increasingly involve shipping services that handle sensitive inputs, retrieve private documents, and invoke external tools. A secure SDLC helps engineers turn those risks into testable requirements and enforceable delivery checks. A portfolio showing a threat model, reviewed fixes, CI security gates, and a vulnerability-response exercise demonstrates production judgment beyond a model demo. It complements AI-specific defenses: passing code scans alone does not establish that an agent resists prompt injection or respects authorization boundaries.
Key concepts
- Security requirements: define protected assets, access rules, abuse cases, and acceptance criteria before implementation; use OWASP ASVS as a source of application requirements.
- Threat modeling: diagram trust boundaries and identify how untrusted inputs, retrieval sources, or tool outputs could cross them; revisit the model when architecture changes.
- Layered verification: combine SAST such as CodeQL, dependency checks such as Dependabot, secret scanning, runtime tests, and manual review; each detects different classes of failure.
- Risk-based delivery gates: require review and relevant security checks before merging; define severity thresholds, exception owners, and expiration dates instead of treating every alert equally.
- Protected engineering environments: restrict repository and CI permissions, protect release artifacts, and avoid long-lived deployment credentials where federated identity is available.
- Response and feedback: assign vulnerability triage, remediation, disclosure, and monitoring responsibilities; use root-cause analysis to improve requirements and regression tests.
Learning path
- Build a small FastAPI retrieval service using synthetic documents. Draw its data flow and trust boundaries, then write requirements for tenant isolation, secrets handling, and tool authorization.
- Threat-model the service with the OWASP guidance. Select a small set of ASVS requirements and implement explicit access checks plus negative tests for cross-tenant retrieval.
- Configure code scanning, dependency alerts, and secret scanning where supported by the repository plan. Add required reviews and CI checks; introduce a harmless test fixture and show that the relevant test or gate detects it.
- Test the running service in an isolated environment. Include authentication, authorization, malicious retrieved content, and excessive tool permissions; document which risks static analysis cannot cover.
- Prepare a release checklist and vulnerability-response playbook. Rehearse triage and patching, record a justified exception with an expiry, and publish sanitized evidence of the fix and its regression test.