Skip to main navigation Skip to search Skip to main content

SGXLock: Towards Efficiently Establishing Mutual Distrust Between Host Application and Enclave for SGX

  • Yuan Chen
  • , Jiaqi Li
  • , Guorui Xu
  • , Yajin Zhou*
  • , Zhi Wang
  • , Cong Wang
  • , Kui Ren
  • *Corresponding author for this work

Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review

Abstract

Since its debut, SGX has been used to secure various types of applications. However, existing systems usually assume a trusted enclave and ignore the security issues caused by an untrusted enclave. For instance, a vulnerable (or even malicious) third-party enclave can be exploited to attack the host application and the rest of the system. In this paper, we propose an efficient mechanism to confine an untrusted enclave's behaviors. In particular, the threats of an untrusted enclave come from the enclave-host asymmetries, which can be abused to access arbitrary memory regions of its host application, jump to any code location after leaving the enclave and forge the stack register to manipulate the saved context. Our solution breaks such asymmetries and establishes mutual distrust between the host application and the enclave. Specifically, it leverages Intel MPK for efficient memory isolation and the x86 single-step debugging mechanism to capture the exiting event of the enclave. Then it performs the integrity check of the jump target and the stack pointer. We have implemented a prototype system and solved two practical challenges. The evaluation with multiple micro-benchmarks and representative real-world applications demonstrated the effectiveness and the efficiency of our system, with less than 4% performance overhead.
Original languageEnglish
Title of host publicationProceedings of the 31st USENIX Security Symposium
PublisherUSENIX Association
Pages4129-4146
Number of pages19
ISBN (Print)9781939133311
Publication statusPublished - Aug 2022
Event31st USENIX Security Symposium (Security 2022) - Boston, United States
Duration: 10 Aug 2022 → 12 Aug 2022
https://www.usenix.org/conference/usenixsecurity22

Publication series

NameProceedings of the USENIX Security Symposium, Security

Conference

Conference31st USENIX Security Symposium (Security 2022)
Abbreviated titleUSENIX Security '22
PlaceUnited States
CityBoston
Period10/08/22 → 12/08/22
Internet address

Bibliographical note

Full text of this publication does not contain sufficient affiliation information. With consent from the author(s) concerned, the Research Unit(s) information for this record is based on the existing academic department affiliation of the author(s).

Funding

We would like to thank the anonymous reviewers for their comments that greatly helped improve the presentation of this paper. We also want to thank Prof. Fengwei Zhang for shepherding our paper. Additionally, the first author of this paper would like to thank Xiaoxuan Lou personally for his help with the author’s study. This work is partially supported by the National Natural Science Foundation of China under Grant 61872438, Leading Innovative and Entrepreneur Team Introduction Program of Zhejiang (2018R01005), the Fundamental Research Funds for the Central Universities (K20200019), Research Grants Council of Hong Kong under Grant R6021-20F and RFS2122-1S04. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of funding agencies.

RGC Funding Information

  • RGC-funded

Fingerprint

Dive into the research topics of 'SGXLock: Towards Efficiently Establishing Mutual Distrust Between Host Application and Enclave for SGX'. Together they form a unique fingerprint.

Cite this