COMP-220 · Lesson 6 of 12 · 20 min
Threat modelling for a test
▶ Video coming soon A video version of this lesson is on the way.
Ironwhistle held a threat modelling workshop with Prairiefold on Tuesday, September 22, 2026, in a meeting room at the credit union's head office. Gwendolyn Tran brought Felix Aberdeen, the portal's development lead and the manager of member services. Dario ran the session; Priyanka drew diagrams on the whiteboard; Tobias took notes. Dario opened by saying the workshop had one purpose: to make sure the next six weeks of testing were spent on the attacks that would actually hurt Prairiefold, not the ones that were most fun to try.
Threat modelling is the structured process of identifying what an organization needs to protect, who might attack it, how, and which threats matter most. In software development it is a design activity. In a penetration test it serves a narrower purpose: it ranks the possible attacks so that limited testing time goes to the most important ones, and it gives the report a rationale for what was and was not tested. PT0-003 objective 1.3 names three threat modelling frameworks: STRIDE, DREAD and OCTAVE. This lesson covers each, along with threat actors, data flow diagrams and attack trees.
Four questions
Most threat modelling approaches reduce to four questions, which Dario wrote at the top of the whiteboard. What are we working on? (the system and its assets). What can go wrong? (the threats). What are we going to do about it? (controls, or in a test, which threats to test). Did we do a good job? (validation, which in a test is the test itself). The frameworks differ mainly in how they answer the second and third questions.
Assets and threat actors
The workshop started with assets. Prairiefold's list was short and clear: member personal and financial information; the ability to move money, through the portal, the branches and internal payment systems; staff credentials, especially privileged ones; and the credit union's reputation and regulatory standing. Each asset suggests where an attacker would aim.
Next came threat actors: who might attack, with what capability and motivation. Security courses use similar categories.
| Threat actor | Typical motivation | Capability | Relevance to Prairiefold |
|---|---|---|---|
| Organized crime, including ransomware groups | Money | Moderate to high; well-resourced and persistent | High: credit unions are attractive ransomware and fraud targets |
| Fraudsters targeting members | Money | Low to moderate; account takeover, social engineering | High: the portal is the obvious route |
| Malicious or careless insider | Money, grievance, or no intent at all | Varies; has legitimate access | Medium: many staff can reach member data |
| Hacktivist | Ideology or publicity | Low to moderate | Low |
| Nation-state actor | Espionage or disruption | Very high | Low as a direct target; possible as supply chain spillover |
| Unskilled attacker using public tools | Curiosity or opportunity | Low | Medium against the external perimeter |
This ranking shaped the test. Organized crime and account-takeover fraud led to emphasis on external access, phishing, credential attacks against the portal and paths from a compromised workstation to payment systems. The insider risk led to the test case of what an ordinary staff account could reach. Nation-state techniques were not ignored, but there was no point spending days emulating an adversary Prairiefold was unlikely to face directly.
Data flow diagrams and trust boundaries
For the portal, Priyanka drew a data flow diagram: external entities (the member's browser), processes (the portal application), data stores (the member database) and the flows between them. She then marked trust boundaries, the places where data crosses from a less trusted zone to a more trusted one. Threats cluster at trust boundaries, because that is where input must be checked, identity confirmed and permissions enforced.
STRIDE
STRIDE was developed at Microsoft in 1999 by Loren Kohnfelder and Praerit Garg. It is a mnemonic for six categories of threat, each the violation of a security property. Applying STRIDE means walking through each element and flow of a diagram and asking which of the six could apply.
| Letter | Threat | Property violated | Portal example from the workshop |
|---|---|---|---|
| S | Spoofing | Authentication | An attacker logs in as a member using stolen or guessed credentials |
| T | Tampering | Integrity | A request is altered to change a transfer amount or destination |
| R | Repudiation | Non-repudiation | A member disputes a transfer and the logs cannot show who made it |
| I | Information disclosure | Confidentiality | One member views another member's statements by changing an account number in a request |
| D | Denial of service | Availability | Repeated failed logins lock members out of their accounts |
| E | Elevation of privilege | Authorization | A member reaches staff-only administration functions |
STRIDE's strength is that it is systematic and easy to teach: a team with a diagram can produce a reasonably complete list of threats in an afternoon. Its weakness is that it identifies threats without ranking them, so it is usually paired with a scoring method. For the test plan, each STRIDE threat became a candidate test case. The denial of service threat was noted but not tested, because the RoE excluded denial of service; Priyanka instead planned to review the lockout design and report on it.
DREAD
DREAD, also originating at Microsoft, rates each threat on five factors, usually from 0 to 10, and averages or sums them. The PT0-003 acronym list expands it as damage potential, reproducibility, exploitability, affected users and discoverability.
| Factor | Question asked |
|---|---|
| Damage potential | How bad would it be if the attack succeeded? |
| Reproducibility | How reliably can the attack be repeated? |
| Exploitability | How much skill and effort does the attack take? |
| Affected users | How many people or systems would be affected? |
| Discoverability | How easy is the weakness to find? |
The workshop rated four candidate threats using DREAD.
The chart illustrates why DREAD is both useful and controversial. It forces a conversation about each factor, which surfaced facts nobody had written down; Felix, for instance, mentioned that the VPN appliance served every remote worker and every branch backup link, which pushed its affected users score to 10. But averaging treats all factors equally, so verbose error pages, a low-damage issue that is easy to find and reproduce, tie with the VPN appliance. Scores are also subjective and vary between raters. Microsoft itself stopped recommending DREAD internally for these reasons. Dario used DREAD as a discussion tool, then adjusted the ranking by judgement, giving damage potential the most weight. He recorded both the scores and the adjustment in the test plan.
OCTAVE
OCTAVE (Operationally Critical Threat, Asset, and Vulnerability Evaluation) was developed at Carnegie Mellon University's Software Engineering Institute, through its CERT division. Unlike STRIDE and DREAD, which focus on technical threats to a system, OCTAVE is an organization-wide, risk-based assessment that the organization runs itself, led by a small interdisciplinary team. It identifies critical information assets, the threats to them and the organizational and technical vulnerabilities that expose them, and produces a risk mitigation strategy. Lighter variants followed: OCTAVE-S for smaller organizations and OCTAVE Allegro, which focuses on information assets and can be run with fewer resources.
OCTAVE fits a penetration test indirectly. A client that has done an OCTAVE-style assessment already knows its critical assets and top risks, and the tester can scope the test to validate the controls protecting them. Gwendolyn had run an OCTAVE Allegro exercise two years earlier, and its asset profiles, especially for member data and payment processes, saved the workshop an hour.
| STRIDE | DREAD | OCTAVE | |
|---|---|---|---|
| Purpose | Identify threats to a system | Rate and rank threats | Assess organizational information security risk |
| Scope | One system or application design | A list of identified threats | The whole organization or its critical assets |
| Who runs it | Developers, architects, testers | The same team, after identification | An internal interdisciplinary team |
| Output | Threats by category | Numeric scores | Asset profiles, risks and a mitigation strategy |
| Main weakness | Does not rank | Subjective; equal weighting | Time-consuming; not system-specific |
Attack trees
An attack tree puts a goal at the root, such as "transfer money out of a member account", and breaks it into branches showing the ways to achieve it, each of which breaks into sub-steps. Branches may be OR (any child achieves the parent) or AND (all children are needed). Attack trees are not on the objective 1.3 list, but testers use them constantly to plan attack chains, and they show the client why a combination of individually moderate weaknesses can be serious. The workshop produced a small tree for the money-transfer goal. One branch, phishing a staff member, then using their access to an internal payment application, then approving a transfer without a second approver, showed that a test case about dual control on payments was needed. That became a question for Felix, not a technical test: the payment application required dual approval above a threshold, and the report later checked whether that control could be bypassed.
From threat model to test plan
The output of the workshop was a ranked list of threats, each mapped to a test case, a technique source (often an ATT&CK technique or an ASVS requirement) and a priority. Tobias typed it up the same evening.
| Priority | Threat | Test case | Notes |
|---|---|---|---|
| 1 | Ransomware entry via remote access | Assess the VPN appliance and external services for known exploitable weaknesses | External phase, week 1 |
| 2 | Member account takeover through the portal | Test authentication, password reset and session handling in staging | Priyanka, weeks 2 and 3 |
| 3 | Member data reachable by any staff account | From a standard account, enumerate access to shares and applications | Internal phase |
| 4 | Phishing leading to workstation compromise | Simulation with HR consent; measure reporting as well as clicks | Window agreed with HR |
| 5 | Card environment reachable from branches | Segmentation test from a branch workstation | Required by the card standard |
| 6 | Physical access to network ports | Tailgating and unattended-port checks at head office and one branch | Letter carried; landlord consent obtained |
The ranking also told Dario what to drop if time ran short. Lesson 8 shows that it did, when the phishing window moved and the physical test had to be compressed.
Modelling people and premises
STRIDE and data flow diagrams suit software, but Prairiefold's engagement also included phishing and physical testing, and those components need threat modelling too. For the physical test, the workshop asked who might try to enter a branch or head office and why: a thief after cash or equipment, a fraudster wanting a moment at an unattended teller terminal, or an attacker wanting to plug a small device into a network port. Each motive points at different controls and therefore different test cases: cash handling procedures are outside a penetration test, but unattended terminals, open network ports in meeting rooms and staff willingness to challenge strangers are squarely within it.
For phishing, the questions were which pretexts real attackers use against credit union staff, which roles receive the most targeted email, and what an attacker gains if a message works. Felix pointed out that branch staff rarely had administrative rights, while the IT service desk did, which shaped how the simulation results would be weighed in the report. The workshop also recorded what the phishing test was not meant to show: it would measure clicks and reports, not collect real passwords, and nobody would be named.
Revisiting the model during testing
A threat model is a planning tool, not a contract. Findings during testing can change the picture, and the ranking should change with it. If the external phase reveals a weakness that gives direct internal access, internal test cases that assumed a phished workstation may become less important than following the new path. Dario reviewed the ranked list at each Friday status call, and twice moved items up or down with Gwendolyn's agreement, recording each change. Lesson 8 shows the most significant change, when the phishing window moved.
Worked problem
Applying STRIDE to one flow
Apply STRIDE to the flow from the portal application to the password reset email service. Name a plausible threat for each letter that applies.
Show solution
- Spoofing: an attacker triggers a reset for someone else's account, or the email appears to come from someone else.
- Tampering: the reset link or token is altered, or the destination email address is changed in the request.
- Repudiation: reset requests are not logged with source and time, so misuse cannot be traced.
- Information disclosure: the reset token is predictable, reusable or leaked in a link that is logged; elevation of privilege: a reset grants access to a different or more privileged account. Denial of service: mass reset requests flood members' inboxes.
Answer: All six letters can apply. The most important for testing are tampering and information disclosure of the token, which became test cases for Priyanka.
Common mistakes
MistakeTreating DREAD scores as objective measurements.
InsteadUse them to structure discussion, then apply judgement and record the reasoning.
MistakeUsing STRIDE alone to prioritize testing.
InsteadSTRIDE identifies threats; pair it with a ranking method.
MistakeConfusing OCTAVE with a technical testing method.
InsteadOCTAVE is an organization-wide, self-directed risk assessment.
MistakeModelling every possible threat actor equally.
InsteadWeight actors by their likely motivation and capability against this client.
MistakeSkipping the threat model because the scope is already signed.
InsteadThe model decides how time is spent inside the scope and justifies the choices in the report.
Summary and key terms
- Threat modelling in a test ranks possible attacks so testing time goes where it matters and the report can explain coverage.
- Start with assets and threat actors weighted by motivation and capability.
- Data flow diagrams and trust boundaries show where threats concentrate.
- STRIDE identifies spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege.
- DREAD scores damage, reproducibility, exploitability, affected users and discoverability, but is subjective.
- OCTAVE is a self-directed, organization-wide risk assessment from Carnegie Mellon's SEI; attack trees show how weaknesses combine.
- Threat modelling
- A structured process for identifying and ranking threats to assets.
- STRIDE
- A threat categorization: spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege.
- DREAD
- A threat rating scheme: damage potential, reproducibility, exploitability, affected users, discoverability.
- OCTAVE
- Operationally Critical Threat, Asset, and Vulnerability Evaluation: an organization-wide risk assessment method.
- Trust boundary
- A point where data or control passes between zones of different trust.
- Attack tree
- A diagram with an attacker goal at the root and branches showing ways to achieve it.
- Threat actor
- A person or group that might attack, characterized by motivation and capability.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Which STRIDE category does a missing audit log support?
Show answer
Repudiation.
Why did verbose error pages score as high as the VPN appliance in DREAD?
Show answer
Averaging gave equal weight to discoverability and reproducibility, which were high, despite low damage.
Who typically runs an OCTAVE assessment?
Show answer
An internal interdisciplinary team within the organization.
What does an AND node in an attack tree mean?
Show answer
All of its child steps are needed to achieve the parent goal.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.