Every software team should strive for excellence in building security into their application and infrastructure. Threat modeling is a risk-based approach to designing secure systems by identifying threats continually and developing mitigations intentionally.
What is risk-based approachA risk-based approach is a strategy that identifies, assesses, and prioritizes potential threats by likelihood and impact, directing resources and controls toward the highest risks rather than treating everything equally
Effective threat modeling should start simple and grow incrementally, rather than relying on exhaustive upfront analysis. To demonstrate this in practice, this post begins with outlining the core insights required for threat modeling and then dives into practical threat modeling examples using the STRIDE framework.
Breaking Down the Fundamentals
Start From Our Dataflows
Today’s cyber threats can seem overwhelming.
- Ransomware
- supply chain attacks
- backdoors
- social engineering
- etc
where should a team begin? The attacks we read about in breach reports often chain together in unexpected and chaotic ways.
The key to cutting through complexity in threat modeling lies in tracing how data moves through system technology stack. Start with following where the data enters system boundary. Typically, it could be via
- user interfaces
- APIs
- message queues
- model endpoints
Dive into getting a deeper understanding of how it flows between services, through data stores, and across trust boundaries through integrated systems.
This concrete layout of the data flow between systems would transform vague worries, such as, “Should we worry about hackers?” into specific actionable questions. For example, “What happens if this API response is tampered with?” or “What if this model input is poisoned?”.

The Crux to Identifying Threats
From there on, identifying threats can become deceptively simple: follow each one of the data flows and ask “What can go wrong?”. We will find that this simple question will lead to complex technical and socio-behavioural analysis that will challenge our unconscious assumptions. It will force us to pivot from thinking “how system works” to “how system fails”, which in essence is the crux of threat modeling.
For example, suppose we have an API for a messaging service that accepts 2 inputs:
- a message
- the recipient’s ID, which then delivers the message to all internal staff.
On the outset, we see an uncomplicated data flow where an external user sends a message to the messaging service with no explicit notion of security threats. This is the ‘how system works’ view. But when we make a cognitive pivot and ask the question ‘What can go wrong?’ with this data flow, we can easily spot the potential for a phishing attempt since the API is unprotected. Any attacker could send malicious content using this API and cause harm to the staff.

Even a simple dataflow could warrant potential threats and cause havoc massively. By layering the question “What can go wrong?”, we have been able to expose this perspective that would otherwise remain hidden. The essence of doing this at this small scale leads to adding appropriate defense mechanisms incrementally within every data flow and therefore build a secure system.
STRIDE as a Practical Aid
Brainstorming threats can become open-ended without structured frameworks to guide our thinking. As we follow key data flows through our system, use STRIDE to turbocharge our security thinking. STRIDE is an acronym and mnemonic to help remember 6 key information security properties, so we can methodically identify common security vulnerabilities. Mentally check each one off each time we consider a data flow:
- Spoofed identity: Is there Authentication? Should there be? Attackers pretending to be legitimate users through stolen credentials, phishing, or social engineering.
- Tampering with input: What about nasty input? Attackers modifying data, code, or memory maliciously to break our system’s trust boundaries.
- Repudiation: Does the system show who is accountable? When something goes wrong, can we prove which user performed an action, or could they plausibly deny responsibility due to insufficient audit trails?
- Information disclosure: Is sensitive data inappropriately exposed or unencrypted? Unauthorized access to sensitive data through poor access controls, cleartext transmission, or insufficient data protection.
- Denial of service: What if we smash it? Attacks aiming at making the system unavailable to legitimate users by flooding or breaking critical components.
- Elevation of privilege: Can I bypass Authorization? Move deeper into the system? Attackers gaining unauthorized access levels, obtaining higher permissions than intended, or moving laterally through our system.

TIP
- A great way to help brainstorm is to use AI. We don’t need any fancy tool; just prompt using a normal chat interface. Give some context on the dataflow and tell it to use STRIDE. Most of the time we will get a really helpful list of threats to consider.
- If you happen to be a tech lead who is going to give a training session about software security for your dev team, consider using this STRIDE training guide as a structural framework
Work ‘Little and Often’
Once we get the hang of identifying threats, it’s tempting to organize a full-day workshop to “threat model” every dataflow in our entire system at once. This big-bang approach often overwhelms teams and rarely sticks as a consistent practice. Instead, integrate threat modeling regularly, like continuous integration for security.
The most effective threat modeling happens in bite-sized chunks, closely tied to what a team is working on right now. Spending fifteen minutes examining the security implications of a new feature can yield more practical value than hours analyzing hypothetical scenarios for code that isn’t written yet. These small sessions fit naturally into a team’s existing rhythms - perhaps during sprint planning, design discussions, or even daily standups.

This “little and often” approach brings multiple benefits:
- Teams build confidence gradually, making the practice less daunting.
- We focus on immediate, actionable concerns rather than getting lost in edge cases.
- Most importantly, threat modeling becomes a natural part of how a team thinks about and delivers software, rather than a separate security activity.
It’s a Team Sport!
Effective threat modeling draws strength from diverse perspectives.
- A security specialist might spot technical vulnerabilities
- A product owner could identify business risks
- A developer might see implementation challenges

Each viewpoint adds depth to our understanding of potential threats. This doesn’t mean we need formal workshops with the entire organization. A quick conversation by the team’s whiteboard can be just as valuable as a structured session. What matters is bringing different viewpoints together - whether we are a small team huddled around a screen, or collaborating remotely with security experts.
The goal isn’t just to find threats - it’s to build shared understanding. When a team thinks about threat models together, they develop a common language for discussing security:
- Developers learn to think like attackers
- Product owners understand security trade-offs
- Security specialists gain insight into the system’s inner workings.
We don’t need security expertise to start. Fresh eyes often spot risks that experts might miss, and every team member brings valuable context about how the system is built and used. The key is creating an environment where everyone feels comfortable contributing ideas, whether they’re seasoned security professionals or completely new to threat modeling.
Put Theory into Practice
Now that we’ve established the core principles of threat modeling, it’s time to put theory into practice. Like any skill worth mastering, threat modeling isn’t something we can fully grasp through explanation alone—it requires hands-on experience. The concepts might make sense intellectually, but the real learning happens when we start applying them.
Practically every threat modeling practice follows the same pattern as seen below in the table:
| Activity | Question | Outcome |
|---|---|---|
| Explain and explore | What are you building? | A technical diagram |
| Identify threats | What can go wrong? | A list of threats |
| Prioritize and fix | What are you going to do? | Prioritized fixes added to backlog |
Single Team Case
Approach and Preparation
A quick whiteboard session within the team provides an accessible starting point for threat modeling. Rather than attempting exhaustive analysis, these informal 15 - 30 minute sessions focus on examining immediate security implications of features our team is currently developing. Let’s walk through the steps to conduct one with an example.
Let’s say, a software team is working on an order management system, and is planning an epic, where store assistants can create and modify customer orders. This is a perfect scope for a threat modeling session. It is focused on a single feature with clear boundaries.

The session requires participation from development team members, who can elaborate the technical implementation. It’s great to get attendance from product owners, who know the business context, and security specialists, who can provide valuable input but don’t have to be blocked by their unavailability. Anyone involved in building or supporting the feature, such as the testers or the business analysts too, should be encouraged to join and contribute their perspective.
The materials needed are straightforward: a whiteboard or shared digital canvas, different colored markers for drawing components, data flows, and sticky notes for capturing threats.

Once the team is gathered with these materials, they’re ready to ‘explain and explore’.
Explain and Explore
In this stage, the team aims to gain a common understanding of the system from different perspectives before they start to identify threats. Typically, the product owner begins the session with an elaboration of the functional flows highlighting the users involved. A technical overview from developers follows after with them also capturing the low-level tech diagram on the whiteboard. Here might be a good place to put those colored markers to use to clearly classify different internal and external systems and their boundaries as it helps in identifying threats greatly later on.
Once this low-level technical diagram is up, the entities that lead to financial loss, reputation loss, or that results in legal disputes are highlighted as ‘assets’ on the whiteboard before the floor opens for threat modeling.
For the order management scope, create and modify orders, the product owner elaborated the functional flows and identified key business assets requiring protection. The flow begins with the customer service executive or the store assistant logging in the web UI, landing on the home page. To modify the order, the user will have to search the order ID from the home page, land on the orders page, and change the details required. To create a new order, the user will have to use the create order page by navigating from the home page menu. The product owner emphasized that customer data and order information are critical business assets that drive revenue and maintain customer trust, particularly as they are covered by GDPR.
The developers walked through the technical components supporting the functional flow. They noted an UI component, an
authentication service, a customer database, an order service and the orders database. They further elaborated the data
flows between the components. The UI sends the user credentials to the authentication service to verify the user before
logging them in, and then it calls the order service to perform /GET, /POST, and /DELETE operations to view,
create and delete orders respectively. They also noted the UI component as the least trusted since it’s exposed to
external access during these discussions.
Throughout the discussion, the team members were encouraged to point out missing elements or corrections. The goal was to ensure everyone understood the accurate representation of how the system worked before diving into threat modeling.
As the next step, they went on to identifying the critical assets that need protection based on the following logical conclusions:
- Order information: A critical asset as tampering them could lead to loss in sales and damaged reputation.
- Customer details: Any exposure to sensitive customer details could result in legal issues under privacy laws.

With this concrete layout of the system and its assets, the team went on to brainstorming threats directly.
Identifying Threats
The order management team opened the floor for black hat thinking after identifying the assets. Each team member with STRIDE in their minds was encouraged to think like a hacker and come up with ways to attack the assets. The team went ahead and flushed the board with their ideas freely without debating if something was really a threat or not for now, and captured them as stickies along the data flows.
The team flooded the whiteboard with many threats:
