USENIX Security2020Top-tier venue
BesFS: A POSIX Filesystem for Enclaves with a Mechanized Safety Proof
Shweta Shinde, Shengyi Wang, Pinghai Yuan, Aquinas Hobor, Abhik Roychoudhury, Prateek Saxena
Abstract
New trusted computing primitives such as Intel SGX have shown the feasibility of running user-level applications in enclaves on a commodity trusted processor without trusting a large OS. However, the OS can still compromise the integrity of an enclave by tampering with the system call return values. In fact, it has been shown that a subclass of these attacks, called Iago attacks, enables arbitrary logic execution in enclave programs. Existing enclave systems have very large TCB and they implement ad-hoc checks at the system call interface which are hard to verify for completeness. To this end, we present BESFS-the first filesystem interface which provably protects the enclave integrity against a completely malicious OS. We prove 167 lemmas and 2 key theorems in 4625 lines of Coq proof scripts, which directly proves the safety properties of the BESFS specification. BESFS comprises of 15 APIs with compositional safety and is expressive enough to support 31 real applications we test. BESFS integrates into existing SGX-enabled applications with minimal impact to TCB. BESFS can serve as a reference implementation for hand-coded API checks.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing cites Sanctum: Minimal Hardware Extensions for Strong Software Isolation
- SmashEx: Smashing SGX Enclaves Using Exceptions cites Panoply: Low-TCB Linux Applications With SGX Enclaves
- Keystone: an open framework for architecting trusted execution environments cites Panoply: Low-TCB Linux Applications With SGX Enclaves
- Keystone: an open framework for architecting trusted execution environments cites A Formal Foundation for Secure Remote Execution of Enclaves
- Keystone: an open framework for architecting trusted execution environments cites Sanctum: Minimal Hardware Extensions for Strong Software Isolation
- Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- Panoply: Low-TCB Linux Applications With SGX Enclaves cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- Panoply: Low-TCB Linux Applications With SGX Enclaves cites Sanctum: Minimal Hardware Extensions for Strong Software Isolation
- HyperEnclave: An Open and Cross-platform Trusted Execution Environment cites Keystone: an open framework for architecting trusted execution environments
- HyperEnclave: An Open and Cross-platform Trusted Execution Environment cites Sanctum: Minimal Hardware Extensions for Strong Software Isolation
- A Formal Foundation for Secure Remote Execution of Enclaves cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- A Formal Foundation for Secure Remote Execution of Enclaves cites Sanctum: Minimal Hardware Extensions for Strong Software Isolation
Cited by top-tier papers8
- Keystone: an open framework for architecting trusted execution environmentsDayeol Lee, David Kohlbrenner, Shweta Shinde, Krste Asanovic et al.EuroSys 2020 · 381 citations
- SmashEx: Smashing SGX Enclaves Using ExceptionsJinhua Cui, Jason Zhijingcheng Yu, Shweta Shinde, Prateek Saxena et al.CCS 2021 · 32 citations
- HyperEnclave: An Open and Cross-platform Trusted Execution EnvironmentYuekai Jia, Shuang Liu, Wenhao Wang, Yu Chen et al.USENIX ATC 2022 · 24 citations
- FeatureSpy: Detecting Learning-Content Attacks via Feature Inspection in Secure Deduplicated StorageJingwei Li, Yanjing Ren, Patrick P. C. Lee, Yuyu Wang et al.INFOCOM 2023 · 7 citations
- WaVe: a verifiably secure WebAssembly sandboxing runtimeEvan Johnson, Evan Laufer, Zijie Zhao, Dan Gohman et al.S&P 2023
Builds on6
- Sanctum: Minimal Hardware Extensions for Strong Software IsolationVictor Costan, Ilia A. Lebedev, Srinivas DevadasUSENIX Security 2016 · 649 citations
- Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch ShadowingSangho Lee, Ming-Wei Shih, Prasun Gera, Taesoo Kim et al.USENIX Security 2017 · 536 citations
- Panoply: Low-TCB Linux Applications With SGX EnclavesShweta Shinde, Dat Le Tien, Shruti Tople, Prateek SaxenaNDSS 2017 · 274 citations
- Strong and Efficient Cache Side-Channel Protection using Hardware Transactional MemoryDaniel Gruss, Julian Lettner, Felix Schuster, Olga Ohrimenko et al.USENIX Security 2017 · 254 citations
- A Formal Foundation for Secure Remote Execution of EnclavesPramod Subramanyan, Rohit Sinha, Ilia A. Lebedev, Srinivas Devadas et al.CCS 2017 · 146 citations
Related papers
- T-SGX: Eradicating Controlled-Channel Attacks Against Enclave ProgramsMing-Wei Shih, Sangho Lee, Taesoo Kim, Marcus PeinadoNDSS 2017 · 431 citations
- SGXLock: Towards Efficiently Establishing Mutual Distrust Between Host Application and Enclave for SGXYuan Chen, Jiaqi Li, Guorui Xu, Yajin Zhou et al.USENIX Security 2022
- Rakis: Secure Fast I/O Primitives Across Trust Boundaries on Intel SGXMansour Alharthi, Fan Sang, Dmitrii Kuvaiskii, Mona Vij et al.EuroSys 2025 · 6 citations
- OBLIVIATE: A Data Oblivious Filesystem for Intel SGXAdil Ahmad, Kyungtae Kim, Muhammad Ihsanulhaq Sarfaraz, Byoungyoung LeeNDSS 2018 · 144 citations
- ENGRAFT: Enclave-guarded Raft on Byzantine Faulty NodesWeili Wang, Sen Deng, Jianyu Niu, Michael K. Reiter et al.CCS 2022 · 19 citations
