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 actors considered in the Prairiefold workshop.
Threat actorTypical motivationCapabilityRelevance to Prairiefold
Organized crime, including ransomware groupsMoneyModerate to high; well-resourced and persistentHigh: credit unions are attractive ransomware and fraud targets
Fraudsters targeting membersMoneyLow to moderate; account takeover, social engineeringHigh: the portal is the obvious route
Malicious or careless insiderMoney, grievance, or no intent at allVaries; has legitimate accessMedium: many staff can reach member data
HacktivistIdeology or publicityLow to moderateLow
Nation-state actorEspionage or disruptionVery highLow as a direct target; possible as supply chain spillover
Unskilled attacker using public toolsCuriosity or opportunityLowMedium 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.

A data flow diagram. A member browser on the left connects across a dashed red trust boundary to the portal web application, which connects to a member database and sends to a password reset email service. Six gold circles labelled S, T, R, I, D and E sit at points on the diagram. A legend explains: spoofing, log in as another member; tampering, change a transfer amount; repudiation, deny an action with weak logs; information disclosure, read other records; denial of service, lock out accounts; elevation of privilege, reach admin functions.
STRIDE applied to the staging member portal, with threats placed where they apply.

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.

STRIDE categories with examples from the Prairiefold portal.
LetterThreatProperty violatedPortal example from the workshop
SSpoofingAuthenticationAn attacker logs in as a member using stolen or guessed credentials
TTamperingIntegrityA request is altered to change a transfer amount or destination
RRepudiationNon-repudiationA member disputes a transfer and the logs cannot show who made it
IInformation disclosureConfidentialityOne member views another member's statements by changing an account number in a request
DDenial of serviceAvailabilityRepeated failed logins lock members out of their accounts
EElevation of privilegeAuthorizationA 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.

The five DREAD factors.
FactorQuestion asked
Damage potentialHow bad would it be if the attack succeeded?
ReproducibilityHow reliably can the attack be repeated?
ExploitabilityHow much skill and effort does the attack take?
Affected usersHow many people or systems would be affected?
DiscoverabilityHow easy is the weakness to find?

The workshop rated four candidate threats using DREAD.

A grouped bar chart of DREAD ratings for four threats, each with five bars. Password reset token reuse averages 7.8; unpatched VPN appliance averages 8.0; tailgating at head office averages 6.0; verbose error pages averages 8.0 despite a damage score of only 3.
DREAD ratings from the workshop. The verbose error pages score shows the method's main weakness.

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.

The three threat modelling frameworks compared.
STRIDEDREADOCTAVE
PurposeIdentify threats to a systemRate and rank threatsAssess organizational information security risk
ScopeOne system or application designA list of identified threatsThe whole organization or its critical assets
Who runs itDevelopers, architects, testersThe same team, after identificationAn internal interdisciplinary team
OutputThreats by categoryNumeric scoresAsset profiles, risks and a mitigation strategy
Main weaknessDoes not rankSubjective; equal weightingTime-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.

Top of the Prairiefold test plan produced by the workshop.
PriorityThreatTest caseNotes
1Ransomware entry via remote accessAssess the VPN appliance and external services for known exploitable weaknessesExternal phase, week 1
2Member account takeover through the portalTest authentication, password reset and session handling in stagingPriyanka, weeks 2 and 3
3Member data reachable by any staff accountFrom a standard account, enumerate access to shares and applicationsInternal phase
4Phishing leading to workstation compromiseSimulation with HR consent; measure reporting as well as clicksWindow agreed with HR
5Card environment reachable from branchesSegmentation test from a branch workstationRequired by the card standard
6Physical access to network portsTailgating and unattended-port checks at head office and one branchLetter 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
  1. Spoofing: an attacker triggers a reset for someone else's account, or the email appears to come from someone else.
  2. Tampering: the reset link or token is altered, or the destination email address is changed in the request.
  3. Repudiation: reset requests are not logged with source and time, so misuse cannot be traced.
  4. 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.

  1. Which STRIDE category does a missing audit log support?

    Show answer

    Repudiation.

  2. 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.

  3. Who typically runs an OCTAVE assessment?

    Show answer

    An internal interdisciplinary team within the organization.

  4. 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.

Take the quiz