MAJORCA: Multi-Architecture JOP and ROP Chain Assembler

Alexey Nurmukhametov, Alexey Vishnyakov, Vlada Logunova, Shamil Kurmangaleev
11/10/2021
cs.CRcs.SE

Official code: ispras/rop-benchmark (43 stars, Python, last commit 2023-01-26).

Abstract

Nowadays, exploits often rely on a code-reuse approach. Short pieces of code called gadgets are chained together to execute some payload.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

ROP Benchmark is a tool to compare ROP compilers

437Python, TeXOct 14, 20193 years ago
benchmarkpayloadreturn-oriented-programmingroprop-chain+3 more

Similar Papers

Cite this paper

@article{nurmukhametov2021majorca,
  title  = {MAJORCA: Multi-Architecture JOP and ROP Chain Assembler},
  author = {Alexey Nurmukhametov and Alexey Vishnyakov and Vlada Logunova and Shamil Kurmangaleev},
  year   = {2021},
  eprint = {2111.05781},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.05781}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.05781.svg)](https://codeofpaper.com/paper/2111.05781)

Discussion