Keynote
Adam Shostack
BruCON 0x06 · Day 2
Overview
In this insightful BruCON keynote, Adam Shostack, a renowned expert in security and author of "Threat Modeling: Designing for Security," takes the audience on an engaging journey to demystify threat modeling. Drawing parallels from the universally recognized saga of Star Wars, Shostack presents a simplified, four-question framework for approaching security analysis, making it accessible not just to seasoned security professionals but to anyone involved in building or deploying technology. His core message is a call to action: threat modeling is a learnable skill that everyone can and should master.

Key moments
- 0:00 Introduction to threat modeling and its four questions
- 2:40 Understanding the STRIDE framework for common threats
- 6:00 Star Wars: The story of information disclosure
- 8:40 Unpacking 10 common threat modeling traps
- 13:50 Threat modeling as composable building blocks
- 40:50 Human factors: Using psychology to build secure systems
- 48:00 Q&A: When is the right time for threat modeling?
- 61:00 Q&A: Balancing security with accepting risks
Threat Modeling Lessons from Star Wars: Demystifying Security for Everyone
Speakers: Adam Shostack, Author, Consultant (formerly Microsoft)
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=-2zvfevLnp4
Overview
In this insightful BruCON keynote, Adam Shostack, a renowned expert in security and author of "Threat Modeling: Designing for Security," takes the audience on an engaging journey to demystify threat modeling. Drawing parallels from the universally recognized saga of Star Wars, Shostack presents a simplified, four-question framework for approaching security analysis, making it accessible not just to seasoned security professionals but to anyone involved in building or deploying technology. His core message is a call to action: threat modeling is a learnable skill that everyone can and should master.
Shostack's talk goes beyond theoretical concepts, diving into the practical pitfalls that often deter organizations from effective threat modeling. He meticulously outlines "10 Traps" – common mistakes and misconceptions – that can lead to frustration and abandonment of security efforts. By identifying these traps and offering concrete strategies to overcome them, Shostack empowers attendees to integrate proactive security measures earlier and more effectively into their development lifecycles, ultimately fostering a culture where security is an inherent part of the design process rather than an afterthought.
The presentation is a masterclass in making complex security topics relatable and actionable. By leveraging Star Wars analogies, Shostack not only entertains but also solidifies understanding of fundamental threat categories. This approach underscores the critical importance of moving beyond reactive security postures to embrace a proactive, systematic methodology that can significantly reduce vulnerabilities and build more resilient systems from the ground up.
Background
▶ Watch: Introduction to threat modeling and its four questions (0:00)
Adam Shostack begins by defining threat modeling as an innate human ability to abstract away irrelevant details and focus on potential threats. He illustrates this with a simple analogy: if asked to threat model a house, one instinctively considers access points like doors and windows, and potential threats like theft, without getting bogged down in superficial details like the intruder's shirt color. The problem, Shostack argues, is that the security industry has often overcomplicated threat modeling for software, obscuring this natural intuition.
To counteract this complexity, Shostack proposes a refreshingly simple, four-question approach to threat modeling that anyone involved in a technology project can grasp:
- What are you building? This involves drawing a picture, however simple, of the system.
- What can go wrong? This is where systematic frameworks help transition from intuition to structure.
- What are you going to do about it? This involves filing bugs and tracking mitigation efforts.
- Did you do a good job? This requires validation and QA.
For the second question, "What can go wrong?", Shostack introduces STRIDE, a mnemonic framework he finds particularly useful. STRIDE stands for Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, and Elevation of Privilege. These categories represent recurring threats across all types of software, from web services to mobile apps. By providing a structured way to think about potential vulnerabilities, STRIDE helps teams systematically identify risks.
Key Findings
▶ Watch: Star Wars: The story of information disclosure (6:00)
The central contributions of Shostack's talk revolve around demystifying and democratizing threat modeling. His key findings and insights can be summarized as follows:
Firstly, the simplification of threat modeling into four fundamental questions (What are you building? What can go wrong? What are you going to do about it? Did you do a good job?) is a critical finding. This approach breaks down an often daunting task into digestible, actionable steps, making it accessible to a broader audience beyond security specialists.
Secondly, the effective application of the STRIDE framework (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) is highlighted. Shostack demonstrates its power through memorable Star Wars examples, proving that complex security concepts can be taught and understood through relatable analogies. His assertion that "Star Wars is the story of information disclosure" is a powerful reframing that encourages a security-first viewing of familiar narratives.
Thirdly, Shostack's identification and detailed exposition of 10 Traps represent a significant contribution to the field. These traps, based on years of observing organizational failures in threat modeling, provide a practical guide for avoiding common mistakes. They range from the abstract ("think like an attacker") to the procedural ("you're never done threat modeling") and the cultural ("threat modeling is for specialists"). Understanding these traps is crucial for successful implementation of security practices.
A core finding is the emphasis that threat modeling is a learnable skill, not an inborn talent. Shostack rejects the notion that only "security geniuses" can excel at it, likening it to learning a musical instrument – it requires practice, structured teaching, and manageable problems. This perspective is vital for fostering widespread adoption and skill development within organizations.
Furthermore, the talk stresses the importance of focusing on fixing problems, not merely identifying threats. Shostack argues that a list of threats without corresponding mitigations and actions is pointless. This highlights the need for integration with bug tracking and development processes.
Finally, Shostack advocates for a composable approach to threat modeling, viewing different techniques (like Data Flow Diagrams, STRIDE, CAPEC, Attack Trees) as building blocks that can be snapped together to suit various contexts and audiences. This moves away from rigid, monolithic processes, allowing for greater adaptability and experimentation. He also introduces the critical role of human factors in threat modeling, advocating for system designs that account for predictable human behavior rather than blaming users for security failures.
Technical Deep Dive
▶ Watch: Threat modeling as composable building blocks (13:50)
Shostack's talk provides a practical technical deep dive into threat modeling, anchored by the STRIDE framework and an exploration of various methodologies, common pitfalls, and advanced considerations like human factors.
The STRIDE Framework Illustrated
The STRIDE framework is presented as a systematic way to identify "what can go wrong":
- Spoofing (S): Involves impersonation or confusing one party for another. Examples include Luke Skywalker disguised as a stormtrooper, a phishing attempt impersonating paypal.com, or a malicious
NTDLL.dllcopy. - Tampering (T): Refers to unauthorized modification of data or processes. Shostack cites Ben Kenobi disabling a tractor beam, or more technically, altering packets on the wire or bits on disk.
- Repudiation (R): Occurs when an actor denies having performed an action, and there's no way to prove otherwise. Han Solo's false reactor meltdown claim, or simply denying an email was received, serve as examples.
- Information Disclosure (I): The unauthorized release of confidential information. The Death Star plans are the quintessential example, alongside real-world scenarios like leaking stock performance data or metadata. Shostack provocatively states that Star Wars itself is fundamentally "the story of information disclosure."
- Denial of Service (D): Aims to destroy or limit access to a resource. Freezing Han Solo in carbonite is a Star Wars parallel, while real-world examples include DDoS attacks overwhelming a server or a zip bomb filling a hard drive.
- Elevation of Privilege (E): Involves performing actions one is not authorized to do. Ben Kenobi's mind trick ("these aren't the droids you're looking for"), finding a hidden admin interface, or executing arbitrary bash commands on a web server illustrate this threat.
Modeling and Threat Identification Techniques
Shostack emphasizes that there's "more than one way to do it," advocating for a composable approach using various building blocks:
- Data Flow Diagrams (DFDs): These consist of processes, data flows, and data stores. They are widely used because threats often follow data flows.
- Swimlanes: Useful for modeling network systems, showing interactions and packet movements between different components.
- CAPEC (Common Attack Pattern Enumeration and Categorization): A MITRE-managed library of threats offering detailed descriptions, testing methods, and correction advice. It's particularly valuable for non-security experts who need structured guidance (e.g., SQL injection specifics).
- Attack Trees: Hierarchical diagrams that break down an attack into sub-goals. While useful for analysis, Shostack notes they can be challenging to create.
- Checklists: While he previously disliked them, Shostack, referencing Atul Gawande's "The Checklist Manifesto," now sees their value for specific contexts: when there's a common, limited set (5-7 items) of quick-to-judge issues (e.g., pre-flight checks). They can augment, but not replace, comprehensive threat modeling.
- Privacy-Focused Threat Modeling:
- Contextual Integrity: A framework where privacy violations occur when expectations in a given context are breached (e.g., doctor discussing medical information at a supermarket vs. in their office).
- Dan Solove's categorization of privacy harms can also be used with DFDs or other diagrams.
Interplay of Attacks, Mitigations, and Requirements
Shostack introduces a crucial model illustrating the dynamic relationship between attacks, mitigations, and requirements:
- Requirements Drive Threats: If confidentiality is a requirement (e.g., "Death Star plans must remain confidential"), then information disclosure threats become critical.
- Threats Drive Requirements: Conversely, an understanding of potential threats might lead to re-evaluating or clarifying requirements (e.g., is confidentiality truly paramount if open-source principles are valued?).
- Threats and Mitigations: A mitigation (e.g., a lock on a door) immediately introduces new threats (lock picking, kicking down the door), requiring further mitigations (an alarm), which in turn have their own threats (cutting wires). This highlights the iterative nature of defense.
- Mitigations and Requirements: If a threat is too expensive to mitigate (e.g., a two-person rule for every sysadmin action), organizations might change their requirements, accepting certain risks or declaring them as "non-requirements" to focus resources elsewhere.
- Compliance Programs: Shostack humorously notes that a "requirement to deploy a mitigation or a control without the presence of any threat" is an apt description of many compliance programs, explaining public skepticism.
- "The Threat Model Has Changed" Fallacy: Shostack critically addresses the post-Snowden notion that "the threat model has changed." He argues that the underlying threats (eavesdropping on unencrypted networks, system exploitation) have always existed. What has changed are the requirements – organizations now care more about defending against those threats. This distinction is vital for accurate strategic planning.
Human Factors in Threat Modeling
Shostack challenges the cynical view that "people will pick dancing babies over security every time." He advocates for incorporating models of human behavior into threat modeling:
- Behaviorist Models: People are conditioned. Repeated, low-value security prompts (e.g., "this file might be dangerous" 50 times a day) lead to automatic "OK" clicks (dialog box fatigue).
- Cognitive Science Models: Referencing Daniel Kahneman's "Thinking, Fast and Slow," Shostack highlights "what you see is all there is." If security indicators in a web browser are inconsistent or absent, users won't actively think about security.
- Integrating People into Diagrams: Add "persons" to DFDs. Ask:
- What is being communicated to the person?
- How is the software communicating that information?
- What do you expect the person to know?
This often reveals that essential information is missing, or the decision required is too complex for a typical user. Advanced questions include threats to perception or understanding (e.g., can an attacker spoof security indicators?).
Demo / Proof of Concept
▶ Watch: Human factors: Using psychology to build secure systems (40:50)
This keynote presentation is primarily conceptual and instructional, focusing on methodologies and philosophical approaches to security. As such, Adam Shostack did not present a live technical demonstration or a proof of concept of a specific exploit or defense during his talk. He did, however, mention the Elevation of Privilege game (a physical card game he created) as a tool designed to introduce people to threat modeling in an engaging, non-threatening way, emphasizing its physical nature to encourage group interaction.
Defensive Implications
▶ Watch: Q&A: Balancing security with accepting risks (61:00)
Adam Shostack's talk offers profound defensive implications, urging a paradigm shift in how organizations approach security:
- Embrace Simplicity and Structure: Defenders should adopt the simple four-question framework ("What are you building? What can go wrong? What are you going to do about it? Did you do a good job?"). This structure, coupled with the STRIDE mnemonic, makes threat identification systematic and accessible, preventing security teams from getting overwhelmed by complexity.
- Integrate Threat Modeling Early and Continuously: The "never done" trap is critical to avoid. Threat modeling should be an ongoing, iterative process, starting early in the conceptual phase (breadth-first) and deepening as specific features are developed (depth-first). It's not a one-time audit but a constant companion to development, including quick checks at the end of sprints.
- Democratize Security Skills: Security should not be the exclusive domain of specialists. Defenders must actively teach and empower developers, sysadmins, and other stakeholders to understand and participate in basic threat modeling. Providing manageable problems and accessible tools, like the Elevation of Privilege game, is crucial for fostering this widespread capability.
- Focus on Actionable Outcomes: The goal of threat modeling is not merely to find threats, but to fix them. Security teams should prioritize integrating threat modeling outputs (identified bugs, required mitigations) directly into development workflows, ensuring that findings translate into tangible security improvements.
- Adopt a Composable Toolset: Instead of adhering to a single, monolithic threat modeling process, defenders should view different techniques (DFDs, swimlanes, STRIDE, CAPEC, Attack Trees, contextual integrity for privacy) as modular building blocks. This allows for flexibility and adaptation to different system types, organizational contexts, and specific threat concerns.
- Account for Human Factors in Design: Defenders must move beyond blaming users and design systems with predictable human behaviors in mind. This involves understanding cognitive biases (e.g., "what you see is all there is"), avoiding dialog box fatigue, and ensuring that security-critical information is clearly and consistently communicated, and that users are not expected to make overly complex security decisions.
- Communicate Across the Supply Chain: Threat modeling should not happen in a vacuum. Security professionals need to communicate threat models and expected mitigations to all parties in the software supply chain – from hardware developers to operations teams. Tools like security operations guides and explicit "non-requirements" can facilitate this vital communication.
- Distinguish Between Changing Threats and Changing Requirements: It's crucial for defenders to understand that while fundamental threats may persist, changes in business or societal requirements (e.g., increased concern over surveillance post-Snowden) are what necessitate new defensive strategies. This clarifies the "why" behind new security initiatives and helps align them with organizational goals.
- Validate and Iterate: Threat models are not static. Defenders should use quality assurance (QA) and penetration testing to validate their models. If testers find unexpected bugs, or if pen testers discover vulnerabilities outside the predicted scope, it's an opportunity to refine the threat modeling approach and skill development.
Key Takeaways
- Threat modeling is a learnable, accessible skill for everyone, not just specialists. It can be simplified into four core questions: What are you building? What can go wrong? What are you going to do about it? Did you do a good job?
- The STRIDE framework (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) provides a practical and memorable mnemonic for systematically identifying common threats across all types of software.
- Organizations must be aware of and actively avoid 10 common "traps" that hinder effective threat modeling, such as thinking it's an inborn skill, believing it's "never done," or focusing solely on finding threats without fixing them.
- Threat modeling should be viewed as a collection of composable building blocks, allowing teams to tailor approaches (e.g., using Data Flow Diagrams with STRIDE, or contextual integrity for privacy) to specific systems, contexts, and audiences.
- Human factors are critical; security designs must account for predictable user behavior and cognitive biases, ensuring clear communication of security state and avoiding user fatigue from excessive or confusing prompts.
- The focus of threat modeling should be on fixing problems early in the development lifecycle and continuously iterating, rather than just identifying vulnerabilities late in the process.
About the Speaker(s)
Adam Shostack is a prominent figure in the field of software security, known for his work in threat modeling. He is the author of "Threat Modeling: Designing for Security," a foundational text on the subject. Shostack has held influential roles, including a significant tenure at Microsoft, where he contributed to the company's security development lifecycle (SDL) and its threat modeling documentation. He is also the creator of the popular Elevation of Privilege (EoP) card game, designed to make threat modeling engaging and accessible to a wider audience. Through his consulting work and public speaking, Shostack has helped numerous organizations understand and implement effective security practices, always striving to demystify complex security concepts and empower individuals to build more secure systems.