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

MAJORCA:多架构JOP和ROP链汇编程序

MAJORCA: Multi-Architecture JOP and ROP Chain Assembler

Alexey Nurmukhametov, Alexey Vishnyakov, Vlada Logunova, Shamil Kurmangaleev

摘要:

如今,攻击通常依赖于代码重用方法。称为gadget的短代码片段被链接在一起以执行某些有效负载。代码重用攻击可以利用存在禁止数据内存执行的操作系统保护的漏洞。ROP链构造任务是针对被利用的可执行文件定义的虚拟机的代码生成。了解ROP攻击的强大程度至关重要。这些知识可以用来提高软件的安全性。我们实现了MAJORCA,它以与架构无关的方式生成ROP和JOP有效载荷,并充分考虑了通过strcpy终止数据复制的空字节等受限符号。本文涵盖了整个代码重用有效负载构建管道:编目小工具,在DAG中链接它们,调度,线性化到准备运行的有效负载。MAJORCA自动为x86和MIPS生成ROP和JOP有效载荷。MAJORCA构造有效载荷尊重Gadget地址和数据中的受限符号。我们评估MAJORCA的性能和准确性与rop-benchmark,并比较它与开源编译器。我们表明,MAJORCA优于开源工具。我们提出了一个ROP链接度量,并使用它来估计成功的ROP链接的概率为不同的操作系统与MAJORCA以及其他ROP编译器,以显示ROP链接仍然是可行的。该度量可以估计OS防御的效率。

英文摘要:

Nowadays, exploits often rely on a code-reuse approach. Short pieces of code called gadgets are chained together to execute some payload. Code-reuse attacks can exploit vulnerabilities in the presence of operating system protection that prohibits data memory execution. The ROP chain construction task is the code generation for the virtual machine defined by an exploited executable. It is crucial to understand how powerful ROP attacks can be. Such knowledge can be used to improve software security. We implement MAJORCA that generates ROP and JOP payloads in an architecture agnostic manner and thoroughly consider restricted symbols such as null bytes that terminate data copying via strcpy. The paper covers the whole code-reuse payloads construction pipeline: cataloging gadgets, chaining them in DAG, scheduling, linearizing to the ready-to-run payload. MAJORCA automatically generates both ROP and JOP payloads for x86 and MIPS. MAJORCA constructs payloads respecting restricted symbols both in gadget addresses and data. We evaluate MAJORCA performance and accuracy with rop-benchmark and compare it with open-source compilers. We show that MAJORCA outperforms open-source tools. We propose a ROP chaining metric and use it to estimate the probabilities of successful ROP chaining for different operating systems with MAJORCA as well as other ROP compilers to show that ROP chaining is still feasible. This metric can estimate the efficiency of OS defences.

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

↑