It's a TRaP
Authors:
Open Access
- 12 October 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 243-255
Abstract
Code-reuse attacks continue to evolve and remain a severe threat to modern software. Recent research has proposed a variety of defenses with differing security, efficiency, and practicality characteristics. Whereas the majority of these solutions focus on specific code-reuse attack variants such as return-oriented programming (ROP), other attack variants that reuse whole functions, such as the classic return-into-libc, have received much less attention. Mitigating function-level code reuse is highly challenging because one needs to distinguish a legitimate call to a function from an illegitimate one. In fact, the recent counterfeit object-oriented programming (COOP) attack demonstrated that the majority of code-reuse defenses can be bypassed by reusing dynamically bound functions, i.e., functions that are accessed through global offset tables and virtual function tables, respectively. In this paper, we first significantly improve and simplify the COOP attack. Based on a strong adversarial model, we then present the design and implementation of a comprehensive code-reuse defense which is resilient against reuse of dynamically-bound functions. In particular, we introduce two novel defense techniques: (i) a practical technique to randomize the layout of tables containing code pointers resilient to memory disclosure and (ii) booby trap insertion to mitigate the threat of brute-force attacks iterating over the randomized tables. Booby traps serve the dual purpose of preventing fault-analysis side channels and ensuring that each table has sufficiently many possible permutations. Our detailed evaluation demonstrates that our approach is secure, effective, and practical. We prevent realistic, COOP-style attacks against the Chromium web browser and report an average overhead of 1.1% on the SPEC CPU2006 benchmarks.Keywords
Funding Information
- Deutsche Forschungsgemeinschaft (CRC)
- Defense Advanced Research Projects Agency (D11PC20024, N660001-1-2-4014, FA8750-15-C-0124, FA8750-15-C-0085)
- Bundesministerium für Forschung, Technologie und Raumfahrt (16BP12302)
- Seventh Framework Programme (609611)
This publication has 31 references indexed in Scilit:
- The Performance Cost of Shadow Stacks and Stack Canaries2015
- Isomeron: Code Randomization Resilient to (Just-In-Time) Return-Oriented Programming2015
- Towards automated integrity protection of C++ virtual function tables in binary programs2014
- You Can Run but You Can't Read2014
- Hacking Blind2014
- Booby trapping software2013
- Gadge me if you can2013
- Jump-oriented programming2011
- Return-oriented programming without returns2010
- Control-flow integrity principles, implementations, and applicationsACM Transactions on Information and System Security, 2009