Skip to main content
QUICK REVIEW

[Paper Review] Towards a Fully Abstract Compiler Using Micro-Policies: Secure Compilation for Mutually Distrustful Components

Yannis Juglaret, Cătălin Hriţcu|arXiv (Cornell University)|Oct 2, 2015
Security and Verification in ComputingComputer Science1 references10 citations
TL;DR

This paper presents a secure, fully abstract compiler for mutually distrustful components using micro-policies—tag-based hardware-enforced security monitors that protect high-level abstractions like class isolation, method call discipline, and type safety against arbitrary low-level attackers. The approach achieves strong security guarantees with efficient, transparent enforcement via a verified, hardware-optimized monitoring framework.

ABSTRACT

Secure compilation prevents all low-level attacks on compiled code and allows for sound reasoning about security in the source language. In this work we propose a new attacker model for secure compilation that extends the well-known notion of full abstraction to ensure protection for mutually distrustful components. We devise a compiler chain (compiler, linker, and loader) and a novel security monitor that together defend against this strong attacker model. The monitor is implemented using a recently proposed, generic tag-based protection framework called micro-policies, which comes with hardware support for efficient caching and with a formal verification methodology. Our monitor protects the abstractions of a simple object-oriented language---class isolation, the method call discipline, and type safety---against arbitrary low-level attackers.

Motivation & Objective

  • To address the limitations of full abstraction in secure compilation when components are mutually distrustful, where low-level attackers can subvert high-level abstractions.
  • To design a compiler chain (compiler, linker, loader) that ensures all security abstractions are preserved under arbitrary low-level attacks.
  • To integrate a hardware-accelerated, formally verified security monitor (micro-policies) that enforces class isolation, method call discipline, and type safety transparently.
  • To achieve efficient, transparent, and secure compilation by leveraging a tag-based protection framework with minimal performance overhead.

Proposed method

  • The compiler translates a high-level object-oriented language through an intermediate stack machine to a target symbolic micro-policy machine extended with micro-policy monitoring capabilities.
  • Micro-policies enforce security via word-sized metadata tags propagated by a hardware monitor during instruction execution, enabling fine-grained access control.
  • Class isolation is enforced through compartmentalization, where each object is isolated in its own memory segment with access controlled by tags.
  • Method call discipline is enforced using method entry points, linear return capabilities, and register cleaning to prevent unauthorized control flow transfers.
  • Type safety is enforced dynamically via tag checks on method arguments and return values, ensuring type consistency at runtime.
  • The system uses a continuation-based semantics to model program execution and ensure correct state transitions under monitoring.

Experimental results

Research questions

  • RQ1Can full abstraction be extended to a model where components are mutually distrustful, requiring protection against arbitrary low-level attackers?
  • RQ2How can a secure compiler enforce class isolation, method call discipline, and type safety in the presence of powerful low-level attackers?
  • RQ3Can a tag-based hardware monitor (micro-policies) be used to enforce these abstractions efficiently and transparently in a compiled system?
  • RQ4What are the performance and transparency trade-offs of using micro-policies in a secure compilation pipeline?
  • RQ5How can the compiler chain be structured to preserve high-level abstractions while generating efficient, monitored target code?

Key findings

  • The proposed compiler chain achieves full abstraction under a new attacker model that accounts for mutual distrust among components, ensuring that low-level attackers cannot subvert high-level abstractions.
  • The micro-policy monitor successfully enforces class isolation by compartmentalizing objects and restricting cross-compartment access through tag-based checks.
  • Method call discipline is preserved via entry points and linear return capabilities, preventing control flow hijacking even when the attacker controls the runtime environment.
  • Type safety is enforced dynamically at runtime using tag propagation, ensuring that only values of the correct type are passed to methods.
  • The system demonstrates transparency, allowing benign low-level environments to interact correctly with compiled code without requiring changes.
  • The use of hardware-accelerated tag-based monitoring ensures high performance, avoiding the overheads typical of software-only binary rewriting or randomization techniques.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.