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

使用名称混淆增强安全性

Using Name Confusion to Enhance Security

Mohamed Tarek Ibn Ziad, Miguel A. Arroyo, Evgeny Manzhosov, Vasileios P. Kemerlis, Simha Sethumadhavan

摘要:

我们引入了一个新的概念,称为名称混淆,并演示了如何可以利用它来挫败多个类的代码重用攻击。通过建立在名称混淆,我们得到幻影名称系统(PNS):一个安全协议,提供多个名称(地址)的程序指令。与指令和虚拟内存地址之间一对一映射的传统虚拟内存模型不同,PNS为同一指令创建N个映射,并在运行时在它们之间随机切换。PNS在基本块的粒度上实现了快速随机化,这减轻了一类称为(即时)代码重用的攻击。如果攻击者使用与内存安全相关的漏洞导致任何指令地址与提取期间选择的地址不同,则被利用的程序将崩溃。我们定量评估了PNS如何通过将典型漏洞的成功概率降低至约$10^{-12}$来减轻现实世界的代码重用攻击。我们实现了PNS,并通过运行SPEC CPU 2017基准测试套件对其进行了验证。通过将其添加到FPGA上的RISC-V核中,进一步验证了其实用性。最后,PNS主要是为资源受限(wimpy)设备设计的,与商用的、最先进的、基于硬件的保护相比,性能开销可以忽略不计。

英文摘要:

We introduce a novel concept, called Name Confusion, and demonstrate how it can be employed to thwart multiple classes of code-reuse attacks. By building upon Name Confusion, we derive Phantom Name System (PNS): a security protocol that provides multiple names (addresses) to program instructions. Unlike the conventional model of virtual memory with a one-to-one mapping between instructions and virtual memory addresses, PNS creates N mappings for the same instruction, and randomly switches between them at runtime. PNS achieves fast randomization, at the granularity of basic blocks, which mitigates a class of attacks known as (just-in-time) code-reuse. If an attacker uses a memory safety-related vulnerability to cause any of the instruction addresses to be different from the one chosen during a fetch, the exploited program will crash. We quantitatively evaluate how PNS mitigates real-world code-reuse attacks by reducing the success probability of typical exploits to approximately $10^{-12}$. We implement PNS and validate it by running SPEC CPU2017 benchmark suite. We further verify its practicality by adding it to a RISC-V core on an FPGA. Lastly, PNS is mainly designed for resource constrained (wimpy) devices and has negligible performance overhead, compared to commercially-available, state-of-the-art, hardware-based protections.

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

↑