Return-Oriented Programming on RISC-V

Georges-Axel Jaloyan, Konstantinos Markantonakis, Raja Naeem Akram, David Robin, Keith Mayes +1 more
3/15/2021
cs.CR

Official code: GAJaloyan/asiaccs2020 (6 stars, C++, last commit 2020-03-03).

Abstract

This paper provides the first analysis on the feasibility of Return-Oriented Programming (ROP) on RISC-V, a new instruction set architecture targeting embedded systems. We show the existence of a new class of gadgets, using several Linear Code Sequences And Jumps (LCSAJ), undetected by current Galileo-based ROP gadget searching tools.

Show full abstract

We argue that this class of gadgets is rich enough on RISC-V to mount complex ROP attacks, bypassing traditional mitigation like DEP, ASLR, stack canaries, G-Free, as well as some compiler-based backward-edge CFI, by jumping over any guard inserted by a compiler to protect indirect jump instructions. We provide examples of such gadgets, as well as a proof-of-concept ROP chain, using C code injection to leverage a privilege escalation attack on two standard Linux operating systems. Additionally, we discuss some of the required mitigations to prevent such attacks and provide a new ROP gadget finder algorithm that handles this new class of gadgets.

View on arXivView PDF

Code Implementations(1)

Additional material for the paper "Return-Oriented Programming on RISC-V" published in Asiaccs 2020

60C++, CMar 2, 20206 years ago

Similar Papers

Cite this paper

@article{jaloyan2021returnoriented,
  title  = {Return-Oriented Programming on RISC-V},
  author = {Georges-Axel Jaloyan and Konstantinos Markantonakis and Raja Naeem Akram and David Robin and Keith Mayes and David Naccache},
  year   = {2021},
  eprint = {2103.08229},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.08229}
}

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

Discussion