Threat Modeling: Finding Security Risks Before Attackers Do

Published by The Cyber Staff on

Person drawing a flowchart diagram on a whiteboard

Threat modeling is a structured way of thinking like an attacker before an attacker does. By mapping out how a system works, what’s valuable in it and how it could be attacked, teams can find and fix design weaknesses early, when changes are cheapest, rather than after a breach or a failed security test.

Person drawing a flowchart diagram on a whiteboard
Most threat models start with a simple diagram of how the system works. Photo: Beatriz Cattel / Unsplash

Four Questions at the Heart of Threat Modeling

Whatever method a team uses, threat modeling comes down to four questions:

  1. What are we working on? Understand the system, its components and how data flows through it.
  2. What can go wrong? Identify realistic threats to that system.
  3. What are we going to do about it? Decide how to mitigate, accept, transfer or avoid each risk.
  4. Did we do a good enough job? Review the results and confirm the mitigations work.

Using STRIDE to Find Threats

The hardest part is often answering “what can go wrong?” in a systematic way. STRIDE is a widely used checklist that groups threats into six categories, each the opposite of a security property you want to protect:

ThreatViolatesExample
SpoofingAuthenticationSigning in with a stolen password
TamperingIntegrityAltering an order total in transit
RepudiationAccountabilityDenying an action because nothing was logged
Information disclosureConfidentialityAn exposed database or overly detailed error message
Denial of serviceAvailabilityFlooding a service until it stops responding
Elevation of privilegeAuthorizationA regular user gaining administrator access

Other approaches include attack trees, which map the different paths to an attacker’s goal; PASTA, a risk-centric process aligned with business objectives; LINDDUN, which focuses on privacy threats; and the MITRE ATT&CK knowledge base of real-world attacker techniques.

A Practical Threat Modeling Process

  1. Define the scope. Decide which system, feature or process you’re modeling, and bring together the people who know it best: developers, administrators and business owners.
  2. Diagram the system. Draw a data flow diagram showing users, components, data stores, third-party services and how information moves between them.
  3. Mark trust boundaries. Note where data crosses from one level of trust to another, such as from the internet to a web server, or from an application to a database. Threats cluster at these boundaries.
  4. Identify your critical assets. Customer data, credentials, payment information and systems the business can’t operate without deserve the most attention.
  5. Find threats. Walk through each component and data flow using STRIDE or another method, and write down what could go wrong.
  6. Rate the risks. Estimate the likelihood and impact of each threat so the most serious issues are addressed first.
  7. Plan mitigations. Assign controls such as stronger authentication, input validation, encryption, logging or access restrictions, along with an owner and a timeline.
  8. Validate and revisit. Confirm the mitigations work, through code review or security testing, and update the model whenever the system changes significantly.
Team collaborating around a table covered in sticky notes
Threat modeling works best as a collaborative exercise. Photo: UX Indonesia / Unsplash

When to Threat Model

  • During design, before a new application, feature or integration is built. This is where it delivers the most value.
  • Before major changes, such as a cloud migration, a new vendor connection or opening a system to the internet.
  • Before a penetration test, so testers can focus their time on the highest-risk areas and realistic attack paths.
  • After an incident, to understand how the attack succeeded and what else might be exposed.

Threat Modeling and Penetration Testing

The two complement each other. A threat model predicts where a system is likely to be weak; a penetration test checks those predictions against reality. Using the threat model to guide testing helps ensure the most important risks are examined, and the test results feed back into an improved model. Pairing them with monitoring tools such as intrusion detection and prevention rounds out a layered defense.

The Bottom Line

Threat modeling doesn’t require special software or a large team. A whiteboard, the right people and four simple questions will uncover risks that are far cheaper to fix in design than in production. If you’d like help running a threat modeling session or planning a penetration test, contact us.


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *