arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2009.06490cs.CR
收藏

Simplex:重新调整英特尔内存保护扩展的用途以实现信息隐藏

Simplex: Repurposing Intel Memory Protection Extensions for Information Hiding

Matthew Cole, Aravind Prakash

摘要:

随着软件漏洞利用的快速增加,在过去的几十年中已经看到了几个硬件级特征来增强安全性(例如,英特尔MPX、ARM TrustZone、英特尔SGX、英特尔CET)。由于安全性、性能和/或可用性问题,这些功能一直受到批评。一个这样的特性是英特尔内存保护扩展(MPX),这是一种指令集架构扩展,由于硬件加速的边界检查,它以较低的性能成本保证了空间内存安全。然而,最近对MPX的调查发现,它既不像基于尖端软件的空间记忆安全那样性能好、准确,也不精确。其直接后果是,编译器和操作系统对MPX的支持正在消失,英特尔已经开始生产不含MPX的台式机CPU。尽管如此,考虑到MPX的普遍性,它提供了一个优秀但未充分利用的硬件资源,可以出于安全目的适当地利用它。在本文中,我们提出了Simplex,一个库框架,重新用途的MPX寄存器作为通用寄存器。使用Simplex,我们演示了如何使用MPX寄存器来存储敏感信息(例如,加密密钥)直接在硬件上。我们评估了Simplex的性能,发现它的开销很小,足以允许它在所有的部署,但最性能密集型的代码。我们重构了string. h缓冲区操作函数,发现几何平均性能开销为0.9%。我们还修改了deepsjeng和lbm SPEC CPU 2017基准测试以使用Simplex,并分别发现了1%和0.98%的性能开销。最后,我们研究了MPX上下文在多进程和多线程程序中的行为。

英文摘要:

With the rapid increase in software exploits, the last few decades have seen several hardware-level features to enhance security (e.g., Intel MPX, ARM TrustZone, Intel SGX, Intel CET). Due to security, performance and/or usability issues these features have attracted steady criticism. One such feature is the Intel Memory Protection Extensions (MPX), an instruction set architecture extension promising spatial memory safety at a lower performance cost due to hardware-accelerated bounds checking. However, recent investigations into MPX have found that is neither as performant, accurate, nor precise as cutting-edge software-based spatial memory safety. As a direct consequence, compiler and operating system support for MPX is dying, and Intel has begun to manufacture desktop CPUs without MPX. Nonetheless, given how ubiquitous MPX is, it provides an excellent yet under-utilized hardware resource that can be aptly salvaged for security purposes. In this paper, we propose Simplex, a library framework that re-purposes MPX registers as general purpose registers. Using Simplex, we demonstrate how MPX registers can be used to store sensitive information (e.g., encryption keys) directly on the hardware. We evaluate Simplex for performance and find that its overhead is small enough to permit its deployment in all but the most performance-intensive code. We refactored the string.h buffer manipulation functions and found a geometric mean 0.9% performance overhead. We also modified the deepsjeng and lbm SPEC CPU2017 benchmarks to use Simplex and found a 1% and 0.98% performance overhead respectively. Finally, we investigate the behavior of the MPX context with regards to multi-process and multi-thread programs.

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

↑