CrypTag:使用加密着色内存阻止物理和逻辑内存漏洞
CrypTag: Thwarting Physical and Logical Memory Vulnerabilities using Cryptographically Colored Memory
摘要:
存储器漏洞是许多计算系统的主要威胁。为了有效地阻止空间和时间内存漏洞,需要完全的逻辑内存安全。然而,当前用于存储器安全的缓解技术要么太昂贵,要么以安全性换取效率。检测硬件中的内存安全漏洞的一个有希望的尝试是内存着色,这是一种部署在标记内存架构之上的安全策略。然而,由于大标签的存储器存储和带宽开销,商品标签存储器架构通常仅提供小标签大小,因此限制了它们用于安全应用。无论逻辑存储器安全性如何,物理存储器安全性在现代云计算和IoT设备普遍存在的恶劣环境中都是必需的。英特尔和AMD的架构已经实现了透明的内存加密,以保持所有片外数据的机密性和完整性。令人惊讶的是,逻辑和物理内存安全的组合在以前的研究中还没有得到广泛的研究,两种安全策略的天真组合将积累两种开销。在本文中,我们提出了CrypTag,一个有效的硬件/软件协同设计减轻了一大类逻辑内存安全问题,并提供完整的物理内存安全。在其核心,CrypTag利用一个透明的内存加密引擎,不仅用于物理内存安全,而且用于内存着色,几乎没有任何额外的成本。该设计通过在指针的高位嵌入内存颜色并将这些位用作内存加密的附加输入,避免了标记存储的任何开销。自定义编译器扩展自动利用CrypTag来检测商品程序的逻辑内存安全问题,并且完全向后兼容。
英文摘要:
Memory vulnerabilities are a major threat to many computing systems. To effectively thwart spatial and temporal memory vulnerabilities, full logical memory safety is required. However, current mitigation techniques for memory safety are either too expensive or trade security against efficiency. One promising attempt to detect memory safety vulnerabilities in hardware is memory coloring, a security policy deployed on top of tagged memory architectures. However, due to the memory storage and bandwidth overhead of large tags, commodity tagged memory architectures usually only provide small tag sizes, thus limiting their use for security applications. Irrespective of logical memory safety, physical memory safety is a necessity in hostile environments prevalent for modern cloud computing and IoT devices. Architectures from Intel and AMD already implement transparent memory encryption to maintain confidentiality and integrity of all off-chip data. Surprisingly, the combination of both, logical and physical memory safety, has not yet been extensively studied in previous research, and a naive combination of both security strategies would accumulate both overheads. In this paper, we propose CrypTag, an efficient hardware/software co-design mitigating a large class of logical memory safety issues and providing full physical memory safety. At its core, CrypTag utilizes a transparent memory encryption engine not only for physical memory safety, but also for memory coloring at hardly any additional costs. The design avoids any overhead for tag storage by embedding memory colors in the upper bits of a pointer and using these bits as an additional input for the memory encryption. A custom compiler extension automatically leverages CrypTag to detect logical memory safety issues for commodity programs and is fully backward compatible.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。