Strict Virtual Call Integrity Checking for C++ Binaries
Authors:
Open Access
- 2 April 2017
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 140-154
Abstract
Modern operating systems are equipped with defenses that render legacy code injection attacks inoperable. However, attackers can bypass these defenses by crafting attacks that reuse existing code in a program's memory. One of the most common classes of attacks manipulates memory data used indirectly to execute code, such as function pointers. This is especially prevalent in C++ programs, since tables of function pointers (vtables) are used by all major compilers to support polymorphism. In this paper, we propose VCI, a binary rewriting system that secures C++ binaries against vtable attacks. VCI works directly on stripped binary files. It identifies and reconstructs various C++ semantics from the binary, and constructs a strict CFI policy by resolving and pairing virtual function calls (vcalls) with precise sets of target classes. The policy is enforced by instrumenting checks into the binary at vcall sites. Experimental results on SPEC CPU2006 and Firefox show that VCI is significantly more precise than state-of-the-art binary solutions. Testing against the ground truth from the source-based defense GCC VTV, VCI achieved greater than 60% precision in most cases, accounting for at least 48% to 99% additional reduction in the attack surface compared to the state-of-the-art binary defenses. VCI incurs a 7.79% average runtime overhead which is comparable to the state-of-the-art. In addition, we discuss how VCI defends against real-world attacks, and how it impacts advanced vtable reuse attacks such as COOP.Keywords
Funding Information
- National Science Foundation (SATC 1421747)
- National Institute of Standards and Technology (60NANB16D285)
This publication has 24 references indexed in Scilit:
- Counterfeit Object-oriented Programming: On the Difficulty of Preventing Code Reuse Attacks in C++ Applications2015
- Readactor: Practical Code Randomization Resilient to Memory Disclosure2015
- Preventing Use-after-free with Dangling Pointers Nullification2015
- Information Leaks Without Memory Disclosures2014
- Undangle: early detection of dangling pointers in use-after-free and double-free vulnerabilities2012
- WYSINWYXACM Transactions on Programming Languages and Systems, 2010
- Valgrind2007
- DieHard2006
- Practical analysis of stripped binary codeACM SIGARCH Computer Architecture News, 2005
- Pointer-induced aliasing: a problem taxonomy1991