Your browser is not supported. Please update it.

28 September 2020

Gateways are just part of the solution to IoT security

There are many contradictions in the complex field of IoT security, with some reports that fears over threats are holding the field back while others almost say the opposite by arguing that deployments are going ahead without adequate precautions being taken.

There is equal divergence over solutions, with some placing too much faith in trusted execution environments (TEEs) on their own, others believing salvation lies in secure IoT gateways to protect dumb endpoint devices. Some in the field argue that only pervasive distributed security can combat all threats and avoid single points of vulnerability. The view should be that security should be considered at the outset but that there is no one size fits all and so the degree or nature of protection depends on use cases and circumstances.

The latest intelligence on IoT security has come from ABI Research with a report and forecast on what it calls next generation IoT gateways, predicting there will be 21.4m of them shipped in 2025, compared with very few today. Almost by definition the next generation does not yet exist, the point being that they will have the onboard memory and processing capability to execute intelligent management and control functions including cybersecurity. ABI anticipates such intelligent IoT gateways being critical components in the distribution of key functions including security and authentication towards the edge in the 5G era, as part of an additional layer sometimes referred to as fog computing, taking some of the load from centralized data centers.

While we agree that such smart gateways will assume the mantle of IoT security in many instances, we also contend there will be cases where it will reside elsewhere, or not be required much at all. There will be many deployments of environmental monitoring in agriculture for example with numerous one-way endpoints only feeding data upstream with no scope for compromise. In these cases, security threats will largely be confined to physical tampering rather than cyberattack and then the role of smart gateways will largely be to collect, assimilate and possibly aggregate data from the clusters of dumb endpoints attached to them.

But in some use cases, including smart homes, IoT gateways could play critical roles in security. They might become responsible for data encryption where relevant and also authentication of connected endpoints to prevent attachment of rogue devices, or launch of DDoS (distributed denial of service) attacks. Such endpoints could be smart thermostats, security cameras, laptops or myriad other clients.

In order to provide this security, the gateways need to allow processing of legitimate applications while protecting secret information such as encryption keys from both eavesdropping and tampering. To do this effectively they need to replicate the level of protection that used to be taken for granted in proprietary hardware such as legacy unconnected TV set-top boxes, or various embedded systems. In such devices there was no way of obtaining the secrets other than gaining physical access and dismantling the hardware.

But this degree of isolation was lost with the advent of connected boxes capable of running remotely loaded software. The same was the case with smartphones as their onboard resources expanded rapidly using open operating systems such as Android, capable of executing publicly available apps. This led to development of the TEE as an attempt to put that genie of hardware security back in the bottle of open interconnected systems. This involved a layer of hardware partitioned from the rest of the processor, enabling execution of trusted software and storage of secret information.

As defined by TEE pioneer Trustonic, it is an “environment for executing code, in which those executing the code can have high levels of trust in that surrounding environment, because it can ignore threats from the rest of the device.” It is embedded in a CPU, comprising the separate trusted OS, trusted apps that execute core security functions such as decryption, and the secret keys or credentials.

In the case of smartphones, the TEE is implemented as a trust zone and integrated by ARM into its Cortex-A processor, which in turn is embodied in the leading mobile CPUs. This creates an isolated virtual secure world which is used by the main OS, such as iOS or Android, to ensure confidentiality for the rest of the system.

Widely deployed implementations of this ARM-based hardware access control include Qualcomm’s Secure Execution Environment (QSEE), as used in Samsung, LG, Sony, HTC, OnePlus and many other devices; Trustronic’s Kinibi, found on Samsung devices for the Europe and Asia markets; and HiSilicon’s Trusted Core on most Huawei devices. TEEs are also now being embedded into gateway CPUs based on the ARM TrustZone and also Intel X86 CPUs.

A key point is that the TEE is not a panacea for cybersecurity by itself and is only as good as the environment under which it was created. Without that the secrets embodied in the TEE could leak out another way. That’s why the likes of Trustonic underline the importance of the methodology for initial TEE installation, which requires all aspects to be verified and signed off. This leads to the CPU implementation, which in turn has to be trusted by the end device maker and then ultimately by the provider or installer of IoT platforms.

Down at the device level, attention has to be paid to the interaction between the TEE and the rest of the CPU, sometimes referred to as the rich execution environment (REE), to distinguish it from the partially closed TEE. The TEE cannot be completely closed since it has to provide the security services and processing to the rest of the system. Such interactions are governed by the Security Monitor Call (SMC) system, which connects the TEE and REE and is therefore inevitably a point of vulnerability in the whole system.

While there are few examples of SMCs being compromised in the wild, they have been by security researchers, so vulnerabilities do exist and could potentially be exploited. When reported to CPU makers they have been fixed, as happened in the case of one of the most famous cases that came to light in November 2019 when Qualcomm’s TEE on a Nexus 6 device running Android 7.1.2 was hacked by researchers at cybersecurity technology developer Check Point.

Like other such TEE implementations this had been designed such that only processes with the device hardware keys should be able to access trusted data or services. This is enforced by trusted components in the TEE that control movement between it and the external REE and these were the target of the security researchers’ attacks. They used ‘fuzzing’ – where the TEE was bombarded with random data aiming to cause a crash that would then reveal coding errors that could then provide a backdoor through the security armor. Some might be surprised the system had not anticipated it might be hit with such attacks outside its normal operating zone data that comes in from the REE and falls within certain bounds. But that was the case and at least Qualcomm patched the bug quickly.

The lesson perhaps of that Qualcomm breach and others is that security should be multi-layered and not utterly dependent on any one component. For IoT this means not relying on security at the device or endpoint module level but also across the whole mobile infrastructure and through to the core or data center. It is true that the IoT gateway will often be well placed to host distributed proactive monitoring, but in some cases this could also be in devices such as routers, within the mobile network and in the end points themselves. The objective is to monitor continuously, locate where breaches are occurring or radiating from, and isolate those while further investigation takes place.

These processes will be most effective if incorporated at the planning stage, and this includes the components individually as well as the network as a whole. While larger enterprises can and should employ rigorous testing and compliance procedures for all components as they come on board their IoT networks, ultimately there will always be dependence on the methodology used during design and manufacture, and as already pointed out in the TEE implementation where relevant.

Verizon Wireless, in its third annual Mobility Security Index, published in February 2020, found widespread lack of security preparedness among enterprises in their IoT deployments. The survey of 876 IoT and mobile security professionals found that just 13% of businesses had observed all four ‘basic protections’, regular testing of security systems, encryption, access management and avoiding use of default passwords. Even fewer had sophisticated multi-layer security in place.

Yet the threat was real enough, with 39% surveyed saying that they had suffered a “mobile-security-related” breach, two-thirds of which had a “major” impact and 55% with lasting repercussions.

Admittedly these breaches were not of the kind perpetrated by security researchers but were still damaging enough. The survey did at least confirm that incorporating security during implementation did pay off, halving the likelihood of experiencing a breach.