Threat model

On this page 7

A threat model is a structured representation of the security risks to a system: what assets it holds, who might attack them, through which paths, and which controls reduce the danger. Among the security fundamentals of cybersecurity, it is the reasoning that connects abstract goals such as the CIA triad to concrete design decisions, so that defenses are chosen for the threats that actually matter instead of by habit.

The term covers both the activity of threat modeling and its result, usually a diagram plus a list of threats, ratings and mitigations. A threat model is never finished: it is revised whenever the architecture, the data handled or the attackers’ capabilities change.

The questions a threat model answers

Most methods reduce threat modeling to four core questions: what is being built, what can go wrong, what will be done about it, and whether the analysis was good enough. Answering them in order prevents the common failure of listing threats without ever deciding on controls.

ElementQuestion answeredTypical content
AssetsWhat must be protectedCustomer data, credentials, availability of a service
Threat actorsWho could cause harmCriminal groups, insiders, automated bots, nation states
Trust boundariesWhere privilege or control changesInternet to web tier, application to database
ThreatsWhat can go wrongSpoofed identity, data tampering, denial of service
MitigationsWhat reduces each threatAuthentication, encryption, rate limiting, logging
AssumptionsWhat is taken as givenThe cloud provider isolates tenants correctly
Core elements of a threat model

Trust boundaries deserve particular attention, because most serious threats appear where data crosses from a less trusted zone into a more trusted one. The set of such entry points forms the attack surface, and a good threat model makes it explicit.

How threat modeling is carried out

A practical threat modeling session follows a repeatable sequence and usually takes from one hour for a small feature to several days for a complex platform.

  1. Define scope and security objectives, including which assets matter and any regulatory requirements.
  2. Draw a data flow diagram showing processes, data stores, external entities, flows and trust boundaries.
  3. Identify threats systematically for each element, often with a checklist such as STRIDE.
  4. Rate the risks by likelihood and impact so that effort goes to the worst problems first.
  5. Decide on responses: mitigate, transfer, accept with justification, or eliminate the feature.
  6. Validate and track mitigations as engineering tasks, and revisit the model after major changes.

The best results come from mixed teams: developers who know how the system really works, security specialists who know attack techniques, and operations staff who know the deployment. A model produced by a security team alone tends to miss real data flows.

Common threat modeling methods

Several established methods structure the work. They differ mainly in what they put at the center: system components, attackers, risks to the business or privacy.

MethodFocusBest suited for
STRIDESix threat categories per system elementSoftware and architecture reviews
PASTASeven-stage, risk-centric processBusiness-critical applications
Attack treesGoal decomposed into attacker stepsAnalyzing one high-value target
LINDDUNPrivacy threat categoriesSystems processing personal data
MITRE ATT&CK mappingKnown adversary techniquesDetection and defensive coverage planning
Widely used threat modeling methods

STRIDE is the most common starting point. Its categories map neatly onto security properties, which makes it easy to check whether each element of a diagram has been considered.

CategoryViolated propertyTypical mitigation
SpoofingAuthenticationStrong authentication, mutual TLS
TamperingIntegritySignatures, hashes, access control
RepudiationNon-repudiationTamper-evident audit logs
Information disclosureConfidentialityEncryption, least privilege
Denial of serviceAvailabilityRate limits, redundancy, quotas
Elevation of privilegeAuthorizationInput validation, sandboxing, least privilege
STRIDE categories and the property each violates

Threat models in relation to other security concepts

A threat model is the analytical core that gives other security fundamentals their purpose. The CIA triad defines what security means, while the threat model determines which violations are plausible for a given system and how much protection each deserves.

Design principles such as least privilege and zero trust are typical outputs of threat modeling rather than substitutes for it. A risk assessment, by comparison, is usually broader and organizational, whereas a threat model is tied to a specific system or feature.

Pitfalls that weaken threat models

Threat models fail less often from wrong techniques than from poor scope and follow-through. The table lists frequent weaknesses and remedies.

WeaknessConsequenceRemedy
Model done once and filedOutdated after the next releaseReview on every significant design change
Diagram does not match realityReal flows remain unanalyzedBuild it with the engineers who run the system
Only external attackers consideredInsider and supply chain risks missedInclude insiders, vendors and dependencies
Threats listed without decisionsNo change in the productTrack each mitigation as a work item
Unstated assumptionsHidden single points of failureWrite assumptions down and test them
Frequent weaknesses and their remedies

Another trap is aiming for completeness. No threat model lists every conceivable attack; its value lies in finding the most consequential threats early, while changes are still cheap.

Stripped to the essentials

A threat model is thinking like a burglar before building the house. The team asks what is valuable, who would want it, how they might get in, and which locks, alarms or walls would stop them.

Doing this on paper first is far cheaper than discovering the weak spots after a break-in. The main benefit is spending security effort where the real risks are rather than everywhere at once.

Where it is applied

A health clinic plans a patient portal where patients view lab results and message their doctors. Before development, the architect, two developers and a security engineer spend an afternoon drawing the data flows: the browser, an API gateway, the portal application, the records database and an email notification service, with trust boundaries at the internet edge and the database.

Walking through STRIDE, the team identifies that notification emails could disclose lab results if they contained details, that account recovery by email could be spoofed, and that missing audit logs would make disputes impossible to resolve. The resulting decisions are concrete: emails contain only a link, recovery requires a second factor, and every record view is logged. These three changes cost days at design time instead of weeks after launch.