Security Threat Modeling

STRIDE — Threat Modeling Framework

Six categories of security threats. For every element in your system, ask: what can go wrong here?

STRIDE
S

Spoofing

Pretending to be something or someone other than yourself

QUESTIONS TO CONSIDER

  • Can an attacker pretend to be another user?
  • Can credentials be stolen or forged?
  • Is authentication properly implemented?
  • Are there session hijacking vulnerabilities?

COMMON MITIGATIONS

Multi-factor authentication
Strong password policies
Certificate-based authentication
OAuth/OIDC implementation
Session management best practices
Phishing-resistant MFA (passkeys / WebAuthn / FIDO2)

MITRE ATT&CK

T1078Valid Accounts
T1557Adversary-in-the-Middle
T1110Brute Force

OWASP

A07:2021 Identification & Authentication Failures
API2:2023 Broken Authentication

CWE

CWE-287Improper Authentication
CWE-290Authentication Bypass by Spoofing
CWE-384Session Fixation

REAL-WORLD: Colonial Pipeline (2021)

A single leaked VPN credential with no MFA let attackers in, halting fuel supply to the US East Coast.

T

Tampering

Modifying data or code without authorization

QUESTIONS TO CONSIDER

  • Can data be modified in transit?
  • Can stored data be altered?
  • Is input validation properly implemented?
  • Can code or configuration be modified?

COMMON MITIGATIONS

Input validation and sanitization
Digital signatures
Integrity checks (checksums, hashes)
Access control lists
Encryption for data at rest and in transit
Supply-chain integrity (SLSA provenance, signed artifacts)

MITRE ATT&CK

T1565Data Manipulation
T1195Supply Chain Compromise
T1505Server Software Component

OWASP

A08:2021 Software & Data Integrity Failures
A03:2021 Injection

CWE

CWE-345Insufficient Verification of Data Authenticity
CWE-89SQL Injection
CWE-494Download of Code Without Integrity Check

REAL-WORLD: SolarWinds (2020)

Attackers tampered with the build pipeline and shipped signed-but-malicious Orion updates to ~18,000 organizations.

R

Repudiation

Claiming to not have performed an action

QUESTIONS TO CONSIDER

  • Are all actions properly logged?
  • Can audit logs be tampered with?
  • Is there non-repudiation for critical actions?
  • Are timestamps accurate and protected?

COMMON MITIGATIONS

Comprehensive audit logging
Tamper-proof log storage
Digital signatures for transactions
Time stamping services
Centralized log management
Append-only / WORM log storage

MITRE ATT&CK

T1070Indicator Removal (log deletion)
T1562.008Disable Cloud Logs

OWASP

A09:2021 Security Logging & Monitoring Failures

CWE

CWE-778Insufficient Logging
CWE-117Improper Output Neutralization for Logs
CWE-223Omission of Security-relevant Information

REAL-WORLD: APT log-clearing (NotPetya & others)

Intruders routinely clear or disable logs to deny their actions and blind forensics — undetected dwell time is often months.

I

Information Disclosure

Exposing information to unauthorized parties

QUESTIONS TO CONSIDER

  • Is sensitive data properly encrypted?
  • Are error messages revealing too much?
  • Is data classification properly implemented?
  • Are there data leakage vulnerabilities?

COMMON MITIGATIONS

Data encryption (at rest and in transit)
Access control and authorization
Data masking and anonymization
Secure error handling
Data loss prevention (DLP)
Block egress to cloud metadata (IMDSv2, SSRF controls)

MITRE ATT&CK

T1530Data from Cloud Storage
T1552Unsecured Credentials
T1213Data from Information Repositories

OWASP

A01:2021 Broken Access Control
A02:2021 Cryptographic Failures
API3:2023 Broken Object Property Level Authorization

CWE

CWE-200Exposure of Sensitive Information
CWE-209Information Exposure Through an Error Message
CWE-311Missing Encryption of Sensitive Data

REAL-WORLD: Capital One (2019)

SSRF reached the IMDSv1 endpoint, stole an over-privileged role, and exfiltrated 106M records from S3.

D

Denial of Service

Denying or degrading service to users

QUESTIONS TO CONSIDER

  • Can the system be overwhelmed with requests?
  • Are there resource exhaustion vulnerabilities?
  • Is rate limiting implemented?
  • Are there single points of failure?

COMMON MITIGATIONS

Rate limiting and throttling
Load balancing
Auto-scaling
CDN and DDoS protection
Resource quotas and limits
Anycast + WAF; circuit breakers and backpressure

MITRE ATT&CK

T1498Network Denial of Service
T1499Endpoint Denial of Service
T1496Resource Hijacking

OWASP

API4:2023 Unrestricted Resource Consumption

CWE

CWE-400Uncontrolled Resource Consumption
CWE-770Allocation of Resources Without Limits
CWE-789Memory Allocation with Excessive Size Value

REAL-WORLD: Mirai / Dyn DNS (2016)

An IoT botnet pushed ~1 Tbps at Dyn, taking down Twitter, GitHub, Netflix and Reddit for hours.

E

Elevation of Privilege

Gaining capabilities without proper authorization

QUESTIONS TO CONSIDER

  • Can users access unauthorized resources?
  • Is the principle of least privilege followed?
  • Are there privilege escalation vulnerabilities?
  • Is authorization properly checked at all levels?

COMMON MITIGATIONS

Principle of least privilege
Role-based access control (RBAC)
Regular privilege audits
Separation of duties
Secure defaults
Just-in-time access (JIT) and attribute-based access control (ABAC)

MITRE ATT&CK

T1068Exploitation for Privilege Escalation
T1548Abuse Elevation Control Mechanism
T1098Account Manipulation

OWASP

A01:2021 Broken Access Control
API1:2023 Broken Object Level Authorization (BOLA)
API5:2023 Broken Function Level Authorization

CWE

CWE-269Improper Privilege Management
CWE-862Missing Authorization
CWE-639Authorization Bypass Through User-Controlled Key

REAL-WORLD: Dirty Pipe — Linux LPE (CVE-2022-0847)

A kernel flaw let any local user overwrite read-only files and escalate to root; least privilege + patching limit blast radius.

STRIDE per element

Not every threat applies to every element. Map each part of your data-flow diagram to the categories that fit it.

ElementSTRIDE
External Entity····
Process
Data Store··
Data Flow···
Trust Boundary······

Apply it to your system

STRIDE is the “what can go wrong”. Model your own system, or see it worked through in examples.