CYS 401 · Chapter 3

Understand & Apply
Threat Modeling

Concepts, Methodologies, and Modern Applications in Cybersecurity

STRIDE PASTA OCTAVE Supply Chain Risk Elements Proactive vs Reactive
scroll
01

What Is Threat Modeling?

Threat Modeling is a structured security process used to identify potential threats before they become real attacks. Think of it as security planning done before something goes wrong.

🎯

Identify Threats

Spot what could go wrong in a system - before attackers do.

🔍

Analyze Vulnerabilities

Understand how threats could exploit weaknesses in the system.

💎

Determine Impact

Evaluate which assets are most valuable and how much damage could occur.

🛡️

Define Controls

Design appropriate security countermeasures to reduce or eliminate risk.

02

Key Terminology

You must master these terms - they're the building blocks of every threat modeling question.

Asset
Any element with value to an organization - data, systems, processes, reputation. Must be protected.
Threat
A potential event that could cause unwanted impact. It hasn't happened yet - it's a possibility.
Attack
An actual event that causes unwanted impact. A threat that became real.
Vulnerability
The absence of a safeguard or a system weakness that a threat could exploit to cause damage.
Threat Agent
The entity (person or process) that initiates the threat - the attacker or source of danger.
Exploit
What happens when a threat agent finds a vulnerability and initiates the threat - the vulnerability is exploited.
Control / Countermeasure
Any step or action to prevent a threat from exploiting a vulnerability, or to minimize damage from an exploit.
Risk
The likelihood that a threat will exploit a vulnerability, resulting in harm to an asset. Risk = Threat + Vulnerability + Asset + Damage.
💡

Exam Trick: Threat vs. Attack

Threat = potential event (hasn't happened). Attack = actual event (it happened). This distinction frequently appears in multiple choice questions.

📘 Terminology Example

A hacker (threat agent) identifies an unpatched SQL injection flaw (vulnerability) in a university portal. The hacker is a threat. When they actually run the SQL attack, it becomes an attack. The hacker exploits the vulnerability. The university must implement input validation (control) to prevent this. The asset is student grade records. The overall risk = likelihood the hacker will actually do this × how damaging it would be.

03

When Is Threat Modeling Performed?

✅ Proactive (Preferred)

Also called the Defensive Approach. Performed during system design and development - security is built in from the start. Predicts threats and designs defenses before deployment instead of relying on patches later.

This is the preferred and more effective approach - always select proactive over reactive when asked which is better.

⚠️ Reactive (Adversarial)

Also called the Adversarial Approach. Performed after deployment or after an incident. Based on observed attacks or failures. Useful but less ideal than proactive modeling.

🔄

Reactive doesn't mean bad - it means you're responding to real evidence. But it's slower and costlier to fix issues post-deployment.

04

Identifying Threats

Three primary steps to identify threats in any system:

1

Identify All Technologies Involved

Map out the entire system - hardware, software, networks, data flows, and external connections.

2

Identify Possible Attacks on Each Element

Consider ALL attack types: logical/technical (SQL injection, XSS), physical (theft, destruction), and social (phishing, impersonation).

3

Define Prevention Measures

For each identified attack, specify countermeasures - encryption, access controls, firewalls, training, etc.

There are three key approaches to identifying what to focus on:

🗃️ Asset-Focused

Start from what's valuable. Use asset valuation to prioritize protection. "What is worth protecting?" - data, systems, money, reputation, intellectual property.

👤 Attacker-Focused

Identify potential attackers first. "Who would attack us and why?" - hackers, insiders, competitors, nation-states, malware authors.

💻 Software-Focused

If you develop software, identify threats to the software itself - buffer overflows, injection attacks, insecure APIs, authentication flaws.

🎓 University Learning Platform - From Course Slides

A university's online learning platform (assignments, quizzes, grades) was threat-modeled using the asset-focused approach:

Asset Threat Actor Vulnerability Threat Scenario
Student grades Student Weak authentication Student changes their own grade
Exam content Hacker SQL injection Hacker extracts upcoming exam questions
Faculty login Hacker Phishing, no MFA Hacker accesses faculty account to manipulate data
Platform uptime Insider Misconfigured permissions Staff deletes files causing downtime
05

STRIDE Threat Model

STRIDE is a threat categorization scheme developed by Microsoft. It classifies threats by what security property they violate. While typically used for application threats, it applies to network and other threats too.

🧠

Memory Trick

Each letter violates a specific CIA+ property: Spoofing→Authentication, Tampering→Integrity, Repudiation→Non-repudiation, Info Disclosure→Confidentiality, DoS→Availability, Elevation→Authorization.

Threat
What It Is
Property Violated
Mitigation
SSpoofing
Gaining access through a falsified identity - pretending to be someone/something else. E.g., fake login, domain spoofing.
Authentication
Digital signatures, Active Directory, LDAP passwords, crypto tunnels
TTampering
Unauthorized changes or manipulation of data - modifying files, packets, or code in transit or at rest.
Integrity
Hashing, digital signatures, ACLs, crypto tunnels
RRepudiation
Ability to deny having performed an action. "I didn't send that email." "I didn't modify that file."
Non-repudiation
Digital signatures, logging, audit trails, customer history
IInfo Disclosure
Revelation of private, confidential, or controlled information to unauthorized entities.
Confidentiality
Encryption, ACLs, PGP, SSL/TLS
DDenial of Service
Preventing authorized use of a resource through connection overloading or traffic flooding.
Availability
Load balancers, more capacity, rate limiting
EElevation of Privilege
A limited user account becomes one with greater privileges, powers, and access than intended.
Authorization
Isolation, input validation, firewalls, sandboxing
📗 STRIDE Example 1 - Web Application (From Slides)
STRIDEThreat Scenario
S - SpoofingAttacker logs in using stolen credentials
T - TamperingUser modifies form data to change prices
R - RepudiationUser performs a transaction and denies it later
I - Info DisclosureSensitive user data exposed via API
D - Denial of ServiceFlooding the server with requests to crash it
E - Elevation of PrivilegeRegular user exploits a bug to become admin
📗 STRIDE Example 2 - Online Banking App (From Slides)
STRIDEThreat Scenario
S - SpoofingAttacker logs in using stolen credentials
T - TamperingModifying transfer amount in transit
R - RepudiationDenying a fraudulent transfer was made
I - Info DisclosureAccount balances exposed via unsecured API
D - Denial of ServiceFlood login page to prevent user access
E - Elevation of PrivilegeExploit bug to access admin panel
✨ STRIDE Example 3 - Hospital Patient Portal (Generated)

A hospital's web portal allows patients to view test results, schedule appointments, and message doctors.

STRIDEThreat Scenario
S - SpoofingAttacker impersonates a doctor using stolen credentials to access patient records
T - TamperingMalicious insider modifies patient medication dosage in the database
R - RepudiationDoctor denies changing a prescription; no audit log exists
I - Info DisclosurePatient medical records sent over unencrypted HTTP connection
D - Denial of ServiceRansomware encrypts hospital systems, blocking access to critical patient data
E - Elevation of PrivilegePatient exploits bug to view and edit other patients' records
06

Other Threat Models

Besides STRIDE, several other frameworks exist. Know what each one focuses on.

🍝

PASTA

Process for Attack Simulation and Threat Analysis. A risk-centric, 7-stage framework that simulates attacker perspectives and aligns threat modeling with business objectives and risk.

🔐

LINDDUN

Linkability, Identifiability, Non-repudiation, Detectability, Disclosure of information, Unawareness, Non-compliance. Privacy-focused threat model - ideal for systems handling personal data.

📊

CVSS

Common Vulnerability Scoring System. A numeric scoring system (0 - 10) that rates the severity of vulnerabilities. Used to prioritize which vulnerabilities to fix first. Critical = 9.0 - 10.0.

🌳

Attack Trees

Visual, hierarchical diagrams that model how an attacker can reach a goal. The root is the attack goal; branches show different paths or methods to achieve it. Great for systematic analysis.

🚫

Persona non Grata

Focuses on identifying misuse patterns by defining the "anti-user" - someone who intentionally misuses the system. Creates negative personas to discover abuse cases.

🏔️

OCTAVE

Operationally Critical Threat, Asset, and Vulnerability Evaluation. An organization-wide, self-directed approach that focuses on operational risk and organizational practices rather than just technical vulnerabilities.

📝

Exam Tip: Model Selection

Know the name and core focus of each model. STRIDE = classify threats. CVSS = score severity. LINDDUN = privacy. PASTA = risk-centric simulation. OCTAVE = organizational risk. Attack Trees = visual attack paths.

07

Modern Threat Modeling Approaches

As systems evolve, so do threat modeling approaches. Modern systems require additional lenses beyond the classic models.

🏗️

1. System / Architecture-Focused

Focuses on system components, interactions, and trust boundaries. Critical for distributed systems, microservices, and cloud architectures.

Examples
  • Exposed internal APIs in a cloud app allow data exfiltration
  • Misconfigured firewall rules between containers → lateral movement
  • IoT devices on same network segment as critical servers
🗄️

2. Data-Focused

Focuses on sensitive data - how it's stored, transmitted, or processed. Data breaches are the most common impact of modern cyber incidents.

Examples
  • Customer PII stored unencrypted in a cloud database
  • Logs containing PII sent over unsecured channels
  • GDPR-regulated data processed by third-party SaaS without consent
📦

3. Supply Chain / Third-Party Focused

Focuses on vendors, libraries, APIs, and external dependencies. Attackers increasingly exploit weak links outside the organization.

Example
  • Compromised third-party software update used in corporate software (SolarWinds-style attack)
  • Malicious npm package injected into a widely-used open-source library
☁️

4. Environment / Deployment-Focused

Looks at where the system runs - cloud, on-premises, hybrid, containerized. Misconfigurations are a top attack vector in modern systems.

Examples
  • S3 bucket left public exposing sensitive files
  • Unpatched container image used in production
🤖

5. Emerging Technology Focus

Addresses AI-powered systems and IoT/OT environments - new attack surfaces that classic models don't cover.

Examples
  • Agentic-AI automated decisions exploited by adversarial inputs
  • IoT sensors attacked physically or via network to disrupt industrial control systems
08

Threat Modeling in the Supply Chain

🔗 What Is a Supply Chain?

A network between a company and its suppliers to produce and distribute a product. Most computers, devices, and systems are not built by a single entity - they rely on dozens of external vendors and components.

🔒 Secure Supply Chain

A supply chain where all vendors are reliable, trustworthy, reputable organizations that disclose their practices. The goal: finished product meets quality, performance, and security standards - with no counterfeiting or unauthorized manipulation at any link.

The cybersecurity team should inspect connected systems using these methods:

🏢

On-Site Assessment

Visit the supplier's physical location to interview personnel and observe their operating habits and security practices firsthand.

📄

Document Exchange and Review

Investigate how datasets and documentation are exchanged. Review their formal assessment and review processes.

📋

Process / Policy Review

Request copies of their security policies, procedures, and incident response documentation for evaluation.

🔎

Third-Party Audit

Engage an independent third-party auditor to objectively evaluate the supplier's security posture and practices.

⚠️

Key Principle

Integrating security assessments when working with external entities is just as important as ensuring a product was designed with security in mind. Trust boundaries extend beyond internal systems.

09

Exam Tips & Tricks 🎯

Proactive = Always Better

If asked which approach is preferred, the answer is always proactive (defensive). It's better to design security in than to patch it later.

🔠

STRIDE Acronym Drill

Spoofing · Tampering · Repudiation · Info Disclosure · DoS · Elevation. Know the property each one violates.

🚨

Threat ≠ Attack

Threat = potential. Attack = actual. If a question says "an attacker sent a flood of packets," that's an attack, not a threat.

📊

CVSS = Numbers

CVSS is the only model that produces a numeric score (0 - 10). If a question asks about scoring/rating vulnerabilities, think CVSS.

🔒

Repudiation = Non-repudiation Violated

Repudiation means someone can deny they did something. The fix is non-repudiation controls: digital signatures + logging.

🌐

Supply Chain = External Threats

If a question involves a third-party vendor, supplier, or library being compromised, think Supply Chain threat modeling.

10

Quick Reference - Everything at a Glance

📌 Chapter 3 Master Summary
TopicKey Point
Threat Modeling PurposeIdentify threats before they become real attacks; structured process
Proactive ApproachDefensive; during design; preferred and more effective
Reactive ApproachAdversarial; after deployment or incident; less effective
STRIDE OriginDeveloped by Microsoft
S - SpoofingViolates Authentication → fix with digital signatures, MFA
T - TamperingViolates Integrity → fix with hashing, digital signatures
R - RepudiationViolates Non-repudiation → fix with logging, digital signatures
I - Info DisclosureViolates Confidentiality → fix with encryption, ACLs
D - Denial of ServiceViolates Availability → fix with load balancers, rate limiting
E - Elevation of PrivilegeViolates Authorization → fix with sandboxing, input validation
CVSSNumeric severity scoring (0 - 10) for vulnerabilities
LINDDUNPrivacy-focused threat model
OCTAVEOrganizational/operational risk self-assessment
Supply ChainThreats from external vendors; inspect via on-site, docs, audit
Risk ElementsThreat + Vulnerability + Asset + Damage