Code-pointer integrity
Volodymyr Kuznetsov, László Szekeres, Mathias Payer et al. · Infoscience (Ecole Polytechnique Fédérale de Lausanne) · 2014
Systems code is often written in low-level languages like C/C++, which offer many benefits but also delegate memory management to programmers. This invites memory safety bugs that attackers can exploit to divert control flow and compromise the system. Deployed defense mechanisms (e.g., ASLR, DEP) are incomplete, and stronger defense mechanisms (e.g., CFI) often have high overhead and limited guarantees [19, 15, 9]. We introduce code-pointer integrity (CPI), a new design point that guarantees the integrity of all code pointers in a program (e.g., function pointers, saved return addresses) and thereby prevents all control-flow hijack attacks, including return-oriented programming. We also introduce code-pointer separation (CPS), a relaxation of CPI with better performance properties. CPI and CPS offer substantially better security-to-overhead ratios than the state of the art, they are practical (we protect a complete FreeBSD system and over 100 packages like apache and postgresql), effective (prevent all attacks in the RIPE benchmark), and efficient: on SPEC CPU2006, CPS averages 1.2% overhead for C and 1.9% for C/C++, while CPI’s overhead is 2.9% for C and 8.4% for C/C++. A prototype implementation of CPI and CPS can be obtained from http://levee.epfl.ch.
Cited by 311 works. doi:10.5555/2685048.2685061 Open-access PDF
Authors
References
- StackGuard: Automatic Adaptive Detection and Prevention of Buffer-Overflow Attacks
- The geometry of innocent flesh on the bone
- Control-flow integrity
- Cyclone: A Safe Dialect of C
- PointGuard TM : Protecting pointers from buffer overflow vulnerabilities
- Native Client: A Sandbox for Portable, Untrusted x86 Native Code
- All You Ever Wanted to Know about Dynamic Taint Analysis and Forward Symbolic Execution (but Might Have Been Afraid to Ask)
- AddressSanitizer: a fast address sanity checker
- Return-oriented programming without returns
- XFI: software guards for system address spaces