Survey of Methods for Automated Code-Reuse Exploit Generation

Alexey Vishnyakov, Alexey Nurmukhametov
11/16/2020
cs.CR
survey

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

Abstract

This paper provides a survey of methods and tools for automated code-reuse exploit generation. Such exploits use code that is already contained in a vulnerable program.

Show full abstract

The code-reuse approach allows one to exploit vulnerabilities in the presence of operating system protection that prohibits data memory execution. This paper contains a description of various code-reuse methods: return-to-libc attack, return-oriented programming, jump-oriented programming, and others. We define fundamental terms: gadget, gadget frame, gadget catalog. Moreover, we show that, in fact, a gadget is an instruction, and a set of gadgets defines a virtual machine. We can reduce an exploit creation problem to code generation for this virtual machine. Each particular executable file defines a virtual machine instruction set. We provide a survey of methods for gadgets searching and determining their semantics (creating a gadget catalog). These methods allow one to get the virtual machine instruction set. If a set of gadgets is Turing-complete, then a compiler can use a gadget catalog as a target architecture. However, some instructions can be absent. Hence we discuss several approaches to replace missing instructions with multiple gadgets. An exploit generation tool can chain gadgets by pattern searching (regular expressions) or considering gadgets semantics. Furthermore, some chaining methods use genetic algorithms, while others use SMT-solvers. We compare existing open-source tools and propose a testing system rop-benchmark that can be used to verify whether a generated chain successfully opens a shell.

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{vishnyakov2020survey,
  title  = {Survey of Methods for Automated Code-Reuse Exploit Generation},
  author = {Alexey Vishnyakov and Alexey Nurmukhametov},
  year   = {2020},
  eprint = {2011.07862},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.07862}
}

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/2011.07862.svg)](https://codeofpaper.com/paper/2011.07862)

Discussion