arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.12513cs.CRcs.PL
收藏

完全随机化指针

Fully Randomized Pointers

Sai Dhawal Phaye, Gregory J. Duck, Roland H. C. Yap, Trevor E. Carlson

AI总结:

针对C/C++内存错误,提出完全随机化指针(FRP)编码方案,兼容现有二进制且无需重新编译,通过随机化大部分指针位抵御暴力攻击,软硬件原型验证了安全性、兼容性及低于4%的开销。

摘要:

内存错误仍然是使用C和C++等低级编程语言编写的程序所面临的关键问题。人们提出了许多不同的内存错误防御机制,每种机制在开销、兼容性和攻击抵抗性方面都有不同的权衡。一些防御机制具有很高的兼容性,但仅提供最低限度的保护,并且容易被知识渊博的攻击者绕过。在另一个极端,能力系统提供了非常强大(不可伪造的)保护,但需要新颖的软件和硬件实现,这些实现按定义就是不兼容的。挑战在于同时实现非常强大的保护和高度兼容性。\n在本文中,我们提出了完全随机化指针(Fully Randomized Pointers, FRP),作为一种强大的内存错误防御机制,同时保持与现有二进制软件的兼容性。FRP的关键思想是设计一种新的指针编码方案,允许对大多数指针位进行完全随机化,使得即使是暴力攻击也变得不可行。我们设计的FRP编码具有以下特点:(1)与现有二进制代码兼容(无需重新编译);以及(2)与底层对象布局解耦。FRP的原型实现包括:(i)软件实现(BlueFat),用于测试安全性和兼容性;以及(ii)概念验证的硬件实现(GreenFat),用于评估性能。我们证明了FRP在二进制级别上是安全的、实用的且兼容的,同时我们的硬件实现实现了较低的性能开销(<4%)。

英文摘要:

Memory errors continue to be a critical concern for programs written in low-level programming languages such as C and C++. Many different memory error defenses have been proposed, each with varying trade-offs in terms of overhead, compatibility, and attack resistance. Some defenses are highly compatible but only provide minimal protection, and can be easily bypassed by knowledgeable attackers. On the other end of the spectrum, capability systems offer very strong (unforgeable) protection, but require novel software and hardware implementations that are incompatible by definition. The challenge is to achieve both very strong protection and high compatibility. In this paper, we propose {\em Fully Randomized Pointers} FRP as a strong memory error defense that also maintains compatibility with existing binary software. The key idea behind FRP is to design a new pointer encoding scheme that allows for the full randomization of most pointer bits, rendering even brute force attacks impractical. We design a FRP encoding that is: (1) compatible with existing binary code (recompilation not needed); and (2) decoupled from the underlying object layout. FRP is prototyped as: (i) a software implementation (BlueFat) to test security and compatibility; and (ii) a proof-of-concept hardware implementation (GreenFat) to evaluate performance. We show FRP is secure, practical, and compatible at the binary level, while our hardware implementation achieves low performance overheads (< 4%).

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

↑