Source Code

SecureCells website repository

SecureCells: A Secure Compartmentalized Architecture

SecureCells is a novel virtual memory architecture for secure, efficient and flexible compartmentalization.
Secure:
  • Access control for code and data accesses
  • Secured call gates for inter-compartment calls
  • Checks on permission transfers
  • Performant:
  • Range-based access control checks eliminates duplication in page-table permissions
  • Userspace instructions for fast compartment switch and permission transfers
  • Software operations for context isolation
  • Flexible:
  • 2-D permissions tables allows different policies
  • Software operations can be omitted when unnecessary, improving performance
  • Publication

    Abstract

    Modern programs are monolithic, combining code of varied provenance without isolation, all the while running on network-connected devices. A vulnerability in any component may compromise code and data of all other components. Compartmentalization separates programs into fault domains with limited policy-defined permissions, following the Principle of Least Privilege, preventing arbitrary interactions between components. Unfortunately, existing compartmentalization mechanisms target weak attacker models, incur high overheads, or overfit to specific use cases, precluding their general adoption. The need of the hour is a secure, performant, and flexible mechanism on which developers can reliably implement an arsenal of compartmentalized software.

    We present SecureCells, a novel architecture for intra-address space compartmentalization. SecureCells enforces per-Virtual Memory Area (VMA) permissions for secure and scalable access control, and introduces new userspace instructions for secure and fast compartment switching with hardware-enforced call gates and zero-copy permission transfers. SecureCells enables novel software mechanisms for call stack maintenance and register context isolation. In microbenchmarks, SecureCells switches compartments in only 8 cycles on a 5-stage in-order processor, reducing cost by an order of magnitude compared to state-of-the-art. Consequently, SecureCells helps secure high-performance software such as an in-memory key-value store with negligible overhead of less than 3%.

    Paper Citation

    SecureCells can be cited as per the BibTex citation below.

    @inproceedings {Bhattacharyya:2023:SecureCells,
    author = {A. Bhattacharyya and F. Hofhammer and Y. Li and S. Gupta and A. Sanchez and B. Falsafi and M. Payer},
    booktitle = {2023 IEEE Symposium on Security and Privacy (SP) (SP)},
    title = {SecureCells: A Secure Compartmentalized Architecture},
    year = {2023},
    volume = {},
    issn = {},
    pages = {2921-2939},
    doi = {10.1109/SP46215.2023.00125},
    url = {https://doi.ieeecomputersociety.org/10.1109/SP46215.2023.00125},
    publisher = {IEEE Computer Society},
    address = {Los Alamitos, CA, USA},
    month = {May}
    }