The advance of the open source RISC-V reduced instruction set platform to become a serious contender in the mobile OS space is now threatening the dominance of Intel and especially Softbank’s ARM in their respective spheres. The latest significant development is a memorandum of understanding (MoU) just signed between RISC-V International, the non-profit consortium promoting the platform, and Global Platform, an industry group working on secure digital services and devices.
The objective is to accelerate development of open standards for design of embedded components at the hardware level in connected devices for the IoT, especially the underlying Trusted Execution Environments (TEEs). This is critical because current IoT devices are inherently insecure and protection is confined to higher level proactive monitoring that tends to kick in only after the underlying client hardware has been compromised. Far better is to combine global surveillance with specific device security rooted in hardware in a way that is as proof against tampering as possible and yet upgradeable.
To put this in context, we need to roll back a bit into the history of both RISC and also the main protagonists. RISC as a hardware architecture first evolved in the 1980s as an alternative to CISC (Complex Instruction Set Computing), instead keeping the hardware simple, fast and general-purpose, leaving higher complexities to the software running on top. CISC by contrast incorporated more commonly performed routines within the chips, which is more efficient when those tasks are frequently invoked. RISC tended to work better for newly programmed tasks that cannot be broken readily into routines incorporated in CISC.
After chugging along for over 20 years in various niches, RISC began a renaissance as RISC-V at the University of California at Berkeley in 2010, leading to formation of RISC-V International in 2015 to start stabilizing the open source platform. The objective was to provide an open source alternative to the highly successful platform of ARM, based in Cambridge, UK, acquired by Japanese conglomerate Softbank in 2016 for $32bn.
ARM had enjoyed an astounding run just by dominating the field for smartphone processors, with its designs imprinted on 22.9bn chips in 2018. But as we know smartphone growth has stalled and ARM’s position is in any case under threat from the trade tensions between the US and China, prompting the latter’s big smartphone makers to seek alternative sources of components. And now RISC-V is making waves as an alternative for hardware designs in mobile devices generally.
Being open source, RISC-V chips are free of royalties, but that is not so much of a gamechanger at a time when payments to ARM only add a few dollars to the price of a smartphone. Being open source also allows freedom of design, but even that on its own does not make a huge difference given the complexity of modern silicon with modern CPUs having up to 40bn transistors generating an effectively infinite number of state permutations. Verification is hard, which is why chip design has been confined to a few big players like ARM, Intel, IBM and AMD.
But this is where being open source is the real gamechanger. It means that new entrants to the field have a CPU design that in essence has been well tested and, crucially, if that particular one has gained widespread industry support, will come with an expanding set of tools for verifying innovations around that core. That indeed has been the secret of success for open source software movements, which tend to obey the law of the jungle.
Those that gain critical mass like Linux have revolutionized software development while others have fallen by the wayside of IT history. RISC-V is clearly now a case of the former, and indeed has been led to hardware design being likened to a second wave of the open source movement after software. It provides a solid framework for building families of microprocessors around an established core with templates for adding functionality. Put another way, it donates a flexible processor template that can be configured for specific purposes or use cases, almost like a field Programmable gate array (FPGA) but with far more widespread application.
In commercial terms, this challenges the monolithic approach to CPU design that has ruled so far and threatens to be as disruptive as the open source movement began to be in the mid-1990s with Linux and increasingly through the noughties. Of course that begs some questions, such as the risk of infringing intellectual property rights inadvertently, but it is not clear to what extent that will carry over into the processor world.
What is clear is that the battle between RISC-V and ARM in particular is spilling over into the IoT field as the smartphone market becomes saturated so that it is largely driven by the replacement cycle. This brings us back to that collaboration between RISC-V International and Global Platform, which is focused on embedded security in
particular to address shortcomings and limitations on that front among IoT devices.
Hopes that ARM can exploit security fears to its advantage were somewhat compromised by results of a four-month study by Check Point Research into the isolated Trusted Execution Environment (TEE), backed by ARM ‘TrustZone’ hardware-based Cortex-A processor access controls and widely implemented on Android devices including smartphones.
Published in November 2019, this study identified what the researchers described as a “gaping hole” in the Qualcomm Secure Execution Environment (QSEE) as the most popular of the TEE implementations for Android-powered smartphones, incorporated in almost half of all Android devices globally. Attackers could potentially exploit these vulnerabilities to access say mobile payment data, the research found, although admittedly none have. It is true we should be wary about theoretical vulnerabilities unearthed by researchers that have never been exploited in the wild, but because smartphones have effectively become security roots for myriad services and applications, even theoretical vulnerabilities are concerning.
This is relevant for the RISC-V project now addressing TEEs, which are becoming the core or root components of device security in an era of general purpose hardware. The idea of TEEs is that general processors have embedded components separated from the area where the OS and user applications run, dedicated to storage of encryption keys and execution of security-related tasks including decryption. The Checkpoint study found errors in the software running in the TEE, which leads on to the RISC-V work, because that is attempting to bolt down on what are inevitable risks associated with embedded security.
Global Platform has already developed standards for defending TEEs by enforcing as far as possible underlying design objectives, such as isolation from the device’s OS and also even from other Trusted Applications (TAs). It has also tried to address two fundamental challenges of TEEs, the first being that it relies on code generated and overseen by fallible human programmers. The second is the paradox that in order to be effective and safe, the TEE must be upgradeable so that emerging vulnerabilities can be addressed, but that itself brings risks since it means it cannot be shut away entirely. This second aspect allows attackers to access TEEs themselves.
Dependence on human programmers means that the software running in a TEE can and sometimes does contain well known vulnerabilities such as buffer overflows that nonetheless can be exploited by attackers. Buffer overflows can be triggered by attackers deliberately if they can access the system to input data and it is then possible to write into areas where executable code is stored and insert malicious code instead. Such techniques have been exploited by hackers in traditional OSs and while harder in the TEE it is still possible.
As Global Platform has pointed out, TEEs to date have lacked defences in their execution environments against attacks that exploit knowledge of the associated address spaces and how code is run. There is also the problem that attackers can potentially exploit mechanisms designed to prevent tampering themselves once they have compromised a TEE.
Solutions proposed include making all writeable address locations non-executable, which should weed out buffer overflow attacks. This would not stop the buffer overflow attack being launched, but would prevent malicious code inserted from being executed.
Another remedy is to randomize address spaces, which has already been deployed in some Linux systems, to prevent attacks exploiting knowledge of where particular functions are located within the processor. Key areas associated with processes are allocated addresses at random, so that attackers cannot locate them.
It is clear that embedded security and the TEE have become critical components of mobile processor design relevant to competition within the field. The RISC-V community wants to make this a differentiator rather than a liability.