arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.12612cs.CR
收藏

LoadLord:动态加载以防御代码重用攻击

LoadLord: Loading on the Fly to Defend Against Code-Reuse Attacks

Xiaoqi Song, Wenjie Lv, Haipeng Qu, Lingyun Ying

摘要:

代码重用攻击是一种常见的攻击方法,攻击者利用程序中已有的代码来劫持控制流。大多数现有的防御集中在控制流完整性(CFI),代码随机化和软件解浮动。然而,那些确保如此高的安全性,大多数细粒度的方案遭受显着的性能开销,并仅减少攻击面,如软件解浮动不能完全抵御代码重用攻击。本文从压缩运行时可用代码空间的角度出发,提出了LoadLord,在程序运行过程中动态加载并及时卸载函数,以抵御代码重用攻击。LoadLord可以减少内存中小工具的数量,尤其是高风险的小工具。此外,LoadLord确保了加载过程的控制流完整性,并打破了构建小工具链的必要条件。我们在Linux操作系统上实现了LoadLord,并在仅限制原功能1/16的情况下进行了实验。因此,LoadLord可以防御代码重用攻击,并且在SPEC CPU 2006上的平均运行时开销为1.7%,减少了94.02%的小工具。

英文摘要:

Code-reuse attacks have become a kind of common attack method, in which attackers use the existing code in the program to hijack the control flow. Most existing defenses focus on control flow integrity (CFI), code randomization, and software debloating. However, most fine-grained schemes of those that ensure such high security suffer from significant performance overhead, and only reduce attack surfaces such as software debloating can not defend against code-reuse attacks completely. In this paper, from the perspective of shrinking the available code space at runtime, we propose LoadLord, which dynamically loads, and timely unloads functions during program running to defend against code-reuse attacks. LoadLord can reduce the number of gadgets in memory, especially high-risk gadgets. Moreover, LoadLord ensures the control flow integrity of the loading process and breaks the necessary conditions to build a gadget chain. We implemented LoadLord on Linux operating system and experimented that when limiting only 1/16 of the original function. As a result, LoadLord can defend against code-reuse attacks and has an average runtime overhead of 1.7% on the SPEC CPU 2006, reducing gadgets by 94.02%.

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

↑