New Territory

In this chapter:

  • Computing paradigm for mass consumption

  • Cloud computing

  • The Internet of Things

  • Embedded devices

  • Smart environments

T he Internet of Things (IoT) is a giant network of connected devices and data they collect to affect the environment around them. The Internet of Things has the potential to allow automation and autonomous control to a degree not previously seen, much less imagined. Although not strictly a part of the IoT, cloud computing has made the IoT possible by making massive storage and computing power available for applications throughout the world.

In this chapter we provide an overview of the architecture, capabilities, and security challenges of the computing paradigm composed of cloud and of IoT and embedded devices. We start with cloud computing and then move on to IoT and embedded devices. We then show how these technologies come together in smart environments such as smart homes, cities, and civic infrastructure. In each section we identify security issues that arise and how we might respond to them. This chapter concludes with exercises that invite the reader to consider security in smart, cloud-enabled contexts from the perspectives of diverse stakeholders involved in the design, implementation, and delivery of such sociotechnical ecosystems.

8.1 Introduction

We have seen a revolution in the ways we access services and the computational power that drives this shift in service access. Cloud computing and IoT technologies have driven much of this revolution. Such technologies offer exciting possibilities but also introduce new threats and vulnerabilities into our digital landscape. This chapter sets out the basic principles of security for cloud, IoT, and embedded devices and examines how these security principles come together to provide security in various implementation settings. We group these technologies in one chapter because they represent different facets of a radically new paradigm in computing, namely, a form of computing that leverages resource pooling and shared access underpinned by fast, broad network access, leading to service access anywhere, at any time. The combination of cloud, IoT, and embedded devices forms the basis for many day-to-day applications across sectors including healthcare, personal security, finance management, travel, and shopping.

The mass consumption paradigm changes the nature of familiar security issues and creates new ones.

This mass availability paradigm changes the nature of familiar security issues as it also creates new ones. New applications generate, process, circulate, and curate seemingly limitless amounts of data, requiring a reconsideration of information and data management strategies and techniques. On the one hand, these technological innovations enable providers to develop services with wide appeal that encourage increased consumption of digital services at affordable prices. This is challenging because it means more people are affected if the technology is misused or fails. On the other hand, these technologies, particularly at the end point closest to the user, are often hard to secure because of the limited resources within the consumer device, the lack of regulation for securing the consumer devices, and the shared nature of the services used to process the data at the back end. The challenges not only are technical in nature but also pose policy, practice, and legal challenges. Sidebar 8-1 explores some of the implications of the enormous size and scope of the cloud-enabled IoT use for its users.

Sidebar 8-1 Challenges of Data Aggregation in the Cloud

Unknown hackers obtained in excess of 60 million records, comprising 16.7 gigabytes of data, from IoT health and fitness apps. The records from well-known health and fitness apps were stored and aggregated by health database GetHealth. Security researcher Jeremiah Fowler, working alongside the research team at WebsitePlanet, discovered the massive data leak in late June 2021. According to HealthIT Security [ MCK21 ], Fowler immediately sent a responsible disclosure notice to GetHealth and received a response to say that the leak had been secured. However, it is unknown how long the data was exposed and to whom, and therefore who harvested and mined that data while it was open.

When such fitness feeds are amalgamated and stored in a database, the result is data on millions of users. Fowler’s report revealed that weak database security practices, including a lack of strong identification and authentication protocols, and personal data stored in plaintext enabled this breach. Personal health metrics could be linked to identifiable individuals. The data came from such well-known sources as Fitbit and the Apple HealthKit app. Information in the database included name; date of birth; health status; and measurements such as weight, blood pressure, pulse, and exercise frequency and duration.

This problem occurs partly because there is no clear application of privacy regulations for this type of health app, and fitness data fall outside the definition of medical records. There is some debate about the extent to which wearable and fitness trackers constitute a form of medical device. There is currently also some debate about the extent to which HIPAA regulations (that we describe in Chapter 9 ) apply to fitness and wearable devices when the data collected are for personal use. End-users can be oblivious to the risk involved in the storage and collection of health data. For example, people tend not to think that the data collected by wearable and fitness devices will interest cybercriminals; yet fitness apps can collect sensitive data (for example, step counts can reveal someone’s movements or personal training plans can inspire targeted phishing emails). The apps will continue generating such data for as long as an individual uses an app. The data are also likely to be aggregated (as a condition of using the app) and used by third parties for a wide variety of purposes that were not originally intended, at least not by the user. The data are also likely to persist as there are no rules around decommissioning the data or removing records after a set period of time. These properties combine to make data breaches far-reaching and potentially damaging when they occur on this type of platform.

This example shows how large volumes of data generated by apps with no rigorous security functionality, collected outside the control of privacy regulations and with permission for data aggregation built into the end-user agreement, create an environment in which hacking and data breaches can easily take place.

Before we get started, let’s set out some definitions of cloud computing, IoT, and embedded devices.

Cloud Computing

The cloud computing model is a form of distributed computing that promotes availability. It relies on high-speed broadband internet connectivity to distribute computing power across different servers. We often think of cloud computing as being composed of five essential characteristics:

  • On-demand self-service. Users access cloud services when they need it.

  • Broad network access. Services are accessible from a wide range of devices.

  • Resource pooling. Services can combine resources from different locations.

  • Rapid elasticity. Services can be scaled up or down as needed.

  • Measured service. Usage can be measured on a per-user basis.

Cloud computing is scalable, enables large volume transaction handling, and, most important, virtually guarantees availability. Cloud computing enables process redesign by providing access to data and data production on demand from any network-connected device at scale. In fact, cloud computing is sometimes referred to as having an anytime–anywhere quality: Cloud facilities are available nonstop, and they can be accessed from anywhere with just an internet connection.

Cloud computing provides anytime–anywhere access to resources.

Cloud computing is often described as having a service orientation because its services are the core building blocks of application and system development. It is a form of computing created from the convergence of many different technology areas, including the following:

  • Broadband networks. These offer high-speed internet access and get their name from having a wide band of frequencies through which data can be transmitted.

  • Virtualization. This technique creates a simulated computing environment so that instead of having, for example, five separate computers, software versions of each computer can run as a virtual system on one server. (We introduce this concept in Chapter 5 .)

  • Grid computing . This is the practice of using multiple computers, connected by networks although geographically separate, to perform joint tasks, which enables resource pooling.

  • Autonomic systems. In the cloud context, autonomic systems are those that are able to automatically self-manage and self-repair through the use of adaptive technologies.

  • Web 2.0. This version of web technologies is user-focused with an emphasis on usability, interoperability between web services, and user-generated content.

The Internet of Things

ENISA, the European Union Agency for Cybersecurity, defines the Internet of Things (IoT) as a cyber–physical ecosystem of interconnected sensors and actuators, which enable decision making [ ENI17 ]. Let’s break that complex statement down: The IoT combines passive receivers or sensors with active components that process the sensor data. The system involves both physical and computational aspects. And it gives us data about our world to help us to make decisions.

The IoT embeds sensors and receivers in ordinary objects that can then operate with less human involvement.

To explain this concept further, consider a simple example. We understand electric lights; you turn a bulb on by supplying current to it, and it emits light. A so-called smart lightbulb might collect data about when and how it is used. You usually turn the bulb on every night when it is dark and turn it off later in the evening. After using the smart bulb for a while, you could set it to follow your habits: turn on either when you did so previously or when it senses the light level has fallen to a certain point. In this way, the bulb uses a light sensor or built-in clock to trigger its behavior. The bulb could also have an integrated motion or heat sensor so it could detect when you leave the room. Or the bulb might have a sense of date so it can adjust its coming on as the days get shorter or longer. As you can see, the computation does not have to be complex, and the actions such a device carries can also be simple, although of course, there is no limit to data collection, complexity of computation, or amount of action. The IoT seeks to improve life by allowing separate devices to work cooperatively and by taking over mundane tasks that do not require humans to perform.

Embedded Systems

Related to IoT is an embedded system , which is a computer with a dedicated function embedded within a wider computer system. So, for example, you might have an embedded system for monitoring speed, path, altitude, and acceleration within the larger computing system that controls the launch of a satellite. This contrasts with IoT, which are also embedded but can be used in multiple ways.

An embedded system has one computer with dedicated functionality within a wider computer system.

8.2 Cloud Architectures and Their Security

Cloud computing is a transformational, and often pivotal, component of contemporary computing architectures for many organizations regardless of their size, maturity, or sector. Before we can understand how cloud security works, we first need to be familiar with the ways in which the cloud is architected. NIST [ NIS11b ] explains cloud architecture in three dimensions:

  • essential characteristics : the characteristics that are found in all cloud architectures

  • model of service : the degree to which the cloud customer has control over the setup and management of the cloud service

  • model of deployment : the degree to which the cloud service is shared between cloud customers

The scale and anytime–anywhere nature of cloud services give rise to new security considerations both for the security of the technological components and for the ways in which the vast amounts of data that cloud services generate, circulate, curate, and process are managed. Shifting storage from local to remote removes a degree of security control from the owners of that data. The speed with which cloud services can be scaled up requires that security management processes such as audit and risk assessment must keep pace with the security issues arising from rapid upscaling. The almost limitless heterogeneity of end-user connection devices also poses many security challenges as system administrators must be able to rapidly appreciate the security implications of these new components of the system. Cloud computing brings together an unlimited variety of devices. An application can grow quickly with no preset limits on size, demand for computing power, or device interaction. Available storage space is also unrestrained. As a result, applications can generate, store, and process massive amounts of data. This unconstrained expansion is a clear benefit.

Such freedom also increases the need for effective security controls and requires changes to information management strategies. Furthermore, many cloud deployment models result in one organization’s data being tenanted alongside the data of other organizations. To better understand these security implications, we look in a little more depth at the cloud architecture.

Essential Characteristics

Cloud service’s essential characteristics are offered by every cloud service. These characteristics make cloud services ubiquitous and drive digital transformation. They result in dynamic cloud services that respond to usage patterns as they emerge. As a result, these characteristics change the typical computer security model from one of access control that is intimately linked to physical location, set patterns of use, and end-to-end security management to one of federated security management where different organizations manage or share management of distinct parts of the cloud infrastructure.

Cloud computing offers near-universal access to powerful data processing, sharing, and storage services.

The first characteristic that often comes to mind when describing cloud computing is on-demand self-service , meaning that an organization or individual using cloud services can automatically access computer resources (such as storage, processing, or data access) whenever needed, without needing to request that access from a third party. This characteristic has fueled 24/7 service access and enabled organizations to implement services supported across multiple time zones and geographical regions.

Individuals and organizations take advantage of the on-demand service characteristic because of the second characteristic, broad network access , by which we mean cloud services are accessed through a multitude of access points using standard mechanisms adopted by many kinds of devices from mobile phones to workstations. This characteristic has ensured that cloud services are available and accessible to organizations at all levels of maturity—from startups to well-established multinationals.

Think of mobile phone service. Whether you travel across town or across the country, your phone service can follow you. Technically, you know your service, even a phone call in progress, is passed from one cell connection to another. You can be blissfully unaware of the technology by which the signal is transferred. To you it seems as if your phone is active anywhere. Similarly, cloud computing allows its users to access data and services from any point where an internet connection can be obtained.

The next two characteristics make cloud services flexible and scalable and enable large-scale data processing at speed and data storage at scale. The third characteristic is resource pooling , which enables computing resources to be brought together from different locations to provide simultaneous access to multiple clients without these users needing to know where the computing resources are physically located. Furthermore, pooling lets users share access to an unusual or expensive resource that none of them would need full time. The fourth characteristic is rapid elasticity , which enables computing resources for any user to be scaled up or down as needed. This characteristic enables organizations to respond to consumer demand, adjust to changes in markets on the fly, and dynamically implement process change. It was this characteristic that helped to enable many organizations to pivot to working from home at the start of the COVID-19 pandemic.

These four characteristics create a scalable and flexible form of distributed computing for individuals and organizations alike, providing near-universal access to powerful data processing, sharing, and storage services.

Computing’s economic model has also shifted from one of charging for software and hardware to one of charging for the provision and use of services. Measured service is the fifth cloud computing characteristic that tracks and reports resource usage and enables cloud providers to charge for services. NIST set out the reference model shown in Figure 8-1 to capture these characteristics. The reference model is a simplified view of how cloud services are delivered and governed.

An illustration shows the NIST Cloud Reference Model.

FIGURE 8-1 NIST Cloud Reference Model (Reprinted courtesy of the National Institute of Standards and Technology, U.S. Department of Commerce. Not copyrightable in the United States.)

A rectangle, labeled, Security & Privacy, comprises, five rectangles inside. The first rectangle is labeled, Cloud Consumer. The second rectangle is labeled, Cloud Auditor, which shows the following data under it: Security Audit, Privacy Impact Audit, Performance Audit. The third rectangle is labeled, Cloud Provider, shows the following details: Service Layer: SaaS, PaaS, and IaaS; Resource Abstraction and Control Layer; Resource Abstraction and Control Layer: Hardware, and Facility; Cloud Service Management: Business Support, Provisioning/Configuration, and Portability/Interoperability. The fourth table is labeled, Cloud Broker and shows the following details: Service Intermediation, Service Aggregation, and Service Arbitrage. The fifth table reads, Cloud Carrier.

The cloud provider is a body that makes computing services widely available. The provider can deliver raw computing power, storage, access to shared collections of data, or use of common applications. The provider offers different service models to cloud consumers , the users of cloud services, as we set out in the next section. These service models are configured and supported through the cloud service management. The responsibility for security is shared between the cloud provider and the cloud consumer. The cloud provider makes sure that cloud services are hosted in a secure environment, and the cloud consumer must ensure that the cloud service offers adequate security for the task in hand. Cloud providers are responsible for the protection and management of sensitive data.

The cloud broker negotiates the relationship between the cloud provider and the cloud consumer. The cloud broker manages the performance and delivery of cloud services and helps to ensure the responsiveness and scalability of cloud services. A cloud broker can enhance a cloud provider’s service, adding new functionality, enhanced security, and so on. A cloud broker will typically manage access to multiple cloud providers. A cloud broker can also combine services from different cloud providers to create new services, and this is called aggregation. The cloud auditor is a third party that assesses the effectiveness of the controls, oversees information governance on the cloud platform, and evaluates the cloud provider’s performance against relevant standards and best-practice guidance.

We should pause for a moment to reconsider the impact of cloud computing on what we already know about implementing security. In many contexts described in this book, we have described a so-called security perimeter, an invisible line that surrounds the resources—people, processes, and data—we want to protect, much like a fence around a property. The fence separates the potentially hostile, external world from our bucolic, safe space. Physical controls, a precise and comprehensive access control policy, and enforced separation were essential for enforcing security.

However, with the massive sharing inherent in the cloud paradigm, we no longer have either the separation or the control. A cloud provider is now responsible for ensuring that one party’s data do not intermingle with another’s. A cloud broker oversees the provisioning of hardware and software components to implement the cloud model; this third party can change providers without notice, and the security characteristics of the new party may be significantly different from before. Thus, although the cloud paradigm seeks to relieve an end-user from concern about how a service is implemented, from a security perspective this freedom is not altogether liberating.

Service Models

Within the NIST reference model are three possible cloud service models, in which users share only software, or a computing platform, or the entire infrastructure. Users relinquish control the more they share, but greater sharing leads to greater capacity and flexibility.

In each case, the service model denotes which elements of the cloud infrastructure the cloud service provider implements. Each service model is characterized by where control for the configuration and management of cloud services resides. As Figure 8-2 shows, security is core to the functionality of each service model, but the security offered in each case is shaped by a different responsibility model.

An illustration shows the Cloud Service Models and Their Components.

FIGURE 8-2 Cloud Service Models and Their Components

The components are: Applications, Application Platform: Tools and APIs for building and deploying applications, Virtual Machines: Virtual Machine Storage, Virtual Networking Equipment, Hypervisor, and Hardware: Servers, Storage Devices, and Networking Equipment. Administered by the SaaS provider includes all the mentioned components. Administered by the PaaS provider includes Application Platform: Tools and APIs for building and deploying applications, Virtual Machines: Virtual Machine Storage, Virtual Networking Equipment, Hypervisor, and Hardware: Servers, Storage Devices, and Networking Equipment. Administered by the IaaS provider includes Hypervisor, and Hardware: Servers, Storage Devices, and Networking Equipment.

Software as a Service (SaaS)

In the software as a service ( SaaS ) model, cloud applications are provided as a service in which computing capability is provided at both the physical hardware layer and the software layer. Users of the cloud service use the software (including the applications) provided at the software layer. The user has no control over the hardware or software platform. Responsibility for the management of the security infrastructure lies with the cloud provider, and responsibility for the user access control resides with the user. This model of responsibility is managed through an end-user agreement.

Examples of SaaS services include Slack, Microsoft 365, and Cisco’s WebEx. SaaS is also sometimes known as an application service provider. In the case of Slack, for example, using SaaS to deliver the Slack application means that only a lightweight app or a web browser is needed to access the Slack application, which resides on the cloud server. This architecture means that IT support for the application sits with the application provider and not with the end-user. As a result, end-users only need to update the app on occasion and not the main application code. Similarly, Microsoft 365 is an example of SaaS where email, calendar, and office applications are stored in the cloud and an app or a web browser are used to access the application.

Decades of security incidents have resulted from unpatched security faults. A software vendor becomes aware of a fault, determines the appropriate correction, arranges a mass distribution to all affected users, and waits while users each patch their copy of the application. Some users are prompt, but others are not. To reduce the window of vulnerability, in a SaaS model, the vendor can patch the application code for all users at once, as soon as the correction is available.

Platform as a Service (PaaS)

The cloud can also be provided as a platform on which to deploy applications, in a model called platform as a service ( PaaS ). The cloud provider has responsibility for and control over the security management of the underlying infrastructure but also has control over and responsibility for which applications are deployed and some control over how the application security is configured.

Examples of PaaS services include Microsoft Azure and Google’s App Engine. In fact, Microsoft offers Azure as SaaS and IaaS (described in the next section) as well as PaaS. When we use Microsoft Azure as a PaaS, it presents a secure and managed environment in which apps can be developed and deployed. The service means that developers do not have to worry about managing the operating system or the maintenance of the hardware. As a PaaS, Microsoft Azure also provides some PaaS services such as App Service, which enables developers to create apps, and Azure Cognitive Search, which provides AI-enabled search functionality that developers can include quickly and easily in an app. Similarly, Azure Content Delivery Network (CDN) is a distributed network of servers that can enable developers to efficiently deliver content (such as software updates).

Infrastructure as a Service (IaaS)

In the infrastructure as a service ( IaaS ) model, the cloud provider has responsibility for the fundamental computing resource (including storage, processing, network connectivity, and operating system); the user receives all these things in the IaaS model. The user has responsibility for the provision and security management of the applications and software services. Users have limited control over the underlying infrastructure to the extent that they may be able to configure some of the security settings at the operating system level as well as configure the security settings at the application and software service level.

Examples of IaaS services include Amazon Web Services (AWS) and Google Compute Engine. (AWS offers all of IaaS, PaaS and SaaS.) As an IaaS, AWS offers access to networking services, IP addresses, servers (physical and virtual), load balancers, and data storage space. The AWS offering may be appealing to a merchant wanting to establish an online presence using a ready-made website. The merchant’s expertise is in a product line, toothbrushes, for example. The toothbrush merchant should not have to build a website with varieties of toothbrushes, develop a user shopping cart and checkout application, and adjust the hosting to handle a sudden surge in demand for toothbrushes. The merchant knows toothbrushes, not computing technology. The IaaS cloud model is ideal for such a merchant because it allows strategic outsourcing.

Deployment Models

Each cloud deployment model sets a boundary around the user community in a different way. At one end of the spectrum, the cloud infrastructure is provided to one organization only; at the other end, the cloud infrastructure is available to everyone. When multiple organizations share use of a cloud’s resources, we call that usage multi-tenanted .

At the individual end, a private cloud is a cloud infrastructure that is provided only to one organization, and that organization is able to control the security of the cloud setup. The organization may outsource the management and setup of the cloud, but nevertheless the organization owns and controls the usage of the cloud.

This approach might be expanded into a community cloud , in which the cloud infrastructure is provided to a community of organizations that typically have interests or objectives in common and therefore also share the same security ethos. The management and setup of that cloud may be outsourced to a third party, but overall responsibility for the setup and management of the cloud remains with the community.

On the other end of the spectrum is the public cloud , where the cloud infrastructure is provided for general use by the public. The setup and management of the cloud will be conducted, typically as a service, by an organization that is the designated cloud provider. These cloud deployment models can also be blended. For example, a deployment model might blend public and private cloud from two or more cloud service providers.

Equally, a hybrid cloud might be provided where there is a combination of deployment models but two or more separate cloud providers. This configuration enables data and applications to be moved between the cloud providers as an additional form for resilience and to add load balancing capability.

Security in Cloud Computing

Cloud computing is not without security problems. A key difference between cloud computing and more traditional approaches lies in the areas of ownership and responsibility. A local enterprise is responsible for its own security; a failure in security affects just that enterprise. However, as shown in Sidebar 8-2 , scale and control or ownership affect security.

Sidebar 8-2 Cloud Breaches at Scale

Breaches to cloud security often result in data breaches. A survey conducted by Ermetic in 2020 [ ERM20 ] that focused on PaaS and IaaS environments revealed that almost 80% of responding companies had experienced a cloud data breach in the past 18 months, with approximately half of the respondents reporting multiple breaches in that time. The survey involved 300 CISOs (Chief Information Security Officers), and they reported that the breaches resulted from

  • misconfiguration of the security

  • lack of visibility of the access settings and the access activity

  • problems with the identity and access management configuration

Ermetic concluded that the large volume of users created in on-demand, mass consumption services makes it difficult to manage the security of these user accounts. Therefore, excessive permissions and unnecessary access for individual user accounts could go unnoticed. Hackers can use these unnecessary permissions to deliver malware, access sensitive data, or disrupt service.

This example shows that standard security management techniques typically deployed for user account management do not scale well to the mass consumption paradigm. Automated configuration and automated account setup that cloud providers use enable setup at scale but pose problems for security auditing and compliance monitoring.

Cloud Security Principles

The three cloud service models separate cloud service users in different ways. The impact that control failure will have on a cloud service depends on whether the service model is deployed as a public, community, or private cloud. As explained previously, the cloud architecture design and the ways in which organizations adopt and deploy the architecture give rise to new security challenges. The convenience of cloud services and the centralized, multi-tenant nature of cloud give rise to a particular list of security priorities and the need to adjust how security is managed. Security issues arise at the infrastructure level, often emerging from human error and the attractiveness of centralized services to external attacks such as denial of service.

These security issues require a rethinking of our security responses because where the security controls are placed and who has responsibility depend on the cloud model. Cloud providers such as AWS and Microsoft Azure publish shared responsibility models to clarify for cloud consumers how responsibilities are allocated across the different service models. The ability of a user to influence the security controls deployed in the cloud depends on which deployment and service model is being used [ NCS22 ].

In the case of deployment models, control is on a continuum from public cloud to private cloud. The less control users have over the security of the cloud deployment, the more dependent they are on the strength of the separation controls between cloud users. This is because access to user data will depend on the strength of the user access controls. In the case of the public cloud, the user has no control over the security of the cloud and is therefore dependent on the security controls that the cloud provider has deployed. The user must therefore be aware of the security controls and provisions set out in the terms of the conditions of use, decide whether the security is adequate for the data that is being processed by the service, and take steps to add protection such as encryption to data stored in an app on the public cloud. The individual is responsible for knowing what results are generated and stored when cloud services are used and for taking steps to remove data that is no longer needed. Each subsequent cloud deployment offers more control until we arrive at the private cloud deployment, where the cloud is for use by a single organization and that organization has control over the security of the deployment.

The cloud computing paradigm influences which security controls are placed, where, and by whom.

Cloud Security Threats

The threats posed in the cloud environment are the familiar triad of confidentiality–integrity–availability. However, the cloud’s essential characteristics amplify the potential for widespread harm. In earlier chapters, we progress from local (the individual with a single computer running simple applications) to broader (shared-use hardware, then shared access to programs and data, and finally networks). As we move along this line, the individual user has less personal control over resources while at the same time the growing use of the cloud brings computing to more users. Although giving many people access to the power of computing is undoubtedly a good thing, it also means that not all these new users appreciate the security risks and how to mitigate them.

Cloud computing thus leaves us with the same security objectives introduced in Chapter 1 —confidentiality, integrity, and availability—but with dramatically increased points for attack. Each time we open a system to more access, we admit a similar potential for harm from the same kinds of malefactors introduced in Chapter 1 , and cloud computing represents the ultimate in possible access. Playing chess on a traditional, two-dimensional chessboard is hard, but securing the cloud is like playing on a board with several more dimensions. With that in mind, cloud architecture security issues can be categorized as follows:

  • Data breaches. Unauthorized access to data in the cloud is a common problem. Access is particularly difficult to manage due to the shared nature of cloud resources. There are a large number of ingress points in a cloud architecture and often a lack of clarity over who has the responsibility to manage access. At the same time, the volume of data stored is vast, potentially increasing the amount of data that a hacker can access.

  • Misconfiguration of accounts. Cloud platforms have many users, and it is often difficult to see what the default access settings are for an account. As a result, cloud users often have additional privileges that they don’t need, and hackers exploit this.

  • Account hijacking. Strong authentication is not mandated by default on cloud platforms, and there is often limited control over the decommissioning of unused accounts. As a result, hackers have opportunity to take over accounts and use them for nefarious purposes.

  • Limited cloud usage visibility. No specific regulation requires that cloud users or cloud customers have visibility of cloud usage. This is particularly true for SaaS cloud models. As a result, it is difficult for service administrators and cloud users to spot unauthorized access and usage of accounts.

  • Insecure interfaces and APIs. There is no specific regulation or security specification for interfaces and APIs used to access cloud services. As a result, it is often uncertain the extent of the security being provided at the access point to a cloud service.

  • Denial-of-service attacks. Cloud services are designed to be resilient and to provide access on demand; nevertheless, cloud services are still subject to denial-of-service attacks.

Remember that these threats might combine in different ways to deliver harm to the users of cloud services. For example, misconfigured user accounts might be an entry point to cloud services that are exploited to carry out a data breach. An example of this type of multi-vulnerability attack is given in Sidebar 8-3 . Be aware that just as the reach of cloud services is almost limitless, so too is the impact of security threats should they be realized.

Sidebar 8-3 SaaS Privilege Escalation

In July 2019, Capital One Financial Corp. was the subject of a privilege escalation attack on its client records [ TOL19 ]. It was initially announced that hackers illegally accessed 106 million client records using a privilege escalation attack on a SaaS service. The hacker turned out to be a former employee of Amazon Web Services (AWS) who illegally gained access to the data of 30 different companies tenanted on AWS.

As is often the case with security threats, the SaaS privilege escalation threats can be intentional or unintentional. In a multi-tenant environment, a SaaS provider may intentionally or unintentionally carry out unauthorized reads, modifications, moves, or deletions. An intentional privilege escalation attack occurs when someone illicitly accesses a multi-tenanted environment and then takes advantage of lax permissions or permissions set incorrectly by accident to increase privileges to intentionally carry out unauthorized reads, modifications, moves, or deletions. There are two types of privilege escalation attacks: horizontal and vertical. In a horizontal privilege escalation attack, a hacker uses the privileges of an authorized user (either because the hacker is an insider or because a user’s credentials have been illicitly gained). Using these credentials, the hacker then gains access to another user’s account. In a vertical privilege escalation attack, a hacker attempts to gain additional privileges, perhaps using a kernel-level hack or some other configuration activity that will increase privileges.

There is debate over whether the Capital One attack was strictly speaking a SaaS privilege escalation, but it contains many of the characteristics that are associated with such an attack. In the case of Capital One, a former employee exploited a server-side request forgery (SSRF) where the attacker identified an application that has the functionality for importing data from a URL, publishing data to a URL or reading data from a URL [ COV21 ]. In an SSRF exploit, the attacker manipulates the request that goes to the server, and through this manipulation the attacker might be able to obtain access to other servers. In the case of Capital One, the attacker launched an SSRF attack to gain access to a Capital One server. From there, the hacker gained access to the AWS cloud metadata server, gained temporary login credentials, and then, using these credentials, downloaded information stored on AWS servers. The Capital One attack has hallmarks of privilege escalation attacks because a configuration loophole was exploited, but there are also hallmarks of a vertical attack because access was gained to additional user accounts.

OWASP published an SSRF prevention cheat sheet that sets out how to close the gap at the server side using technical controls [ OWA21b ]. It is argued that Capital One should have identified the problem by checking the code in advance of deploying the service. In particular, static code analysis (discussed in Chapter 4 ), where the code is examined without being executed, appears not to have been carried out.

In a U.S. federal court in February 2022, Capital One agreed to establish a fund of US$190 million to compensate the approximately 100 million persons whose personal information was improperly revealed. Affected parties argued that Capital One did not appropriately manage the service and the hacker exploited a vulnerability that Capital One should have closed down. Capital One argued that AWS should have protected against an SSRF attack [ COV21 ]. One security problem with cloud implementations is that the cloud provider and the user each expect the other to implement security controls.

Cloud Security Response

As we have highlighted previously, cloud security concerns are amplified through the cloud’s essential characteristics. The drive to make cloud services accessible to anyone, anywhere, at any time, and to enable data storage, data sharing, and data processing at vast scale not only increase the cloud’s attack surface but also increase the potential impact of any attack. To respond to these threats, security functionality needs to be central to cloud design.

Cloud service providers design security into the majority of cloud components, from the physical infrastructure (network infrastructure, storage, and servers) to the software components (the virtualization frameworks, operating system, and middleware) and the end-user experience (user-generated and system data, applications, and end-user connecting devices). The centralized nature of computing resources means that enhanced perimeter protection can be implemented around these centralized resources. Cloud providers often have the ability to dynamically reallocate resources for security purposes, which, if necessary, allows them to increase protection in areas such as traffic filtering and traffic shaping to control the flow of network packets.

For many cloud providers, security provision is an important part of their brand. Note also that the IaaS service model can support on-demand cloning of virtual machines. This functionality can be useful in the event of a suspected security breach because it enables an image to be taken of a live machine. This image can subsequently be examined while the cloud service continues. The virtually unlimited storage capability of cloud servers also mean that more detailed security logs can be stored for longer.

As with all forms of technical security, cloud security design is implemented within a security management framework. Large cloud providers can offer a standardized interface for managing the security of cloud services. As the interface is standardized, this potentially makes it easier for organizations to switch between cloud providers. Cloud security management responses within this framework can be grouped into five areas:

  • protection of data, both in transit and in storage

  • identity and access management of cloud service users

  • security management of cloud services

  • data management and business continuity support to enable continuation of services under attack

  • legal compliance

This framework for managing cloud security uses standard security management techniques that we talk about within this book. Protection of data in transit and storage uses many of the techniques set out in Chapters 1 , 2 , and 4 . We look at identity and access management in the following section. Cloud architectures require business continuity controls as we introduce in Chapter 10 , and legal compliance relates to the different compliance areas we describe in Chapter 11 .

The volume of data in the cloud makes access control critical.

However, unlike the environments we talk about in these other chapters, cloud architectures deploy computing at scale with large amounts of data concentrated on cloud servers, and complex user management structures. As a result, we report in Chapter 13 that new tools are needed to manage security in cloud environments. AI and machine learning are increasingly being deployed in cloud environments to check security settings, monitor for potential unauthorized access, and develop a capability to identify noncompliant behaviors.

The principles of cloud security are standard computer and network security principles. However, there is a greater emphasis on separation between users because the cloud is typically a shared capability, and mechanisms should be in place to prevent users having access to each other’s data. At the computing level, the separation is provided through virtualization technology (as described in Chapter 5 ). At the storage level, separation is provided by access control to the storage structure. At the network level, separation is provided by standard separation approaches such as virtual LANS.

The degree to which a user or organization has control over the implementation and management of the security mechanisms depends on the cloud service model. In the case of the SaaS service model, the separation between users is offered at the software level, whereas in the PaaS service model separation between users is offered at the operating system and application level. Users’ applications are either hosted on a shared operating system or provided as a managed operating system service where the user is given their own dedicated or virtual host. Greatest control over separation of users is offered in the IaaS service model, where separation between users is offered at the computing, storage, and network levels.

In cloud computing users may relinquish control over the nature and implementation of security.

From an end-user perspective, security is a partnership between cloud providers and cloud service users. The expectation, which may or may not be realized, is that cloud providers should be secure by default and should make it easy for end-users to meet their data protection needs. Each user of cloud services—an individual or an organization—needs to determine the security risk of using a cloud platform. Formally, this determination is called a risk assessment, a list of the security risks, the controls applied, and the remaining likelihood of security failure. (We elaborate on the risk assessment process in Chapter 10 .) Such a risk assessment must take into account the service model being used, particularly the security features of the service, the quality of service being offered, and the sensitivity and value of the data.

In each of these service models, users can increase data security by adding technologies such as cryptography, ensuring that strong user authentication is set on account access, and enhancing protection if the user-controlled security measures are insufficient for the sensitivity of the data being processed. From a server side/back-end management perspective, the implementation of the governance framework can be complicated by outsourcing and third-party arrangements that often accompany the provision of cloud computing. This has an impact on operational and personnel security.

Agile Processes in the Cloud

Cloud providers often use agile software development and management processes, introduced in Chapter 4 , to implement the highly flexible and fluid architecture implicit in cloud implementations. However, agile processes challenge traditional forms of security management and require a redesign of change control, risk assessment, and audit processes. One of the main challenges is that computing architectures cannot be documented in the traditional way because agile processes do not offer the same opportunities. As its name implies, an agile process is intended to adapt swiftly and efficiently as conditions change. New requirements, revised constraints, expanded objectives, varied application domain, novel approach, unplanned conditions: All these situations are an expected part of the evolutionary development for agile processes. However, this shifting landscape makes it nearly impossible to document the system architecture. One can take what is essentially a snapshot of the architecture at one point in time, but that structure will be out of date as the next version of the agile implementation develops. Thus, documenting the architecture of an agile system and probing it for vulnerabilities and threat vectors is not feasible.

Therefore, alternative approaches are needed to document technology configurations and evaluate effectiveness of controls. Such approaches might include embedding descriptions into configuration files, explicitly referring to technology standards as part of the description, and using third-party technologies to routinely test configurations. For example, cloud security providers might also offer threat detection software that enable organizations using cloud services to receive live threat updates, as well as threat detection and response capability. Threat detection capabilities often deploy machine learning to detect threat patterns as well as sandboxing techniques that enable isolation and assessment of suspicious code. Some third-party products include endpoint security technologies that offer services such as endpoint patch management and encryption services to help reinforce cloud controls.

Identity Management in the Cloud

Many of the general threats to cloud services exploit weaknesses in user identity management and the associated authentication and authorization policies. As the digital environment has evolved, issues of authentication and authorization have also become more complex. As discussed in Chapter 2 , authorization relies on robust identification and authentication, but end-users often select weak passwords, which password management policies cannot always prevent. At the same time, ensuring that an end-user has the correct authorization levels for data and services is also difficult to manage and can be time consuming for IT managers.

The move to cloud services and, in particular, the move to public cloud not only increases the complexity but also significantly amplifies the harms that can result from weak management of identity, authentication, and authorization. The hyperconnectivity trends of IoT, cloud, and mobile applications have all accelerated the need to find an identity management approach that will scale. Not only does it become harder for end-users to keep track of passwords and ensure that each one is sufficiently strong, but cloud service providers have vast numbers of user accounts to manage.

At the same time, the move to the cloud and the strong adoption of public cloud services also results in clouds that hold large amounts of personal identifiable information (PII) as well as potentially sensitive organizational information. PII includes not only usernames (often an email address) but also potentially payment details, birthdates, employment details, home addresses, and so on. End-users who select weak passwords potentially open up access to their PII from unauthorized users. Attackers can automate the mapping of email addresses to commonly used public cloud services and run dictionary and other password cracking attacks against cloud service accounts. If successful, an attacker has access not only to an account but also to the PII associated with that account.

Given that end-users might have to use public cloud services in both their work and personal lives, an attacker could harvest a large amount of PII for an individual as well as gain unauthorized access to services. However, weak service account management is a risk from both the end-user and service management perspective. Not only might end-users have large numbers of cloud service accounts to manage, but so too do the support engineers who manage those services. If the support accounts are weakly managed, an attacker can potentially gain access to the administration accounts and from there access vast amounts of PII and sensitive data as well as threaten the availability of the service for large numbers of users. In Sidebar 8-4 we dig more deeply into the evolution of identity management and its security implications.

Sidebar 8-4 Evolution of Identity Management

In the early 2000s, a person we will call Bob worked as a software systems designer at a software development company. The company developed software for customers as a service. At that time Bob needed access to core systems at work (email, access to the document server where all the corporate documents were stored, access to the customer profile database). He also needed access to the server that held the software repository for the code that was being developed for each customer. Bob would set up a test environment for each project; he accessed his environment both at work and from the customer site. At home, Bob used some digital technology and needed access to his personal email system and to an early social media account. Bob would have accessed services on a local host, and the in-house IT management team would have managed the accounts setting up new users with access permissions, reviewing access permissions on a regular basis, and deleting accounts once someone left the organization or no longer required access because of a changed role.

In this scenario, each application would contain an identity management solution that stored each user’s personal identifiable information, which would be used to create the user identity.

In this story we can see that it is a big overhead for Bob to actively manage all these access accounts, update passwords where necessary, delete accounts when they are no longer used, and keep track of which passwords he used with which account.

Years later, Bob is still working for the same company, which now has outsourced all of its core systems to cloud services, including email, HR services (for example, annual leave and sick day management, annual review reporting), the messaging platform, and the finance system. Bob’s employer found the complexity of managing user accounts locally was one of the reasons it outsourced its core services to a cloud provider. At home Bob uses social media and messaging platforms to keep in touch with his family, email for more formal administrative tasks, and all manner of cloud services to pay and manage his bills, conduct e-banking, and purchase things ranging from travel and new furniture to the weekly shopping. On top of this, Bob has just purchased a new smart home solution that enables him to manage his household gas and electricity consumption, and which has meant placing utility consumption sensors across his house, all of which require access to be configured.

The services that Bob now accesses at home are a lot more complex than it would first appear. For example, when Bob does online shopping, which he picks up at his local supermarket, he is in fact accessing a stock management service, a payment service, and a delivery service. These services are bundled to appear as one application to Bob, but in fact they are separate services requiring some means of sharing access and authorization credentials.

As the number of applications and services grew, IT managers began to develop identity management (IdM) systems such as active directory to set up a central repository of user identities in an organization and, where possible, either reduce the number of sign-ons or, at least, reduce the number of username and password combinations that an individual has to manage within an organization. When moving to the cloud, federated identity management became essential for Bob and his employer so that identity information can be shared between services. Cloud services depend on federated identity management technologies and can be used as a means to deliver a federated identity service.

So what has Bob gained and lost over the years described in this story? From a work perspective, the access and security of the digital services that Bob uses on a daily basis have been outsourced. Bob’s company no longer needs to maintain the services and the user access to those services. The digital platforms that Bob uses at work are also more tightly integrated and are easier to access. Similarly at home, digital services have replaced in-person services enabling Bob to manage everyday tasks such as shopping and household energy consumption from his computer. In each of these examples, the services are much more tightly integrated due to enhanced identity and access management offered in cloud solutions. However, Bob has lost a degree of control over his accounts. He perhaps has less control over how his PII is used, and at the same time he generates more PII than he would have done 20 years ago.

Although Bob’s employers have been able to lose the overhead of managing the user accounts and have less maintenance to carry out because core services have been outsourced, the control over some of the company’s data has been diminished in some ways. The company has to rely on the service providers getting the identity management processes right and have to trust that the PII that is generated will also be protected. As we show elsewhere in this chapter, the consequences if service providers get it wrong is unauthorized access, a potential open door to hackers and data breaches. It boils down to ease of access and ease of use at scale traded off against reduced control.

Federated Identity Management

In Chapter 2 we introduce federated identity management (FIdM) that creates a single-sign-on capability where identity information is shared between services. It enables identity providers to attest to an individual’s identity to entities called relying parties such as services and organizations within a trust domain. One system is used to maintain user account information, and other parties (typically systems or services) can query that information as part of an authorization process.

In the cloud context, when an organization outsources services to the cloud, the identity system might not be outsourced. In this case, when logging in to one of those services, an employee enters login credentials and the cloud service checks those credentials against the company’s authentication server. This means that the employee uses the same credentials for each service, and it also means that the organization can set the password and authentication policies that suit their needs and risk exposure.

For this scheme to work, participating systems must form a domain of trusted computers bound by an overarching governance framework comprised of policies, standards, and auditing processes. The communication protocols and format of the data must also be standardized to enable interoperability. In the following two sections we look at two ways in which trust and standardization are addressed in this context. As you will see, each approach responds to a different federated identity challenge, but both standardize communication between remote parties, and both include mechanisms for establishing and maintaining trust between those parties.

Security Assertion Markup Language

SAML is a means of securely encoding authorization requests and approvals.

Security Assertion Markup Language ( SAML ) is a standard that specifies the format of XML messages to be used for identity exchange and the protocols with which to exchange those messages [ GUE21 ]. SAML messages are usually transmitted over HTTP, with the typical addition of TLS. It is important that TLS is used to avoid SAML messages being compromised while they are being transmitted.

The standard specifies three parties in the SAML exchange: the subject, the service provider, and the identity provider (see Figure 8-3 ). The subject is the entity (also called the client) that attempts to access the service (for example, a user of a service). The service provider is the entity providing the service that the subject wants to access. The identity provider is the entity that authenticates the subject to the service provider. A simplified explanation of the exchange between these parties works as follows:

An illustration shows the Steps in the SAML Exchange.

FIGURE 8-3 Steps in the SAML Exchange

Identity Provider: Authenticates user and generates a SAML token and SAML response; Returns SAML response to the Service Provider. Subject: Accesses Application. Service Provider: Locates Identity Provider, Generates SAML authentication request, Verifies the signature on the SAML response, and Logs user in. 1. Login request - Subject to Service Provider. 2. Redirects user to Identity Provider with SAML request - Service Provider to Identity Provider. 3. 3. Redirects user to Service Provider with SAML response - Identity Provider to Service Provider. 4. Provides access - Service Provider to Subject.

  1. The subject requests access to a resource via a browser, and the resource owner (typically a service provider) finds the identity provider to authenticate the subject.

  2. The service provider generates a SAML authentication request and redirects the subject to the identity provider with the SAML request.

  3. The identity provider authenticates the subject and generates a SAML token and SAML response.

  4. The identity provider signs the SAML response and returns it to the resource owner.

  5. The resource owner sends the signed SAML response to the service provider.

  6. The service provider verifies the SAML response’s signature as coming from a trusted identity provider and allows access.

Let’s take a closer look at how these steps work and the security measures that are designed into each step.

The service provider works out which identity provider to connect to via one of several techniques. The service provider might ask each subject to specify which identity provider is to be used or map each subject to particular authentication providers via a dedicated subdomain. The service provider’s SAML authentication request contains the URL of the service provider, a time stamp, and a digital signature. The service provider is able to specify the authentication mechanism that is to be used or the identity provider chooses one.

Once the identity provider authenticates the subject, it generates a SAML token that can contain up to three SAML assertions. These assertions tell the service provider the extent of the access to be granted. The Authentication Assertion confirms that the subject was authenticated by a specific authentication mechanism at a particular time. The Attribute Assertion confirms the attributes that define the access privileges that were supplied with the authentication request. The Authorization Decision confirms or denies the requested authorization. Assertions are digitally signed using the XML signature specification so that they cannot be modified.

The browser forwards the response to the service provider, which takes action depending on the response. The service provider checks the signature sent back from the identity provider to make sure it is valid and then decrypts the message containing the authorization decision and the attributes associated with the subject. If the subject is successfully authenticated, the service provider creates a security context for the subject that reflects the access privileges and logs in the subject with these associated access privileges.

In Sidebar 8-5 we revisit the SolarWinds attack, also discussed in Chapters 3 and 4 , as an example of how malicious code can be included in a regular code update and propagated through the cloud. Privileges conferred through SAML authorizations made the attack possible.

Sidebar 8-5 SolarWinds Attack

SolarWinds provides network monitoring and management services to tens of thousands of organizations throughout the world, including many government agencies. To perform its work, the company uses privileged access to the computing systems of its clients. But the large customer base makes SolarWinds an especially attractive target for hackers.

SolarWinds uses Orion as its network management product. The Orion platform monitors an organization’s technology infrastructure, allowing the organization to monitor from one place environments that encompass onsite systems, hybrid systems, and SaaS systems. Orion enables system administrators to monitor many aspects of a network’s configuration, including network performance, user device management, and Voice Over IP quality.

In December 2020, approximately 18,000 SolarWinds Orion product users were affected by a breach [ VIJ20 ]. In the elevated privileges attack, the hackers gained administrator-level privileges that resulted in superuser access to SAML token-signing certificates. This elevation enabled the attackers to forge the SAML response that is sent back to the resource owner. Attackers did this to gain access to privileged data. The attack used a backdoor inserted into one of Orion’s dynamic link library files:

Click here to view code image

SolarWinds.Orion.Core.BusinessLayer.dll

A dynamic link library is a collection of programs that are used by more than one program at a time to help a core program achieve its goal. It is unclear how this backdoor was inserted into the library file, but an advisory from the Cybersecurity and Infrastructure Security Agency (CISA), a component of the U.S. Department of Homeland Security, suggests the malware may have been inserted into the internal build of the distribution system for promulgating Orion updates [ VIJ20 ]. When Orion users were running a routine Orion software update, the infected library file loaded before the authorized code. The ingenious feature of this attack was placing the attack code into the build of Orion code that a significant number of SolarWinds clients would later download. This way, systems became infected one by one as they downloaded and installed the latest update.

The malware, now loaded, remained dormant for about two weeks. It then contacted a command and control server to alert the attackers that there was a backdoor in that particular Orion installation. The command and control servers were hosted on commercial cloud platforms. When the attackers used the backdoor, they installed more tools to gain additional privileges. Due to the nature of the Orion software, it was typically set up as a trusted third party to access Microsoft’s Office 365 software, which includes emails. The attackers searched emails and documents to find certificates that would enable them to sign SAML tokens and thereby masquerade as legitimate users. The forged SAML tokens gave the attackers access to any cloud services because cloud services are configured to give access to correctly signed SAML tokens. In addition, elevated privileges also meant that the attackers could access local hosts and services.

The attack was sophisticated and targeted. The attackers took care that the malware did not arouse suspicion by making certain that the infected library was the same size as the legitimate library. The attackers also activated only a few of the backdoors available to them, presumably because they wanted to access only highly valuable data. Once the software build was complete, the attackers removed the build files as the malware was already incorporated into the build.

The Open Authorization Framework (OAuth)

The Open Authorization Framework ( OAuth ) is an open standard, Internet Engineering Task Force RFC 9101 [ SAK21 ] that enables secure, third-party, user-agent, delegated authorization. OAuth version 1 was largely rewritten to become version 2, in which the focus was to make the standard more interoperable between devices and services. The standard enables servers and services that have no prior trust relationship to allow authenticated access without sharing the initial logon credentials used to access a service.

OAuth is a standard for third-party, delegated authorization.

You may have used OAuth without realizing it. When you go to a site or service requiring authentication, you are sometimes presented with a few buttons, such as [Login with Google] or [Login with Facebook]. The ability of a single click to log you in to a service or application is because of OAuth. The purpose of OAuth is to exchange authorization information but not identity information. For example, messaging platforms can implement an API that enables third-party applications to access some of a user’s details stored by the messaging platform without the third-party app needing access to the user’s login credentials. As part of the OAuth exchange, the app asks for specific permission scopes; if the user authorizes this access, an access token is provided to the third-party application.

OAuth defines four roles: resource owner, resource server, client, and authorization server. The resource owner is the user with the authentication-protected access to a service. The resource server is the server on which the API resides. The client is the application that is attempting to access the API. The authorization server is the server that authenticates the resource owner and grants the client access to the resource server. Figure 8-4 shows an example of a client requesting and receiving access to a resource from the owner of a resource through a resource server.

An illustration shows the Steps in an OAuth Version two point zero Exchange.

FIGURE 8-4 Steps in an OAuth Version 2.0 Exchange

1. Authorization Request - Application (Client) to User (Resource Owner) in Service API. 2. Authorization Grant - User (Resource Owner) in Service API to Application (Client). 3. Authorization Grant - Application (Client) to Authorization Server in Service API. 4. . Authorization Access Token - Authorization Server in Service API to Application (Client). 5. Access Token - Application (Client) to Resource Server in Service API. 6. Protected Resource - Resource Server in Service API to Application (Client).

There are two types of OAuth clients: confidential clients and public clients. In our example, the OAuth client is a confidential client. Confidential clients are apps that run on servers whose code is difficult to access, meaning the end-user is unable to extract the session values. These clients can be used to store keys that authenticate themselves to authorization servers. Public clients are apps that are not trusted to hold secrets because their code can be reverse-engineered.

In the messaging platform example, the client needs to be registered with the resource server before an OAuth exchange can take place. A registered messaging platform app is therefore assigned a unique client ID and a client secret, which is known only by the client and the resource server. The OAuth roles are assigned as follows:

  • The resource owner is the messaging platform user.

  • The resource server is the messaging platform on which the API resides.

  • The client is the third-party application that wants to access a user’s details to provide an additional service on the messaging platform.

  • The authorization server is the server that generates an access token for the third party.

The communication in this case would work as follows:

  1. A user is contacted by an application client with an authorization request. The authorization request is composed of a client ID, the unique string to be sent back on completion of the authentication, and the scope of access that states to which parts of the user record the client needs access.

  2. If authorization is granted, an authorization token is sent to the application client.

  3. The application client forwards the authorization token to the authorization server together with the client ID and a temporary authorization code. If the credentials are correct, an access token is generated and sent back to the client.

  4. The access token is then used to access resources on the resource server.

The preceding example is based on a previous version of Slack. Further details about this OAuth exchange can be found on the Slack archive api.slack.com/legacy/oauth .

One of the biggest criticisms of OAuth version 2 is that it does not define or support encryption, digital signatures, client authentication, or channel binding (where the session is tied to a particular server and client). For example, due to the lack of channel binding, the user’s credentials can be phished during a user’s authentication to the authorization server. (We describe an example of this attack in Sidebar 8-6 .) Instead, these security services need to be provided by an external protocol such as TLS. TLS can provide all these protection services, but it requires that implementers from all sides deploy TLS. Developers can write code that force TLS to be used in an OAuth exchange, and users should also check that the protocol is being used.

Sidebar 8-6 OAuth Phishing Attack

In 2017, an OAuth phishing attack was launched against Gmail users. According to a BBC article ( bbc.com/news/technology-39845545 ), the attack is said to have cost the State of Minnesota alone US$90,000 when 2,500 state employees received a phishing email purportedly from someone in their email contacts list to say that the sender had shared a Google doc with them. When the user clicked [Open in Docs], a webpage appeared that requested OAuth permissions to the user’s email account. The user first logged in as requested, and then a “Google Apps” service asked for permission to access the user’s email account. Once OAuth had been used to authorize the malicious service to access the user’s email account, the attacker had unlimited and continuing access to emails, documents, and contacts. The attacker then also sent the phishing email to everyone in the contact list linked to that email account.

This attack works because OAuth has become a standard way for two services to seamlessly connect and enable a user to complete a transaction that requires the use of two or more services [ WRI17 ]. The phishing attack used OAuth in a normal way, but for a malicious purpose. Moreover, the email was sent from a sender that the user recognized, and the request looked like a legitimate Google docs access request. Although Google responded to the problem within a matter of hours, and fewer than 0.1% of the userbase was affected, over 1 million Gmail users received the phishing email. This emphasizes the scale of cloud services and the speed at which attacks can spread in a cloud.

To prevent such attacks from happening, users need to consider OAuth requests with the same caution used when account credentials and account login requests are received. As an additional step, users should be careful which links they click in an email and which access permission applications they grant. A user can also look up the developer information about the application that is requesting access.

Extending OAuth With OpenID Connect

OpenID Connect ( OIDC ) is an identity layer built on top of the OAuth 2.0 protocol. OIDC has become a common way to perform federated identity management. As an example, when a user accesses a service for the first time, the login process might offer two routes: to create a local account for that service or to use the user’s existing Facebook or Google account to access the service. OIDC is designed for this second route. It adds identification and authentication services to OAuth 2.0’s authorization services. OIDC adds a token that lets the authorization server make authentication claims about a user.

The entities in an OIDC flow have slightly different names to accommodate the access token (termed the ID Token ). The OpenID provider is the authorization server that issues the ID Token and contains the UserInfo Endpoint where claims and assertions about the logged-in user are stored. The end-user is the party whose information is contained in the ID Token. The relying party is the client application that requests the ID Token from the OpenID provider. The ID Token issued by the OpenID provider contains information about the end-user in the form of claims. The claim is the piece of information about the end-user.

As we have seen in this section, authentication in the cloud continues to be a work in progress. The OAuth 2.0 landscape is evolving. OAuth 2.0 has been extended to enable connections to different endpoints. Such extensions include improved ways of authenticating mobile apps, for authenticating native apps, and for authenticating devices such as streaming video encoders. There is work ongoing to develop OAuth 2.1 to consolidate these extensions.

This concludes our description of the cloud and its security ramifications. We needed to set out this background before launching into the Internet of Things because the implementation of IoT depends heavily on the cloud. With this foundation, we are now ready to explore the IoT and its security implications.

8.3 IoT and Embedded Devices

We now turn our attention to IoT and embedded devices. These technologies, powerfully combined with cloud computing, have radically changed how services are delivered.

The term “Internet of Things”describes a wide, heterogeneous ecosystem of networked devices and services that dynamically share and process data. ENISA [ ENI17 ] defines IoT as a “a cyber-physical ecosystem of interconnected sensors and actuators, which enable intelligent decision making.” According to ENISA, the term “IoT” was first used in 1999 by Kevin Ashton of Procter and Gamble who proposed embedding RFID tokens into everyday objects to open up further possibilities for communication between people and things. Although the term was first used in 1999, the idea of enabling everyday objects with networking and processing power had been discussed since at least the early 1980s. (For an example of an early IoT device, see Sidebar 8-7 .) Mark Weiser set out a vision for a network of connected objects in 1991 in an article in Scientific American [ WEI91 ]. In his article Weiser explains his idea that computers will “disappear into the background.” IoT and embedded devices are one approach to melting technology seamlessly into the fabric of daily life.

Sidebar 8-7 History of IoT Devices

It is often claimed that the first known IoT device was a vending machine dispensing carbonated drinks at Carnegie Mellon University in Pittsburgh, Pennsylvania [ FOO22 ]. In the early 1980s, graduate student David Nichols grew tired of trekking from his office to a distant soft drink vending machine, only to find that the machine was out of his favorite, so he invented technology to monitor the contents of the vending machine.

Nichols and three companions developed sensors to detect when the machine needed to be refilled, when it had just been refilled (and so the drinks would be warm), and when those warm bottles would have cooled sufficiently. When drinks in a particular row started to run low, a light would blink, and when the drinks were completely finished, the light would constantly be on. A sensor board was embedded to detect when the light started to flash and send a notification to communicate that stocks were running low.

The most significant part of the story for today is that the graduate students did not just run the code on a local machine. At the time, Carnegie Mellon was one of the small number of sites connected to the ARPANET, the precursor to today’s internet. The program became a resource for anyone on the network; someone thousands of miles away at University College, London (England) or Stanford University (Palo Alto, California) could query the status of the distant vending machine (although the need to know would be doubtful). Thus, this vending machine became arguably the first node on the Internet of Things.

By 2020, some 30+ billion objects were networked and able to access processing capabilities. BBC estimates that 127 billion objects will be connected by 2030 [ RIL20 ].

We can see how this vision comes to life through the IoT component depicted in Figure 8-5 (from NISTIR 8316 [ SIM20 ]). IoT is composed of small components that can be embedded into our physical infrastructures and that, as the figure shows, have significant computational and connectivity capabilities. They might be independent devices, such as fitness monitors, or devices embedded into a wider system, such as traffic lights. The devices might be sensors that monitor the environment, perhaps measuring specific indicators or gathering data. The devices might also control a system or mechanism. The item controlled could be as simple as a lightbulb or as complicated as a manufacturing plant or a hydroelectric dam.

An illustration shows the Elements of an IoT Component.

FIGURE 8-5 Elements of an IoT Component (Reprinted courtesy of the National Institute of Standards and Technology, U.S. Department of Commerce. Not copyrightable in the United States.)

IoT Component points to Interface Capabilities, Supporting Capability, Latent Capability, Data Capabilities, and Transducer Capabilities. Interface Capabilities include Application Interface Capability, Human User Interface (UI) Capability, Network Interface Capability, and Supporting Capability. Transducer Capabilities includes Actuating Capability, and Sensing Capability. Data Capabilities include Data Transferring Capability, Data Processing Capability, and Data Storing Capability.

IoT devices support many communication protocols used to send and receive data. An IoT environment also has the capacity for intelligent decision making, involving processing, analyzing, and determining responses from the data available to the device. As we explain later in this section, IoT could potentially become embedded into almost every aspect of everyday lives. Our houses, home appliances, automobiles, the civic and statutory services that we rely on, and our work environments often include some form of IoT. IoT devices can both gather and generate data, and this enables organizations and individuals to monitor how processes, people, and technology are performing. For example, a factory supervisor may have end-to-end visibility of what is being manufactured, the resources being used in the manufacturing, and therefore a closer valuation of the manufactured product.

Examples of embedded IoT systems include those in vehicles to measure and report heat and tire pressure or provide satellite navigation; those in manufacturing systems to measure and report production, errors, and wear and tear on components; and those built into roads to measure and report volume of traffic, surface conditions, and wear and tear.

However, the reality that often transpires is that IoT and embedded devices are shipped with legacy operating systems having known weaknesses, poor support for software updates, default and unchangeable passwords hardwired into the IoT device, and vulnerabilities in the device’s software that enable attackers to inject malicious code. Worse, many embedded devices use proprietary purpose-built operating systems that have not had the public scrutiny or stress testing of widespread community use. Whilst ongoing regulatory and legislative initiatives seek to change this, the default has yet to become security by design. As a result, careful attention needs to be paid to the security management of IoT devices.

IoT and Security

Here is a good place to pause and reflect on the fact that these sensors have been in cars for a long time. The difference with the IoT is their connection: Instead of just presenting data to you (your car is overheating, which was formerly presented as a temperature gauge), the warning can now go to the internet. There, the IoT might post the warning to your mobile phone, it might post a warning to the fleet manager for the pool of cars of which yours is one, it might dispatch an emergency service vehicle, or it might find nearby repair services and advise you that you can find service five minutes ahead. All of these are useful additions.

However, they all come with security and privacy implications. The sensor might be wrong, or someone might intercept the information feed produced by a sensor. A cybercriminal might be watching for lone drivers in a deserted area and either notice or force a heat alert. The manufacturer might try to void your warranty, claiming you failed to maintain your car properly, and you are unable to challenge the data collected by the sensors.

Just because we can connect a car’s sensors to the internet, is that a good idea? How we answer that question depends very much on the extent to which we can include and manage security functionality in such technology. It is also important to note that embedded systems to implement the IoT are deployed as part of vehicle design and typically contain a processor, memory, and a peripheral device, often controlled by integrated software. Although embedded systems provide real-time capability and are agnostic of the systems they are embedded into, such devices have power and memory limitations and are also prone to security vulnerabilities.

Security Considerations

IoT offers a large attack surface because IoT has the potential to be embedded into almost every aspect of a person’s life, vastly increasing the security and privacy implications and potential for harm. For example, IoT is increasingly included into household appliances, heating systems, and security systems. IoT and smart devices are often deployed by default in newer homes, and such devices are also being fitted into older housing stock as energy-saving initiatives.

IoT is also increasingly used in our civic infrastructure, which means that our lighting, refuse collection, transportation systems and traffic control, and utility provision increasingly include IoT technologies. Essential services such as banking and food provision use IoT both in the way services are delivered and in the way supply chains are structured. Similarly, the workplace often has sensors deployed for a wide range of uses including heating and lighting provision, security systems, and building access control systems. Workplaces also use sensors in production systems, stock management, and distribution systems. In these settings IoT is often used to make processes more efficient both by collecting data and acting on that data. For example, a workplace might use IoT devices to collect environmental data that is used to operate and maintain the heating and air conditioning systems. Smart office buildings use sensors to automatically raise and lower window shades in response to sunlight levels; such control balances the need for natural light with the heating and cooling implications of the sun’s rays. However, a smart workplace raises the security concern of sensor data being falsified, resulting in malicious control of the workplace environment.

We must mention one other very personal way in which we use IoT technology: our bodies. Embedded pacemakers, insulin and other drug delivery pumps, blood glucose monitors, bone-anchored hearing systems, and other technology have existed for decades. Originally these devices had little direct data transfer outside the patient’s body. Soon, technicians asked for a way to interact with the device, to adjust its programming, test its operation, or obtain stored monitoring data. For these purposes, the patient would visit a physician or technician and obtain service in the office. For convenience to both the patient and the provider, attaching these devices to the internet was a logical next step. As we have shown in numerous other examples in this book, what is perfectly safe in a closed, known, protected, nonhostile environment can be entirely different outside one. As the perimeter of attack expands from a person’s body to the person’s home, from a physician’s office to the internet at large, so also do the potential threats, threat actors, and vulnerabilities.

Vulnerabilities primarily arise because of poor access control, the need for specialist knowledge to manage the security of such devices, physical exposure, and limited memory and processing capacity. In addition, because these devices are connected to the network, the attack surface is sizeable with weak access control capability to prevent unauthorized access.

Similar security vulnerabilities are also found in systems made up of devices embedded into a larger system and dedicated to completing a single task. Although historically such systems have been relatively secure because they are difficult to access, this has changed with internet connectivity implemented for ease of system management. Unauthorized access to embedded systems is made possible due to a number of factors, including weak access control through interfaces and APIs, brute force attacks, session hijacking, and weak memory protection.

For example, in 2019 security researchers at the company IOActive worked out how to gain access to an embedded device in Diebold Nixdorf’s Opteva ATM and reengineer the code so that the ATM kept dispensing money. Researchers succeeded because the ATM had an exposed USB port without any access control. Researchers were able to plug a netbook into the exposed port, access, and then reengineer the ATM’s Automatic Funds Distributor, which is a device in the embedded system that determines how much money to dispense [ NG17 ].

IoT devices are often deployed at the edges of networks; in this context they are called edge devices . Because these devices are not behind the traditional perimeter security defenses and typically do not reside within physically protected systems, there is often limited, if any, physical protection of these devices, and the devices themselves are not physically hardened. The physical constraints of an IoT device can be exploited. For example, the battery life of an IoT device is constrained, and denial-of-service attacks can be targeted at the IoT device by draining the battery. Tech website Gizmodo reported on 22 malware-riddled apps that can deplete a mobile phone’s battery [ JON18 ]. Being on the edge of a protected network, these devices are more accessible to malicious outsiders than internal devices with more robust identification, authentication, and access control.

Many IoT devices are low-cost, and to keep prices down they have limited memory, processing capability, and storage. Manufacturers tend not to make security a priority, and resource constraints make patching and updating difficult. The compressed design lifecycle of IoT devices further challenges the implementation of security and privacy because it can reduce the time available to consider and scrutinize security and privacy vulnerabilities and controls.

By design, IoT devices combine into a complex ecosystem, so we have to consider more than device security. We must look at the security of the devices’ interfaces and communication protocols too. And we must not forget the security of the people who depend on these devices in many aspects of their day-to-day lives. For example, consider wearable IoT devices that are able to track a person’s movements. Not only can these types of devices compromise an individual’s privacy, but they can also provide information that threatens that person’s safety and security.

These factors lead to a conundrum: Few people understand both security and the IoT. As you have seen throughout this book, developers think first about how to make something work; they tend not to think of the security implications of how something could fail (and more maliciously, be made to fail). The compressed design lifecycle is further complicated by a fragmentation of standards and regulations. This fragmentation arises because there is no centrally coordinated standardization effort, and standards and regulation have been slow to evolve. Compressed development schedules, lack of competent security analysts, and lack of standards are security management challenges. Worse, differing security requirements and lack of interoperability make security integration difficult. The lack of clear assignment of responsibilities and liabilities in an IoT ecosystem also makes it difficult to identify liabilities for security and safety incidents.

Botnets and IoT

The vulnerabilities in IoT make fertile ground for attackers to use as a botnet. Remember from Chapter 6 that botnets are collections of devices in which multiple infected devices are controlled from a server called a command and control server. Such bots can be used as part of a denial-of-service attack or to distribute malicious code through phishing email attacks, for example.

The limitation of a botnet is finding enough computers to participate. Botnet controllers search for poorly protected computers they can commandeer to participate in the botnet. The IoT suddenly adds many devices, often with limited security. An internet-connected thermostat may be a useful conscript to a botnet. Furthermore, owners do not necessarily think of these devices as computers: To the homeowner, that device is just a thermostat, but to a botnet owner the device has the two things necessary: computing power and an internet connection. Additionally, the thermostat function does not place a heavy demand on the computer embedded in the device, so spare computing power can be had by the compromise. The homeowner may not think of securing the thermostat; worse, the manufacturer may not have given the homeowner the capability to do even rudimentary security—access control or authentication.

The IoT devices infected in a network are often routers, smart cameras (security surveillance devices), and digital video recorders (these infected devices are termed malicious endpoints), and the malware with which they are infected is typically specifically designed for IoT devices. By making routers a target, attackers can use the router as a gateway to devices and data on an internal network and further monetize the botnet. Here are some ways a compromised IoT device could participate in a botnet:

  • Snooping on the user could yield valuable information about the user’s activities. For example, the bot could collect and sell which video services a homeowner uses and in what quantity. Such market data is desirable to competitors. A snooping botnet across the country could also listen in on homeowners’ conversations to be able to report whether the mention of a particular product increased after an advertising campaign.

  • Cryptocurrency mining (described in Chapter 13 ) requires massive amounts of computing power. But it is a process that can be readily parallelized, so an army of compromised IoT devices could cooperate in solving a problem for the benefit of a remote bot master.

  • Click fraud, as presented in Chapter 4 , involves generating revenue from user clicks on advertising links. A botnet agent can affect many clicks to inflate the number of times an online advert is accessed.

IoT botnets are run by malware that comes from a handful of so-called codebases. A codebase is a body of source code. In the case of IoT botnets, these codebases are often open source, which means that attackers can modify the source code to spawn new versions of the malware from the codebase. IoT botnet malware is territorial; it aims not only to infect as many devices as possible but also to fend off infection from malware from other botnet families. Once a device is infected, it is difficult to clean; and often, users do not notice that the device is infected. How do you add or remove malware from your internet-connect refrigerator? Are there anti-malware tools for use on smart doorbells?

Botnets can be deactivated by taking down the command and control server. However, botnets are evolving, and the restructuring of botnets as peer-to-peer (P2P) networks means that a botnet can no longer be halted by taking down one central command node point. The P2P networking protocol allows two devices to share files without the need to connect via a central server. Sidebar 8-8 describes how one botnet was disabled.

Sidebar 8-8 The Mirai Botnet

In 2016, a company called Dyn was targeted by the Mirai IoT botnet (one of the IoT botnet codebases) in a distributed denial-of-service attack. The attack was one of the largest botnet attacks recorded. It was also significant because Dyn controls much of the internet’s DNS infrastructure. As a result, not only was Dyn affected but so too were the servers of many well-known entities, including Netflix, Reddit, CNN, and Twitter. The Dyn servers were swarmed with data requests from hundreds of thousands of infected devices. The data requests overwhelmed the targeted servers and rendered them unable to function [ GRA16 ].

Initially the attackers looked for devices to infect by searching for factory default usernames and passwords and using these default pairings to gain access to devices and infect them. (Consider this exploit as yet another reason to avoid weak passwords.) The attackers then evolved the toolkit to add exploit code to routers with vulnerabilities that enabled illicit access. When infecting a router this way, the attacker closes off the vulnerability in the communication protocol once the device is infected and then closes the telnet port so that the manufacturer cannot remotely update the router. Each new iteration of the Mirai botnet has become more aggressive, making it difficult to clean and keep clean routers. Even if routers are not infected, they become overwhelmed with the volume of traffic. This example shows just how vulnerable IoT is.

The Mirai botnet also shows that botnets are big business. The design of the botnet shows that the botnet is broken up and attackers are sold access to a part of the botnet for a specific period of time. Those managing the Mirai botnet sell only restricted access to prevent too many malicious endpoints being taken offline at the same time.

Security Responses

Security responses to these issues entail hardening IoT devices to ensure they can be accessed only by authorized devices and individuals. The IoT Security Foundation published the IoT Security Assurance Framework [ IOT21 ]. The framework provides a method for classifying IoT assets according to their security objective. An assurance questionnaire is provided to support security practitioners in making an assessment as to which class an IoT asset belongs. This framework breaks security assurance into families of controls and specifies which controls are required according to the class of the asset.

The families of controls set out in the IoT Security Foundation’s framework are common to most types of computing. However, we want to highlight some specific points here:

  • The complexity of the IoT environment and the lack of a coherent regulation framework make it critical that responsibilities be identified for implementing, updating, transferring ownership, and decommissioning IoT devices.

  • Hardware and physical security are important concerns that are less commonly addressed than with other types of computing.

  • IoT devices are often deployed in environments where there are no additional physical protection mechanisms. Therefore, IoT devices must include controls that protect the boot-up process of the assets, offer secure debugging, prevent reverse engineering and tampering, provide security for cryptographic processes, protect the CPU, and secure testing and support interfaces.

  • In terms of software protection, the usual controls apply. However, software controls need to be tailored to the IoT resource constraint and the fact that once the device is deployed, all software updates will be remote and automated with no human-computer interaction. Therefore, software controls in the IoT context mandate that the provenance of software updates be rigorously checked before remote updates are authorized.

  • Software controls might also include encryption to provide confidentiality and integrity protection of the IoT devices’ data. In particular, these controls have to prevent leakage of sensor data and provide message authentication that can detect fraudulent sensor data.

  • Software updates must be designed for devices with limited resources. Updates must not compromise the device if a break in the network communication results in only a partial software update. As network connectivity cannot be guaranteed for each IoT device, the controls framework must make provision for using up-to-date versions of communication protocols.

  • Connections between IoT devices and between IoT devices and cloud services are a potential point of compromise and must be protected using certificate-based encryption or other strong authentication.

  • IoT environments are complex and therefore proactive threat detection is particularly necessary.

Lightweight Encryption

A security limitation particular to IoT devices is their limited processing power. A smart lightbulb or thermostat does not need extensive computing power, large memory, or broad network connectivity. Embedded processors for IoT devices can be simple, limited computers.

The limitation of that reduced functionality has an implication on cryptography, however. As presented in Chapter 2 , contemporary commercial cryptography uses algorithms such as AES and RSA, as well as hash coding to support signing, key exchange, and certificates. On conventional computers such as laptops, desktop units, or servers, processors can easily handle these forms of cryptography. But an embedded computer with limited computing power may be unable to implement these sophisticated algorithms or to do so at the speed necessary. Consider determining the integrity of a code update or protecting the confidentiality of data. Our standard approach would be to apply encryption, but if the processor will not support strong encryption, that approach is no longer an option. Long key lengths yield strong cryptography, but the amount of computation may be infeasible on embedded processors.

To respond to this challenge, NIST has initiated a process to solicit, evaluate, and standardize cryptographic algorithms suitable for use in constrained environments where the performance of current cryptographic algorithms is not acceptable. NIST is seeking proposal for a technology called lightweight encryption . The term “lightweight” does not imply weak but rather cryptography tailored for implementation in constrained environments including RFID tags, sensors, contactless smart cards, healthcare devices, and so on. In March 2021, NIST announced it had arrived at a set of ten candidates for standardization.

Digital Responsibility in a Smart Environment

The IoT depends heavily on cloud resources. Cloud computing creates an environment in which services can be continuously combined and reorganized to offer a variety of service experiences to the end-user. The addition of IoT and embedded devices increases the range of services that can be offered. However, with this diversity and complexity comes the challenge of governance. The variety of stakeholders involved in a smart environment requires a close look at responsibilities and how these are managed.

In the digital context, technological developments have made the relationships between carrying out an action and being accountable for that action more difficult to identify. Many actors, often without a relationship to each other, can carry out digital tasks that contribute to a single action.

Consider the example of a smart car. The maker of an automobile may incorporate sensors and software from several different component manufacturers. The highway construction department places road signs at predictable heights and in standard formats. The driver’s smart device monitors the vehicle’s speed, the speed limit, and the driver’s reactions to situations. The single task is driving a car safely, but none of the actors is necessarily aware of the actions of the others.

With smart devices we typically need to think about responsibility when considering implementation and maintenance tasks. A road crew might think nothing of positioning a traffic warning sign in an unusual position, perhaps overhead or painted on the road surface, if doing so would, in the crew’s opinion, improve safety or solve some unusual need. But if the car’s sensors miss such a warning sign because it was not located in the expected place, safety has been compromised. We also think about responsibility when something goes wrong or goes well so that we can attribute blame or praise, especially when we are looking at the cause or impact of an incident or an issue. As you will see in the following sections, smart environments require a careful identification of these digital responsibilities.

Responsibilities are assigned at two main junctures: in the design of the technologies used to create the cloud infrastructure and the IoT technologies deployed in the smart environment; and the connection of the end-user to the smart architecture. Responsibilities could also be assigned as part of the agreement to deliver a smart service (for example, a smart transport system) or deliver a smart infrastructure (for example, a smart health environment). There are two main mechanisms for assigning responsibilities: regulation (standards and legislation) and contracts (end-user agreements, service-level agreements, and maintenance contracts, etc.).

As the examples of smart environments in the following sections highlight, regulations for the design of the technologies and services will certainly help some of the inherent vulnerabilities in smart environments. Contracts and legal agreements are also good means of distributing and clarifying responsibilities, although these legal texts are often inaccessible, and clear messaging is needed to ensure that all parties understand their responsibilities [ PRO08 ]. These terms and conditions are inaccessible to lay readers (including users and system developers) because of the language used and the length of the terms and conditions. The terms and conditions are also unusable as a means of setting responsibilities because the end-users of these technologies have little choice but to accept them. Finally, terms and conditions are typically written to protect the developer, not the user. This means that responsibilities may be assigned that cannot be enacted or that have little meaning to the end-user’s context of use.

However, as the examples in the following sections show, there tends to be a responsibility gap in smart environments. Smart environments bring together stakeholders who have varying levels of dependency on each other. For such environments to operate safely requires the idea of responsibility as a social or collective endeavor placed on a collective of stakeholders (including researchers, designers, businesses, policymakers, and even citizens) to align the values, goals, and outcomes of stakeholders throughout research and innovation. Academics Stilgoe, Owen, and Macnaghten describe this approach as follows. “Responsible innovation means taking care of the future through collective stewardship of science and innovation in the present” [ STI13 ]. They suggest that a move toward responsible research and innovation should include a broad range of considerations, including how certain risks and benefits will be distributed across society (and how these should be defined and measured); the anticipation and potential mitigation of any impacts (including any potential unknowns); who should take responsibility if things go wrong; and what the motivations of both the research and researchers and innovators.

Legislative and Regulatory Responses

Responsible research and innovation will always be necessary to ensure that IoT devices and embedded systems are designed with appropriate security controls, but regulation and legislation is needed to ensure support of such a position. In the European Union, a European Cyber Resilience Act is under development to respond to four key objectives:

  • Ensure that manufacturers improve the security of the digital elements of their products from product development and throughout the product lifecycle.

  • Ensure a coherent cybersecurity framework that facilitates hardware and software compliance.

  • Enhance the transparency of products with digital elements.

  • Enable businesses and consumers to use products with digital elements securely.

The legislation is expected to become law by 2024. To see further details on these objectives and chart the progress of the European Cyber Resilience Act please refer to the website european-cyber-resilience-act.com . It is noticeable that the European Cyber Resilience Act refers to products with digital components, thereby covering both digital devices (including IoT) and embedded devices.

In the United Kingdom, the Product Security and Telecommunications Infrastructure Bill has started its legislative journey. The purpose of this legislation is to ensure the security of IoT devices. It has three main requirements:

  • Default passwords may no longer be used on IoT devices.

  • Manufacturers have to confirm how long software updates will be available once products have been launched.

  • Manufacturers must disclose known vulnerabilities.

This legislation firms up the principles set out in the code of practice that the U.K. government developed for consumer IoT devices. This code of practice also highlights the need for secure communication, hardened devices, and ease of secure installation and management.

These pieces of legislation show a growing commitment to provide regulatory and legal frameworks to support consumers, businesses, and public organizations in the secure development and deployment of IoT and embedded systems.

8.4 Cloud, IoT, and Embedded Devices—The Smart Home

In this section we explore how the cloud, IoT, and embedded devices come together to create smart homes. Following the assurance framework we looked at in the previous section, IoT devices in the home would typically be regarded as a lower class of device requiring less stringent security controls. However, as we shall see in this section, the potential for attack and harm via digital means is nevertheless still present in the smart home. This is particularly the case because, as depicted in Figure 8-6 , smart devices can be used to control basic household services such as heating and utility usage as well as to provide health services.

An illustration shows Apps Controlling Many Smart Home Devices.

FIGURE 8-6 Apps Control Many Smart Home Devices

The illustration shows a mobile phone with six apps. Each app connects to the following icons: a cocktail drink icon, a computer icon, a playground icon, a keep warm icon, an alarm clock icon, and a car icon.

The use of smart technologies in intimate, private spaces such as the home means that attacks in this context have privacy implications as well as potential physical and environmental implications. For example, a smart lock might maintain an audit trail of when people move in and out of the house, and a smart fire sensor monitors temperature as well as smoke. In the case of the smart lock, unauthorized access to the audit trail could help a burglar or enable stalking. In the case of the smart fire sensor, a failure of the sensor could result in a fire going unalerted. Our homes are our castles. But not every castle is ready for smart devices, as discussed in Sidebar 8-9 .

Sidebar 8-9 Smart Devices in Our Most Private Spaces

Smart home technology, also called domotics (a contraction of domestic robotics), is designed to increase security, convenience, energy saving, and comfort within the home. With IoT smart homes, tenants can access smart devices remotely through apps and web interfaces. By using IoT, not only are these devices able to respond to stimuli within the environment and act accordingly, but the devices often operate together and share data both between the devices and between smart home operators.

Smart home devices are many and varied. The following are some examples. Smart TVs connect to the internet, so the device can interact automatically with other devices such as home entertainment systems as well as security systems. Your smart TV could tell a smart entertainment system to switch the input source to the TV, or it could send a signal to dim smart lightbulbs. A smartphone could signal the smart TV to lower the volume when the user receives a phone call. Smart lighting enables tenants to adjust lighting both when present and remotely, to enable lighting through sound and gesture, and to configure lighting to self-adjust in accordance with the daylight. Similarly, smart thermostats can adjust in accordance with changes in temperature, can be accessed remotely, and can report on energy consumption.

Smart locks and smart door access control, smart security cameras, and smart security lights can share in home security. Kitchen devices (such as smart coffeemakers and slow cookers) can be smart-enabled to carry out actions at certain times. Smart devices can also monitor the environment. For example, the smart refrigerator can detect when food of certain types is running low and when food is nearing its expiration date. A nagging smart refrigerator could suggest healthy food. In terms of household systems, smart devices can be used to monitor utilities such as electricity, water, and gas and respond to irregularities such as electricity surges, frozen or burst water pipes, and gas leaks. Finally, smart assistants such as Alexa or Siri can control other smart devices in a home.

However, the acceptance of domotics has been slow, in part because older homes have to be retrofitted to enable the use of smart technologies. Interest has also been low because often the assumption is that houses will be occupied by a single family unit and owned rather than rented. This means that some of the underpinning economic models are reflected in the design of the access control and usage technologies, and these do not necessarily work for a sizeable part of the user community. It is therefore important to remember that one size does not fit all when it comes to smart homes, and this needs to be considered when putting together a security architecture for use in a smart home.

The smart home devices typically connect to the cloud and use the cloud to process, store, and transfer data. The devices are often constrained and have limited resources (limited battery power and a simple CPU, for example). However, not all devices are constrained, and some (for example, smart TVs and smart hubs) are classified as high-capacity devices. Differentiating between constrained and unconstrained devices is important because the constrained devices tend to have more limited security functionality.

Securing Smart Homes

Smart home devices may have limited security capabilities with users unaware of a responsibility to manage their own security.

According to ENISA’s report on smart homes [ ENI15b ], many threats in a smart home exploit vulnerabilities that arise from the lack of security capability in constrained devices, lack of clarity around who is responsible for maintaining security in IoT devices, and lack of vendor support for security once a device is in use. Would you think of needing to manage the security of a smart thermostat? Although the types of attack are already familiar, the potential for harm to people is much greater in the smart home context. For example, an attacker might tamper with a device or force the device to fail into an insecure state and then gain unauthorized access. With unauthorized access, an attacker might repurpose the device to cause harm to an individual (such as to use the device for stalking or tracking) or eavesdrop on communications with a view to causing harm. Remember that some attacks have no purpose other than to annoy.

Unauthorized access is not the only threat to smart home device users. Accidental or unintentional damage to the smart device can also harm people. If the device offers an essential service such as heating control, particularly for households with vulnerable people, outages can potentially cause harm. In addition to unintentional damage, such devices can also be misused or mismanaged by authorized users, with a resulting loss of access control. In Sidebar 8-10 we explore some of the potential unintended consequences of such devices.

Sidebar 8-10 Unintended Consequences

Smart home devices offer new ways for one household member to stalk, intimidate, or control another household member [ LOP19 ]. For example, child safety or find-my-phone apps can be used to track the whereabouts of another household member. Smart assistants such as Alexa or Siri can be used to find out what a household member has been accessing on the internet and to provide a detailed breakdown of the search history on that device. Such devices can also be used to harass individuals, for example, using the smart assistant to turn on lights and music as a form of coercion and harassment.

As smart assistants become more complex platforms for interhouse communication rather than devices offering individual functionality, the potential for abuse grows. For example, the Amazon Echo Show device increases the capabilities of an Amazon Echo to include a built-in camera and screen. The screen can display results of searches or show video while the camera might monitor activity. However, the camera could be used to spy. Smart locks can also be used to keep someone in a room for a period of time.

The very presence of a smart assistant might also become a source of anxiety. Consider, for example, Amazon Echo’s “drop-in” functionality. Your partner might install Echo drop-in to listen for unusual noises—such as from an intruder—after the rest of your family has gone to bed. As you can well appreciate, however, Echo drop-in could also be used for snooping. Worse, your partner could use Echo drop-in to coerce or control you by making you aware you are being monitored.

Consider a simple but common situation: two people living together, one likes it warmer and the other likes it colder. Before smart devices, there would be a constant wrestling match at the thermostat with one raising the temperature and the other lowering it. At least then these two had to come to some agreement. With a smart thermostat, the hot-preferring person could subject the colder one to a heat wave without even being home. Or, to be vindictive, the hot one could keep lowering the temperature until even the cold one found the temperature intolerable.

These devices have such potential for misuse because they are developed on the assumption that residents will use them fairly. This is a type of unwritten contract where people agree on the security goals they are working toward. In an organization this agreement is handled by making sure people are working toward the same goals, often with a security policy and appropriate training. Increasingly we rely on the same kind of agreement in our personal and communal lives too, but we do not have the same mechanisms for reaching agreement or even describing and documenting the situation as we do in the workplace. These devices are designed in such a way that relatively low levels of technical skills are needed to configure the use of the device. There is also an assumption that a smart device will be used for the common good of their residents. These can be assumptions that turn out to not be the case.

It is important to remember that people sometimes have no choice in using smart home devices. This occurs, for example, when one member of a household installs a smart device without consultation. It can also occur when a landlord installs a smart device and makes its use part of the rental agreement.

Security Practices and Controls in the Smart Home

IoT devices are installed in the home as part of a Home Area Network (HAN). Many of the protection mechanisms that need to be deployed are outlined in Section 8.3 . Such protection mechanisms need to be implemented from the design of the device all the way through to the end of the device’s life. However, as many of the IoT devices in the smart home are constrained with limited security capability, there are limited responses to these threats. ENISA [ ENI15b ] recommends the following three responses as a minimum for all IoT devices:

  • Provide the user with notification and provide a failsafe mechanism or stand-alone option in the event a device fails.

  • Use the broadest possible range of interfaces or radio frequencies to maintain connectivity.

  • Have backup power sources.

The manufacturer should test the above functionality. Only devices from reliable manufacturers should be implemented in the home setting. Often smart devices are installed in a trust infrastructure that enables devices to share information with each other and enables failover between devices. Therefore, a trust relationship must be securely set up and taken down. Finally, as with all networks, communications between devices must be secured and protected from eavesdropping. Sidebar 8-11 shows an example of the implicit trust infrastructure in which a smart device operates. This implicit infrastructure is not necessarily understood or accepted by all users.

Sidebar 8-11 Responsible Disclosure

As we have seen many times in this chapter, IoT devices not only significantly expand the attack surface but also enable attacks that are hard to prevent. One example is the misuse of Apple’s AirTags. AirTags are small tracking devices intended to keep track of items of value such as a bag or a set of keys around the home. AirTags work as a tracking beacon so that the tag can be located using a mobile phone. In case of theft, when someone realizes that an AirTag is missing, the tag can be set to lost mode, which alerts Apple that the tag (and therefore whatever it is attached to or inserted into) is lost. Once the AirTag has been set to lost mode, Apple creates a unique URL with which the user can enter contact details for the return of the device. If someone finds the AirTag, the finder can scan it with a mobile phone and recover the contact details. Attackers can send the owner of the lost item links to malware or to a phishing attack. This potentially means that malware can be spread via the dispersal of these small devices.

This example shows why designers and developers must involve security analysis in a product design. As we stress throughout this book, security is about what goes wrong, not what works. The AirTag attack has been termed the “Good Samaritan attack.” Such an attack exploits a vulnerability of poor security design: The finder of an AirTag receives a message asking the finder to report the tag to its owner at a particular phone number, but that number can be laden with other data, in a classic injection attack. As security specialist Brian Krebs explains [ KRE21 ], “a weaponized AirTag tracking device could be used to redirect the Good Samaritan to a phishing page, or to a website that tries to foist malicious software onto her device.”

As Krebs describes, consultant Bobby Rauch discovered this attack in 2021 and reported the vulnerability to Apple. Device manufacturers sometimes fail to recognize these vulnerabilities as problems to be fixed. Three months after Rauch reported the vulnerability to Apple, the company told him that it intended to fix the vulnerability, without specifying a date or even a sense of the priority of the vulnerability. Eventually Rauch went public with the finding to raise the public’s awareness. A company’s lack of response can make it difficult for security practitioners to disclose vulnerabilities responsibly. In an ideal world, after Rauch reported the vulnerability to Apple, Apple would have quickly responded, closing down opportunities for attackers. By not responding, responding late, or responding but not acknowledging the role security practitioners have played, Apple and similar companies make it more likely that vulnerabilities will be publicly disclosed. Although public disclosure does raise public awareness, it also advertises vulnerabilities to would-be attackers.

This example highlights not only the important role of responsible disclosure in improving the security of IoT but also the role that the public can play in encouraging vendors and product manufacturers to make our IoT devices safe.

8.5 Smart Cities, IoT, Embedded Devices, and Cloud

Smart city is a term used for towns and cities that use digital technology to provide intelligent, interconnected services. Much of this interconnectivity is provided by cloud-connected IoT devices embedded into transport, environmental, and civic services. The aim of a smart city is to generate, gather, and analyze data about the way civic services work and use that analysis to improve the efficiency and effectiveness of those services.

However, as we have discussed in previous sections, the lack of regulation and standardization, together with the constraints of IoT devices, make smart cities vulnerable to cyberattack. In this section we set out the types of threats to which smart cities can be vulnerable and present some of the ways in which urban designers can mitigate these vulnerabilities.

There is no generally accepted definition for a smart city. Descriptions of smart cities break down into two categories of elements [ ENI15a ]:

  • basic processes that are enabled with IT (for example, sensor technologies and automated decision making) to gather and use data to improve civic services

  • specific focus areas that use the basic processes to deliver improvements in specific sectors, such as transport, education, healthcare, or the environment

Let us consider some of the ways in which smart devices and a municipal computing infrastructure could enhance the way a city operates.

  • For some time, emergency vehicles have been able to control traffic flow. A fire engine heading for a busy intersection can signal ahead to the traffic light to block traffic so as to give it a clear path through the intersection.

  • A smart city can use traffic data other than just for emergency purposes. Traffic sensors throughout the city can transmit real-time updates to drivers’ devices so the drivers will take less-congested roads, thereby improving traffic flow for everyone. A driver’s trip planner could also connect with parking facilities to advise the driver where to find an open spot at the destination. And traffic engineers could use the congestion data to activate one-way traffic, restricted-use lanes, or other temporary fixes.

  • Electric utilities must respond to demand fluctuation, but often the generation facilities to handle a demand surge are the costliest, least efficient, and most polluting. A smart city could inform users of the current demand on the electric grid and encourage people to delay energy-intensive activities until after a peak demand period. Big energy users could be encouraged to advise utilities in advance so the utilities can discourage other uses.

  • Hospitals, doctors, and pharmacists could pool their data to track the spread of diseases and get preventive resources to the communities that need them.

  • A city is not just a collection of homes and businesses; it is a set of people engaging productively. You may not notice that you haven’t seen one neighbor recently, but the postal carrier notices mail that hasn’t been taken in, the package delivery services notice uncollected boxes, and the police notice a normally tended lawn that is full of weeds. None of these events by itself is particularly outstanding, but taken together, they could signal a neighbor in need of some assistance. Ordinarily these data points would go ungathered and unanalyzed. A smart city would make it easy for each participant to report these individual facts, and, more important, a program would analyze these data and dispatch appropriate follow-up.

Sometimes a distinction is made between a connected city and a smart city. In a connected city , a service provider gathers data by deploying smart devices at the endpoint of a service, and each individual service provider uses the data to improve the efficiency of the service. In a smart city, people also gather data from smart devices at the endpoints, but the architecture enables the aggregation and analysis of data from different providers so that the service across the smart city (regardless of the service provider) can benefit. This, for example, enables transport as a whole to be improved through smart data analysis rather than each transport provider gathering and processing data to improve just its own service. This holistic approach enables smart cities to respond to whole city challenges in such areas as transport, the environment, or healthcare.

The focus of computer and network security is the protection of data, systems, and infrastructure necessary to deliver these civic services. This means that we have to combine the computer and network security techniques that we learned about in Chapters 5 and 6 with the cloud, IoT, and embedded device security that we learned about in Sections 8.2 and 8.3 in this chapter.

Smart City Digital Architecture

Although the threats to the security of smart cities are familiar, the ways in which they manifest themselves are different. This is because the smart city architecture has additional layers to enable data processing and aggregation and to flexibly enable the introduction of new smart city processes and capabilities. As with all communication models, there are layers to the communication.

At the point closest to the end-user is the field component , the device or sensor that gathers and transmits data. These components might be wired or wireless, free-standing or embedded. The gathered data is communicated via a data transmission network to the data processing layer . This communication also takes place via both wired and wireless data communication technology. At the data processing layer, each service provider processes the data gathered from the field components. Once the data items are processed, the data exchange layer exchanges the processed data between different smart city stakeholders (inhabitants, other service providers or operators, local authorities, and so on).

This architecture is held together through a series of interactions, each of which has five features [ ENI15a ]:

  • business: provides an end user with a service through an application

  • information and data: collects the data generated from the interaction

  • application: transforms the data into transit formats

  • technology: enables the communication and flow of data

  • physical link: transports the data

This model requires security analysis of the elements and components as well as the interactions between the layers. The analysis also needs to be carried out in the context of use. The analysis needs to provide both a baseline of security controls, universal for the smart city, and then an adjustment of the controls to meet the heightened security requirements of particular contexts of use. As shown in Figure 8-7 , applications in a smart city collect, analyze, and use data to provide services in many areas. Access to these services is underpinned by technologies described in this and other chapters. For each use, technology, and service area, however, we must examine challenges, including privacy and security, ethics, cost, assured service, and transparency.

A chart shows the Smart City Ecosystem.

FIGURE 8-7 Smart City Ecosystem (City photo: Andres Garcia Martin / Shutterstock)

Service Areas: Transport, Health, Home, Infrastructure, Environment, Security, Energy, Waste, Management, Buildings, Offices, Factories, Schools, Retail. Challenges: Privacy, Dependence on Infrastructure, Infrastructure Upgrade Cost, Cybercrime, Ethics, Visibility to Public, Rationale for Decisions, Data Overload. Supporting Technologies: Cloud - Artificial Intelligence, Internet of Things, Machine Learning, Mesh Network, Virtual and Augmented Reality, and Connections: WiFi, Bluetooth, Cellular, Near Field, GPS. Data Uses: Collect - Discover, Gather, Make accessible, Make equitable; Analyze - Manage, Predict, Secure, Innovate, Recommend; Use - Laws, Regulations, Plans, Connections, Jobs, Quality of Life, and Time Saving.

Modeling the contexts of use can be a complex task. For example, in the case of smart transport, smart services for ticketing, timetabling, route control, and congestion management might be provided separately by the operator of each transport mode (for example, bus, metro or subway, light rail, mainline rail service, taxi, shared bike). Transport operators might share use of other services that maintain the environment, for example streetlighting, street cleaning, and security. In addition, the transport operators will need to draw on utility and infrastructure providers such as energy, network, building, and road providers.

Together these operators form a complex smart transport ecosystem in which operators share information, rely on each other’s data processing, possibly share the same physical links and communication components, and process the same data gathered from the field components in their respective applications. Sharing can be good, but it is not perfect: Shared misinformation expands a problem, but separate organizations collecting their own information can get different data, leading to inconsistent conclusions. Such a complex ecosystem has a vast array of connection points that are densely connected with no clear governance architecture. The security of this dense network is further complicated because field components may have inadequate security—in part because component designers are like many other developers we have portrayed in this book: They fail to appreciate the need for security or how to implement it, so products end up adding vulnerabilities to the system.

Security and the Smart City

As the previous section highlights, security in a smart city is a question not only of device management but also of information and data management, where data are generated from a wide range of data sources, processed by many stakeholders using different tools and techniques, and circulated across a complex ecosystem. Once the ecosystem is modeled, the following security threats need to be considered. These threats will be familiar to you from other chapters of this book, but the vulnerabilities and impacts here are on a city-wide scale with the potential for safety as well as security harms. In addition, as we explain in the previous section, the governance of a smart city is not well defined, the complexity of the ecosystem can make it hard to pinpoint the source of an issue, and responsibilities for responding to incidents are often ill defined. All of these increase the likelihood that responses to incidents might be ad hoc. In this context, the key threats from malicious attackers are eavesdropping or wiretapping, theft, tampering, and unauthorized modification or use [ ENI15a ]. These threats might be familiar, but the potential impacts can be significant if we think about them in a smart transport scenario.

The key threats from accidents are hardware failure and malfunctioning, software error, user or operator error, environmental incidents, obsolete or unsupported technology, and electrical supply interruption. In addition, threats to availability of both the service provided by each element and the interaction between them include denial of service, unintended outages, and a throttling of the quality of service. We must not ignore individuals’ privacy rights, as well. In a stakeholder ecosystem where stakeholders depend on each other for data and accurate data processing, it soon becomes clear that these threats, if enacted, have potentially wide ramifications for the effective and efficient running of a secure smart city.

The security responses to the threats set out in the previous section are of three types:

  • Devices and components . We consider these kinds of threats earlier in this chapter and in the preceding chapters. However, as we have also shown previously, the security at this level is partial at best. A lack of standardization and regulation, a fragmented market, and a lack of resources at the device level make security functionality patchy and fragmented. Compounding this fragmentation is a lack of education and awareness of how to manage the security of the smart city architecture.

  • Management of devices . In addition to the configuration and enabling of the security functionality within the devices themselves, there are additional management controls that can be deployed. For example, a virtual private network can be used to protect the network traffic and provide end-to-end security for the data transmission. In addition, data can be encrypted on the device itself if it has sufficient resource to do this. In both cases, care needs to be taken to ensure that the encryption keys are managed securely.

  • Access control . Where the device permits, logical access control should be deployed at the device level; it can be augmented by physical access control. The management of access control is complicated, however, by the complexity and the fragmented nature of the stakeholder ecosystem.

In addition to maintaining the security of devices, there needs to be a framework (processes, policies, procedures, and supporting technologies) to identify and recover when incidents have taken place, as well as to provide controls and capabilities to reduce the impact of incidents. This means that a smart city needs to build sufficient redundancy into the deployment of the architecture to ensure enough network and device capacity are available to deliver the service even if devices fail or network availability is compromised. In addition to providing for incident recovery, there also needs to be a process for incident response. To provide an effective framework, there needs to be monitoring of the performance of the different elements of the smart city architecture, an agreement on the required quality of service, and teams that can respond to incidents.

Although this list of controls sounds like a standard security management approach, deploying such an approach is complicated when security must be coordinated across a range of stakeholders with differing security needs and awareness. Threat and incident response coordination become difficult, and the degree to which this is achieved within a smart city varies.

8.6 Cloud, IoT, and Critical Services

Connected cities rely on smart services for the delivery of not only civic but also critical services. In this section we look at three examples of critical services, see how the criticality of these services changes the security context for use of smart connected technologies, and explore how responses can respond to these specific issues. First, we look at connected healthcare, then we examine IoT in water management, and close with the case of IoT and the management of the power industry.

Healthcare

IoT has changed the face of medical devices, and the hospital is a particular focal point for use for such devices. In this context, IoT is sometimes referred to as IoMT ( Internet of Medical Things ) or IoT-Health . IoMT devices include medical imaging systems, remote patient monitoring devices, smart thermometers, infusion pumps, and biosensors that can be embedded into a human body or woven into clothing. These technologies are able to adjust their performance in response to the patient’s condition, the environment, or the needs of the clinician. Such technologies personalize healthcare while potentially increasing the precision with which IoMT devices can deliver specific treatments.

Where Medical Care Is Delivered

The rise of IoMT increases the ways in which healthcare can be delivered and personalized to an individual’s needs. As we discuss earlier in this chapter, traditional healthcare delivery requires a patient and caregiver to be in the same place. Certainly, some medical care requires direct, physical, human contact. However, some care can be delivered appropriately at a distance. Getting the patient and medical care professionals together in one place requires scheduling and logistics management. A patient with a rare condition may need service from a professional located hundreds or even thousands of miles away. Telemedicine is the use of telecommunications to support treatment. If a remote professional can direct local colleagues in at least part of a patient’s treatment, then time, expense, and anxiety for all parties are spared.

IoMT devices also enable innovations in surgery as well as predictive health assessments, all of which help to improve recovery outcomes for patients. Some IoMT devices are designed to be smart from the outset, whereas others have been retrofitted to access cloud services that give these devices smart functionality.

Connectivity

Prior to COVID-19, innovation and deployment of IoMT devices were growing trends. For example, in 2016 Oticon developed the first IoT-enabled hearing aid, Opn [ KEN19 ]. The Opn devices enabled users to connect to other internet-enabled devices such as doorbells, smoke alarms, telephones, and baby monitors. Such connections let Opn users engage more easily with their social networks, respond more easily to safety devices, and benefit from the wider IoT landscape. Internet connectivity also enables Opn users to connect to a cloud-enabled sound management platform that enables greater control for managing sound in noisy environments. Furthermore, the Opn aid is itself a computing device that can be improved over time with software updates. As described earlier in this chapter, a benefit of cloud computing is the ability of a developer to push a software update instantly to all affected users. Without the cloud connection, each user would have to go to an audiologist to have the latest software installed, taking time for both user and audiologist.

In another example, the smart medicine dispenser box was developed by Wisepill Technologies in collaboration with Aeris IoT connectivity services [ IOT17 ]. The Wisepill Dispenser device came to market in 2017 and combines GSM and IoT technologies to produce a pill dispenser that monitors when pills are taken from the box and reminds patients when they forget to take their medication. Patients who take several medications on different schedules are challenged to remember what to take and when. A simple tracking function can remind the patient and, if necessary, alert a caregiver or healthcare provider.

Monitoring

COVID-19 increased the development and deployment of IoMT. For example, in 2020 Visionstate Corp. delivered the first cleaning alert IoT buttons to hospitals [ NAS20 ]. The Wanda QuickTouch sends alerts when cleaning or maintenance is needed. Such devices are particularly useful in high-traffic areas when the prevalence of disease transmission is likely to be greater. Similarly, as a result of COVID-19, inventors produced IoMT devices that enabled quick identification of abnormal temperature patterns to identify emerging COVID-19 hotspots for public health departments. In Wuhan, China, wearable IoT devices were synched with an AI cloud platform (CloudMinds) to provide constant monitoring of temperature, heart rate, and oxygen levels of both clinicians and patients.

Security and the Internet of Medical Things

Without doubt IoMT offers the potential to greatly improve healthcare delivery and outcomes. Such technologies also open new attack vectors and potentially make some of the existing attack vectors harder to manage.

Consider, for example, athletes’ drug tests. Some elite-level sports challenges (such as the Olympic Games, the Tour de France, and the Wimbledon tennis tournament) require athletes to provide samples to show they have not used certain performance-enhancing drugs. Because of the financial importance (not to mention prestige) of such events, fair, efficient and accurate testing is vital. Suppose you invent a wearable device, similar to a watch, that could monitor a player’s body for signs of the effects of such drug use. You might want the device to sample the athlete’s data frequently and transmit ongoing results wirelessly to a central enforcement body. In that way, someone who cheated could be eliminated from the competition during the event, leaving the field clear for the noncheaters. (Remember, of course, the difficulties of false positive and false negatives described in Chapter 2 .) Integrity and availability of the data are obviously paramount, as we stress in examples throughout this book. Because of the money involved in these sporting events, a malicious attacker has a strong motive to generate false results (positive or negative) to promote or eliminate certain athletes. Unfortunately, not every device manufacturer or championship governing body will be aware of these potential pitfalls. Although you would design your device with necessary security controls, some other developer might not be as sensitive to security risks as you.

Risk management is particularly necessary in a healthcare environment because the security implications of IoMT vulnerabilities are directly linked to patient safety. For risk management to be effective, hospital CISOs must create an inventory of devices in their institutions’ IoMT and then use specific risk tools to manage the particular vulnerabilities of IoMT devices. The management tools for IoMT risks include managing IoT device security, raising public awareness of the risks and how to manage them from an end-user perspective, improving legislation and regulation, and developing new tools for risk management in the healthcare environment.

Threats to IoMT Devices

Threats related to IoMT devices include connections to unsecured networks and devices, eavesdropping of patient information, remote access to biosensors, and susceptibility to ransomware [ THO21 ]. In addition, many healthcare organizations have moved some or all of their backend administrative data to the cloud. This means that patient and staff records, as well as information about the running of a healthcare organization, can reside on cloud servers and be accessed by cloud services. As a result, all the cloud protection, access control, and identity management issues discussed earlier in the chapter are relevant to IoMT environments. At the same time, because of the trust relationships set up between IoMT devices and the cloud to make services work automatically, attackers can potentially compromise weak security to use IoMT devices as an attack vector through which to access confidential data stored on cloud servers.

On the surface of it, these might seem like threats we have already addressed in this book, but we need to take a closer look at some of the emerging threats in the IoMT context. Smart healthcare devices use adaptive code , code that adapts a device’s behavior in response to incoming data. (We consider AI-driven adaptive technology as an emerging topic in Chapter 13 .) A smart insulin pump that has an AI layer added to it will adapt its behavior based on continuous glucose monitoring data. If that data stream is tampered with or in some way misconfigured, the wrong levels of insulin could be administered with potentially lethal consequences. An attacker may not simply attack one smart insulin pump this way but could administer the attack across all the pumps in a particular location. Or the attacker could hold the medical facility for ransom by disabling first one pump, then a second, and threaten to continue disabling them until a ransom is paid.

As already discussed, IoT devices greatly increase the attack surface of a network if the device’s security is weak. However, IoT devices can also become vectors for an attack if they are added to an existing vulnerable network. If IoMT devices are added to a network with a vulnerability, all the IoMT devices in that network can be vulnerable to attack from the compromised network.

For example, the URGENT/11 vulnerabilities are a family of vulnerabilities found in real-time operating systems used in critical infrastructure environments such as healthcare. Discovered by a research team at Armis Labs [ ARM20 ], URGENT/11 vulnerabilities are found in weak code in third-party network communication protocol handler software on the VxWorks real-time operating system, affecting versions perhaps since 2006. The Armis researchers estimate that this vulnerability puts at risk more than 2 billion devices, including patient monitors, MRI machines, and infusion pumps. In an IoMT environment, this could mean that an attacker could take over thousands of devices in a single hospital.

IoMT Device Connectivity

How IoMT devices connect to networks and which networks they connect to can be a source of vulnerability. For example, IoMT devices often use a Bluetooth protocol to reconnect to the network. Bluetooth Low Energy spoofing attacks ( BLESA ) exploit a weakness when IoT devices reconnect to a network without reauthentication. This vulnerability affects IoT devices generally but has the potential to cause significant harm in a healthcare setting. Bluetooth is widely used for patient-interaction devices. IoT devices often disconnect when there is no need for connection or when a device moves out of network range. When devices disconnect from the network, they usually transition to monitoring mode and still gather data. Devices reconnect when they need to either transmit or receive remote data. Thus, conditions for this vulnerability occur regularly.

Another area of network-related vulnerability is the points at which medical information travels across a network. BLESA attacks exploit the design of the reconnection protocol. An attacker will identify which server an IoT device connects to, request a pairing with that server to obtain the connection attributes, and then use those attributes to connect to the disconnected IoT device. In a healthcare setting, the attacker is then able to send malicious instructions to the device to carry out tasks that will cause harm to the patient.

However, maintaining a persistent connection to the network is not the solution. There are strong reasons, for example, to connect IoT to the cloud only when necessary. Patient confidentiality is an important cornerstone of healthcare delivery, and, as a result, privacy controls are fundamental to digital healthcare delivery. IoMT-to-cloud connections and interfaces therefore require particular care because they are attractive to attackers as confidential patient information will pass through these interfaces. Where possible, IoMT devices should process data locally, passing data to the cloud only when necessary.

In response to these growing and emerging vulnerabilities, a public–private partnership with the U.S. Department of Health and Human Services produced a list of best practice for managers of IoMT [ HHS18 ]. These controls include the following:

  • Reduce attack surfaces by removing unnecessary trust connections between devices, ensuring access control on connection points, and removing any unnecessary connection points.

  • Set up secure defaults and preconfigurations by ensuring that default passwords are replaced with strong passwords and any default access permissions are checked and revised.

  • Maintain audit and accountability to ensure that all access to IoMT devices is logged and access can be traced back to its origin.

  • Follow principles of least privilege, separation of duties, and defense in depth to ensure that users cannot increase their privileges by gaining access to accounts with enhanced access and ensure that access to data and resource is controlled.

  • Fail securely by ensuring that any device failure does not result in increased access.

  • Keep security simple and fix security issues correctly to ensure that the IoMT environment is well maintained.

These are important technology management controls. IoMT environments are also kept safe by encouraging active user involvement. Users and those administering IoMT devices should ensure that any issues or incidents are reported and that healthcare organizations have processes so that reported issues and incidents can be acted on. Given the potential for attacks against IoMT devices to be widespread, it is also important that healthcare organizations are able to contact a central reporting authority as well as device manufacturers and report any suspicious device behavior.

Utilities—Electricity and Water

The combination of cloud and IoT has the potential to revolutionize how utilities are managed. IoT and embedded devices mean that providers can tailor utility supply at the point of use, tightly control the resources, and manage maintenance and management remotely, to the extent possible. As resources become scarcer, such management capabilities become more important.

Smart Water Management

Water management is one area in which a smart management solution could be particularly valuable. Manual processes for managing water and wastewater are no longer practical. The regulatory pressures on water companies to manage and conserve supply require tracking of water levels and dynamic management of distribution. Climate change is exacerbating the effects and frequency of adverse weather events, which increase the risk of hazardous overflow of wastewater and sewage and can also result in hazardous overflows of reservoirs. Water levels are dynamic, and with sensors, water companies can monitor water levels in real time. Water companies can respond to unexpected drops in water level and act to prevent flooding if water levels suddenly rise.

A smart environment not only helps manage water levels but also efficiently manage the infrastructure needed to treat, store, and distribute water. Some water plants were built in the 19th century, so much of the mechanical infrastructure uses copper wiring to connect pumps, shutoff valves, and other control devices. Because of dramatic price increases, maintaining and extending this copper wire infrastructure has become a significant expense to water utilities. Internet-connected sensors along the wire runs allow managers to pinpoint wiring problems and make repairs without having to replace long and expensive copper cables.

While there is great benefit to smart approaches to managing our utilities, a smart infrastructure can also increase our vulnerability to attack. In the following section we take a look at the emergence intelligent grids used to manage power and consider what security looks like in this setting.

The Intelligent Electric Grid and Security

In a digital-first society that is “always on,” the provision of power is regarded as essential. Power outages have significant social, political, and economic impacts, so a reliable power supply is part of the critical national infrastructure. Two examples of areas in which the power industry has adopted IoT are data acquisition and advanced metering.

Supervisory control and data acquisition ( SCADA ) systems enable the centralized remote management of systems such as power generation and transmission. Early power systems generated power only for local users. The limitation was that any problem with generation cut power to all users; a power plant could not take its generator down for maintenance or replacement without affecting all users. Over time, however, neighboring power companies developed sharing agreements, pooling their generated electricity, so if one plant shut down for a while, another would supply power for the affected users. This sharing led to grids of many cooperating generation facilities, with the obvious increase in reliability. Sharing also helped with load balancing, so if one customer demanded more power than the local utility could supply at the time, another generation facility with surplus power filled the need. All this redistribution of power required many people to monitor and physically redirect power along necessary circuits. SCADA power control systems use sensors and actuators to gather and transmit data about the performance across the power grid. In addition to gathering data, SCADA systems can activate controls to redirect the flow of electricity as needed. Although humans monitor and can override the SCADA devices, the objective of SCADA system is automatic adjustment.

Advanced metering infrastructure ( AMI ) enables two-way communication between the grid and the consumption of electricity at the endpoint (and therefore the customer). It is a core component of the smart grid and enables smart metering. Homeowners with rooftop solar energy collectors can generate more electricity than they consume on a bright day but typically run a deficit on cloudy days or at night. These users return excess electricity to the power grid but take energy from the grid when they need it. With AMI, electric meters effectively run in two directions: When pulling energy from the grid, these meters function as expected, recording the amount of energy taken or used. But when there is a surplus, these meters record a credit, deducting the amount generated from any amount used, perhaps even resulting in negative usage. These meters communicate on a network to share instantaneous usage data.

AMI meters also detect faults in the system. If some part of the electric grid fails, AMI meters communicate the extent of the outage to a central monitoring facility so that a repair crew can investigate.

Security Complications

Although the capabilities of these smart technologies are great advances for society, there are security implications. SCADA and AMI devices are seldom physically well protected, and they are located throughout the electrical grid, where they are subject to malicious and nonmalicious damage. In remote locations, access control is inappropriate and hard to implement, as is generating logs of users and access. A smart usage meter reports a number periodically; neither the user nor the electric utility can usually verify the data independently. As long as the summary (typically monthly) data look reasonable, both parties are likely to accept because most users are unprepared to offer alternative numbers. So far, SCADA and AMI devices are individual, with little standardization. Embedded operating systems tend to be undescribed and undocumented, so owners cannot easily tell whether their devices are due for a security patch or whether one device is a suitable substitute for another. In Sidebar 8-12 we return to the Stuxnet example to show how SCADA technology was used in a largescale attack on a nation’s power supply. It also gives a preview of how IoT and embedded devices may become attack vectors in the future.

Sidebar 8-12 Stuxnet—Foreshadowing of Attacks to Come

One of the most famous attacks against a power plant is the Stuxnet worm, described in Chapter 3 . The worm was designed to exploit previously unknown Microsoft vulnerabilities that allow for privilege escalation. This means that attackers gain access to a system as a user with limited permissions and then use the flaw to escalate permissions. The worm was originally introduced to a power plant in Iran via a USB stick and exploited a vulnerability in Microsoft shortcut files, which meant that such files on a USB stick can be automatically executed if exposed to Windows Explorer. As a result, someone just has to open the infected USB stick with Microsoft Explorer for the malware to be executed.

Stuxnet is a sophisticated piece of malware that is able to adjust its behavior depending on whether it is attacking a SCADA system or a corporate network. Because of the difficulty in applying updates, SCADA systems are less likely to be patched with the latest updates, whereas corporate networks are more likely to have up-to-date patching. As a result, if the malware detected a SCADA system, then older Microsoft vulnerabilities were exploited.

Having gained elevated privileges, attackers exploited vulnerabilities in the access controls to the programmable logic controllers, minicomputers connected to the Windows systems to program and reprogram SCADA systems. Programmable logic controllers are used in many SCADA systems, not just the uranium enrichment centrifuges that Stuxnet originally targeted. By reprogramming the logic controllers of a municipal utility, an attacker can open valves or turn a pump on or off. This attack highlights the complexity of smart utility systems and the ways that digital technology increases the attack surface on our most critical systems.

IoT technology and cloud computing, together with robotics and machine-learning driven analytics, bound together by standards and regulations, are enabling a transformation in the way power is generated and supplied by turning power grids from one-way to two-way communication that enables decentralized energy production and consumption. The deployment of smart technologies is enabling the development of a so-called intelligent or smart grid. The transition toward an intelligent grid can be divided into three phases: resilience to ensure that grids can reliably provide energy, enablement so that the data collected by the sensors can be aggregated and analyzed to improve the performance of the grid, and optimization and competition of the resilience and enablement capabilities so that all stakeholders of the intelligent grid can make decisions about their energy consumption. In Figure 8-8 we show the pieces comprising a smart grid.

An illustration shows the Smart Grid Elements.

FIGURE 8-8 Smart Grid Elements (Reprinted courtesy of the National Institute of Standards and Technology, U.S. Department of Commerce. Not copyrightable in the United States.)

The Smart Grid Elements include the following domains: markets, operations, service provider, customer, generation including DER, transmission, and distribution. All the domains are connected via secure communication flows. There is electrical flow between transmission, distribution, customer, and generation including DER.

Secure Intelligent System Design

For the intelligent grid concept to become a reality that benefits all stakeholders, the design and use of the grid needs to be secure. Security is needed in every stage of the transition toward an intelligent grid. For example, resilience is provided by ensuring that sensors remain operational during a blackout to enable grid managers to bring the grid back up as soon as possible. In this scenario, IoT devices that communicate using cellular and RF technology are essential for redirecting power to the parts of the grid that are down. But a security risk analysis would identify that communications technology is vulnerable itself: The grid cannot use its own resources to manage itself. IoT devices with an independent power supply help achieve faster responses to power grid emergencies. The attack surface can be broken down into the following components:

  • operational systems used by utility companies to manage the generation, distribution, and consumption of power

  • supporting IT systems to provide the corporate infrastructure that supports the grid

  • communication networks and protocols to connect the different parts of the grid

  • endpoints that connect to the grid (ranging from smart meters to apps that enable customers to monitor and control their power supply)

The intelligent grid transforms the generation and provision of power in a society that increasingly depends on power. That same grid, however, is increasingly threatened by environmental issues related to the ways in which power is both produced and consumed.

The move toward an intelligent grid comes with new security issues and increases the attack surface through which power production and distribution can be compromised. For example, the smart meter could be used to defraud utility companies. Manipulating utility meters is nothing new. Analog meters have long been susceptible to tampering to change the amount of utility use accredited to a particular building or individual, as described by McDaniel and McLaughlin [ MCD09 ]. However, the introduction of smart meters not only changes how such manipulation might take place but also increases the potential for the scale of the attack because it increases the reward to the attacker. Whereas with analog meters an attacker had to change one meter at a time, now an attacker can potentially manipulate thousands of smart meters from a central point.

The type of attack is also different. Analog utility meters are typically changed through physical intervention where the workings on the meter are disrupted by stopping the usage counters or making them run backward. By contrast, an attacker manipulates the smart meter through remote access that allows a wider range of potential manipulations, from changing the amount of usage logged by a meter to modifying usage data in transit. Changing the usage data on a smart meter is not only fraud. If an attack affects a large enough number of smart meters, the attack can affect the entire grid. This means that not only are smart meters attractive to fraudsters but also potentially attractive to terrorists and other state-focused adversaries.

Intelligent grids also have implications for the privacy of utility users. The patterns of energy consumption potentially reveal information about what an individual does and the routine of everyday life. For example, a drop in consumption might mean that there is no one in the building or the occupant is asleep. The energy consumption might also reveal more nuanced patterns such as when people in a building are working, the ways in which they undertake household work and when they do it, and the types of entertainment activities they take part in. Not only are these patterns of interest to criminals who want to access buildings when no one is present, but such patterns are also of interest to companies that want to mine utility usage data and sell it for marketing. Patterns of energy use that reveal the types of entertainment activities of household residents is potentially powerful data for marketing and advertisement campaigns.

8.7 Conclusion

The cloud, IoT, and embedded devices combine with consumer devices, fast communication, and large amounts of data storage to form the basis for day-to-day applications across sectors, including healthcare, personal security, finance management, travel, and shopping. The network infrastructure, service provision, and large-scale data processing are made possible by cloud computing, which has the following characteristics:

  • on-demand self-service

  • broad network access

  • resource pooling

  • rapid elasticity

  • measured service

There are three service models—PaaS, SaaS, IaaS—and four main deployment models: public, private, community, and hybrid. Choosing the service and deployment models presents a tradeoff between control and cost of service. While cloud services make services more readily available and reduce the likelihood of denial of service, the complexity of managing a high-volume, complex architecture creates vulnerabilities that can be exploited by new threats with the potential to inflict harm at scale. Furthermore, moving data, software, and services to the cloud takes them away from the user’s direct control. Transferring responsibility for confidentiality, integrity, and availability to someone else sounds appealing—until you remember that now you are subject to the failings of someone else, with little means to monitor security, much less affect it.

The Internet of Things connects simple objects to the cloud and combines this connectivity with sensor technology to gather data on almost any environment. Cloud services offer the potential to manage devices from lights and doorbells to utilities and factories. IoT offers many possibilities, and our daily lives depend more and more on its useful technology. But the design, deployment, and management of IoT devices are largely unregulated, which make them an ideal gateway through which attackers can launch attacks at scale.

In the next chapter we address privacy, an important topic raised briefly in other chapters. Although strictly speaking, privacy is not an aspect of security, many people expect privacy in their interactions with computing. Furthermore, access control, cryptography, and identification and authentication, essential security tools, play roles in protecting privacy as well. Thus, we have chosen to include it as we explore the many facets of security in computing.

8.8 Exercises

1. Set out the five essential characteristics of cloud computing and give an example of how these characteristics further complicate threats to (i) confidentiality, (ii) integrity, and (iii) availability.

2. Explain the differences between PaaS, SaaS, and IaaS cloud services. List the advantages and disadvantages of each and give an example of when you might advise an organization to use each type of service.

3. In what ways does the security management of cloud architectures differ from the security management of onsite servers? When answering this question, give the answer (a) as a SaaS cloud service user and (b) as a SaaS cloud service provider.

4. Set out the security features of OAuth 2.0 and explain their limitations.

5. Explain why TLS is important to SAML security.

6. What roles might a cloud broker play in the provision of cloud security?

7. Give three factors that make IoT devices inherently hard to secure.

8. List five of the main security vulnerabilities in IoT devices.

9. Describe a security management framework that enables (a) end-users, (b) infrastructure providers, and (c) IoT device manufacturers to respond to IoT vulnerabilities.