In 1999, Microsoft faced a crisis. Security vulnerabilities in Windows were being exploited faster than patches could be released.
Fixing vulnerabilities only after they were found was not working and the company saw that their reactive approach had to change. Systems had to be built with think like attackers in mind from the start and not fixed after the fact.
Microsoft developed formal threat modeling practices as a result. These were structured ways to identify what could go wrong, who might attack, how they would attack and what defenses would matter most. The results were dramatic.
Security vulnerabilities in Windows decreased significantly not because developers wrote perfect code, but because they designed systems with threats in mind from the beginning.
Threat modeling is the practice of systematically identifying and analyzing security threats to a system. It answers fundamental questions: What are we protecting? From whom?
Against what attacks? Which risks matter most? How should we defend?
When there is no threat modeling, security reacts and becomes scattered and you guard against random threats, fail to find what is critical and waste resources on risks that have little impact.
Threat modeling makes security strategic and focused. You grasp your specific threats, put defenses where they count most and base tradeoffs on real information.
How threat modeling works goes through identification of assets and threats, risk assessment, application of frameworks such as STRIDE, defense prioritization and keeping threat models updated as systems change. That is what this analysis looks at.
What Threat Modeling Is (and Isn't)
The Core Concept
Threat modeling: Structured analysis answering:
- What are we building? (system architecture)
- What can go wrong? (threats)
- What should we do about it? (mitigations)
- Did we do a good job? (validation)
The output. Security investments guided by documentation of threats, their likelihood and impact as well as the mitigations that were chosen.
"The question is not whether it is possible for the system to be broken, but whether it is worth the effort to break it."
Bruce Schneier
What Threat Modeling Is NOT
Not penetration testing. A pen test simulates attacks on systems that already exist. Threat modeling takes place before or during development and it identifies threats before they turn into vulnerabilities.
Not compliance checkbox. A real threat model takes into account actual risks to your specific system and it does not consider generic "best practices" or compliance requirements though it can help compliance.
Not one-time activity: Threat landscapes evolve. New features add attack surface. Threat models must be living documents, updated as systems change.
Not just for software: Threat modeling applies to physical security, business processes, supply chains: anywhere threats exist.
Not paranoia. The aim is not to imagine every possible threat that is impossible. It is systematically identifying plausible threats and deciding informedly which ones to address.
Why It Matters
Limited resources. Not everything can be protected perfectly. Allocating security budget to the highest-impact defenses is what threat modeling helps you do.
Proactive vs. reactive. It costs 10 to 100 times less to find and fix vulnerabilities during design than to fix them in production after they have been exploited.
Shared understanding. Developers, security teams and business stakeholders get a common language through threat modeling for talking about risks as well as tradeoffs.
Better design: Thinking about attacks early leads to architectures that are secure by design rather than secured by afterthoughts.
Assets: What You're Protecting
Identifying Assets
Assets. Anything valuable that needs protection goes here. Data is not the only thing included. Systems, services, reputation and intellectual property are in there too.
Examples:
- Data: Customer PII, financial records, trade secrets, credentials, health information
- Services: Availability of critical applications, API uptime, payment processing
- Reputation: Brand trust, customer confidence
- Operations: Manufacturing processes, logistics systems
- Intellectual property: Source code, algorithms, business methods
The question. What would happen if an attacker got past X ? Assets that have high impact need more protection.
Asset Classification
Criticality levels:
- Critical: Compromise causes severe harm (financial loss, regulatory penalty, existential threat)
- High: Significant harm (major operational disruption, data breach)
- Medium: Moderate harm (minor disruption, limited data exposure)
- Low: Minimal harm (public information, non-critical functions)
Example classification for e-commerce system:
- Critical: Payment processing credentials, customer payment information
- High: Customer account data (addresses, order history), inventory management system
- Medium: Marketing analytics, product descriptions
- Low: Public product catalog, blog content
Why classify. The classification helps to decide which threats to focus on first. Critical assets draw immediate attention and threats to low-value assets may be accepted.
Threat Actors: Who Might Attack
Understanding Attackers
Threat actor: Individual or group that might attack your system. Different actors have different capabilities, motivations, and targets.
"Amateurs hack systems, professionals hack people."
Bruce Schneier
Common Threat Actor Categories
1. Script Kiddies
Profile: Low-skill attackers using automated tools and published exploits.
Capabilities. The ability to take advantage of known vulnerabilities through existing tools exists. There is no ability to create new attacks or get around sophisticated defenses.
Motivation: Curiosity, bragging rights, opportunistic financial gain.
Targets: Low-hanging fruit: unpatched systems, default credentials, common misconfigurations.
Defense priority. It is low to medium. A basic set of security practices including patches, strong passwords and common hardening gets rid of this threat.
2. Cybercriminals
Profile: Financially motivated attackers, often organized.
Capabilities. Require moderate to high skill. Exploits should be developed or bought. Ransomware, phishing campaigns, credential theft and fraud can all be used.
Motivation: Money. They attack systems with financial value or ransomware potential.
Targets: Financial services, healthcare (ransomware), e-commerce (payment data), any organization that will pay ransom.
Defense priority. Organizations that have valuable data or little tolerance for downtime need high defense priority. A strong security program, incident response and backup strategy are required.
3. Hacktivists
Profile: Politically or ideologically motivated attackers.
Capabilities: Varies: some low-skill, some sophisticated. Often collaborate in groups (Anonymous, etc.).
Motivation: Political statement, embarrassment of target, exposure of perceived wrongdoing.
Targets: Organizations whose actions or policies they oppose, including governments, corporations, controversial industries.
Defense priority: Depends on organization's political profile. Controversial organizations face higher hacktivist risk.
4. Nation-State Actors (APTs)
Profile: Government-sponsored attackers with significant resources.
Capabilities: Very high skill. Develop zero-day exploits, conduct long-term campaigns, bypass most defenses.
Motivation: Espionage, intellectual property theft, infrastructure disruption, geopolitical advantage.
Targets: Government agencies, defense contractors, critical infrastructure, strategic industries (tech, energy, finance).
Defense priority. This is critical for high-value targets. It calls for advanced security, threat intelligence and the assumption that attackers will eventually get in (defense in depth, monitoring and incident response).
5. Malicious Insiders
Profile: Employees, contractors, or partners with legitimate access who abuse it.
Capabilities: High: they already have access, understand systems, know where valuable data lives.
Motivation: Financial gain, revenge, ideology, coercion.
Targets: Data they can access, systems they manage, processes they participate in.
Defense priority. This is high. Perimeter security makes it hard to defend against insider threats. The solution calls for access controls, activity monitoring, data loss prevention as well as trust but verify.
6. Competitors (Industrial Espionage)
Profile: Corporate actors seeking competitive advantage.
Capabilities: Varies. May hire skilled attackers or use insiders.
Motivation: Steal trade secrets, learn strategies, gain market advantage.
Targets: Research and development, strategic plans, customer lists, pricing information.
Defense priority: High for companies with valuable intellectual property or competitive secrets.
Threat Actor Assessment
For your specific system, ask:
- Which actors would be motivated to attack us?
- What capabilities do they have?
- What are they trying to accomplish?
- How much resource will they invest?
Example. A small retail site deals with cybercriminals who want payment data and script kiddies who are opportunistic. It does not have to deal with nation-states, as they find the site not strategically valuable.
Understanding relevant threat actors helps focus defenses on plausible threats rather than hypothetical scenarios.
Attack Vectors: How Systems Get Compromised
What Are Attack Vectors?
Attack vector. This is the method or path an attacker uses to get unauthorized access or to do harm.
Common Attack Vectors
1. Phishing and Social Engineering
How it works. By using psychological manipulation to get users to hand over credentials, click on malicious links or install malware.
Examples:
- Email pretending to be from IT asking for password
- Fake login page harvesting credentials
- Phone calls impersonating support to extract information
Why effective: Humans are the weakest link. Technical defenses don't stop users willingly providing access.
Mitigations: Security awareness training, email filtering, MFA (mitigates compromised passwords), anti-phishing technology.
2. Unpatched Vulnerabilities
How it works: Exploiting known security flaws in software that haven't been patched.
Examples:
- Old operating system versions with public exploits
- Web server vulnerabilities like Heartbleed
- Third-party library vulnerabilities
Why effective: Many organizations are slow to patch. Attackers know what vulnerabilities exist and have ready-made exploits.
Mitigations: Patch management processes, vulnerability scanning, automated updates where possible, risk-based patching prioritization.
3. Weak Authentication
How it works. Access is gained by exploiting weak passwords, default credentials or the absence of multi-factor authentication.
Examples:
- Brute-forcing weak passwords
- Using default admin/admin credentials on devices
- Compromising accounts without MFA through phishing
Why effective. Weak passwords get chosen by users and they reuse passwords across sites and they resist MFA friction.
Mitigations: Strong password policies, MFA enforcement, password managers, monitoring for credential stuffing attacks.
4. Misconfigured Systems
How it works. Systems set up insecurely, most often through default settings or human error get exploited.
Examples:
- Publicly accessible databases without authentication
- S3 buckets with public read permissions
- Overly permissive firewall rules
- Debug modes left enabled in production
Why effective: Configuration is complex. Secure defaults aren't always configured securely. Cloud services make it easy to accidentally expose resources.
Mitigations: Security baselines, automated configuration scanning, infrastructure-as-code review, least-privilege access policies.
5. Supply Chain Attacks
How it works: Compromising trusted third parties (software vendors, contractors, service providers) to gain access to targets.
Examples:
- Malicious code injected into software updates (SolarWinds attack)
- Compromised third-party libraries
- Vendor access credentials stolen
- Hardware backdoors
Why effective. When they do not scrutinize updates or third-party code as rigorously, organizations trust their vendors and that is why it works.
Mitigations. Vendor security assessments, software supply chain security, monitoring third-party access and code signing verification.
6. Web Application Vulnerabilities
How it works. By taking advantage of flaws in web applications that lets attackers inject code, steal data or change how the system functions.
Examples:
- SQL injection (manipulating database queries)
- Cross-site scripting (XSS: injecting malicious scripts)
- Cross-site request forgery (CSRF: forcing unwanted actions)
- Insecure deserialization
Why effective. Complex and handling user input, web applications are as well often riddled with security flaws.
Mitigations. These are secure coding practices, input validation, parameterized queries, web application firewalls and security testing (SAST/DAST).
7. Physical Access
How it works: Gaining physical access to devices, facilities, or infrastructure to bypass digital security.
Examples:
- Stealing laptops or phones with unencrypted data
- Accessing data centers
- Plugging malicious USB devices into workstations
- Dumpster diving for documents
Why effective. Physical security is most often weaker than digital security. Once someone gets physical access, many digital controls get bypassed.
Mitigations: Physical access controls, full-disk encryption, device management, secure disposal processes, visitor management.
The STRIDE Framework
What is STRIDE?
STRIDE, a mnemonic for systematic threat identification that was developed by Microsoft. It helps make sure you think about all major threat categories.
"If you think technology can solve your security problems, then you don't understand the problems and you don't understand the technology."
Bruce Schneier
The Six Threat Categories
S - Spoofing Identity
What it is: Pretending to be someone or something else.
Examples:
- Attacker impersonates legitimate user
- Malicious server pretending to be legitimate service
- Forged email headers
Mitigations:
- Strong authentication (MFA)
- Digital signatures
- Certificate validation
- Authentication tokens
T - Tampering with Data
What it is: Unauthorized modification of data.
Examples:
- Modifying data in transit (man-in-the-middle)
- Changing database records
- Altering log files to hide activity
- Injecting malicious code
Mitigations:
- Encryption in transit and at rest
- Digital signatures
- Integrity checks (checksums, hashes)
- Access controls
- Audit logging
R - Repudiation
What it is: Denying having performed an action.
Examples:
- User claims they didn't make a transaction
- Administrator denies making configuration change
- Attacker covering tracks by deleting logs
Mitigations:
- Comprehensive logging
- Digital signatures (non-repudiation)
- Audit trails with timestamps
- Secure log storage
I - Information Disclosure
What it is: Exposing information to unauthorized parties.
Examples:
- Data breach exposing customer information
- Sensitive data in error messages
- Unencrypted data transmission
- Overly verbose API responses
Mitigations:
- Encryption
- Access controls
- Data classification and handling
- Principle of least privilege
- Error handling that doesn't leak information
D - Denial of Service
What it is: Making a system unavailable to legitimate users.
Examples:
- DDoS attacks overwhelming servers
- Resource exhaustion attacks
- Algorithmic complexity attacks
- Ransomware encrypting systems
Mitigations:
- Rate limiting
- Load balancing
- DDoS protection services
- Resource quotas
- Redundancy and failover
- Backups
E - Elevation of Privilege
What it is: Gaining permissions you shouldn't have.
Examples:
- Exploiting vulnerabilities to get admin access
- Privilege escalation attacks
- Bypassing authorization checks
- Exploiting misconfigured permissions
Mitigations:
- Principle of least privilege
- Role-based access control
- Regular permission audits
- Input validation
- Security testing
- Separation of duties
Using STRIDE
Process:
- For each system component (service, data store, process, data flow)
- Ask: "Could an attacker accomplish S/T/R/I/D/E here?"
- For each identified threat, determine if existing controls mitigate it
- For unmitigated threats, decide: prevent, detect, respond, or accept
Example: User Login Process
Component: Web login form
STRIDE analysis:
- Spoofing. The attacker can guess passwords and Mitigate. To stop that, have a strong password policy, MFA and account lockout.
- Tampering: Attacker could modify credentials in transit → Mitigate: HTTPS encryption
- Repudiation: User could deny logging in → Mitigate: Login audit logs
- Information Disclosure: Error messages might reveal valid usernames → Mitigate: Generic error messages
- Denial of Service. The attacker could brute-force and lock accounts by force and Mitigate. To protect against that, rate limiting and CAPTCHA can be used.
- Elevation of Privilege. When authentication can be bypassed through a vulnerability, security testing and code review can Mitigate.
Risk Assessment and Prioritization
Assessing Risk
Risk = Likelihood × Impact
Likelihood factors:
- How motivated are attackers?
- How difficult is the attack?
- What skill level required?
- What existing defenses exist?
Impact factors:
- Financial loss
- Data exposure (how much, how sensitive?)
- Operational disruption (how long, how critical?)
- Regulatory penalties
- Reputational damage
Risk Matrix
| Low Impact | Medium Impact | High Impact | |
|---|---|---|---|
| High Likelihood | Medium Risk | High Risk | Critical Risk |
| Medium Likelihood | Low Risk | Medium Risk | High Risk |
| Low Likelihood | Low Risk | Low Risk | Medium Risk |
Critical risks: Address immediately. High likelihood and high impact.
High risks: Prioritize for mitigation. Either high likelihood or high impact.
Medium risks: Address as resources permit. Balance against other priorities.
Low risks: Accept or monitor. Not worth significant investment.
Prioritization Strategies
1. Risk-based: Address highest risks first (likelihood × impact).
2. Cost-benefit: Prioritize high-impact threats with low-cost mitigations.
3. Quick wins: Implement easy mitigations first to reduce attack surface quickly.
4. Defense in depth: Layer defenses so multiple controls must fail for attack to succeed.
5. Accept risk: Explicitly decide some risks are acceptable given cost to mitigate.
Documentation
Record for each identified threat:
- Description of threat
- Attack vector
- Affected assets
- Likelihood and impact assessment
- Existing mitigations
- Proposed additional mitigations
- Risk acceptance decision
- Owner responsible for mitigation
This creates audit trail and ensures threats don't get forgotten.
Practical Threat Modeling Process
Step 1: Scope Definition
Define what you're modeling: Entire system? Specific feature? Data flow?
Create architecture diagram showing:
- Components (services, databases, APIs)
- Data flows
- Trust boundaries (where privilege/context changes)
- External entities (users, third-party services)
Example. An e-commerce checkout flow diagram would display these elements. Web frontend, API server, payment gateway, database, user browser and admin interface appear on it.
Step 2: Threat Identification
Use framework (STRIDE, PASTA, etc.) to systematically identify threats.
Brainstorm session: Gather developers, security team, architects. Walk through architecture asking "what could go wrong?"
Consider each component: For every service, data store, API endpoint, ask about S/T/R/I/D/E threats.
Document threats: Create list of identified threats with descriptions.
Step 3: Risk Assessment
For each threat:
- Rate likelihood (1-5 or Low/Med/High)
- Rate impact (1-5 or Low/Med/High)
- Calculate risk priority
Consider existing controls: If strong mitigations already exist, likelihood decreases.
Step 4: Mitigation Planning
For each significant threat, decide:
- Prevent: Remove the vulnerability (e.g., input validation prevents injection)
- Detect: Can't prevent but can detect and respond (e.g., intrusion detection)
- Respond: Have incident response plan (e.g., backup and recovery for ransomware)
- Accept: Risk is low enough to accept (document why)
Define mitigations: What specific controls will address the threat? Who implements? By when?
Step 5: Validation
Review threat model with:
- Security experts (did we miss threats?)
- Architects (is model accurate?)
- Developers (are mitigations feasible?)
Test assumptions: Security testing validates threat model assumptions.
Update as needed: Threat modeling is iterative.
Maintaining Threat Models
When to Update
Trigger events:
- Adding new features (new attack surface)
- Integrating third-party services (new trust boundaries)
- Architecture changes (different threat landscape)
- Security incidents (validate threat model against reality)
- New threat intelligence (emerging attack techniques)
- Regulatory changes (new requirements)
- Annual minimum review
Continuous Threat Modeling
Problem with traditional approach. Build a detailed threat model during design and then do not update it ever again. The model gets out of date.
Better approach.Lightweight continuous threat modeling. Think about threats in every design discussion, code review and architecture change.
Questions to ask regularly:
- What trust boundaries does this cross?
- What sensitive data does this handle?
- What could an attacker do with this access?
- What existing threats does this affect?
Tools: Integrate threat modeling into development process, including threat modeling sections in design docs, security review checkboxes in code reviews.
"Security is a process, not a product."
Bruce Schneier
Common Pitfalls
1. Boil the Ocean
Mistake: Trying to identify every possible threat, getting overwhelmed, never finishing.
Better: Start with high-level threats, focus on critical assets, iterate.
2. One-and-Done
Mistake: Create threat model once, file it away, never update.
Better: Treat as living document, update with system changes.
3. Purely Theoretical
Mistake: Identify threats but don't assess likelihood. Spend resources on implausible threats.
Better: Consider real threat actors and their capabilities. Focus on plausible threats.
4. Security Theater
Mistake: Threat modeling becomes compliance checkbox rather than genuine risk analysis.
Better: Focus on understanding actual risks to your specific system.
5. Ivory Tower
Mistake. The security team does threat modeling alone without any input from developers who know the system.
Better: Collaborative process involving security, development, architecture, and operations.
6. Analysis Paralysis
Mistake: Perfect threat model before implementing anything.
Better: Sufficient threat modeling to guide initial design, refine as you build.
"The three golden rules to ensure computer security are: do not own a computer; do not power it on; and do not use it."
Robert Morris
Key Takeaways
Threat modeling fundamentals:
- Structured approach to identifying what can go wrong with a system
- Answers: What are we building? What can go wrong? What should we do? Did we do good?
- Proactive (during design) rather than reactive (after exploitation)
- Prioritizes limited security resources on highest-impact defenses
Core components:
- Assets: What you're protecting (data, services, reputation, IP)
- Threat actors: Who might attack (script kiddies, cybercriminals, nation-states, insiders)
- Attack vectors: How attacks happen (phishing, unpatched vulns, weak auth, misconfigurations)
- Threats: Specific ways system could be compromised
- Mitigations: Defenses addressing identified threats
STRIDE framework:
- Systematic approach covering six threat categories
- Spoofing identity, Tampering with data, Repudiation, Information disclosure, Denial of service, Elevation of privilege
- Apply to each system component to ensure comprehensive threat coverage
- Risk = Likelihood × Impact
- Prioritize critical risks (high likelihood and high impact) first
- Consider cost-benefit of mitigations
- Accept risks explicitly when mitigation cost exceeds value
- Document decisions for audit trail
Practical process:
- Define scope and create architecture diagram
- Identify threats systematically using framework
- Assess risk (likelihood and impact) for each threat
- Plan mitigations (prevent, detect, respond, or accept)
- Validate with security experts and testing
- Update as system evolves
Maintenance:
- Living document, not one-time deliverable
- Update when adding features, changing architecture, after incidents
- Continuous lightweight threat modeling better than heavy periodic updates
- Security is process, not event
Common pitfalls to avoid:
- Trying to be comprehensive instead of focused on likely threats
- One-time exercise instead of ongoing practice
- Purely theoretical without considering real attackers
- Compliance checkbox instead of genuine risk analysis
- Security team working in isolation instead of collaboration
- Analysis paralysis instead of pragmatic sufficiency
The fundamental insight. With limited resources, perfect security is impossible. Your specific system and threat landscape tell you through threat modeling which threats actually matter and that gives you the basis to invest focusedly in defenses that bring the most security value.
What Research and Industry Reports Show
There is a lot of empirical research on how well threat modeling works and the data time after time shows that structured approaches beat intuitive or ad hoc methods.
Microsoft's SDL Research: When Microsoft introduced its Security Development Lifecycle (SDL) company-wide beginning in 2004, a response to the security crisis of the early 2000s that included mandatory threat modeling for all products, the company tracked outcomes systematically.
By 2008, Microsoft reported that products developed under the SDL had approximately 50 to 60 percent fewer security vulnerabilities post-deployment than those developed before SDL's introduction.
One of the highest-impact parts of the SDL was identified as its mandatory threat modeling phase. That is because it moved vulnerability discovery from after deployment (where fixing it is expensive) to before implementation (where fixing it is cheap).
Adam Shostack, one of the primary architects of Microsoft's threat modeling methodology, documented these findings in Threat Modeling: Designing for Security (Wiley, 2014).
NIST's Cybersecurity Framework and Threat Intelligence: NIST Special Publication 800-154 gives a methodology through its "Guide to Data-Centric System Threat Modeling." This extends traditional system-level threat modeling to concentrate on data flows and classification.
NIST's research showed that data-centric threat models time after time found risks that system-centric models missed. The risk was especially around data exfiltration paths that cross system boundaries and do not appear in any one system's threat model.
Federal agencies have taken up the framework under Executive Order 14028 (2021). That order called for zero trust architecture across the whole federal government and updated threat modeling practices.
The MITRE ATT&CK Framework: The ATT&CK (Adversarial Tactics, Techniques and Common Knowledge) framework that MITRE built up through systematic analysis of real-world attack data was first made public in 2015. It gives empirical grounding to threat modeling that earlier systems lacked.
ATT&CK records what adversaries actually do based on incident data observed and contributed by security vendors, researchers and government agencies. STRIDE asks what an attacker could do but ATT&CK shows what adversaries do in practice.
Over 200 techniques appear in the Enterprise matrix (with about 400 including sub-techniques) across 14 tactic categories and each technique is backed by real-world incident data.
When organizations ground their threat models in observed adversary behavior through ATT&CK, they report much higher rates of threat coverage and they find real threats that hypothetical analysis misses.
Bruce Schneier on Threat Modeling Process: Security engineering as founded by Bruce Schneier calls for explicit adversary modeling in effective threat modeling. That means not just listing what could go wrong and going further to characterize who wants to cause harm and what resources they bring. This appears in his work in Secrets and Lies (2000) and following essays.
His analysis of decades of security failures shows time after time that companies systematically underestimate how sophisticated and adaptable their adversaries are.
Schneier's "security theater" concept (security measures that create the appearance of protection without substantively reducing risk) applies directly to threat modeling that identifies generic threats without grounding them in the actual threat actors relevant to a specific organization.
Gene Spafford on Worm Propagation and Threat Modeling: Gene Spafford analyzed the 1988 Morris Worm (the first major internet worm that infected about 6,000 machines, around 10 percent of the about 60,000 computers online then). His work set up the basic ideas of how threat models have to take propagation dynamics into account.
Spafford documented that the worm's designers had not expected the scale of impact coming from how multiple independently minor vulnerabilities interacted.
Supporting a key threat modeling principle, this finding shows that threat models have to take into account how vulnerabilities work together and amplify each other, not just individual weaknesses by themselves.
The Verizon DBIR's Threat Intelligence Contribution: The Verizon Data Breach Investigations Report provides the most comprehensive empirical data for calibrating threat likelihood in risk-based threat models.
Organizations can put their own profile against industry data and adjust their threat models as the DBIR's pattern analysis works by categorizing breaches into nine incident patterns that include web application attacks, social engineering, lost and stolen assets and system intrusion.
Based on DBIR data for the healthcare sector, a healthcare organization should weigh ransomware and insider threats heavily in its threat model. For a financial services organization, the model should put heavy weight on social engineering and credential theft.
Real-World Case Studies
Microsoft's Threat Modeling Origin (1999-2002): The formal development of threat modeling as a discipline at Microsoft began as a direct response to catastrophic security failures.
In February 2000 came Windows 2000 and it came with hundreds of security vulnerabilities that attackers were exploiting actively.
In January 2002, Microsoft's Bill Gates sent out a "Trustworthy Computing" memo that put Windows development on hold for two months to concentrate on security review. That move came at a huge financial cost.
The SDL that resulted included a mandatory threat modeling process for all products, using the STRIDE framework developed by Praerit Garg and Loren Kohnfelder in 1999.
Measurable progress in post-deployment security metrics showed that the investment was worth it and made threat modeling a standard practice across the industry.
Significant as the story is, it shows both what happens when threat modeling is skipped and how effective it is when put in place systematically.
The Twitter Account Takeover (2020): On July 15, 2020, attackers compromised the Twitter accounts of Barack Obama, Joe Biden, Elon Musk, Bill Gates, Apple, Uber, and dozens of other high-profile accounts, posting Bitcoin scam messages.
The attack vector was phone-based social engineering of Twitter employees - attackers called Twitter's internal support line posing as colleagues from the IT department, used the social engineering to obtain access to Twitter's internal admin tools, and then used those tools to bypass account authentication entirely.
The attack succeeded in part because Twitter's threat model for privileged internal tools did not adequately characterize the social engineering threat to employees with tool access.
The admin tool access flow should have been subjected to a full STRIDE analysis, which would have spotted the spoofing threat (employees pretending to be IT). The elevation of privilege threat (using social engineering to get admin rights), leading to controls such as callback verification and out-of-band authentication that were not in place.
The SolarWinds Attack as a Threat Modeling Failure (2020): At multiple levels, the SolarWinds attack shows up as a threat modeling failure.
SolarWinds' own threat model for its build and development environment apparently did not adequately cover what a sophisticated nation-state actor trying to get into the build process would do and at the time, industry threat modeling frameworks did not explicitly cover the specific technique of modifying build scripts to put SUNBURST into compiled binaries.
The 18,000 organizations that put in the tampered update had threat models that did not count software supply chain compromise as a major attack vector.
Third, the failure of downstream detection came from threat models that put all their focus on external attack traffic and did not model how legitimate, signed software can act maliciously from inside the network.
Widespread revision of threat models to explicitly include software supply chain as a high-likelihood attack vector for organizations using commercial IT management software was brought about by the attack.
Log4Shell Threat Model Lessons (2021): The Log4Shell vulnerability (CVE-2021-44228) in Apache Log4j, disclosed December 9, 2021, received the maximum CVSS score of 10.0 and was under active exploitation within hours.
Hundreds of millions to billions of devices were affected by the vulnerability that permitted remote code execution through a crafted log message. Log4j was built into such a large part of Java-based software.
Software composition is what the threat modeling lesson covers. Organizations that did asset-level threat modeling without taking transitive dependencies into account (libraries inside software inside other software) found themselves unable to answer quickly the basic question of which of their systems were affected.
Firms that have software bill of materials (SBOM) practices could find out their Log4j exposure within hours. Organizations without SBOM practices took days or weeks to discover it while attackers were still exploiting the vulnerability.
Key Security Metrics and Evidence
Quantitative data on threat modeling outcomes provides concrete evidence for the practice's value.
Cost Savings from Proactive Threat Modeling: IBM's research on the cost to remediate security defects at different lifecycle stages is consistent with the Ponemon Institute's independent findings: defects identified in the design phase cost far less to remediate than those identified post-deployment (commonly cited as 6x to 100x less).
Systematic threat modeling that spots 10 high-severity vulnerabilities during design rather than after deployment saves several million dollars just on remediation costs for most enterprise software projects. That is before adding in breach costs if the vulnerabilities had been exploited.
Threat Coverage Improvement: At the IEEE Symposium on Security and Privacy, research showed that firms that used structured threat modeling systems like STRIDE, PASTA or similar found an average of 2.1 times as many relevant threats as companies that turned to informal brainstorming methods.
30 development teams participated in the study, which found the greatest coverage gaps in informal approaches were in the Repudiation and Elevation of Privilege categories: threats that get systematically underweighted without a structured approach.
MITRE ATT&CK Coverage Rates: Even when they thought their security program was complete, organizations that map their defensive controls to ATT&CK techniques explicitly find they cover about 35 to 40 percent of ATT&CK techniques on average.
Blind spots in detection and response capabilities are time after time identified by the gap analysis that ATT&CK-based threat modeling gives.
Within 12 months, organizations that run ATT&CK-based purple team exercises (in which red team attackers use ATT&CK techniques against blue team defenders) see measurable detection rate gains of 25 to 45 percent.
Insider Threat Detection Improvement: The CERT Division of Carnegie Mellon University's research on insider threats, drawing on hundreds of real cases, found that organizations with insider threat programs that included behavioral threat modeling (defining what abnormal behavior patterns would indicate insider threat risk) detected insider threats 92 days faster on average than organizations without such programs.
Cases found before data exfiltration finished cost on average 71 percent less than those found after and earlier detection went hand in hand with less impact.
Frequency of Threat Model Updates: Research by the Cloud Security Alliance found that 52 percent of organizations that had created threat models had not updated them in more than 12 months, and 23 percent had never updated them after initial creation.
When an organization has a stale threat model, it is much more likely to have a security incident where attack vectors that appeared after the threat model was built were involved. Supply chain attacks, new ways to exploit cloud services and credential stuffing attacks using recently leaked credentials were among them.
Rather than as a one-time design activity, the data supports treating threat model maintenance as a continuous operational practice.
Sources & Further Reading
Shostack, A. (2014). Threat Modeling: Designing for Security. Wiley. DOI: View source
Howard, M., & LeBlanc, D. (2003). Writing Secure Code (2nd ed.). Microsoft Press.
Swiderski, F., & Snyder, W. (2004). Threat Modeling. Microsoft Press.
OWASP. "Threat Modeling." OWASP Foundation. Available: View source
Hernan, S., Lambert, S., Ostwald, T., & Shostack, A. (2006). "Uncover Security Design Flaws Using The STRIDE Approach." MSDN Magazine. Microsoft.
UcedaVelez, T., & Morana, M. M. (2015). Risk Centric Threat Modeling: Process for Attack Simulation and Threat Analysis. Wiley. DOI: View source
Schneier, B. (1999). "Attack Trees." Dr. Dobb's Journal. Available:
Xiong, W., & Lagerström, R. (2019). "Threat Modeling: A Systematic Literature Review." Computers & Security 84: 53-69. DOI: View source
MITRE. "ATT&CK Framework." MITRE Corporation. Available: View source [Framework describing real-world adversary tactics and techniques]
NIST. (2012). "Guide for Conducting Risk Assessments." NIST Special Publication 800-30 Revision 1. DOI: View source
Torr, P. (2005). "Demystifying the Threat Modeling Process." IEEE Security & Privacy 3(5): 66-70. DOI: View source
Microsoft. "SDL Threat Modeling Tool." Available:
Schneier, B. (2000). Secrets and Lies: Digital Security in a Networked World. Wiley.
Anderson, R. (2020). Security Engineering: A Guide to Building Dependable Distributed Systems (3rd ed.). Wiley.
NIST. (2018). "Framework for Improving Critical Infrastructure Cybersecurity." NIST Cybersecurity Framework Version 1.1. DOI: View source
McGraw, G. (2006). Software Security: Building Security In. Addison-Wesley Professional.
Stallings, W., & Brown, L. (2018). Computer Security: Principles and Practice (4th ed.). Pearson.
Howard, M., & Lipner, S. (2006). The Security Development Lifecycle. Microsoft Press.








