Montsalvat: Partitioning Java Applications to Minimize the TCB in Intel SGX

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yuhala, Peterson, Ménétrey, Jämes, Felber, Pascal, Schiavoni, Valerio, Tchana, Alain, Thomas, Gaël, Guiroux, Hugo, Lozi, Jean-Pierre
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909837897498624
author Yuhala, Peterson
Ménétrey, Jämes
Felber, Pascal
Schiavoni, Valerio
Tchana, Alain
Thomas, Gaël
Guiroux, Hugo
Lozi, Jean-Pierre
author_facet Yuhala, Peterson
Ménétrey, Jämes
Felber, Pascal
Schiavoni, Valerio
Tchana, Alain
Thomas, Gaël
Guiroux, Hugo
Lozi, Jean-Pierre
contents The popularity of the Java programming language has led to its wide adoption in cloud computing infrastructures. However, Java applications running in untrusted clouds are vulnerable to various forms of privileged attacks. The emergence of trusted execution environments (TEEs) such as Intel SGX mitigates this problem. TEEs protect code and data in secure enclaves inaccessible to untrusted software, including the kernel and hypervisors. To efficiently use TEEs, developers must manually partition their applications into trusted and untrusted parts, in order to reduce the size of the trusted computing base (TCB) and minimise the risks of security vulnerabilities. However, partitioning applications poses two important challenges: (i) ensuring efficient object communication between the partitioned components, and (ii) ensuring the consistency of garbage collection between the parts, especially with memory-managed languages such as Java. We present Montsalvat, a tool which provides a practical and intuitive annotation-based partitioning approach for Java applications destined for secure enclaves. Montsalvat provides an RMI-like mechanism to ensure inter-object communication, as well as consistent garbage collection across the partitioned components. We implement Montsalvat with GraalVM native-image, a tool for compiling Java applications ahead-of-time into standalone native executables that do not require a JVM at runtime. Our extensive evaluation with micro- and macro-benchmarks shows our partitioning approach to boost performance in real-world applications
format Preprint
id arxiv_https___arxiv_org_abs_2305_00766
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Montsalvat: Partitioning Java Applications to Minimize the TCB in Intel SGX
Yuhala, Peterson
Ménétrey, Jämes
Felber, Pascal
Schiavoni, Valerio
Tchana, Alain
Thomas, Gaël
Guiroux, Hugo
Lozi, Jean-Pierre
Cryptography and Security
The popularity of the Java programming language has led to its wide adoption in cloud computing infrastructures. However, Java applications running in untrusted clouds are vulnerable to various forms of privileged attacks. The emergence of trusted execution environments (TEEs) such as Intel SGX mitigates this problem. TEEs protect code and data in secure enclaves inaccessible to untrusted software, including the kernel and hypervisors. To efficiently use TEEs, developers must manually partition their applications into trusted and untrusted parts, in order to reduce the size of the trusted computing base (TCB) and minimise the risks of security vulnerabilities. However, partitioning applications poses two important challenges: (i) ensuring efficient object communication between the partitioned components, and (ii) ensuring the consistency of garbage collection between the parts, especially with memory-managed languages such as Java. We present Montsalvat, a tool which provides a practical and intuitive annotation-based partitioning approach for Java applications destined for secure enclaves. Montsalvat provides an RMI-like mechanism to ensure inter-object communication, as well as consistent garbage collection across the partitioned components. We implement Montsalvat with GraalVM native-image, a tool for compiling Java applications ahead-of-time into standalone native executables that do not require a JVM at runtime. Our extensive evaluation with micro- and macro-benchmarks shows our partitioning approach to boost performance in real-world applications
title Montsalvat: Partitioning Java Applications to Minimize the TCB in Intel SGX
topic Cryptography and Security
url https://arxiv.org/abs/2305.00766