Modular protections against non-control data attacks

Cole Schlesinger, Karthik Pattabiraman, Nikhil Swamy, David Walker, Benjamin Zorn

Research output: Contribution to journalArticle

3 Scopus citations

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.

Original languageEnglish (US)
Pages (from-to)699-742
Number of pages44
JournalJournal of Computer Security
Volume22
Issue number5
DOIs
StatePublished - Jan 1 2014

All Science Journal Classification (ASJC) codes

  • Software
  • Safety, Risk, Reliability and Quality
  • Hardware and Architecture
  • Computer Networks and Communications

Keywords

  • Hoare logic
  • Language-based security
  • control-flow integrity
  • data integrity
  • data isolation
  • frame rule
  • non-control data attack

Fingerprint Dive into the research topics of 'Modular protections against non-control data attacks'. Together they form a unique fingerprint.

  • Cite this

    Schlesinger, C., Pattabiraman, K., Swamy, N., Walker, D., & Zorn, B. (2014). Modular protections against non-control data attacks. Journal of Computer Security, 22(5), 699-742. https://doi.org/10.3233/JCS-140502