Threat Modeling Cloud and Infrastructure
local graph
Chapter 5 — Threat Modeling Cloud and Infrastructure
Section titled “Chapter 5 — Threat Modeling Cloud and Infrastructure”How users access software, data, and services has changed over the years. A smartphone in our pocket is way more powerful than a home computer from a decade ago. While access to services has changed over the years, so has the way organizations bring those services to people. Today, an organization’s infrastructure is rarely hosted in one or two company-run data centers. It’s now a mixture of different third-party services, on-premise hardware, and cloud services. With this in mind, the threat model needs to adapt to account for these varied deployment models.
In this chapter, we’ll focus on how organizations deploy their services in diverse models such as on-premise IT/OT environments and cloud services. We’ll look at how these models impact the development of threat models. We’ll also introduce a method for visualizing attack paths that an attacker can take and how that can enhance your threat model. While many threats and mitigations are relevant regardless of the deployment model, there are some nuances to how organizations should incorporate their distinct deployment model into their threat model.
In this chapter, we’ll cover the following topics:
- What infrastructure means today
- Cloud security challenges and architectural resilience
- Cloud and infrastructure threat modeling
- Tools for attack path analysis and activity
- Assessing system preparedness
- Designing secure infrastructure
What infrastructure means today
Section titled “What infrastructure means today”When I think of infrastructure as it relates to IT/OT systems, large data centers humming with the sound of hundreds of servers come to mind. However, infrastructure can represent distinct interconnected domains within an organization. They are servers in the data center, the physical and virtual network components, support systems such as generators and HVAC systems, cloud services, SCADA, sensors, PLCs, emergency systems, and the cyberphysical parts of the system.
While it’s easy to visualize the hardware used, software plays a key role in defining the infrastructure. The software layer includes operating systems, middleware, applications, and enterprise resource planning tools that facilitate information processing and business logic. Infrastructure also extends to the workers and the tools they use daily, such as the equipment within the office buildings, but also the devices being used by remote workers, which drastically increased in the early 2020s due to the global pandemic.
Over the past decade or more, the perimeter that made up an organization’s infrastructure has expanded and stopped being a solid line on a network diagram. Viewing this through the lens of threat modeling, these environments present unique security challenges when assessing the threats, potential risks, and mitigation strategies.
Why is understanding the overall infrastructure important? Each IT infrastructure component represents a potential attack vector. Servers may be vulnerable to exploitation through unpatched software, network equipment might be susceptible to adversary-in-the-middle attacks, and cloud services introduce shared responsibility models that require a clear delineation of security boundaries. Figure 5.1 shows how the cloud shared responsibility model is divided between the provider and the customer for different services and resources.

Figure 5.1: The cloud shared responsibility model depicting the service or resource and the ownership of responsibility
Figure 5.1: The cloud shared responsibility model depicting the service or resource and the ownership of responsibility
Support systems, including backup infrastructure and power supplies, characterize critical dependencies that threat actors may target to disrupt operations through denial-of-service scenarios. This is where we integrate threat modeling into the design of cloud and physical infrastructure, allowing us to proactively identify and mitigate security risks and potential attack vectors before deployment.
With OT infrastructure, things get even trickier. Industrial equipment such as PLCs, SCADA systems, sensors, and actuators can directly interface with physical processes, machinery, and sometimes humans. That last part adds even greater concern as it relates to threats posed to workers.
One of my favorite memories from an early threat model I did was the phrase “car-crushing robots” that were mixed in with human workers in a certain location. This greatly increased the risk, not just to the system, but the workers who were standing or sitting next to these robots.
Control systems in OT include Distributed Control Systems (DCS) and Human-Machine Interfaces (HMI), which are used to govern operational processes, while specialized industrial networks such as Modbus and Open Platform Communications – Unified Architecture (OPC-UA) enable communication between components.
Modbus is a legacy industrial protocol developed in 1979, known for its simplicity and wide adoption.
OPC-UA is a modern, platform-independent protocol designed for secure, scalable, and interoperable communication across industrial systems.
This physical layer, comprising machines, robots, and environmental interaction devices, represents the tangible parts of the OT infrastructure and can offer an aperture in the attack surface.
In an OT environment, threat modeling needs to account for the unique characteristics of these systems. Many OT components were designed with durability, availability, and reliability as primary concerns rather than security. This often depends on the implementation, but by and large, OT systems are about robustness in the environment and ease of maintenance. These systems often run proprietary firmware and software with lifecycles measured in decades rather than years, making conventional patching approaches difficult. The industrial networks connecting these systems frequently employ protocols that lack encryption or authentication mechanisms, operating under the historical assumption of air-gapped isolation.
Imagine a large energy company where the OT network that operates portions of energy generation or transmission is connected to the IT network of the headquarters or cloud services for operational efficiency. This connection introduces vulnerabilities, as the OT systems may lack encryption or authentication mechanisms. If a threat actor breaches the IT network, they could potentially pivot to the OT network, exploiting these vulnerabilities and causing significant disruptions.
What raises the complexity of threat modeling in this type of environment is that the traditional separation between IT and OT is dissolving in favor of digital transformation initiatives that integrate these environments. For example, a mining company could bring its IT and OT under a single governance and operating model where it can leverage automation and data analytics to optimize operations and improve decision-making. By integrating IT systems, which handle data-centric computing, with OT systems monitoring and controlling industrial processes, the company can achieve greater visibility across its technology stack while enhancing operational efficiency. Figure 5.2 illustrates the IT and OT environments connected to managing the factory floor.

Figure 5.2: Connected IT and OT environments for managing a factory floor
Figure 5.2: Connected IT and OT environments for managing a factory floor
The convergence of IT and OT creates new threat modeling challenges at intersections where previously isolated OT systems connect directly to enterprise IT networks and cloud services. While many threat modeling exercises focus more on the software and services that run on top of infrastructure, it’s important to note that infrastructure is a critical part of the chain. And we know what they say: “A chain is only as strong as its weakest link.”
The omni-deployment model
Section titled “The omni-deployment model”In early 2006, Amazon launched Simple Storage Service (S3), which differed from existing SaaS by providing replacement building blocks for an organization’s infrastructure rather than just external software. Now, you can buy storage from a third party and transfer files with just a URL in hand. This was a massive shift because previously, organizations had to order, wait for, and add storage devices on their internal network, a costly and time-consuming process that often resulted in underutilized capacity and significant waste across data centers with dozens or hundreds of storage hardware devices. While others had similar offerings, S3’s ability to simulate the hardware and virtual components that were mainstays in organizational data centers sparked the cloud revolution, leading every organization to work on cloud migration and prompting cloud service providers such as AWS, Microsoft, Google, and IBM to expand their offerings.
Why does this matter in threat modeling? This shift to cloud storage, and more importantly to a cloud service model, fundamentally changes threat modeling by expanding the attack surface beyond an organization’s physical perimeter to include new vectors such as API vulnerabilities, misconfigured cloud services, and shared responsibility gaps between the organization and cloud provider.
Cloud service providers (CSPs) have evolved into a comprehensive ecosystem that spans the entire technology stack. At the foundation, you have Infrastructure-as-a-Service (IaaS), which provides services to replace physical hardware in your data center. Moving up the stack, Platform-as-a-Service (PaaS) offers developers the tools they need to build, test, and deploy applications. Software-as-a-Service (SaaS) delivers pre-built applications that are accessible directly over the internet. Serverless computing takes this abstraction even further, allowing developers to run code without managing any servers whatsoever.
Beyond these core offerings, CSPs have expanded into specialized services that address virtually every aspect of modern computing, such as database services, AI and machine learning tools, security services, and analytics platforms. More recently, Internet of Things (IoT) solutions have emerged to connect and manage the growing number of connected devices.
While organizations pushed for a “cloud migration” or “cloud first” strategy, it became apparent that there was going to need to be a multi-cloud or hybrid-cloud strategy where an organization would need to have resources and assets in the cloud, on-premise, and other models such as co-locations, community cloud, edge computing, and private cloud options.
For example, an organization may have the following deployment:
- Compute and storage: AWS EC2 and S3 for primary workloads
- Backup and recovery: Azure Backup for data protection
- IoT management: IBM IoT platform for enterprise device management
- API management: Google’s API Gateway for on-premise API proxies
- Edge computing: Local co-location facilities for latency-sensitive applications
- Private cloud: On-premise infrastructure for sensitive data
This approach allows organizations to choose the right tool for each job while keeping costs in check and meeting their latency requirements. Why does this matter, and what impact does this have on threat modeling? With the abundance of services offered by CSPs, organizations can use a best-in-breed approach where the services they choose are likely from competing cloud vendors. This multi-cloud, or hybrid-cloud, approach is fantastic for engineering and security teams alike. Each CSP has security services it offers that are geared towards protecting itself and its clients as defined in the shared responsibility model. It can strengthen an organization’s broader secure cloud deployment while taking advantage of a best-in-breed approach that looks for the right solutions to tackle challenges wherever they may be. However, complexity is the enemy of security, and this approach can quickly become a security nightmare without the right guardrails to support the business goals.
Risks and limitations of on-prem solutions
Section titled “Risks and limitations of on-prem solutions”The hybrid deployment model is often a mixture of cloud services and the infrastructure, often termed “on-prem” or “on-premise” managed by the organization. This was how organizations delivered value to customers prior to cloud migrations. As I mentioned before, it required the procurement, installation, and maintenance of physical hardware and software that was managed by a team of technical resources hired by the organization.
While the organization will have full control of the hardware and software that it deploys, there are still inherent risks with this model:
- Data security risks: On-premise servers are susceptible to physical damage from fires, floods, or break-ins and may lack advanced security features while requiring constant monitoring.
- Inability to scale infrastructure: Scaling physical IT infrastructure is costly and time-consuming, given that expanding your offer typically means purchasing more hardware and software licenses. On-premise servers may have hardware limitations, space constraints, and high upfront costs, making it difficult to accommodate growing data storage needs.
- Minimal data backup and recovery: On-premise servers may have limited data backup and recovery options compared to cloud solutions. This can lead to data loss in the event of hardware failure or other disasters.
- Increased costs: Maintaining and upgrading on-premise infrastructure can be expensive. Organizations need to invest in hardware, software, and people to manage those systems.
- Lack of access and mobility for employees: On-premise servers may limit remote access to data and applications, given that this can open an attack vector for malicious actors or even mistakes by insiders. This can be challenging for employees working from different locations or supporting the system without being physically present.
- Outdated infrastructure: Replacing infrastructure can be time-consuming and lead to security vulnerabilities with outdated infrastructure. Older hardware may not be designed to handle modern security challenges, increasing the risk of data breaches and adding to technical debt.
- Service disruption: Attacks, misconfiguration, or malicious insiders originating from on-premise systems can result in downtime, affecting productivity and business continuity.
While cloud services address many of the on-premise challenges by offering scalability, advanced security features, and managed infrastructure, they introduce their own unique set of security considerations and complexities. The shift from physical controls to a shared responsibility model creates new attack vectors and requires a different approach to secure systems and data.
Cloud security challenges and architectural resilience
Section titled “Cloud security challenges and architectural resilience”While many threats are shared between cloud and on-premise deployment models, there are some that are more prevalent in cloud deployments.
- Data breaches: Unauthorized access to sensitive information can result from misconfiguration of databases and storage services that expose sensitive data to unauthorized actors.
- Misconfiguration and inadequate change control: Misconfigured cloud settings can expose systems to vulnerabilities, leading to unauthorized access and data leaks.
- Insecure APIs and interfaces: APIs are integral to cloud services, but insecure APIs can serve as attack vectors for malicious actors. There are also many automated tools that exist to uncover insecure APIs and automate attacks.
- Insider threats: Employees with access to root or privileged accounts within the CSP can inadvertently or maliciously compromise the security of the data and services offered.
- Account hijacking: Cybercriminals often target cloud accounts using phishing, credential stuffing, and brute force attacks, given that these accounts are considered privileged accounts with broad access.
- Lack of cloud security architecture and strategy: A fragmented or absent cloud security strategy can leave organizations with a disjointed approach to securing their cloud accounts.
- Compliance and regulatory challenges: Cloud environments are, by nature, regionally dispersed, and this can lead to challenges when adhering to data protection regulations, such as GDPR, PIPEDA, or CCPA.
How do we develop architectural resilience that allows our system’s design to withstand and adapt to various threats while maintaining functionality and availability? Using AWS as an example, a simple cloud architecture might look like Figure 5.3.

Figure 5.3: Cloud architecture example of a VPC
Figure 5.3: Cloud architecture example of a VPC
This simple architecture utilizes a multi-availability zone approach for redundancy and fault tolerance, which will aid in providing availability for the system. The public subnets hosting the load balancers and the private subnets containing application and database servers provide for segmentation and reduction of lateral movement. Additionally, the internet gateway and load balancers provide for traffic distribution, web server clusters, and cross-AZ replicated databases, and the cache servers provide for performance. More than focusing on the details of this architecture, it’s important to note that the design ensures resilience, scalability, and disaster recovery capabilities.
The hybrid attack surface
Section titled “The hybrid attack surface”While the threats to on-premise and cloud environments alone require the implementation of particular security controls in those environments to reduce the overall risk to the organization, the integration points between them expand the attack surface. The following are some of the considerations with these integration points:
- Data exposure: Sensitive data may be inadvertently exposed when transferred between on-premise systems and cloud services, especially if encryption protocols are not consistently applied.
- Inconsistent security policies: Differing security measures or applied policies across on-premise, cloud, and SaaS environments can lead to gaps that attackers can exploit.
- Unauthorized access: Hybrid environments often involve multiple access points, increasing the risk of unauthorized access if IAM controls are not uniformly enforced.
- Data synchronization issues: Synchronizing data between on-premise and cloud systems can introduce vulnerabilities, especially if data integrity checks are not robust.
- Compliance risks: Different regulatory requirements for data stored on-premise versus in the cloud can complicate compliance efforts, leading to potential legal and financial repercussions.
From the threat modeling perspective, these integration points need to be considered in the overall security architecture diagram that is used to guide the threat modeling exercise.
Figure 5.4 shows how the hybrid-cloud approach works with an on-premise system.

Figure 5.4: Hybrid cloud approach with an on-premise system
Figure 5.4: Hybrid cloud approach with an on-premise system
These hybrid integration challenges can seem abstract when discussed in isolation, but they become much clearer when examined through a real-world lens. A prime example can be understood using a financial institution, as they typically operate extensive hybrid environments due to regulatory requirements and legacy system dependencies that lead to hybrid-cloud architecture.
Example: hybrid infrastructure in a financial institution
Section titled “Example: hybrid infrastructure in a financial institution”Consider a large financial services firm that has embraced a hybrid infrastructure to service its clients. The firm maintains critical on-premise systems for its core transaction processing, such as high-frequency trading (HFT), while leveraging cloud and SaaS platforms for customer relationship management and advanced data analytics. This infrastructure integration delivers significant operational and cost benefits but opens the attack surface by creating more complexity.
Let’s say that the organization’s security team recently identified several critical vulnerabilities stemming from cross-system access privileges in its hybrid environment. One of the critical vulnerabilities involved an overly permissive IAM role that was shared between multiple systems accessing cloud resources.
This vulnerability centered on a shared service role that was initially created to allow the marketing department’s simple web server, on-premise, to upload promotional materials to an S3 bucket. However, the same role was being reused by the finance department for their cloud-based analytics platform, granting it write access to the finance S3 bucket containing sensitive financial reports and client data.
This was particularly concerning because the shared role had elevated privileges across different business units, violating the principle of least privilege. An exploit allowed unauthorized access to sensitive financial data, client information, and the ability to modify or delete critical business documents stored in the finance S3 bucket.
The vulnerability occurred because there were varying security controls, policies, and access management protocols between the on-premise systems and cloud services. The shared role fell into a security “blind spot” where there was a lack of clear ownership over cross-system permissions, highlighting the potential security concerns that come with a hybrid deployment model.
Cloud and infrastructure threat modeling
Section titled “Cloud and infrastructure threat modeling”Let’s now discuss developing a threat model for a hybrid environment that spans multiple deployment models. While traditional security architecture diagrams and threat models can be used in this situation, here, we’ll focus on a commonly used input called attack paths.
Attack paths serve as detailed roadmaps in threat modeling, outlining a specific set of steps an attacker might follow to compromise a system or one of its assets. Unlike more theoretical approaches, such as standard threat modeling using a security architecture diagram, attack paths document concrete, exploitable routes through an organization’s security controls based on understanding and knowledge of existing vulnerabilities and gaps. Think of it as a description of a particular workflow an attacker might take.
When implementing threat modeling, security teams should use attack paths to visualize precisely how an attacker could chain together multiple vulnerabilities or missing controls in the system to achieve their objectives. This visualization transforms abstract security concerns into tangible scenarios that demonstrate how an attacker might progress from initial access into the system all the way through to their end goal.
The power of attack path analysis lies in its ability to reveal unexpected relationships between seemingly isolated vulnerabilities. To be clear, many compromises occur because of multiple vulnerabilities being used together. What might appear as a low-risk weakness in one system could become critical when viewed as part of a complete attack path that includes seemingly disparate vulnerabilities. For instance, a minor vulnerability in a public-facing web application might create an entry point that, when combined with a weak internal access control mechanism and excessive privilege assignments, creates an escalation path to sensitive customer data or intellectual property.
While attack path analysis and attack trees are valuable tools, they can also come with some drawbacks. To be effective, they require knowledge across multiple security domains. While the “think like an attacker” mentality sounds great in theory, in practice, many security professionals struggle to consistently adopt this mindset, often missing creative attack vectors that real adversaries would exploit. There is also an inclination to build attack trees that cover the most sophisticated attacks while ignoring some of the more mundane, and more likely, scenarios. Perhaps most concerning is that it can be nearly impossible to prove that your attack tree covers all possibilities. Your security team may have deep knowledge in a few domains that are well represented in the attack tree but may have gaps in other domains that are missed.
So, how can attack paths be used in an organization? They should serve as a validation tool to bridge the gap between theoretical threats identified in your threat model and their actual feasibility. Rather than creating attack paths for every scenario, focus on using them to demonstrate and clarify the most critical or uncertain threats that require deeper analysis, essentially proving whether a theoretical threat could realistically be executed..
Attack path analysis can also be used to optimize security investments by identifying and addressing specific vulnerabilities that appear in multiple attack paths or one that targets your critical data or workflows. This type of approach can help align security resources more judiciously, rather than simply addressing vulnerabilities based on isolated severity ratings.
Tools for attack path analysis
Section titled “Tools for attack path analysis”While an attack path is a simple drawing of the steps an attacker can take through your system, there are advanced tools that can model attack path environments for you, such as CrowdStrike’s Falcon Exposure Management or Breach and Attack Simulation (BAS) tools. These tools are generally for larger enterprises with many scenarios to map out, who are looking to integrate with their environments. Some of these tools may even be narrow in scope, where they are specific to services such as Active Directory or Entra. If you’re fortunate enough to work in an organization with the means to purchase one of these tools, then you will find many of your needs being met for identifying attack paths and developing a visual representation of them.
For those of us who must use the available tools, there are other options. For one, a simple drawing tool would suffice in creating a diagram. I’m also fond of using just PowerPoint or other “blank canvas” style tools for this purpose. MITRE’s Attack Flow Builder is one of the tools that can be used to build visual attack paths. It allows security practitioners to identify individual techniques, arrange them in logical sequences, define relationships between them, and generate visual representations that make complex attack chains understandable.
Hands-on activity with Attack Flow Builder
Section titled “Hands-on activity with Attack Flow Builder”Let’s get our hands dirty and create a simple attack path that models an example manufacturing facility with interconnected IT and OT infrastructures. This activity illustrates how attackers can leverage this to move strategically from initial access in the corporate IT environment to ultimately causing physical damage to production equipment. Using Attack Flow Builder, we can better understand the progression from a phishing email through to a critical system compromise.
Follow these steps to create a simple attack path flow using Attack Flow Builder:
Setup and initial configuration
Section titled “Setup and initial configuration”This stage involves initializing Attack Flow Builder by entering metadata and contextual details to define the scope, purpose, and attribution of the attack path being modeled.
- Open Attack Flow Builder. You’ll see a blank workspace with a menu bar across the top.
- In the right panel, fill in the flow information:
- Name: Manufacturing Facility IT/OT Attack Path
- Description: This attack flow demonstrates how an attacker can move from the IT network to the OT environment in a manufacturing facility, ultimately taking charge of the MES.
- Author information: Add your name and organization.
- Scope: Select a scope as threat actor.
- External references: Add any relevant MITRE ATT&CK or other framework references. You can leave it blank as well.
- Name: Manufacturing Facility IT/OT Attack Path
Creating the initial access action
Section titled “Creating the initial access action”This stage involves adding the initial access technique to the attack flow by creating and configuring an action node that represents a spear-phishing attack targeting an IT administrator.
- Right-click in the workspace to open the context menu.
- Navigate to Create | Attack Flow | Action.

Figure 5.6: Creating an attack flow action
Figure 5.5: Creating an attack flow action
- Click on the new action to select it.
- In the right panel, fill in the following:
- Name: Spear-Phishing Attack
- Technique ID: T1566.001 (Spear Phishing Attachment)
- Description: Attacker targets an IT admin with a spear-phishing email containing malware disguised as a vendor security update. The admin opens the attachment on their corporate laptop connected to the enterprise network.

- Name: Spear-Phishing Attack
Figure 5.7: Filling in the PROPERTIES fields
Figure 5.6: Filling in the PROPERTIES fields
Creating the foothold establishment action
Section titled “Creating the foothold establishment action”This stage adds a foothold action to the attack flow by modeling the installation of a remote access trojan that enables persistent control and secure communication within the compromised environment.
- Right-click in the workspace and create another action.
- Fill in its properties:
- Name: RAT Installation
- Technique ID: T1219 (Remote Access Software)
- Description: The malware installs a remote access trojan (RAT) that establishes command and control communications through standard HTTPS, bypassing perimeter security controls.
- Name: RAT Installation
Connecting initial access to the foothold
Section titled “Connecting initial access to the foothold”This step establishes the logical progression between attack stages by linking the initial access action to the foothold action, visually representing how the spear-phishing event leads to remote access Trojan installation.
- Locate the anchor points (X marks) on the Spear-Phishing Attack action.
- Click and drag from this anchor point to an anchor point on the RAT Installation action.
- Release to create a connecting arrow.

Figure 5.8: Linking actions
Figure 5.7: Linking actions
Now, let’s move on to the next stage.
Creating the malware object
Section titled “Creating the malware object”This stage adds a malware object to the attack flow by defining NetSupport RAT as the payload linked to the foothold action, illustrating how the remote access Trojan enables malicious control through legitimate tools.
- Navigate to Create | Stix Object | Malware.

Figure 5.9: Adding a malware object
Figure 5.8: Adding a malware object
- Fill in the following:
- Name: NetSupport RAT
- Description: This RAT exploits legitimate remote administration tools for malicious purposes and has been used in various high-profile attacks.
- Name: NetSupport RAT
- Connect RAT Installation to NetSupport RAT with an arrow.
Let’s move on to create the credential harvesting action.
Creating the credential harvesting action
Section titled “Creating the credential harvesting action”This stage adds a credential harvesting action to the attack flow by modeling how the attacker uses the RAT to extract cached admin credentials, establishing deeper access to critical systems such as the MES portal.
- Right-click in the workspace and create another action.
- Fill in the following:
- Name: Credential Theft
- Technique ID: T1555 (Credentials from Password Stores)
- Description: The attacker uses the RAT to deploy a memory scraper that captures the admin’s cached credentials, including those used for accessing the MES (Manufacturing Execution System) administration portal.
- Name: Credential Theft
- Connect RAT Installation to Credential Theft with an arrow.
We’ll follow this up by creating a credential asset.
Creating the credential asset
Section titled “Creating the credential asset”This step adds a credential asset to the attack flow by defining Admin Credentials as the harvested data resulting from credential theft, visually linking the action to its extracted target.
- Navigate to Create | Attack Flow | Asset.
- Fill in the following:
- Name: Admin Credentials
- Description: User credentials are obtained from credential dumping.
- Name: Admin Credentials
- Connect Credential Theft to Admin Credentials with an arrow.
The next step is to create a lateral movement action.
Creating a lateral movement action
Section titled “Creating a lateral movement action”This adds a lateral movement action to the attack flow by modeling how the attacker uses stolen MES credentials to access the MES, bridging the IT and OT environments through the DMZ.
- Create a new action.
- Fill in the following:
- Name: MES System Access
- Technique ID: T1021 (Remote Services)
- Description: Using the harvested MES credentials, the attacker accesses the MES system located in the IT environment. While this system doesn’t directly control production equipment, it exchanges production data with the OT network through the IT/OT DMZ.
- Name: MES System Access
- Connect Admin Credentials to MES System Access with an arrow.
Now, we’ll validate the flow.
Validating your flow
Section titled “Validating your flow”This stage involves reviewing the attack flow for completeness and accuracy by checking the validation pane, ensuring all required fields are populated, and resolving any detected errors to finalize the model.
- Check the validation pane for any errors.
- Ensure all required fields are filled in for each action.
- Fix any validation errors that appear.
Let’s move on to the last stage.
Saving your work
Section titled “Saving your work”The final step is to save your work. To do so, follow these steps:
- Go to the File menu.
- Choose the appropriate save option:
- Save: Stores the flow in
*.afbformat for future editing- Save as Image: Exports as a
*.pngfile for documentation or presentations - Publish Attack Flow: Exports as a
*.jsonfile for machine processing
- Save as Image: Exports as a
- Save: Stores the flow in
Important notes
Section titled “Important notes”- Consider adding additional details such as these:
- Defensive gaps that allowed each step to succeed
- Potential mitigations that could prevent progression
- Estimated time required for each stage of the attack
- Defensive gaps that allowed each step to succeed
- Remember to save your work frequently, as Attack Flow Builder does not autosave.
- You may want to organize the flow visually by aligning actions to represent the progression from IT to OT domains.
Your diagram should look something like this:

Figure 5.10: Attack flow – spear-phishing leading to malware, credential theft, and lateral movement from IT into MES across the IT/OT boundary
Figure 5.9: Attack flow – spear-phishing leading to malware, credential theft, and lateral movement from IT into MES across the IT/OT boundary
This exercise helped you get familiarized with attack flow tools and how attack paths can be drawn and visualized. I will leave it to you to embellish and provide more details on the attack and other assets and actions. If you need inspiration, MITRE Attack Flow offers examples for review and modification, located here:
https://center-for-threat-informed-defense.github.io/attack-flow/example_flows/
Remember that attack paths work best when integrated into your broader threat model as a targeted validation and prioritization tool rather than a comprehensive security analysis method. Use them to test your most critical threat scenarios and validate whether your security controls actually prevent the attack chains that pose the most risk to your organization. When combined with other threat modeling approaches, attack paths help guide the implementation of your security controls.
Assessing system preparedness
Section titled “Assessing system preparedness”It’s clear by now that organizations can face a lot of challenges when securing infrastructure that spans both on-premise environments and cloud services. While threat modeling plays a key role in understanding what threats may exist in these environments, assessing your hypotheses and assumptions will provide a much clearer view of the system preparedness. This preparedness is the validated and provable readiness of an organization’s infrastructure and systems to detect, respond to, and recover from real-world threats.
Effective preparedness strategies adopt consistent security frameworks that protect data and systems regardless of where they reside while still addressing the varied attack vectors that target each deployment model. As threat actors increasingly design campaigns to exploit the integration points between on-premise and cloud resources, organizations likewise should test their ability to identify and respond to malicious actors through regular assessments.
These preparedness strategies translate into specific, actionable assessments that organizations can implement to validate their security posture across hybrid environments. The following examples demonstrate how to move beyond theoretical threat modeling into practical testing scenarios that reveal real gaps in detection, response, and recovery capabilities.
Example: preparedness assessments
Section titled “Example: preparedness assessments”There are a lot of similarities between on-premise and cloud preparedness assessments. The goal of the assessment is to identify potential gaps in the system, validate that against the threat model, and implement controls that close the gaps regardless of the deployment model.
Here are some assessment exercises and how they fit into the broader threat modeling context:
- Penetration testing can operationalize the threats identified during threat modeling by actively trying to exploit them. While threat modeling identifies potential vulnerabilities conceptually, penetration testing validates whether these vulnerabilities actually exist in practice or whether the mitigations proposed are actually in place and working. But to get real value from the penetration test, ensure that the findings are looped back into the threat model to distinguish between the theoretical threats and genuine security concerns.
- Breach and Attack Simulation (BAS) tools complement threat modeling by continuously validating the threat landscape against your current defenses and providing ongoing verification that those countermeasures are working as intended. Again, the feedback loop to the threat model based on simulation results allows organizations to adapt their posture.
- Red teams can use a threat model to simulate how sophisticated adversaries might chain together multiple vulnerabilities identified. These exercises test not just technical controls but also the security ecosystem, including people and processes. The scenarios developed by and for red team exercises are often derived directly from threat modeling outputs, focusing on the highest-impact attack paths that could lead to the biggest risk to the organization.
- Vulnerability scanning should be used to identify specific vulnerabilities in systems and applications. Scanning tools scale well, maybe too well if you consider the large amount of possible false positives, and can be integrated in most stages of system development. These findings should be validated against the threat model by providing concrete examples of system weaknesses.
- Tabletop exercises bring cross-functional teams together to walk through how threats identified during modeling would unfold in real-world scenarios. Perhaps more importantly, how the organization would respond to the onset of an attack identified in a threat model. These exercises help validate the assumptions made during threat modeling and test whether response procedures adequately address the modeled threats. They’re particularly valuable for testing non-technical aspects of security that can’t be verified through automated tools, such as procedures and communication activities.
- Security audits verify whether security controls identified during threat modeling have been properly implemented and are functioning as intended, and whether internal or external audits can provide evidence of compliance with security requirements, regulations, and industry standards. Audit findings often highlight discrepancies between what’s documented in threat models and actual implementation, which can lead to the closing of security gaps.
- Incident response drills test an organization’s ability to detect and respond to the threats identified through threat modeling. These drills validate whether the incident response plan, which is hopefully in place, can effectively address scenarios that emerge from threat models. The lessons learned from these drills then inform updates to both the incident response plan and the originating threat models.
- Cloud Security Posture Management (CSPM) tools are used to continuously monitor and improve cloud configurations against best practices and requirements. When validated against the threat model, they can show whether the current security posture aligns with assumptions made during threat modeling. The ongoing monitoring ensures that threat models stay current with the cloud environment as they change.
The goal of the system preparedness assessment is to create a feedback loop between the activities and the created threat model, where findings from tests validate, refine, and enhance the threat models. This ensures that the model remains accurate and effective over time and that the overall process of identifying threats in the organization is working as intended.
Designing secure infrastructure
Section titled “Designing secure infrastructure”Now that you’ve created your threat model, you’ve taken some of the more critical attack paths and visualized them, assessed the realities of the model, and discovered what’s real and what’s a lower priority for the organization, now what? All that work should lead to designing a more secure system.
The completed threat model should be a recipe for developing system infrastructure, regardless of the deployment model (cloud or on-premises), that is more resilient to cyberattacks by mapping critical assets in the system to the identified threats, allowing you to prioritize the threats by asset. This recipe should also identify the working security controls that you hopefully tested during the assessments mentioned previously, as well as the ones that are not in place or ineffective.
Secure design in the cloud
Section titled “Secure design in the cloud”CSPs have an interest in you securing the services you use from them. Most have adopted a “best practice” of sorts when it comes to how to securely use their offerings. While each CSP may have a variation in the details on the secure use of their services, there are common themes. AWS is probably one of the more well known for its Well-Architected Framework, which includes the security pillar, which provides guidance on how to protect data, systems, and assets in the cloud.
The security pillar encompasses several key areas:
- Identity and Access Management (IAM): Implementing strong identity foundations, enforcing the principle of least privilege, and centralizing identity management to control access to AWS resources.
- Detective controls: Monitoring, alerting, and auditing actions and changes in the environment in real time. Integrating log and metric collection with systems to automatically investigate and take action.
- Infrastructure protection: Applying security at all layers, including the edge of the network, VPC, load balancing, instances, operating systems, applications, and code. Using defense-in-depth strategies with multiple security controls.
- Data protection: Classifying data into sensitivity levels and using mechanisms such as encryption, tokenization, and access control to protect data in transit and at rest. Reducing or eliminating the need for direct access to data.
- Incident response: Preparing for security events by having incident management and investigation policies and processes. Running incident response simulations and using automation tools to increase detection, investigation, and recovery speed.
However, other CSPs have similar recommendations. Microsoft Azure Well-Architected Framework includes the security pillar and has IAM and Data Protection similar to the AWS security pillar. There are other nuances to the Azure security pillar:
- Network security: Implement firewalls, security groups, and network segmentation to control traffic and protect Azure resources from unauthorized access and cyber threats.
- Threat protection: Utilize tools such as Microsoft Defender for Cloud and Azure Security Center to continuously monitor, detect, and respond to potential security threats in real time.
- Security management: Establish a security baseline, conduct continuous monitoring, and develop an incident response plan to manage and improve the security posture of your Azure environment.
Additionally, the Google Cloud Platform (GCP) security framework again contains similar threads on IAM, data protection, and security monitoring, while adding the following emphasis:
- Security monitoring and logging: Continuously monitor and log activities using tools such as Google Cloud Logging and Google Cloud Monitoring to detect and respond to security incidents in real time.
- Compliance and governance: Ensure compliance with regulations and best practices by leveraging Google Cloud’s compliance management tools and implementing robust governance policies.
These security pillars are created to guide organizations in developing secure designs in their cloud environments. But what does this have to do with threat modeling?
Remember that the goal of your threat model is to identify potential weaknesses in your system and use that to develop secure architecture. Using these pillars, the security practitioner should begin by adapting the threat modeling methodology to incorporate cloud-specific threat vectors. For each asset identified in your threat model, map it to the relevant cloud security pillars from your chosen CSP. Many organizations will have these pillars established as security controls that are broken down into more digestible parts.
Most of the CSPs have IAM as a core security pillar. That is because gaining access to an account opens up additional attack vectors. Given that, the organization may take the IAM security pillar and break it down to the following specific processes, procedures, or tasks that should be implemented in the design.
Here are some examples:
- MFA: Enforce the use of MFA for all user accounts to add an additional layer of security.
- Identity federation: Integrate IAM with existing identity providers (e.g., Active Directory) to centralize identity management and streamline access control.
- Role-Based Access Control (RBAC): Define roles with specific permissions based on job functions and assign users to these roles to minimize unnecessary access.
- Single Sign-On (SSO): Implement SSO to provide a unified access management system, allowing users to access multiple accounts and applications with a single set of credentials.
Lastly, when identifying threats, the security pillars should be considered as a checklist to ensure you’re considering all potential attack vectors. For example, when modeling a data storage component, examine it through the lens of data protection, IAM, and infrastructure protection pillars simultaneously. This should be similar to utilizing something such as STRIDE during threat modeling.
Secure design on-premises
Section titled “Secure design on-premises”Why should the cloud have all the fun? You can utilize the security pillars for your on-premise infrastructure as well. While very similar concepts exist with on-premise systems, there are added concerns with physical security and insider threats. However, the goal remains the same: ensuring the confidentiality, integrity, and availability of data and systems within the physical infrastructure.
Here are some common security pillars to consider for on-premise systems:
- Physical security: Protecting the physical infrastructure, including access control systems, video surveillance, perimeter protection, and environmental controls (e.g., fire suppression, climate regulation). This should also include redundancy and backups as it relates to data, systems, and power.
- Network security: Implementing firewalls, Intrusion Detection and Prevention Systems (IDPS), Network Access Controls (NAC), and secure network configurations to protect against unauthorized access and cyber threats.
- Data Security: Ensuring data protection through a strategy that implements full-disk encryption for data at rest, and encryption of data in motion with TLS. Organizations should employ data loss prevention tools to monitor and block unauthorized data exfiltration, maintain regular backup schedules with tested recovery procedures, and utilize data masking or tokenization to protect sensitive information in development and testing environments. Even better, don’t collect data that you don’t actually need.
- Identity and Access Management (IAM): Managing user access and permissions to ensure that only authorized personnel can access sensitive systems and data through directory services such as Microsoft Active Directory and LDAP. As mentioned, SSO platforms and MFA solutions provide additional security and ease of use. Once authenticated, RBAC frameworks limit user permissions to only what’s necessary for their job functions, while Privileged Access Management (PAM) tools provide specialized monitoring and control over accounts that access sensitive systems and data.
- Monitoring and auditing: Continuously monitoring and logging activities within the data center to detect and respond to potential security incidents. Most organizations realize this level of monitoring using tools such as SIEM. However, all those logs are no good without regular audits to help ensure compliance with security policies and regulations.
- Compliance and governance: Ensuring that the data center adheres to relevant regulatory requirements and industry standards such as FISMA or SOC 2. This involves implementing security controls, documenting compliance efforts, and being able to provide that evidence to an auditor or assessor.
As we’ve covered in this chapter, very few organizations are solely in the cloud or on-premise. Most are an integrated patchwork of systems and services where the best-in-breed is utilized regardless of where it is located. That said, you are likely to find that most organizations will have to implement these security measures and controls based on their deployment model. You, as the security practitioner, will need to understand the deployment and integrate the controls and gaps into your threat model.
Summary
Section titled “Summary”This chapter explored threat modeling of infrastructure in modern organizations that utilize hybrid deployment models. We began by defining what “infrastructure” means in a technological environment, where the traditional on-premises hardware has largely given way to a multi-cloud hybrid environment. This shift has changed how security professionals approach threat modeling, security control development, and risk management.
Throughout the chapter, we examined the distinct threat landscapes facing on-premises, cloud, and hybrid deployments. Each environment presents unique security challenges that require specialized approaches to threat modeling and mitigation. We introduced methodologies for cloud and infrastructure threat modeling, emphasizing the importance of understanding attack paths through various components of modern infrastructure.
We utilized Attack Flow Builder from MITRE to visualize assets and attack vectors in an IT/OT environment. We also addressed the critical need for assessing system preparedness through examples of preparedness assessments that organizations can implement to evaluate their security posture.
Finally, we outlined principles for designing secure infrastructure, with specific guidance for both cloud and on-premises environments. These design principles emphasize defense-in-depth strategies, least privilege access controls, and architectural approaches that help to minimize an organization’s attack surface. In the next chapter, we’ll discuss threat modeling and the supply chain in detail.
Get This Book’s PDF Version and Exclusive Extras
|