Signature-Based Protection from Code Reuse Attacks
- 13 December 2013
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 64 (2) , 533-546
Abstract
Code Reuse Attacks (CRAs) recently emerged as a new class of security exploits. CRAs construct malicious programs out of small fragments (gadgets) of existing code, thus eliminating the need for code injection. Existing defenses against CRAs often incur large performance overheads or require extensive binary rewriting and other changes to the system software. In this paper, we examine a signature-based detection of CRAs, where the attack is detected by observing the behavior of programs and detecting the gadget execution patterns. We first demonstrate that naive signature-based defenses can be defeated by introducing special “delay gadgets” as part of the attack. We then show how a software-configurable signature-based approach can be designed to defend against such stealth CRAs, including the attacks that manage to use longer-length gadgets. The proposed defense (called SCRAP) can be implemented entirely in hardware using simple logic at the commit stage of the pipeline. SCRAP is realized with minimal performance cost, no changes to the software layers, and no implications on binary compatibility. Finally, we show that SCRAP generates no false alarms on a wide range of applications.Keywords
This publication has 31 references indexed in Scilit:
- WatchdogACM SIGARCH Computer Architecture News, 2012
- Branch regulationACM SIGARCH Computer Architecture News, 2012
- SIFT2011
- On the Expressiveness of Return-into-libc Attacks2011
- DROP: Detecting Return-Oriented Programming Malicious Code2009
- Code injection attacks on harvard-architecture devices2008
- When good instructions go bad2008
- SPEC CPU2006 benchmark toolsACM SIGARCH Computer Architecture News, 2007
- DieHard2006
- Beyond stack smashing: recent advances in exploiting buffer overrunsIEEE Security & Privacy, 2004