Skip to main content

Modular protections against non-control data attacks

Author(s): Schlesinger, Cole; Pattabiraman, Karthik; Swamy, Nikhil; Walker, David; Zorn, Benjamin

Download
To refer to this page use: http://arks.princeton.edu/ark:/88435/pr1r840
Abstract: This paper introduces YARRA, a conservative extension to C to protect applications from non-control data attacks. YARRA programmers specify their data integrity requirements by declaring critical data types and ascribing these critical types to important data structures. YARRA guarantees that such critical data is only written through pointers with the given static type. Any attempt to write to critical data through a pointer with an invalid type (perhaps because of a buffer overrun) is detected dynamically. We formalize YARRA’s semantics and prove the soundness of a program logic designed for use with the language. A key contribution is to show that YARRA's semantics are strong enough to support sound local reasoning and the use of a frame rule, even across calls to unknown, unverified code. We evaluate a prototype implementation of a compiler and runtime system for YARRA by using it to harden four common server applications against known non-control data vulnerabilities. We show that YARRA successfully defends the applications against these attacks. In our initial experiments, we find that the performance impact of YARRA is small, provided the amount of critical data is small and the application is not compute intensive.
Publication Date: 2014
Citation: Schlesinger, Cole, Karthik Pattabiraman, Nikhil Swamy, David Walker, and Benjamin Zorn. "Modular protections against non-control data attacks." Journal of Computer Security 22, no. 5 (2014): 699-742. doi:10.3233/JCS-140502
DOI: 10.3233/JCS-140502
ISSN: 0926-227X
Pages: 699 - 742
Type of Material: Journal Article
Journal/Proceeding Title: Journal of Computer Security
Version: Author's manuscript



Items in OAR@Princeton are protected by copyright, with all rights reserved, unless otherwise indicated.