# Find the weakness while it is still a box on a diagram.

> Threat modelling is a structured method for finding threats to a system before it is built or tested. It rests on a data flow diagram with trust boundaries, a systematic analysis such as STRIDE, attack trees and a risk rating. Zyberum, based in Hannover, Germany, runs threat modelling as a facilitated workshop, for software systems and for products as a TARA per ISO/SAE 21434 or as a risk assessment under the Cyber Resilience Act. The output is the model, the threats, the measures and the open risks someone has to accept on purpose.

Threat modeling service run as a workshop: data flow diagram, STRIDE, attack trees and risk rating. Threat modelling and TARA for products and software.

Source: https://zyberum.com/threat-modeling

A design flaw takes five minutes to fix on a whiteboard. After release it takes a redesign. In a threat modelling workshop we walk through the system with your architects and developers the way an attacker would, and turn the result into a prioritised list of security requirements.

## Six building blocks, one result

### Data flow diagram

Components, interfaces, data stores and external actors in one picture. Often the first time everyone in the room looks at the same system.

### Trust boundaries

Where does a piece of data change from untrusted to trusted? Between browser and API, between cloud and device, between diagnostic tester and ECU. That is where most mistakes sit.

### STRIDE

Each element against six questions: spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege. Unglamorous, but nothing gets forgotten.

### Attack trees

For the critical goals we work backwards: what does an attacker have to achieve, step by step, to swap the firmware or read another customer’s data? The cheapest path sets the risk.

### Risk rating

Impact and feasibility per threat, on a scale that fits your field: close to CVSS for software, attack potential for products and vehicles.

### Security requirements

Every threat you do not accept becomes a testable requirement with a priority. This is the list development and test carry on with.

## One method, three flavours

### TARA per ISO/SAE 21434

For vehicles and ECUs: assets, damage and threat scenarios, attack paths, attack feasibility, risk value and treatment decision, in the structure your OEM expects.

### Risk assessment under the CRA

The Cyber Resilience Act requires manufacturers to assess the cybersecurity risks of their product, document the assessment and keep it up to date. A threat model is the technical basis for it.

### Software systems

Web platform, cloud back end, API landscape, applications built on language models: lightweight, per feature or per release, with results that go straight into the backlog as tickets.

## Threat modelling in four steps

1. **Preparation** We read what exists: architecture diagrams, interface lists, requirements. From that we draft a first data flow diagram, so nobody starts the workshop from zero.
2. **Workshop** Remote or on site, with architects, developers and the product owner. We facilitate, ask the awkward questions and bring the knowledge of how such systems get attacked in practice.
3. **Rating and measures** We rate the threats, propose measures and write the security requirements. Whatever stays open is named as a residual risk, along with the person who has to decide on it.
4. **Handover** You get the model in a format your team can maintain. A threat model is not a one-off document: it changes with every new interface.

## Before the architecture is fixed. Or before the pentest starts.

Threat modelling pays off most while decisions are still cheap: where authentication happens, where the keys live, which service may talk to which. Later, many findings can only be handled with compensating measures.

The second good moment is before a penetration test. A pentest without a threat model tests what is visible. With one, it tests what matters: the testers know the critical assets and the suspected attack paths, and spend their time there.

Our facilitators are people who attack systems themselves. It shows in the feasibility rating: we do not guess how hard an attack might be, we know from testing where it fails in practice, and where it does not.

- New product or system architecture
- New interface: cloud connection, app, radio, diagnostics
- Ahead of a pentest, to sharpen the scope
- A customer or a regulation asks for a documented risk analysis

**What you get**

- The model: data flow diagram with trust boundaries
- The threats, rated and with the reasoning written down
- The measures as prioritised security requirements
- The open risks someone has to accept
- On request: test cases for pentest and code review

## From model to evidence

A threat model says what could go wrong. Whether it does go wrong only shows in testing.

### Source code review

Checks whether the measures from the threat model really made it into the code: authentication, key handling, input validation at exactly the boundaries the model shows.

### Penetration test

Attacks the running system along the attack paths from the model. The results flow back: confirmed paths, disproved assumptions, new threats.

## FAQ

**What is the difference between threat modelling and a TARA?**

A TARA (threat analysis and risk assessment) is threat modelling in the form ISO/SAE 21434 defines for vehicles: with assets, damage scenarios, threat scenarios, attack paths, feasibility rating and risk treatment. Threat modelling is the general term and is usually kept lighter in software development, for example STRIDE on a data flow diagram. The core is the same.

**How long does a threat modelling workshop take?**

It depends on the size of the system. A clearly bounded feature or a single device fits into a few workshop sessions; a whole platform is cut into subsystems and handled one after another. Preparation and write-up on our side come on top. We state the effort in the offer.

**How much does a threat modelling service cost?**

The price follows scope and depth: the number of components and interfaces, and whether a formal TARA with full documentation is needed. After the free consultation you get a written fixed-price offer.

**Who should take part in the workshop?**

The people who really know the system: the architect, one or two developers and someone who owns the functional requirements. Plus someone who is allowed to accept risks, at least for the closing round. A small group works better than a full room.

**Do I need threat modelling if I am having a pentest anyway?**

A pentest finds vulnerabilities in the built system, in the time available. Threat modelling finds design flaws earlier and tells the pentest where to look. Doing both gets more out of the same test days. For many systems a compact threat model right before the test is a good start.

**Is threat modelling mandatory under the Cyber Resilience Act?**

The Cyber Resilience Act does not prescribe a particular method. Manufacturers do have to assess the cybersecurity risks of their product, document the assessment and take it into account during development and maintenance. Threat modelling is a common way to produce that risk assessment on solid technical ground.

---
Zyberum GmbH. Canonical page: https://zyberum.com/threat-modeling
