Cryptology ePrint Archive: Report 2021/663

On the Design and Misuse of Microcoded (Embedded) Processors A Cautionary Note

Nils Albartus and Clemens Nasenberg and Florian Stolz and Marc Fyrbiak and Christof Paar and Russell Tessier

Abstract: Today's microprocessors often rely on microcode updates to address issues such as security or functional patches. Unfortunately, microcode update flexibility opens up new attack vectors through malicious microcode alterations. Such attacks share many features with hardware Trojans and have similar devastating consequences for system security. However, due to microcode's opaque nature, little is known in the open literature about the capabilities and limitations of microcode Trojans.

We introduce the design of a microcoded RISC-V processor architecture together with a microcode development and evaluation environment. Even though microcode typically has almost complete control of the processor hardware, the design of meaningful microcode Trojans is not straightforward. This somewhat counter-intuitive insight is due to the lack of information at the hardware level about the semantics of executed software. In three security case studies we demonstrate how to overcome these issues and give insights on how to design meaningful microcode Trojans that undermine system security. To foster future research and applications, we publicly release our implementation and evaluation platform.

Category / Keywords: applications / trojans, microcode, embedded security

Original Publication (in the same form): USENIX Security 21

Date: received 21 May 2021

Contact author: nils albartus at mpi-sp org

Available format(s): PDF | BibTeX Citation

Version: 20210525:070326 (All versions of this report)

Short URL:

[ Cryptology ePrint archive ]