Mobile and IoT Threat Modeling
local graph
Chapter 7 — Mobile and IoT Threat Modeling
Section titled “Chapter 7 — Mobile and IoT Threat Modeling”We are surrounded by connected devices. They are in our homes, in our offices, on a factory floor, or in our pockets. Each device can interact with our physical world or connect us to people thousands of miles away. The power and opportunity of these devices are immense, but they can also bring a widened threat surface to an organization. In this chapter, we’ll explore the unique security challenges introduced by Internet of Things (IoT) and mobile devices, particularly in complex environments where IT meets OT.
From smart factories and hospitals to agricultural fields and remote industrial deployments, these devices often serve as critical components while simultaneously being a potential weak point in modern infrastructure. We’ll examine how adversary modeling can sharpen our understanding of real-world threats, delve into the distinct risk profiles of mobile and IoT systems, and learn how to use threat modeling outputs to drive the development of effective, context-aware security controls.
In this chapter, we’ll cover the following topics:
- Understanding IoT and mobile threats
- Adversary models and their role in identifying threat actors in a system
- Threat modeling of IoT devices, smart factories, and mobile devices
- Designing secure mobile and IoT systems.
- Case study: Virgin Atlantic’s IoT-enabled aircraft
Understanding IoT and mobile threats
Section titled “Understanding IoT and mobile threats”Mobile and IoT devices introduce some unique threat vectors. For instance, mobile devices can face threats from malicious applications, physical device compromise, and the mixing of personal and corporate data on the same device. IoT devices are often vulnerable to weak authentication, an inability to receive security updates, and deployment in physically uncontrolled environments. These threats are significant in threat modeling because IoT and mobile devices often operate outside traditional network perimeters with stringent security controls.
IoT refers to a network of physical objects such as appliances, vehicles, or sensors that are connected to the internet and can collect, share, and act on data. It’s what makes everyday devices “smart” by enabling them to communicate and automate tasks with little to no human input.
Lastly, mobile and IoT devices operate in environments where attackers may have physical access, network traffic can be intercepted, and device lifecycle management becomes a shared responsibility between manufacturers, service providers, and end users. This chapter explores how to adapt threat modeling practices to account for these unique attack surfaces and the blurred boundaries between IT and OT environments that these devices create.
Convergence of IoT and mobile in IT/OT environments
Section titled “Convergence of IoT and mobile in IT/OT environments”Think about the smartphones we use daily. Are they simply communication devices that are used to gather information from every corner of the internet, allowing us to interact with the digital world, and perform services virtually that we used to have to do physically (such as banking)? Or are they part of the larger interconnected world?
While the early stages of smartphones were used to expand our communication abilities and allow us to be always connected, no matter where we are, they have since become an extension of ourselves and our ability to interact with the physical world. Some hotels in the United States allow you to check in and use your phone as the key, allowing you to bypass the check-in desk. These phones can also be used to set your home alarm, start your car, unlock your front door, set the lights and temperature in your house, all while being miles away. These capabilities extend beyond the household, and their usage in IT/OT environments has a large impact on how organizations can monitor and manage their environments.
If you look at a modern smart factory, they are littered with IoT devices. Little smart and interconnected sensors or equipment that are used to collect, transmit, and process data such as machine performance or environmental conditions. This has drastically improved the way that factories are managed and operated, while optimizing their processes. On today’s smart factory floor, machines are no longer isolated and operated by several individuals. Instead, they function as part of an interconnected nervous system, often managed remotely by fewer individuals. From vibration patterns in bearings to microscopic variations in product dimensions, this sensor network generates terabytes of operational data daily that are ingested and acted upon.
While these sensors collect data and feed it back into the overall ecosystem, there is still a need for human interaction. Humans interact through a human interface device (HID) that acts as an aperture into the system, providing visibility into its operations. Factory personnel now carry ruggedized tablets or other mobile devices that serve as HIDs, which display real-time dashboards of production metrics as they walk the floor. Today, these devices can include augmented reality overlays that can highlight machines operating outside optimal parameters. Technicians can receive prioritized alerts on their devices when the data points to a subtle change in equipment performance, allowing them to address potential failures before they cause costly downtime.
Explosion of IoT botnets
Section titled “Explosion of IoT botnets”One concern with IoT devices is the fact that once compromised, they can be utilized in a botnet attack. A botnet is a network of compromised devices that are controlled by an adversary to carry out malicious activities. In most cases, these botnets are used to launch traffic flooding attacks such as distributed denial of service (DDoS), send spam, or steal data, often without the owner’s knowledge.
In early 2025, Cloudflare reported that it had successfully mitigated the largest DDoS attack ever recorded, reaching an unprecedented 5.6 terabits per second. The attack, which occurred on October 29, 2024, targeted an Eastern Asian internet service provider and originated from a Mirai variant botnet utilizing over 13,000 compromised IoT devices. Despite its massive scale, the attack lasted only 80 seconds, with each participating device contributing an average of 1 Gbps to the assault. This incident surpasses Cloudflare’s previous record of 3.8 Tbps from earlier in October 2024, demonstrating the increasing capabilities of DDoS attackers.
The attack highlights alarming trends in the cybersecurity landscape, with Cloudflare reporting a 53% year-over-year increase in DDoS attacks for 2024, totaling 21.3 million incidents. Particularly concerning is the 1,885% quarter-over-quarter growth in attacks exceeding 1 Tbps. The most common attack vectors included SYN floods (38%), DNS floods (16%), and UDP floods (14%), with Indonesia, Hong Kong, and Singapore serving as primary origination points. This escalation coincides with security researchers at Qualys and Trend Micro identifying new Mirai botnet variants specifically targeting IoT devices through known vulnerabilities and weak credentials, converting these compromised devices into powerful weapons for launching massive DDoS campaigns against critical infrastructure.
If this sounds complex, you’d be right. IoT and mobile technologies used in these environments face a diverse range of threats that exploit their unique characteristics:
- Many IoT devices lack robust security controls due to resource constraints, outdated firmware, or inadequate security testing. IoT devices also frequently use specialized protocols (MQTT, CoAP, or Zigbee) that may have security weaknesses or implementation flaws.
- Mobile devices can be used on multiple networks (public or private), leading to potentially more opportunities for attackers to gain access when traversing less secure networks.
- Default credentials, weak password policies, and insufficient access controls plague many IoT deployments. Mobile applications, especially on personal devices, can contain malware used to bypass authentication and scrape data.
- Both IoT and mobile devices may collect and transmit vast amounts of potentially sensitive information that require protection throughout their lifecycle.
- A compromised mobile device can capture keystrokes to extract sensitive credentials, which attackers can then use to infiltrate connected IoT devices.
- A compromised mobile device can introduce malware into the system it interacts with, spreading to IoT devices connected through the same network or platform.
- Users can be coerced or socially engineered to install malware or interact with the interface of IoT in unexpected ways.
This is not a complete list by any means, as the threat surface can be wide and varied depending on the environment and the controls in place. However, make no mistake that mobile and IoT devices are intertwined in these IT and OT environments, leading to the potential exchange of malicious activity in either direction.
Adversary model
Section titled “Adversary model”To help us develop threat modeling of IoT and mobile threats, it’s useful to apply an adversary model. We’ve discussed what adversaries are throughout the book, but adversary models help clarify what the attacker’s methods and access look like as they target your systems. The adversary model follows some basic principles of understanding:
- What can an adversary do?
- What do they want?
- What is their skill level?
This is similar to the threat modeling mindset regarding what we are building, what can go wrong, what we can do about it, and whether we did a good job. However, the adversary model focuses more on what the adversary’s goals, resources, and limitations are. Acknowledging the adversaries allows us to build systems that are more resilient against the most likely scenarios and helps us to anticipate the range of threats that a system is likely to face.
Adversaries in an IT/OT environment often have an advantage, considering that IoT devices can be scattered throughout the environment. They may also have varying security controls across the different operational zones (including corporate environment, sensors on a factory floor, cameras on the outside of the building). This is heightened by the potential for an attacker to gain physical access or rogue devices being planted on the same network as other devices, opening the attack surface. Without understanding the adversaries in these environments, the threat model can often lack focus and proper context, which can leave systems open to plausible but unconsidered attacks.
Types of adversary models
Section titled “Types of adversary models”Various adversary models are employed across different domains of environment security. Each model makes specific assumptions about the attacker’s capabilities, resources, and intent.
Dolev-Yao
Section titled “Dolev-Yao”The Dolev-Yao adversary model is foundational in cryptographic protocol analysis. It provides a formal way to evaluate the security of protocols by assuming an extremely powerful adversary. It assumes that the adversary has the following attributes:
- Intercept and modify messages: The adversary can intercept and alter any message transmitted over the network. This is particularly concerning in wireless environments where IoT and mobile devices frequently operate, creating numerous potential interception points.
- Forge messages: They can synthesize new messages using known cryptographic keys or previously intercepted data. Consider a smart factory where an attacker might forge commands to industrial equipment after observing legitimate traffic patterns.
- Cryptographic constraints: The adversary is limited by the cryptographic methods used, meaning they cannot break encryption or guess keys unless explicitly allowed by the model. While this represents an idealized constraint, it encourages strong encryption implementation in connected systems.
When we consider the various interconnected mobile and IoT devices bridging traditional IT and OT domains, the Dolev-Yao model becomes increasingly relevant. For instance, the HIDs that factory workers carry serve as operational interfaces for industrial systems while often connecting to other networks such as corporate environments. This convergence creates attack surfaces that traditional models struggle to capture.
Canetti-Krawczyk
Section titled “Canetti-Krawczyk”The Canetti-Krawczyk adversary model provides a robust framework for analyzing security protocols, with particular strength in evaluating key exchange and authentication mechanisms. This model is especially relevant when considering the security implications of integrating mobile devices and IoT sensors with critical OT infrastructure.
Adversaries in this model have the following attributes:
- Session state reveal: This allows the adversary to partially compromise an ongoing session by accessing temporary session-specific data such as ephemeral keys. This directly models real-world scenarios we see in IoT deployments, where attackers might gain limited access to a device during an active communication session.
- Session key reveal: The adversary can obtain the session key used for encrypting communication in a specific session. In practical terms, this tests whether protocols used in OT/IT bridges can maintain forward secrecy and session independence across multiple sessions.
- Party corruption: This simulates scenarios where an attacker compromises a device or account entirely, gaining access to long-term keys or credentials. This is particularly relevant in IoT environments where devices may be physically accessible or deployed in hostile environments, making them susceptible to complete compromise.
When a field technician uses a tablet to interface with industrial equipment, the security of that interaction depends on the protocols being used and their ability to withstand potential compromise. The Canetti-Krawczyk model shows how to evaluate whether communication remains secure even when parts of the system are accessed. Using this model for threat assessments means that organizations can develop more resilient systems that acknowledge the reality of partial compromises. We talk about “ assume breach ” frequently in cybersecurity. The Canetti-Krawczyk puts that in stark terms.
Byzantine adversary
Section titled “Byzantine adversary”Unlike conventional threat actors who operate within predictable patterns, Byzantine adversaries can behave arbitrarily and unpredictably. They can deliberately send contradictory information to different parts of a system, violate protocol specifications, and even coordinate with other malicious entities to maximize disruption. In the context of a manufacturing facility where hundreds of sensors communicate with central control systems, a Byzantine adversary who compromises even a small percentage of these devices can inject false readings that appear legitimate. This pollution can potentially trigger unnecessary shutdowns or even mask critical failures.
Some examples of Byzantine adversarial activities include the following:
- Conflicting information: In distributed systems, a Byzantine adversary node might send one version of a transaction to one group of nodes and a completely different version to another group.
- Collusion: A group of compromised nodes in a blockchain might deliberately coordinate to approve fraudulent transactions or create a “fork” in the ledger. This is commonly referred to as a “Sybil attack,” where an adversary controls numerous fake identities in a network.
- Unpredictability: In a distributed database, a Byzantine adversary node might act correctly at first, processing queries accurately to build trust among other nodes. However, once relied upon, it could begin altering responses to create inconsistencies or inject invalid data into the database.
The interconnection between IT and OT environments allows Byzantine threat agents to utilize mobile devices acting as HIDs as attack vectors. A compromise in one or many devices could have a cascading effect across both environments. This risk is compounded by the inherent trust many organizations place in their environments, where, once you are authenticated on the network in the environment, you are assumed to be trusted. This extends to the data in that environment as well. When a smartphone app indicates that all systems are functioning normally, operators rarely question this. Byzantine adversaries exploit this trust gap, manipulating the information displayed on these HIDs while simultaneously altering the behavior of the systems themselves.
The honest-but-curious adversary
Section titled “The honest-but-curious adversary”The honest-but-curious (semi-honest) adversary model is widely used in cryptographic and privacy-preserving computations. This model assumes that the adversaries are simply trying to understand the system without malicious intent. While it’s not strictly a model that focuses on ill intent, its focus is on discovering how much information can be gleaned from simply watching the normal behavior of the environment. Some attributes of the honest-but-curious adversary are as follows:
- Protocol compliance: The adversary strictly follows the protocol as intended, without deviating or tampering with the process.
- Curiosity: Despite adhering to the rules, the adversary tries to infer additional information by observing intermediate computations, data exchanges, or outputs.
- Passive nature: Unlike active adversaries, they do not disrupt or manipulate the protocol. Their goal is solely to gather extra insights.
In an IT/OT environment, industrial IoT sensors often send telemetry to cloud platforms through mobile gateways. An honest-but-curious adversary might comply with all authentication protocols while passively collecting metadata about the transmissions, potentially revealing production schedules or operational states without ever breaching the encrypted data payload itself.
While other specific types of adversary models exist, they can often be broken down into a handful of categories that are more general and align more closely to what we’ve discussed throughout the book. For instance, adversaries can be intentional or unintentional. They can be malicious or curious. They can have direct access or remote access. The important consideration in threat modeling is that understanding the adversaries helps us predict how they are likely to interact with the environment, allowing us to build our security controls to counter them effectively.
Threat modeling of IoT devices
Section titled “Threat modeling of IoT devices”Whether they are in a smart home, a factory floor, transportation systems, or a remote agriculture field, IoT devices can pose a unique threat to the overall system. For many of these systems, dozens or hundreds of IoT devices can be deployed. These system components can consist of cyberphysical devices that influence (or are influenced by) the physical world, such as locks and sensors. They can be passive sensors, cameras, or monitoring equipment that collect data and send it back to a central point or service. From a security standpoint, each of these devices has its own ability to open the threat aperture into a system.
Effective IoT and mobile threat modeling must account for multiple communication channels (Bluetooth, NFC, Wi-Fi, and cellular) often on the same device. These different channels offer varying trust boundaries and bring with them the reality that mobile and IoT devices frequently traverse between secure and insecure environments.
Additionally, IoT and mobile devices can often find themselves literally in the hands of a malicious actor – something that is rare, for example, in a cloud environment. This means that maintaining the physical security of these devices is a challenge at best or assumed to be a lost cause at worst, as these devices often sit unattended in high-traffic areas. While digital controls can be put in place for the data that is transmitted to and from the device (such as encryption), physical exposure is often uncontrollable.
Cracking DRM on DVD
In 1999, a small program called DeCSS upended the digital rights management (DRM) world when it broke the content scramble system (CSS) protecting DVDs. Suddenly, anyone could bypass Hollywood’s digital locks. At the time, media creators such as music and movie producers were desperate to keep their content from proliferating illegally. DRM was an attempt at adding a lock on content to attempt to thwart the copying and sharing of content. However, the means and technology for bypassing DRM were built into the hardware devices that were used to play such content (DVD and CD players).
Soon, determined individuals were able to identify the key material used to unlock the DRM, which led to the ability for DRM-free content to be shared once again. This highlights how security needs to consider the ability to maintain protection even if a determined attacker has access to the devices and data.
Further complicating the matter is the fact that in IT/OT systems, these devices can be scattered and distributed across large physical areas such as corporate, medical, or university campuses. And they are often in either hard-to-get-to locations or in poorly monitored areas.
So, where do we begin with threat modeling of these IoT and mobile devices? Like other methods that we covered previously, it starts with understanding the ecosystem, where devices reside, and how they not only connect to the overall system, but also how humans interface with them.
Ecosystem analysis
Section titled “Ecosystem analysis”Hopefully, you haven’t spent a lot of time in a hospital, but many of us have had the experience of being there for ourselves or in support of someone we know. When you work in tech or security, your view of a hospital drastically changes. But it’s also a great example of how a single location can house an immense number of devices and data, often with few physical controls in place.
Although hospital IT staff are often understaffed and juggling multiple priorities while ensuring patient safety, gathering the asset inventory is critical to understanding what devices exist, where they are, and their impact on the overall IT system. Hospital equipment, such as workstations, printers, scanners, mobile devices, monitoring devices, servers, and network equipment, all add to the overall technological ecosystem of the hospital. Many of these are tagged with barcodes, RFID, or Bluetooth Low Energy (BLE) tags to manage their issuance and location throughout the system. However, some modern IoT devices come with built-in tracking capabilities that transmit their location and status over Wi-Fi. You may already be thinking that this opens the attack surface. You’d be right.
More recently, there has been a drive toward a paradigm called remote patient monitoring (RPM), where the physician will provide a device for the patient to take home. They can take the test from the comfort of their home rather than going to a clinic to get it done. While RPM devices are not suited for all scenarios, heart and sleep monitoring are two prime examples of RPM devices that assist physicians in making a diagnosis. RPM devices will collect data and send it back to the physician over a network connection. Or it might also require physical access for the data transfer when the patient returns the device. This extends the IoT ecosystem outside of the “four walls” of the hospital and into the patient’s home.
This hospital scenario highlights the complexity of a distributed system with endpoints moving around in a chaotic atmosphere. Additionally, in this case, IT and technology in general are not the core competency of the business. The devices and their connectivity are often an afterthought for the users who are simply trying to provide patient care.
There are a few ways to ensure that IoT and mobile devices are identified, monitored, and tracked in an OT/IT environment to build the inventory of assets. Without this, it’s difficult to build your threat model.
A BLE gateway or other wireless collector, such as Wi-Fi access points with device tracking capabilities, RFID readers, or a Zigbee coordinator, can monitor devices in the building and provide real-time location and status information. These appliances act as a passthrough between IoT and mobile devices in the environment and backend services. They are useful in asset management while also tracking the location of devices and the individuals who carry them. They can also be useful in identifying non-sanctioned devices that join the network.
Data collection from IoT and mobile devices can help establish normal patterns and deviations as well as insights into how devices are performing. Device data should be sent to a centralized platform where it can be aggregated, unified, and accessible. However, it’s important to ensure that each device in the environment has a unique device identifier as well as locations and operational status.
Cloud-based platforms offer another connectivity point for IoT and mobile devices. Cloud-based platforms can be managed by the organization or utilize services from third parties. From these platforms, administrators can remotely monitor and control the devices in an environment. The visibility that these platforms offer provides another avenue for device tracking.
Audits go a long way in ensuring that devices in an environment are properly tracked and operating correctly. More importantly, they offer the ability to physically inspect the device to ensure it has not been tampered with or moved. Especially in environments such as factories or offices, audits should be used to validate asset management and confirm that devices are operating as intended.
As discussed in our previous chapters, the early stages of threat modeling require knowing what’s in the environment and defining a scope that encompasses the totality of the environment.
Distinct IoT considerations
Section titled “Distinct IoT considerations”When considering the threats to an environment with IoT or mobile devices, consider the hardware-specific threats that exist for those devices. As mentioned previously, physical access to the devices by malicious or normal users can lead to intentional or unintentional security threats. An attacker who has physical access to the device on a factory floor may be able to tamper with the device in various ways.
An attacker can disable the gateway by physically damaging or disconnecting the BLE gateway from its power source or network. It causes a loss of communication with the tracking tags, disrupting real-time tracking, and could delay production processes. They can also install rogue devices by replacing or adding a rogue BLE gateway that intercepts data from the IoT tags. They can then use this data to understand operational patterns or manipulate it to mislead factory operators (e.g., showing equipment as being in the wrong location).
If the IoT device has an accessible interface, the attacker may install modified firmware or alter configurations to reduce device accuracy or introduce vulnerabilities. For example, they could decrease the reporting frequency of asset trackers, creating “blind spots” in monitoring. The attacker could also physically interfere with device sensors and trigger malfunctions by blocking them, adding materials that confuse readings, or replacing components with faulty parts. This may lead to false alerts or unnoticed equipment issues.
Additionally, there are what are called side-channel attacks, which exploit indirect information leaked during device operation rather than breaking into the device through conventional hacking methods. Think of this as a type of “inference attack” specific to the operations of the device, such as heat patterns, acoustics, or power consumption. Some examples include the following:
- Electromagnetic emanations: An attacker could use specialized equipment, such as EM field probes or spectrum analyzers, to measure electromagnetic emissions from the BLE gateways or IoT sensors. By analyzing these signals, they might infer sensitive data, such as communication patterns, encryption keys, or even operational states of machinery.
- Power analysis: By observing fluctuations in power consumption, an attacker could deduce the operations being performed by a device. For example, certain cryptographic functions may have distinct power usage patterns, potentially exposing encryption keys.
- Timing attacks: An attacker could measure the time taken by IoT devices to perform specific operations, such as processing data or responding to queries. These timings might reveal details about the underlying algorithms or allow for the extraction of cryptographic secrets.
- Acoustic or vibration analysis: Sensors or actuators in the IoT system might emit noises or vibrations during operation. With precise monitoring equipment, such as high-fidelity microphones or parabolic dishes, an attacker could exploit these physical cues to reconstruct sensitive information about the machinery’s processes.
- Thermal analysis: By detecting heat patterns or changes in the temperature profile of IoT devices, an attacker might gather insights into their workload or operational state, potentially leading to security breaches.
While update mechanisms vary with IoT and mobile devices, with some requiring physical access to patch or update the software, many devices (especially mobile) can often be updated over the air using Wi-Fi, Bluetooth, or cellular networks. However, this opens an attack surface in the over-the-air update mechanism, leading to compromise of the device, data, or escalation within the environment. Some methods of disrupting the update mechanism are the following:
- Adversary-in-the-middle attacks: An attacker intercepts communications between the IoT device and its update server, potentially injecting malicious updates or blocking legitimate ones. This can happen if the connection lacks encryption (e.g., TLS) or proper authentication mechanisms.
- Tampering with update files: If the update files are not signed or validated, attackers can replace them with malicious versions. Unsigned firmware allows adversaries to deploy backdoors or exploit the device.
- Compromised update servers: If the server hosting the updates is breached, attackers can push malicious updates to all connected devices. This threat scales with the popularity of the IoT device.
- Lack of update authentication: Devices that don’t verify the source of the update could download and install updates from unauthorized or rogue servers.
- Roll-back attacks: An attacker forces an IoT device to install an older, vulnerable version of the firmware. This is possible if there are no mechanisms in place to prevent downgrades.
As you can see, the distributed nature and profile of IoT devices can open these devices up to unique threats requiring the threat modeler to consider these threats as they develop their threat model.
Using threat libraries for IoT
Section titled “Using threat libraries for IoT”Now, let’s look at how threat libraries can be leveraged in a threat model. Much like STRIDE, threat libraries can be used to help get the ball rolling in determining threats that impact a system. These curated collections of known security threats can be applied to a broad set of technologies or to a specific technology.
There are several threat libraries that can be utilized for IoT, and some are listed here:
- OWASP IoT Top Ten identifies the top ten security vulnerabilities in IoT systems, such as insecure communication protocols, weak authentication, and insufficient privacy protections.
- MITRE ATT&CK for IoT provides a comprehensive framework for understanding adversary tactics and techniques specific to IoT environments. It helps organizations map threats to their IoT systems.
- IoT Security Foundation (IoTSF) Guidelines offers detailed guidelines and threat libraries focused on securing IoT devices, including best practices for device manufacturers and system integrators.
- NIST Cybersecurity Framework for IoT provides a threat library tailored to IoT systems, emphasizing risk management, secure communication, and device lifecycle security.
- Organizations can also take a build-your-own approach, where they can create a threat classification, severity rating, mitigation mappings, and real-world examples to develop a comprehensive list of threats that are specific to their organization and industry.
It’s important to know that threat libraries don’t just list vulnerabilities, but rather contextualize them across networks, applications, hardware, and human factors. They are designed to simplify the identification of threats and provide a starting point for threat modelers. Let’s look at a simple example to help understand threat libraries better.
Threat modeling a smart factory
Section titled “Threat modeling a smart factory”How do we apply threat libraries in threat modeling? Let’s consider a factory floor as an example and utilize the OWASP IoT Top 10 to help guide the threats we identify. For reference, Table 7.1 is a listing of the OWASP IoT Top 10:
| Risk | Description |
|---|---|
| Weak, Guessable, or Hardcoded Passwords | Use of easily brute-forced, publicly available, or unchangeable credentials, including backdoors in firmware or client software that grants unauthorized access to deployed systems. |
| Insecure Network Services | Unneeded or insecure network services running on the device itself, especially those exposed to the internet, that compromise confidentiality, integrity/authenticity, or availability of information or allow unauthorized remote control. |
| Insecure Ecosystem Interfaces | Insecure web, backend API, cloud, or mobile interfaces in the ecosystem outside of the device that allows compromise of the device or its related components. Common issues include lack of authentication/authorization, weak encryption, and lack of input/output filtering. |
| Lack of Secure Update Mechanism | Lack of ability to securely update the device, including lack of firmware validation, secure delivery, anti-rollback mechanisms, and notifications for security changes due to updates. |
| Use of Insecure or Outdated Components | Use of deprecated and insecure software components/libraries that could allow the device to be compromised, including insecure customization by third parties and use from a compromised supply chain. |
| Insufficient Privacy Protection | User’s personal information stored on the device or in the ecosystem is used insecurely or improperly without permission. |
| Insecure Data Transfer and Storage | Lack of encryption for sensitive data anywhere within the ecosystem, including at rest on device storage filesystems and during processing. |
| Lack of Device Management | Lack of secure management options over devices deployed in production, including asset management, updates, secure decommissioning, and monitoring. |
| Insecure Default Settings | Devices shipped with insecure default settings or lack the capability to change settings to more secure configurations. |
| Lack of Physical Hardening | Lack of physical hardening measures allowing potential attackers to gain sensitive information or attack local console interfaces. |
Table 7.1: OWASP Top 10 IoT
Next, we can develop a simple diagram for the purpose of this exercise. While most smart factory systems are far more complex with thousands of devices, Figure 7.1 depicts a programmable logic controller (PLC) controlling a few devices on the factory floor.

A diagram of a computer system AI-generated content may be incorrect.
Figure 7.1: Simplified smart factory diagram used to model potential threats
The sensor and controller in this case are both internet-enabled, allowing them to be directly connected to for updates and monitoring. A manufacturing execution system (MES) connects to the PLC to monitor the device activity and issue adjustments should they need to be made. The enterprise application is in a corporate environment, which is away from the factory floor. This application accesses the MES to monitor the activity and collect data about the factory. Lastly, we have an IoT camera that is on the factory floor dedicated to monitoring the factory floor remotely.
The following are three potential threats and remediation recommendations based on the OWASP IoT Top 10:
- TS1 – (High) Insecure Interface with MES: The enterprise application communicates with the MES over a potentially insecure interface, especially if a VPN or secure API gateway is not implemented. This introduces the risk of unauthorized access or adversary-in-the-middle attacks.
Remediation: Implement strong authentication (e.g., mutual TLS) and encrypt all communications between MES and enterprise systems. Use secure APIs and monitor access logs for anomalies.
- TS2 – (Critical) Weak Password on IoT Device: The IoT camera or the internet-connected sensor may use default or hardcoded credentials, which are often exploited in botnet attacks (e.g., Mirai).
Remediation: Enforce unique, strong passwords per device. Disable default accounts where possible and implement multi-factor authentication (MFA) if supported.
- TS3 – (Medium) Lack of Physical Hardening of the PLC: The PLC, sensors, and actuators are physically accessible on the factory floor. An attacker with physical access could manipulate, replace, or reprogram them.
Remediation: Employ tamper-evident seals, secure device enclosures, and implement boot verification to prevent unauthorized firmware changes. Monitor for physical intrusion if feasible.
Exercise
Continue with this exercise by creating your own threats and remediations based on the OWASP IoT Top 10 or MITRE ATT&CK for IoT. You should follow a similar pattern of identifying the threat, ascribing a criticality to it, and proposing remediation.
Remember that once you have identified the threats, your next step is to ensure that the mitigations that have been determined are properly planned, implemented, and tested. Likewise, as the system evolves and devices are added, removed, or updated, revisit the threat model to ensure it still reflects reality.
Threat modeling of mobile devices
Section titled “Threat modeling of mobile devices”Throughout this chapter, we’ve covered mobile devices in an overall IT/OT environment. Most of that has been related to how mobile devices can be used in tandem with IoT devices in environments to control IoT or interface with them in some manner. However, mobile devices outside of this context still pose a risk to an organization’s environment.
Mobile devices, specifically smartphones, have put in our pockets the power to connect with millions of people globally in real time. It’s brought all the data and content on the internet to a small screen that we can hold in our hands. It has also, for better or worse, made us more productive as humans. We are now able to work from anywhere in the world at any time. This was accelerated during the COVID-19 pandemic, which saw the shift from in-person office work to remote work practically overnight for much of the world. The ability to work and access environments from anywhere at any time has unlocked new threats to the environment.
Distinct mobile considerations
Section titled “Distinct mobile considerations”Mobile devices such as smartphones, laptops, and tablets are unique in the sense that they offer an opportunity for attackers to target them with crafted communications designed to take advantage of the human who is operating the device. For instance, phishing, smishing, or social engineering can lead to the deployment of malware on the device. This is unique compared to IoT devices, as they are often not equipped with email clients, browsers, or other means of communication that are not related to their direct purpose.
Additionally, mobile devices are often left unattended, lost, or stolen. This can expose sensitive information or give attackers elevated access to an environment, as they can pose as a legitimate user once they have access to the device and the software installed on it.
The following are some other threats to consider related to mobile devices:
- Adversary-in-the-middle attacks: Cybercriminals intercept data transmitted over unsecured networks or through rogue Wi-Fi hotspots.
- Insecure apps: Apps downloaded from an app store can be compromised, leading to device compromise and providing an entry point for attackers.
- Cross-domain attacks: Mobile devices interacting with IoT systems (e.g., smart home devices or factory equipment) can be exploited to compromise the broader network.
- Weak passwords: Poor password and screen lock practices can make devices vulnerable to unauthorized access, especially when left in public areas.
- Unpatched software: Failure to update operating systems, firmware, and apps can leave devices exposed to known vulnerabilities.
- Bring-your-own-device: Many organizations allow users to bring their own mobile device into a network or simply have open networks that allow users to connect. This can lead to insecure devices joining the network.
These considerations apply to smartphones, tablets, laptops, and other mobile technology that bridge the gap between the user’s world and the corporate world. Let’s look at an example of threat modeling of a mobile application.
Threat modeling a mobile bank application
Section titled “Threat modeling a mobile bank application”When was the last time you were in a bank branch? For many of us, it may happen once a year (give or take). Mobile devices such as smartphones allow you to perform most of your banking from the comfort of your couch. Smartphones are also beginning to replace physical ATM cards in favor of an NFC tap on the ATM machine while logged in to your mobile banking app. These advances in technology put a financial institution in your pocket and provide a unique threat landscape for attackers to exploit.
More importantly, mobile banking isn’t just about the app you have installed on your phone. Behind the scenes, it’s an ecosystem stretching from the device to massive data centers and server farms processing your financial information. This system is particularly challenging from a threat modeling perspective, as attacks can often cascade across domains. A seemingly isolated vulnerability in a mobile app can become the entry point into core banking infrastructure, creating a domino effect across the system.
Let’s consider a simple banking application and its interaction with the banking system’s backend. Figure 7.2 shows a simple banking application and how it interacts across multiple environments.

A diagram of a mobile application AI-generated content may be incorrect.
Figure 7.2: The architecture of a simple banking application
In this case, the bank has a mobile app that is sandboxed within the mobile device with its own storage. The app can make calls to an API gateway that serves up services from two app services that the bank offers, such as a bank transfer or an account balance check. Additionally, the bank has internal services such as credit score checking and fraud detection that monitor activity. Lastly, there is a payment gateway that acts as the intermediary between the banking app, the user, and an external payment network such as a credit card network, e-wallet, or other bank accounts.
Best practice
Section titled “Best practice”With this particular threat model, let’s take a different approach to documenting the threats. This time, we will place both the threats and their controls in the same diagram. This method is often used to create a single image threat model that can be easily shared and read by the security team and their collaborators.
In Figure 7.3, we can see a few sample threats that have been identified, starting with the threat agent and the assets that they are targeting.

A diagram of a software application AI-generated content may be incorrect.
Figure 7.3: Threat model diagram for a mobile application ecosystem
Let’s analyze these scenarios:
- TS1: (High) Weak Encryption Transmission – The transmission of sensitive data (A01) between the mobile app and API gateway may occur over inadequately encrypted channels. This weakness renders data susceptible to interception or modification by adversaries (A01).
Remediation: Enforce the use of modern encryption standards (C01). Implement certificate pinning (C02) within the mobile app to prevent man in the middle (MitM) attacks.
- TS2: (Medium) Mobile App Data Leakage – Data leakage may occur if sensitive user data (A02) is improperly stored within the mobile app’s sandbox or in unprotected logs, cache, or shared storage. Malicious applications or physical attackers (TA02) with device access could exfiltrate this data.
Remediation: Apply secure data storage principles by encrypting all sensitive data on the device (C03).
- TS3: (High) Insecure Third-Party SDK – The mobile app might rely on a third-party SDK for handling payment gateway interactions. If the SDK contains vulnerabilities or exhibits insecure behaviors (e.g., logging sensitive data), this creates a downstream risk to the integrity and confidentiality of transactions (TA03).
Remediation: Vet third-party SDKs thoroughly through static and dynamic code analysis (C05), ensure they are sourced from reputable vendors, and integrate them using the least privilege principle (C04).
These examples should help you identify additional threats and system components in the model. Building on these examples, the next step is to move beyond identifying threats and begin to build secure systems that can resist them. By embedding security principles directly into the design of mobile and IoT ecosystems, we can reduce reliance on patchwork fixes and instead create resilient, trustworthy platforms from the ground up.
Designing secure mobile and IoT systems
Section titled “Designing secure mobile and IoT systems”While threat modeling identifies vulnerabilities, the intention is to turn that into effective security controls that create a defense in depth. In an IoT and mobile devices system, controls must be thoughtfully designed, well implemented, and maintained.
Before selecting controls, the threats you identified during the threat modeling exercise should be risk-rated and prioritized. Building controls for a non-existent threat will not go over well. As we’ve discovered throughout this book, risk quantification means understanding what the impact and likelihood are of a particular threat materializing, and this will be different for each organization based on their industry and controls.
Next, controls should be designed to form a coherent ecosystem rather than becoming isolated measures for a particular threat. An effective architecture includes several levels of controls.
Mobile and IoT device-level controls
Section titled “Mobile and IoT device-level controls”In a secure system, device-level controls are used to establish trust and resilience from the hardware upward:
- Hardware security modules (HSMs): Implement dedicated security chips for storing credentials and performing cryptographic operations. Unlike software-based solutions, HSMs provide physical protection against tampering.
- Trusted execution environments (TEEs): Isolate sensitive operations within protected memory regions inaccessible to the device’s primary operating system.
- Secure boot chains: Verify the integrity of firmware and operating system components before execution, preventing boot-time malware insertion.
- Memory protection mechanisms: Implement address space layout randomization (ASLR) and data execution prevention (DEP) to mitigate memory corruption vulnerabilities.
Network-level controls
Section titled “Network-level controls”Beyond the device itself, securing the surrounding network is critical to limit exposure, detect misuse, and enforce strong boundaries around IoT and mobile ecosystems:
- Network segmentation: Create granular security zones around individual devices or small groups of similar devices
- East-west traffic monitoring: Deploy network security tools to detect lateral movement between devices, not just north-south traffic crossing network boundaries
- Protocol-specific filtering: Implement deep packet inspection for IoT-specific protocols such as MQTT, CoAP, and BLE rather than relying on generic firewall rules
- Zero trust architecture: Require continuous verification from all devices regardless of their location, eliminating implicit trust within security zones
Operational controls
Section titled “Operational controls”Operational controls ensure that security is sustained over time by governing how devices are deployed, maintained, and retired throughout their lifecycle:
- Device lifecycle management: Implement processes for secure commissioning, maintenance, and decommissioning of devices
- Vulnerability management: Establish procedures for identifying, prioritizing, and addressing vulnerabilities specific to your deployed devices
- Configuration management: Maintain standardized, hardened configurations for all device types in your environment
IT/OT environments are highly diverse and have specific constraints that are not often seen in other environments meaning that some security controls are bound by the same constraints. We should consider some unique constraints when designing controls for IoT, such as resource-constrained devices and geographically distributed deployments:
- Resource-constrained devices: Many IoT devices have minimal processing power and memory, requiring security measures that are efficient yet effective. This means using the following:
- Lightweight cryptography: Implement algorithms specifically designed for constrained environments (e.g., PRESENT or CLEFIA)
- Hardware-based security: Offload security functions to specialized hardware when possible
- Proxy-based security: Deploy network-level controls that protect devices without requiring on-device processing
- Lightweight cryptography: Implement algorithms specifically designed for constrained environments (e.g., PRESENT or CLEFIA)
- Geographically distributed deployments: Large-scale deployments often operate in remote or disconnected environments, requiring controls that remain reliable even without central oversight, using the following:
- Local security enforcement: Implement controls that function even when devices lose connectivity to central management
- Offline verification capabilities: Ensure devices can validate firmware updates and commands without internet connectivity
- Local security enforcement: Implement controls that function even when devices lose connectivity to central management
The intention of these controls is to develop a defense-in-depth model that ensures that the devices and the environments that they work in have layered defenses that can protect the data, devices, and the organization. This defense in depth is especially important in an IT/OT environment littered with IoT and mobile devices. By engineering architectural decoupling, diversified threat coverage, and built-in resilience, organizations can move toward a more adaptive security posture to meet the uniqueness of these environments. To see how these principles play out in practice, let’s look at a case study of IoT security in action.
Case study: Virgin Atlantic’s IoT-enabled aircraft
Section titled “Case study: Virgin Atlantic’s IoT-enabled aircraft”IoT devices are not just for the home and factory floor. They also end up on airplanes. A single IoT-enabled Boeing 787 aircraft generates close to a terabyte of data each flight from interconnected components such as engines, avionics, and environmental controls. While this data is utilized in understanding the behavior of the aircraft and enabling predictive maintenance, it creates a more complex and interconnected system with a high level of risk.
According to Virgin Atlantic’s CIO, David Bulman, adding just 4 IoT systems to Virgin Atlantic’s 787 increased the number of potential threats from 3 to 218. This exponential growth highlights why comprehensive and continuous threat modeling is important to systems as they change over time.
Virgin Atlantic applied a threat modeling approach that we are now familiar with:
- System decomposition: Breaking the aircraft into functional zones
- Communication mapping: Documenting data flows between components
- Trust boundary identification: Determining security domains
- Threat enumeration: Using STRIDE to identify threats per component
- Risk prioritization: Focusing on safety-critical systems first
The threat modeling exercise conducted by Virgin Atlantic on its Boeing 787 aircraft uncovered several significant security concerns with implications for both safety and operational continuity. Among the most critical findings were vulnerabilities in the interfaces used by aircraft maintenance systems, which could potentially be exploited to gain unauthorized access or manipulate system states. The model also identified insufficient segmentation between passenger Wi-Fi networks and operational flight systems. This architectural gap could possibly allow lateral movement by an attacker. The team also discovered that authentication protocols governing communication between certain onboard components lacked robustness and that the update mechanisms for onboard software lacked adequate integrity and validation checks.
In response to these findings, Virgin Atlantic instituted a series of targeted security controls designed to strengthen the aircraft’s cyber resilience. Chief among these was the implementation of strict network segmentation and monitored boundaries to ensure isolation between critical and non-critical systems. Cryptographic protections were upgraded for sensitive inter-component communications, supported by the deployment of HSMs to protect cryptographic keys and firmware integrity. To further enhance situational awareness, a comprehensive monitoring and anomaly detection system was deployed, capable of identifying irregular behavior in real time. These technical controls were supplemented by a commitment to ongoing security, including periodic penetration testing and routine assessments to adapt to evolving threats.
Summary
Section titled “Summary”In this chapter, we explored the unique environments that IoT and mobile devices engage in, such as IT/OT environments (e.g., hospitals and smart factories). In these environments, IoT devices can often open additional attack surfaces through their connections to outside services. Mobile devices can exacerbate the threat landscape by offering an aperture by acting as a HID, which threat actors can take advantage of.
We introduced the concept of adversary models and their value in threat modeling for IoT and mobile environments. We explored how understanding an adversary’s capabilities, objectives, and skill level adds necessary context to threat modeling efforts. While similar in mindset to broader threat modeling approaches, adversary modeling focuses more specifically on attacker goals, resources, and constraints. This perspective is especially crucial in IT/OT environments, where the distribution of IoT devices and differing control capabilities introduce unique risks. By acknowledging the presence and intent of adversaries, we can build systems that are more resilient to realistic attack scenarios and ensure that our threat models are both targeted and grounded in operational context.
We covered the distinct security challenges that IoT and mobile devices introduce across various environments, from smart homes to industrial and agricultural settings. These devices, whether passive sensors or active cyberphysical components, significantly expand the threat surface of any system they are part of. With many devices operating across multiple communication channels such as Bluetooth, Wi-Fi, NFC, and cellular, the trust boundaries become complex and fluid, especially as these devices frequently move between secure and insecure contexts.
This chapter covered the evolving role of mobile devices within IT/OT environments, particularly their function as interfaces or controllers for IoT systems. While much of the chapter centered on how mobile devices interact with IoT on the factory floor or in field deployments, we also saw that mobile devices present risks independent of these contexts. Their ubiquity and functionality make them both indispensable tools and potential vectors for compromise.
Lastly, this chapter presented control creation by following the output of the threat model. Particularly in systems involving IoT and mobile devices, controls should not be seen as one-size-fits-all safeguards but rather as tailored responses to an organization’s specific threat landscape. We emphasized that controls should be thoughtfully designed, implemented with precision, and continuously maintained to ensure long-term resilience. As we shift from IoT and mobile ecosystems, we look toward current and future security risks posed by artificial intelligence (AI). The following chapter dives into threat modeling for AI and large language models (LLMs), where novel attack surfaces demand equally novel defenses.
Get This Book’s PDF Version and Exclusive Extras
|