Visible to the public Avoiding Leakage and Synchronization Attacks Through Enclave-Side Preemption Control

TitleAvoiding Leakage and Synchronization Attacks Through Enclave-Side Preemption Control
Publication TypeConference Paper
Year of Publication2016
AuthorsVölp, Marcus, Lackorzynski, Adam, Decouchant, Jérémie, Rahli, Vincent, Rocha, Francisco, Esteves-Verissimo, Paulo
Conference NameProceedings of the 1st Workshop on System Software for Trusted Execution
PublisherACM
Conference LocationNew York, NY, USA
ISBN Number978-1-4503-4670-2
Keywordscomposability, concurrency and security, concurrency security, information-flow, Metrics, microkernels, preemption, pubcrawl, Resiliency, SGX-enclaves
Abstract

Intel SGX is the latest processor architecture promising secure code execution despite large, complex and hence potentially vulnerable legacy operating systems (OSs). However, two recent works identified vulnerabilities that allow an untrusted management OS to extract secret information from Intel SGX's enclaves, and to violate their integrity by exploiting concurrency bugs. In this work, we re-investigate delayed preemption (DP) in the context of Intel SGX. DP is a mechanism originally proposed for L4-family microkernels as disable-interrupt replacement. Recapitulating earlier results on language-based information-flow security, we illustrate the construction of leakage-free code for enclaves. However, as long as adversaries have fine-grained control over preemption timing, these solutions are impractical from a performance/complexity perspective. To overcome this, we resort to delayed preemption, and sketch a software implementation for hypervisors providing enclaves as well as a hardware extension for systems like SGX. Finally, we illustrate how static analyses for SGX may be extended to check confidentiality of preemption-delaying programs.

URLhttp://doi.acm.org/10.1145/3007788.3007794
DOI10.1145/3007788.3007794
Citation Keyvolp_avoiding_2016