摘要
—There has been interest in mechanisms that enable the secure use of legacy code to implement trusted code in a Trusted Execution Environment (TEE), such as Intel SGX. However, because legacy code generally assumes the presence of an operating system, this naturally raises the spectre of Iago attacks on the legacy code. We observe that not all legacy code is vulnerable to Iago attacks and that legacy code must use return values from system calls in an unsafe way to have Iago vulnerabilities. Based on this observation, we develop Emilia, which automatically detects Iago vulnerabilities in legacy applications by fuzzing applications using system call return values. We use Emilia to discover 51 Iago vulnerabilities in 17 applications, and find that Iago vulnerabilities are widespread and common. We conduct an in-depth analysis of the vulnerabilities we found and conclude that while common, the majority (82.4%) can be mitigated with simple, stateless checks in the system call forwarding layer, while the rest are best fixed by finding and patching them in the legacy code. Finally, we study and evaluate different trade-offs in the design of Emilia.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- EnclaveFuzz: Finding Vulnerabilities in SGX Applications 引用了 SmashEx: Smashing SGX Enclaves Using Exceptions
- EnclaveFuzz: Finding Vulnerabilities in SGX Applications 引用了 COIN Attacks: On Insecurity of Enclave Untrusted Interfaces in SGX
- A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes 引用了 Panoply: Low-TCB Linux Applications With SGX Enclaves
- SmashEx: Smashing SGX Enclaves Using Exceptions 引用了 A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes
- SmashEx: Smashing SGX Enclaves Using Exceptions 引用了 Panoply: Low-TCB Linux Applications With SGX Enclaves
- SmashEx: Smashing SGX Enclaves Using Exceptions 引用了 COIN Attacks: On Insecurity of Enclave Untrusted Interfaces in SGX
- Pandora: Principled Symbolic Validation of Intel SGX Enclave Runtimes 引用了 A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes
- Pandora: Principled Symbolic Validation of Intel SGX Enclave Runtimes 引用了 SmashEx: Smashing SGX Enclaves Using Exceptions
- Pandora: Principled Symbolic Validation of Intel SGX Enclave Runtimes 引用了 SymGX: Detecting Cross-boundary Pointer Vulnerabilities of SGX Applications via Static Symbolic Execution
- Pandora: Principled Symbolic Validation of Intel SGX Enclave Runtimes 引用了 COIN Attacks: On Insecurity of Enclave Untrusted Interfaces in SGX
- SymGX: Detecting Cross-boundary Pointer Vulnerabilities of SGX Applications via Static Symbolic Execution 引用了 A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes
- SymGX: Detecting Cross-boundary Pointer Vulnerabilities of SGX Applications via Static Symbolic Execution 引用了 SmashEx: Smashing SGX Enclaves Using Exceptions
- SymGX: Detecting Cross-boundary Pointer Vulnerabilities of SGX Applications via Static Symbolic Execution 引用了 Panoply: Low-TCB Linux Applications With SGX Enclaves
- SymGX: Detecting Cross-boundary Pointer Vulnerabilities of SGX Applications via Static Symbolic Execution 引用了 COIN Attacks: On Insecurity of Enclave Untrusted Interfaces in SGX
- Characterizing Trust Boundary Vulnerabilities in TEE Container Systems: An Empirical Study 引用了 Pandora: Principled Symbolic Validation of Intel SGX Enclave Runtimes
- Characterizing Trust Boundary Vulnerabilities in TEE Container Systems: An Empirical Study 引用了 SymGX: Detecting Cross-boundary Pointer Vulnerabilities of SGX Applications via Static Symbolic Execution
- Characterizing Trust Boundary Vulnerabilities in TEE Container Systems: An Empirical Study 引用了 Panoply: Low-TCB Linux Applications With SGX Enclaves
- Characterizing Trust Boundary Vulnerabilities in TEE Container Systems: An Empirical Study 引用了 COIN Attacks: On Insecurity of Enclave Untrusted Interfaces in SGX
- Panoply: Low-TCB Linux Applications With SGX Enclaves 引用了 OpenSGX: An Open Platform for SGX Research
引用它的顶会 Paper7
- SmashEx: Smashing SGX Enclaves Using ExceptionsJinhua Cui, Jason Zhijingcheng Yu, Shweta Shinde, Prateek Saxena 等CCS 2021 · 32 次引用
- Pandora: Principled Symbolic Validation of Intel SGX Enclave RuntimesFritz Alder, Lesly-Ann Daniel, David F. Oswald, Frank Piessens 等S&P 2024 · 12 次引用
- SymGX: Detecting Cross-boundary Pointer Vulnerabilities of SGX Applications via Static Symbolic ExecutionYuanpeng Wang, Ziqi Zhang, Ningyu He, Zhineng Zhong 等CCS 2023 · 8 次引用
- EnclaveFuzz: Finding Vulnerabilities in SGX ApplicationsLiheng Chen, Zheming Li, Zheyu Ma, Yuan Li 等NDSS 2024
- Characterizing Trust Boundary Vulnerabilities in TEE Container Systems: An Empirical StudyWeijie Liu, Hongbo Chen, Shuo Huai, Zhen Xu 等FSE 2026
它引用的 Paper5
- Evaluating Fuzz TestingGeorge Klees, Andrew Ruef, Benji Cooper, Shiyi Wei 等CCS 2018 · 753 次引用
- Panoply: Low-TCB Linux Applications With SGX EnclavesShweta Shinde, Dat Le Tien, Shruti Tople, Prateek SaxenaNDSS 2017 · 274 次引用
- A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding RuntimesJo Van Bulck, David F. Oswald, Eduard Marin, Abdulla Aldoseri 等CCS 2019 · 159 次引用
- OpenSGX: An Open Platform for SGX ResearchPrerit Jain, Soham Jayesh Desai, Ming-Wei Shih, Taesoo Kim 等NDSS 2016 · 98 次引用
- COIN Attacks: On Insecurity of Enclave Untrusted Interfaces in SGXMustakimur Rahman Khandaker, Yueqiang Cheng, Zhi Wang, Tao WeiASPLOS 2020 · 46 次引用
相关 Paper
- BesFS: A POSIX Filesystem for Enclaves with a Mechanized Safety ProofShweta Shinde, Shengyi Wang, Pinghai Yuan, Aquinas Hobor 等USENIX Security 2020
- SGXFuzz: Efficiently Synthesizing Nested Structures for SGX Enclave FuzzingTobias Cloosters, Johannes Willbold, Thorsten Holz, Lucas DaviUSENIX Security 2022
- IntraFuzz: Coverage-Guided Intra-Enclave Fuzzing for Intel SGX ApplicationsJinhua Cui, Qiao Peng, Yiwen Yao, Ke Ye 等DAC 2025 · 1 次引用
- TÄMU: Emulating Trusted Applications at the (GlobalPlatform)-API LayerPhilipp Mao, Li Shi, Marcel Busch, Mathias PayerS&P 2026 · 1 次引用
- TeeRex: Discovery and Exploitation of Memory Corruption Vulnerabilities in SGX EnclavesTobias Cloosters, Michael Rodler, Lucas DaviUSENIX Security 2020
