arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2007.03549cs.CR
收藏

微码作为系统防御构件的探索性分析

An Exploratory Analysis of Microcode as a Building Block for System Defenses

Benjamin Kollenda, Philipp Koppe, Marc Fyrbiak, Christian Kison, Christof Paar, Thorsten Holz

摘要:

微码是现代x86处理器使用的抽象层,它将用户可见的CISC指令解释为硬件内部的RISC指令。更新x86微代码的能力使供应商能够现场修改CPU行为,从而修补错误的微体系结构过程,甚至实现新功能。最突出的是,最近的Spectre和Meltdown漏洞已由英特尔通过微码更新缓解。不幸的是,微代码是专有的和封闭的源代码,并且很少有关于其内部工作的公开信息。在本文中,我们提出了新的逆向工程的结果,扩展和补充专有的微码的公共知识。基于这些新颖的见解,我们展示了如何在商用现成AMD x86 CPU上以微码实现现代系统防御和工具。我们演示了如何完善的系统安全防御,如定时攻击缓解,硬件辅助地址消毒,和指令集随机化可以实现在微码。我们还提出了一个概念验证实现的微码辅助仪器框架。最后,我们展示了如何在微码中实现安全的微码更新机制和飞地功能,以实现小型可信执行环境。复制和扩展我们的结果所需的所有微码程序和整个基础设施都是公开的。

英文摘要:

Microcode is an abstraction layer used by modern x86 processors that interprets user-visible CISC instructions to hardware-internal RISC instructions. The capability to update x86 microcode enables a vendor to modify CPU behavior in-field, and thus patch erroneous microarchitectural processes or even implement new features. Most prominently, the recent Spectre and Meltdown vulnerabilities were mitigated by Intel via microcode updates. Unfortunately, microcode is proprietary and closed source, and there is little publicly available information on its inner workings. In this paper, we present new reverse engineering results that extend and complement the public knowledge of proprietary microcode. Based on these novel insights, we show how modern system defenses and tools can be realized in microcode on a commercial, off-the-shelf AMD x86 CPU. We demonstrate how well-established system security defenses such as timing attack mitigations, hardware-assisted address sanitization, and instruction set randomization can be realized in microcode. We also present a proof-of-concept implementation of a microcode-assisted instrumentation framework. Finally, we show how a secure microcode update mechanism and enclave functionality can be implemented in microcode to realize a small trusted execution environment. All microcode programs and the whole infrastructure needed to reproduce and extend our results are publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑