Towards automated integrity protection of C++ virtual function tables in binary programs
Authors:
Open Access
- 8 December 2014
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 396-405
Abstract
Web browsers are one of the most used, complex, and popular software systems nowadays. They are prone to dangling pointers that result in use-after-free vulnerabilites and this is the de-facto way to exploit them. From a technical point of view, an attacker uses a technique called vtable hijacking to exploit such bugs. More specifically, she crafts bogus virtual tables and lets a freed C++ object point to it in order to gain control over the program at virtual function call sites. In this paper, we present a novel approach towards mitigating and detecting such attacks against C++ binary code. We propose a static binary analysis technique to extract virtual function call site information in an automated way. Leveraging this information, we instrument the given binary executable and add runtime policy enforcements to thwart the illegal usage of these call sites. We implemented the proposed techniques in a prototype called T-VIP and successfully hardened three versions of Microsoft's Internet Explorer and Mozilla Firefox. An evaluation with several zero-day exploits demonstrates that our method prevents all of them. Performance benchmarks both on micro and macro level indicate that the overhead is reasonable with about 2.2%, which is only slightly higher compared to recent compiler-based approaches that address this problem.Keywords
Funding Information
- Bundesministerium für Forschung, Technologie und Raumfahrt (01BY-1205A)
This publication has 21 references indexed in Scilit:
- SAFEDISPATCH: Securing C++ Virtual Calls from Memory Corruption Attacks2014
- Undangle: early detection of dangling pointers in use-after-free and double-free vulnerabilities2012
- A vocabulary of program slicing-based techniquesACM Computing Surveys, 2012
- Retrofitting Security in COTS Software with Binary Rewriting2011
- PinACM SIGPLAN Notices, 2005
- Randomized instruction set emulationACM Transactions on Information and System Security, 2005
- A Survey of Empirical Results on Program Slicing2004
- ROSE: COMPILER SUPPORT FOR OBJECT-ORIENTED FRAMEWORKSParallel Processing Letters, 2000
- DynamoACM SIGPLAN Notices, 2000
- The direct cost of virtual function calls in C++ACM SIGPLAN Notices, 1996