Towards Memory Safe Enclave Programming with Rust-SGX
Huibo Wang, Pei Wang, Yu Ding, Mingshen Sun, Yiming Jing, Ran Duan, Long Li, Yulong Zhang, Tao Wei, Zhiqiang Lin
摘要
Intel Software Guard eXtension (SGX), a hardware supported trusted execution environment (TEE), is designed to protect security critical applications. However, it does not terminate traditional memory corruption vulnerabilities for the software running inside enclave, since enclave software is still developed with type unsafe languages such as C/C++. This paper presents Rust-SGX, an efficient and layered approach to exterminating memory corruption for software running inside SGX enclaves. The key idea is to enable the development of enclave programs with an efficient memory safe system language Rust with a Rust-SGX SDK by solving the key challenges of how to (1) make the SGX software memory safe and (2) meanwhile run as efficiently as with the SDK provided by Intel. We therefore propose to build Rust-SGX atop Intel SGX SDK, and tame unsafe components with formally proven memory safety. We have implemented Rust-SGX and tested with a series of benchmark programs. Our evaluation results show that Rust-SGX imposes little extra overhead (less than 5% with respect to the SGX specific features and services compared to software developed by Intel SGX SDK), and meanwhile have stronger memory safety.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 24 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SmashEx: Smashing SGX Enclaves Using Exceptions 引用了 Hacking in Darkness: Return-oriented Programming against Secure Enclaves
- SmashEx: Smashing SGX Enclaves Using Exceptions 引用了 SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs
- SmashEx: Smashing SGX Enclaves Using Exceptions 引用了 Data-Oriented Programming: On the Expressiveness of Non-control Data Attacks
- SmashEx: Smashing SGX Enclaves Using Exceptions 引用了 Panoply: Low-TCB Linux Applications With SGX Enclaves
- SmashEx: Smashing SGX Enclaves Using Exceptions 引用了 The Guard's Dilemma: Efficient Code-Reuse Attacks Against Intel SGX
- SoK: SGX.Fail: How Stuff Gets eXposed 引用了 Hacking in Darkness: Return-oriented Programming against Secure Enclaves
- SoK: SGX.Fail: How Stuff Gets eXposed 引用了 SmashEx: Smashing SGX Enclaves Using Exceptions
- SoK: SGX.Fail: How Stuff Gets eXposed 引用了 SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs
- SoK: SGX.Fail: How Stuff Gets eXposed 引用了 The Guard's Dilemma: Efficient Code-Reuse Attacks Against Intel SGX
- The Guard's Dilemma: Efficient Code-Reuse Attacks Against Intel SGX 引用了 Hacking in Darkness: Return-oriented Programming against Secure Enclaves
- The Guard's Dilemma: Efficient Code-Reuse Attacks Against Intel SGX 引用了 SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs
- Occlum: Secure and Efficient Multitasking Inside a Single Enclave of Intel SGX 引用了 Panoply: Low-TCB Linux Applications With SGX Enclaves
引用它的顶会 Paper24
- Occlum: Secure and Efficient Multitasking Inside a Single Enclave of Intel SGXYouren Shen, Hongliang Tian, Yu Chen, Kang Chen 等ASPLOS 2020 · 144 次引用
- Twine: An Embedded Trusted Runtime for WebAssemblyJämes Ménétrey, Marcelo Pasin, Pascal Felber, Valerio SchiavoniICDE 2021 · 58 次引用
- SoK: SGX.Fail: How Stuff Gets eXposedStephan van Schaik, Alexander Seto, Thomas Yurek, Adam Batori 等S&P 2024 · 52 次引用
- SmashEx: Smashing SGX Enclaves Using ExceptionsJinhua Cui, Jason Zhijingcheng Yu, Shweta Shinde, Prateek Saxena 等CCS 2021 · 32 次引用
- vSGX: Virtualizing SGX Enclaves on AMD SEVShixuan Zhao, Mengyuan Li, Yinqian Zhang, Zhiqiang LinS&P 2022 · 32 次引用
它引用的 Paper5
- Data-Oriented Programming: On the Expressiveness of Non-control Data AttacksHong Hu, Shweta Shinde, Sendroiu Adrian, Zheng Leong Chua 等S&P 2016 · 420 次引用
- Panoply: Low-TCB Linux Applications With SGX EnclavesShweta Shinde, Dat Le Tien, Shruti Tople, Prateek SaxenaNDSS 2017 · 274 次引用
- SGX-Shield: Enabling Address Space Layout Randomization for SGX ProgramsJaebaek Seo, Byoungyoung Lee, Seong-Min Kim, Ming-Wei Shih 等NDSS 2017 · 227 次引用
- Hacking in Darkness: Return-oriented Programming against Secure EnclavesJae-Hyuk Lee, Jin Soo Jang, Yeongjin Jang, Nohyun Kwak 等USENIX Security 2017 · 191 次引用
- The Guard's Dilemma: Efficient Code-Reuse Attacks Against Intel SGXAndrea Biondo, Mauro Conti, Lucas Davi, Tommaso Frassetto 等USENIX Security 2018 · 126 次引用
相关 Paper
- TeeRex: Discovery and Exploitation of Memory Corruption Vulnerabilities in SGX EnclavesTobias Cloosters, Michael Rodler, Lucas DaviUSENIX Security 2020
- T-SGX: Eradicating Controlled-Channel Attacks Against Enclave ProgramsMing-Wei Shih, Sangho Lee, Taesoo Kim, Marcus PeinadoNDSS 2017 · 431 次引用
- A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding RuntimesJo Van Bulck, David F. Oswald, Eduard Marin, Abdulla Aldoseri 等CCS 2019 · 159 次引用
- SGXFuzz: Efficiently Synthesizing Nested Structures for SGX Enclave FuzzingTobias Cloosters, Johannes Willbold, Thorsten Holz, Lucas DaviUSENIX Security 2022
- COIN Attacks: On Insecurity of Enclave Untrusted Interfaces in SGXMustakimur Rahman Khandaker, Yueqiang Cheng, Zhi Wang, Tao WeiASPLOS 2020 · 46 次引用
