Course contentsShow
← Security
Lesson 40 of 3,0522. Threat Modeling FundamentalsFree lesson

Threat Modeling in the SDLC

Explore where threat modeling fits in software development: requirements, design, implementation, and maintenance phases.

Threat Modeling in the SDLC

What you'll learn: Where threat modeling fits into each phase of software development to catch security issues early and often.

The Right Time is Every Time

You've learned what threat modeling is and why it matters. Now: when do you actually do it? The answer: throughout the entire Software Development Lifecycle (SDLC), not just once.

Think of threat modeling like safety inspections when building a house. You wouldn't wait until the house is finished to check if the foundation is secure or the wiring is safe—you inspect at each phase. Software security works the same way.

Threat Modeling Across SDLC Phases

Requirements Phase

Identify security requirements early. Ask: "What assets need protection? What threats could we face?" This is where you establish your Trust Boundaries and understand your CIA Triad priorities before writing a single line of code.

Design Phase

This is prime threat modeling territory. Map out architecture, identify attack surfaces, and answer those Four Key Questions you learned earlier. Spotting flaws here is 100x cheaper than fixing them in production.

Implementation Phase

As you write code, verify that designs match reality. New components may introduce unexpected Attack Surface expansion or cross Trust Boundaries unsafely. Quick mini-reviews catch drift early.

Maintenance Phase

When adding features, fixing bugs, or updating dependencies, revisit your threat model. The Threat Landscape evolves—yesterday's secure design might need updates today. Remember: Security as Continuous Improvement.

The Earlier, The Better

Finding a design flaw during requirements costs pennies. Finding it in production costs dollars—and potentially your users' trust.

Key Takeaway: Threat modeling isn't a one-time checkpoint—it's woven throughout the SDLC, from requirements gathering to ongoing maintenance, catching security issues when they're cheapest to fix.