An Optimization Methodology for Adapting Legacy SGX Applications to Use Switchless Calls
Source abstract
Abstract
A recent innovation in the trusted execution environment (TEE) technologies enables the delegation of privacy-preserving computation to the cloud system. In particular, Intel SGX, an extension of x86 instruction set architecture (ISA), accelerates this trend by offering hardware-protected isolation with near-native performance. However, SGX inherently suffers from performance degradation depending on the workload characteristics due to the hardware restriction and design decisions that primarily concern the security guarantee. The system-level optimizations on SGX runtime and kernel module have been proposed to resolve this, but they cannot effectively reflect application-specific characteristics that largely impact the performance of legacy SGX applications. This work presents an optimization strategy to achieve application-level optimization by utilizing asynchronous switchless calls to reduce enclave transition, one of the dominant overheads of using SGX. Based on the systematic analysis, our methodology examines the performance benefit for each enclave transition wrapper and selectively applies switchless calls without modifying the legacy codebases. The evaluation shows that our optimization strategy successfully improves the end-to-end performance of our showcasing application, an SGX-enabled network middlebox.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Security and Verification in Computing · Advanced Memory and Neural Computing · Parallel Computing and Optimization Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Convergence Security Engineering, Sungshin Women’s University, Seoul 02844, Korea
Funding
Sungshin Women’s University
References (42)
Show source-provided references
1. Cloud-assisted adaptive video streaming and social-aware video prefetching for mobile users10.1109/MWC.2013.6549285 ↗
2. Cloud-based software platform for big data analytics in smart grids10.1109/MCSE.2013.39 ↗
3. Clouds for scalable big data analytics10.1109/MC.2013.162 ↗
4. Barona Lopez, L.I., Valdivieso Caraguay, Á.L., Sotelo Monge, M.A., and García Villalba, L.J. (2017). Key technologies in the context of future networks: Operational and management requirements. Future Internet, 9.10.3390/fi9010001 ↗
5. Interaction of edge-cloud computing based on SDN and NFV for next generation IoT10.1109/JIOT.2019.2942719 ↗
6. Systematic Literature Review on the Use of Trusted Execution Environments to Protect Cloud/Fog-based Internet of Things Applications10.1109/ACCESS.2021.3085524 ↗
7. TEE: A virtual DRTM based execution environment for secure cloud-end computing10.1016/j.future.2014.08.005 ↗
8. A design and verification methodology for a trustzone trusted execution environment10.1109/ACCESS.2020.2974487 ↗
9. (2021, August 15). Confidential Computing Consortium. Available online: https://confidentialcomputing.io/.
10. Using innovative instructions to create trustworthy software solutions
11. Han, J., Kim, S., Ha, J., and Han, D. (2017, January 3–4). SGX-Box: Enabling Visibility on Encrypted Traffic using a Secure Middlebox Module. Proceedings of the First Asia-Pacific Workshop on Networking, Hong Kong, China.10.1145/3106989.3106994 ↗
12. Wang, J., Yu, Y., Li, Y., Fan, C., and Hao, S. (2021). Design and Implementation of Virtual Security Function Based on Multiple Enclaves. Future Internet, 13.10.3390/fi13010012 ↗
13. Yoon, H., Moon, S., Kim, Y., Hahn, C., Lee, W., and Hur, J. (2020). SPEKS: Forward Private SGX-Based Public Key Encryption with Keyword Search. Appl. Sci., 10.10.3390/app10217842 ↗
14. Tsai, C.C., Porter, D.E., and Vij, M. (2017, January 12–14). Graphene-sgx: A practical library OS for unmodified applications on SGX. Proceedings of the 2017 {USENIX} Annual Technical Conference ({USENIX}{ATC} 17), Santa Clara, CA, USA.
15. Shinde, S., Le Tien, D., Tople, S., and Saxena, P. (March, January 26). Panoply: Low-TCB Linux Applications with SGX Enclaves. Proceedings of the NDSS, San Diego, CA, USA.
16. Regaining lost cycles with HotCalls: A fast interface for SGX secure enclaves10.1145/3140659.3080208 ↗
17. TaLoS: Secure and transparent TLS termination inside SGX enclaves
18. Dinh Ngoc, T., Bui, B., Bitchebe, S., Tchana, A., Schiavoni, V., Felber, P., and Hagimont, D. (2019, January 24–28). Everything you should know about Intel SGX performance on virtualized systems. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Phoenix, AZ, USA.10.1145/3309697.3331480 ↗
19. Mazzeo, G., Arnautov, S., Fetzer, C., and Romano, L. (2021). SGXTuner: Performance Enhancement of Intel SGX Applications via Stochastic Optimization. IEEE Trans. Depend. Secur. Comput.10.1109/TDSC.2021.3064391 ↗
20. (2021, August 15). How One Second Could Cost Amazon $1.6 Billion In Sales. Available online: http://www.fastcompany.com/1825005/how-one-second-could-cost-amazon-16-billion-sales.
21. Orenbach, M., Lifshits, P., Minkin, M., and Silberstein, M. (2017, January 23–26). Eleos: ExitLess OS services for SGX enclaves. Proceedings of the Twelfth European Conference on Computer Systems, Belgrade, Serbia.10.1145/3064176.3064219 ↗
22. Tian, H., Zhang, Y., Xing, C., and Yan, S. (2017, January 15–17). Sgxkernel: A library operating system optimized for intel SGX. Proceedings of the Computing Frontiers Conference, Siena, Italy.10.1145/3075564.3075572 ↗
23. (2021, August 15). Intel Software Guard Extensions (Intel SGX) SDK. Available online: https://software.intel.com/content/www/us/en/develop/topics/software-guard-extensions/sdk.html.
24. Arnautov, S., Trach, B., Gregor, F., Knauth, T., Martin, A., Priebe, C., Lind, J., Muthukumaran, D., O’keeffe, D., and Stillwell, M.L. (2016, January 2–4). SCONE: Secure linux containers with intel SGX. Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), Savannah, GA, USA.
25. Shanker, K., Joseph, A., and Ganapathy, V. (2020, January 8–13). An evaluation of methods to port legacy code to SGX enclaves. Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, Virtual Event, USA.10.1145/3368089.3409726 ↗
26. Weichbrodt, N., Aublin, P.L., and Kapitza, R. (2018, January 10–14). sgx-perf: A performance analysis tool for intel sgx enclaves. Proceedings of the 19th International Middleware Conference, Rennes, France.10.1145/3274808.3274824 ↗
27. Shielding applications from an untrusted cloud with haven10.1145/2799647 ↗
28. VISE: Combining Intel SGX and Homomorphic Encryption for Cloud Industrial Control Systems10.1109/TC.2020.2995638 ↗
29. Sun, H., He, R., Zhang, Y., Wang, R., Ip, W.H., and Yung, K.L. (2018). eTPM: A trusted cloud platform enclave TPM scheme based on intel SGX technology. Sensors, 18.10.3390/s18113807 ↗
30. A trust model based on cloud theory in underwater acoustic sensor networks10.1109/TII.2015.2510226 ↗
31. Ning, J., Huang, X., Susilo, W., Liang, K., Liu, X., and Zhang, Y. (2020). Dual access control for cloud-based data storage and sharing. IEEE Trans. Depend. Secur. Comput.10.1109/TDSC.2020.3011525 ↗
32. Tian, H., Zhang, Q., Yan, S., Rudnitsky, A., Shacham, L., Yariv, R., and Milshten, N. (2018, January 15). Switchless Calls Made Practical in Intel SGX. Proceedings of the 3rd Workshop on System Software for Trusted Execution, Toronto, ON, Canada.10.1145/3268935.3268942 ↗
33. Sgx-tor: A secure and practical tor anonymity network with sgx enclaves10.1109/TNET.2018.2868054 ↗
34. A secure middlebox framework for enabling visibility over multiple encryption protocols10.1109/TNET.2020.3016785 ↗
35. Jamshed, M.A., Moon, Y., Kim, D., Han, D., and Park, K. (2017, January 27–29). mos: A reusable networking stack for flow monitoring middleboxes. Proceedings of the 14th USENIX Symposium on Networked Systems Design and Implementation (NSDI 17), Boston, MA, USA.
36. Choi, B., Chae, J., Jamshed, M., Park, K., and Han, D. (2016, January 16–18). DFC: Accelerating String Pattern Matching for Network Applications. Proceedings of the 13th USENIX Symposium on Networked Systems Design and Implementation (NSDI 16), Santa Clara, CA, USA.
37. (2021, August 15). ET Pro Ruleset. Available online: https://www.proofpoint.com/us/threat-insight/et-pro-ruleset.
38. Paznikov, A., and Shichkina, Y. (2018). Algorithms for optimization of processor and memory affinity for Remote Core Locking synchronization in multithreaded applications. Information, 9.10.3390/info9010021 ↗
39. Abbasi, S.I., Kamal, S., Gochoo, M., Jalal, A., and Kim, K. (2021). Affinity-Based Task Scheduling on Heterogeneous Multicore Systems Using CBS and QBICTM. Appl. Sci., 11.10.3390/app11125740 ↗
40. Grandl, R., Kandula, S., Rao, S., Akella, A., and Kulkarni, J. (2016, January 2–4). GRAPHENE: Packing and Dependency-Aware Scheduling for Data-Parallel Clusters. Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), USENIX Association, Savannah, GA, USA.
41. Dependency-aware task scheduling in vehicular edge computing10.1109/JIOT.2020.2972041 ↗
42. DATA: Dependency-aware task allocation scheme in distributed edge clouds10.1109/TII.2020.2990674 ↗