Randomized instruction set emulation

Elena Gabriela Barrantes, David H. Ackley, Stephanie Forrest, Darko Stefanović

ACM Transactions on Information and System Security · 2005 · 147 citations · 38 references

Concepts

TL;DR

Injecting binary code into a running program is a common attack, and most defenses block known mechanisms, while RISE offers a complementary approach that randomizes an application's machine code. The paper describes and analyzes RISE, presents a proof‑of‑concept implementation using Valgrind IA32‑to‑IA32, and discusses extensions and applications of the technique. RISE prevents execution of injected code by randomizing machine instructions, so foreign binaries cannot match the randomization and instead execute meaningless random sequences. Empirical studies and a theoretical model show that the prototype disrupts binary code injection attacks on IA32 and PowerPC without needing recompilation or source code access.

Abstract

Injecting binary code into a running program is a common form of attack. Most defenses employ a “guard the doors” approach, blocking known mechanisms of code injection. Randomized instruction set emulation (RISE) is a complementary method of defense, one that performs a hidden randomization of an application's machine code. If foreign binary code is injected into a program running under RISE, it will not be executable because it will not know the proper randomization. The paper describes and analyzes RISE, describing a proof-of-concept implementation built on the open-source Valgrind IA32-to-IA32 translator. The prototype effectively disrupts binary code injection attacks, without requiring recompilation, linking, or access to application source code. Under RISE, injected code (attacks) essentially executes random code sequences. Empirical studies and a theoretical model are reported which treat the effects of executing random code on two different architectures (IA32 and PowerPC). The paper discusses possible extensions and applications of the RISE technique in other contexts.

References

38