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

SafeLLVM:没有 ROP Gadget 的 LLVM!

SafeLLVM: LLVM Without The ROP Gadgets!

Federico Cassano, Charles Bershatsky, Jacob Ginesin, Sasha Bashenko

AI总结:

本文提出 SafeLLVM,通过在 LLVM 后端实现一系列 pass 减少 x86-64 二进制文件中的 ROP gadget,并在多个真实应用上验证其可阻止 ROP 且保持功能不变。

摘要:

内存安全是安全且健壮的软件系统的基石,因为它可以防止广泛的漏洞和利用技术。在这些问题中,我们关注面向返回编程(Return-Oriented Programming,ROP)。ROP 的工作方式如下:攻击者通过内存破坏攻击控制程序的执行流,然后利用程序内存中已经存在的代码片段(称为“gadget”)来实现攻击者期望的效果。在本文中,我们提出了 SafeLLVM,这是一种用于最大限度减少使用 LLVM 基础设施编译的 x86-64 二进制文件中 gadget 数量的方法。在以往工作概述的技术基础上,我们在 LLVM 编译器后端实现了一系列 pass,以最大限度减少现有 gadget 的数量,从而阻止 ROP 攻击。我们通过编译多个真实世界应用程序评估了该方法,包括 cJSON、zlib、curl 和 mimalloc。结果表明,我们的解决方案能够阻止对使用 SafeLLVM 编译的二进制文件实施任何形式的 ROP,同时保持与原始二进制文件相同的功能。

英文摘要:

Memory safety is a cornerstone of secure and robust software systems, as it prevents a wide range of vulnerabilities and exploitation techniques. Among these, we focus on Return-Oriented Programming (ROP). ROP works as such: the attacker takes control of the program's execution flow via a memory corruption attack, then takes advantages of code snippets already in the program's memory, dubbed "gadgets," to achieve the attacker's desired effect. In this paper, we introduce SafeLLVM, an approach to minimize the number of gadgets in x86-64 binaries compiled with the LLVM infrastructure. Building upon the techniques outlined in previous works, we implement a series of passes within the LLVM compiler's backend to minimize the number of gadgets present and thus prevent ROP attacks. We evaluated our approach by compiling a number of real-world applications, including cJSON, zlib, curl, and mimalloc. The results show our solution is able to prevent any form of ROP on the binaries compiled with SafeLLVM while maintaining the same functionality as the original binaries.

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

↑