Beyond Good and Evil: Formalizing the Security Guarantees of Compartmentalizing Compilation

Yannis Juglaret, Catalin Hritcu, Arthur Azevedo de Amorim, Boris Eng, Benjamin C. Pierce
2/14/2016
46 citations
cs.CRcs.PL

Official code: secure-compilation/beyond-good-and-evil (3 stars, Coq, Apache-2.0, last commit 2018-02-16).

Abstract

Compartmentalization is good security-engineering practice. By breaking a large software system into mutually distrustful components that run with minimal privileges, restricting their interactions to conform to well-defined interfaces, we can limit the damage caused by low-level attacks such as control-flow hijacking.

Show full abstract

When used to defend against such attacks, compartmentalization is often implemented cooperatively by a compiler and a low-level compartmentalization mechanism. However, the formal guarantees provided by such compartmentalizing compilation have seen surprisingly little investigation. We propose a new security property, secure compartmentalizing compilation (SCC), that formally characterizes the guarantees provided by compartmentalizing compilation and clarifies its attacker model. We reconstruct our property by starting from the well-established notion of fully abstract compilation, then identifying and lifting three important limitations that make standard full abstraction unsuitable for compartmentalization. The connection to full abstraction allows us to prove SCC by adapting established proof techniques; we illustrate this with a compiler from a simple unsafe imperative language with procedures to a compartmentalized abstract machine.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Auxiliary materials for "Beyond Good and Evil" paper

30Coq, OCamlAug 29, 20168 years agoApache-2.0

Similar Papers

Cite this paper

@article{juglaret2016beyond,
  title  = {Beyond Good and Evil: Formalizing the Security Guarantees of Compartmentalizing Compilation},
  author = {Yannis Juglaret and Catalin Hritcu and Arthur Azevedo de Amorim and Boris Eng and Benjamin C. Pierce},
  year   = {2016},
  eprint = {1602.04503},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1602.04503}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1602.04503.svg)](https://codeofpaper.com/paper/1602.04503)

Discussion