تقييم تجريبي لتقنية TEE: قياس الأساليب الشفافة بناءً على SGX و SEV و TDX An experimental evaluation of TEE technology: Benchmarking transparent approaches based on SGX, SEV, and TDX

شارك:
المجلة: Computers & Security، المجلد: 154
DOI: https://doi.org/10.1016/j.cose.2025.104457
تاريخ النشر: 2025-04-02
المؤلف: Luigi Coppolino وآخرون
الموضوع الرئيسي: الأمان والتحقق في الحوسبة

نظرة عامة

تسلط هذه القسم من ورقة البحث الضوء على أهمية حماية البيانات أثناء الاستخدام من خلال تقنية بيئة التنفيذ الموثوقة (TEE)، التي ظهرت كحل رائد في هذا المجال. تناقش الورقة عروض TEE من جانب الخادم، بدءًا من Intel SGX، الذي يستخدم آلية حماية قائمة على العمليات، والتي، على الرغم من فعاليتها، تواجه تحديات في الاستخدام. سعت أطر التشغيل اللاحقة مثل Gramine وScone وOcclum إلى معالجة بعض قيود SGX. من التطورات الملحوظة في تقنية TEE هو AMD SEV، الذي قدم نموذج حماية قائم على VM يسمح بالنشر السهل للتطبيقات القديمة، وهي ميزة اعتمدتها Intel مؤخرًا مع TDX.

يشير المؤلفون إلى وجود فجوة في الأدبيات بشأن مقارنات الأداء بين هذه الحلول TEE، على الرغم من المناقشات الواسعة حول نماذج التهديد الخاصة بها. تهدف هذه الدراسة إلى سد تلك الفجوة من خلال تقديم تقييم مقارن لـ TDX وSEV وGramine-SGX وOcclum-SGX، مع التركيز على الحمل الحسابي واستخدام الموارد عبر سيناريوهات تشغيل مختلفة ومجموعة من التطبيقات القديمة. يعتبر تقييم TDX، الذي لم يكن متاحًا للجمهور في وقت الكتابة، جديرًا بالملاحظة، حيث يقدم مساهمة فريدة في فهم أداء TEE في ظل ظروف واقعية.

مقدمة

تناقش مقدمة ورقة البحث الاهتمام المتزايد في بيئات التنفيذ الموثوقة (TEEs) كحل للحوسبة الآمنة، خاصة في منصات السحابة غير الموثوقة. تقدم TEEs، مثل Intel’s Software Guard eXtensions (SGX) وAMD’s Secure Encrypted Virtualization (SEV)، أداءً أفضل مقارنة بالبدائل مثل التشفير المتجانس. ومع ذلك، فإن SGX له قيود، بما في ذلك قيود الذاكرة وتحديات البرمجة، مما أدى إلى تطوير طبقات تشغيل مثل Gramine وOcclum وScone لتسهيل تكيف البرمجيات، على الرغم من تكلفة قاعدة الحوسبة الموثوقة الأكبر (TCB). بالمقابل، تسمح TEEs القائمة على VM مثل SEV وIntel’s Trust Domain eXtension (TDX) بتشغيل التطبيقات الحالية دون تعديل، على الرغم من أنها تقدم نموذج تهديد أضعف.

تسلط الورقة الضوء على فجوة كبيرة في الأدبيات بشأن تقييم أداء حلول TEE المختلفة، خاصة من حيث المقارنات الكمية لحماية البيانات أثناء الاستخدام بشكل شفاف. بينما قارنت الدراسات السابقة بين SGX وSEV، لم يكن هناك تقييم تجريبي لـ TDX بسبب إصداره الأخير وغياب التوافر التجاري. تهدف هذه العمل إلى سد تلك الفجوة من خلال تقديم تحليل شامل لحلول TEE، بما في ذلك تقييم تجريبي لـ TDX، مع التركيز على مقاييس الأداء مثل الحمل الحسابي واستخدام وحدة المعالجة المركزية عبر مجموعة متنوعة من التطبيقات القديمة. تشير النتائج إلى أن TEEs القائمة على VM تتفوق عمومًا على TEEs القائمة على العمليات في الأحمال الثقيلة من حيث الذاكرة وI/O، بينما قد تكون TEEs القائمة على العمليات مفضلة للمهام التي تتطلب وحدة معالجة مركزية بسبب نموذج الثقة الأقوى. بالإضافة إلى ذلك، يظهر TDX كفاءة متفوقة مقارنة بـ SEV، وGramine-SGX تتفوق على Occlum-SGX من حيث الأداء واستهلاك الموارد.

الطرق

في قسم الطرق، يوضح المؤلفون تكوينات الأجهزة والبرامج المستخدمة في تحقيقاتهم التجريبية. تركز التحليلات اللاحقة على النتائج التي تم الحصول عليها من هذه التجارب، مع التأكيد على تفسير البيانات فيما يتعلق بالفرضيات الأولية والآثار الأوسع للنتائج.

تصنف النتائج التجريبية بناءً على أنواع الأحمال. بالنسبة للمهام التي تتطلب وحدة معالجة مركزية، يقارن المؤلفون أوقات التنفيذ عبر تقنيات مختلفة، بينما بالنسبة للأحمال الثقيلة من حيث الذاكرة وI/O، يقيمون الإنتاجية والكمون. بالإضافة إلى ذلك، تتضمن التحليلات مقاييس متوسط استخدام وحدة المعالجة المركزية. لتسهيل المقارنة، يتم تطبيع جميع البيانات الرسومية باستخدام الصيغة \( x_{\text{norm}} = \frac{x – x_{\text{min}}}{x_{\text{max}} – x_{\text{min}}} \).

المناقشة

في مناقشة بيئات التنفيذ الموثوقة (TEEs) القائمة على العمليات، توضح الورقة الهيكل والآليات التشغيلية للجيوب الآمنة، مع التركيز بشكل خاص على Intel Software Guard eXtensions (SGX). يقوم SGX بفصل الأجزاء الآمنة وغير الموثوقة من العملية، حيث يتم إجراء الحسابات الحساسة في ذاكرة مشفرة، تعرف باسم ذاكرة صفحة الجيب (EPC). يتم التحكم بشكل صارم في الاتصال بين الجيب الآمن ونظام التشغيل غير الموثوق، مما يضمن تشفير البيانات أثناء النقل وفك تشفيرها فقط داخل الجيب. تسلط الورقة الضوء على التحديات التي يواجهها المطورون عند نقل التطبيقات إلى SGX، مما يتطلب تصميمًا دقيقًا للحفاظ على الأمان. لتخفيف هذه التحديات، ظهرت بيئات التشغيل مثل Gramine وOcclum، مما يسهل دمج التطبيقات في جيوب SGX من خلال تجريد التعقيدات والسماح بنقل شبه شفاف عبر نظام مكتبة (LibOS).

تناقش الورقة أيضًا TEEs القائمة على VM، مثل AMD Secure Encrypted Virtualization (SEV) وIntel Trust Domain Extensions (TDX)، التي تشفر ذاكرة الآلة الافتراضية بالكامل لحماية ضد تدخلات الهايبرفايزر الخبيثة. يوفر SEV مفاتيح تشفير مميزة لكل VM، بينما يعزز TDX الأمان من خلال الحماية ضد هجمات الذاكرة الفيزيائية وتمكين التصديق عن بعد. تنبع دوافع هذا البحث من التعقيد المتزايد في اختيار حلول TEE المناسبة التي توازن بين الأمان والأداء. يؤكد المؤلفون على الحاجة إلى تحليل مقارن لتقنيات TEE المختلفة، بما في ذلك مقاييس الأداء وتكاليف التشغيل، لمساعدة أصحاب المصلحة في اتخاذ قرارات مستنيرة تتناسب مع متطلبات التطبيقات المحددة. تهدف هذه البحث إلى المساهمة في تصميم TEEs التي تتماشى بشكل أفضل مع توقعات المستخدم والمعايير التنظيمية، مثل GDPR وCCPA، من خلال تقديم رؤى حول آثار أدائها.

Journal: Computers & Security, Volume: 154
DOI: https://doi.org/10.1016/j.cose.2025.104457
Publication Date: 2025-04-02
Author(s): Luigi Coppolino et al.
Primary Topic: Security and Verification in Computing

Overview

This section of the research paper highlights the significance of protecting data-in-use through Trusted Execution Environment (TEE) technology, which has emerged as a leading solution in this domain. The paper discusses various server-side TEE offerings, beginning with Intel SGX, which employs a process-based protection mechanism that, while efficient, poses usability challenges. Subsequent runtimes such as Gramine, Scone, and Occlum have sought to address some of SGX’s limitations. A notable advancement in TEE technology is AMD SEV, which introduced a VM-based protection model allowing for the straightforward deployment of legacy applications, a feature that Intel has recently adopted with TDX.

The authors point out a gap in the literature regarding performance comparisons among these TEE solutions, despite extensive discussions on their threat models. This study aims to fill that gap by providing a comparative evaluation of TDX, SEV, Gramine-SGX, and Occlum-SGX, focusing on computational overhead and resource usage across various operational scenarios and a range of legacy applications. The evaluation of TDX, which was not publicly available at the time of writing, is particularly noteworthy, offering a unique contribution to the understanding of TEE performance under realistic conditions.

Introduction

The introduction of the research paper discusses the growing interest in Trusted Execution Environments (TEEs) as a solution for secure computing, particularly in untrusted cloud platforms. TEEs, such as Intel’s Software Guard eXtensions (SGX) and AMD’s Secure Encrypted Virtualization (SEV), offer better performance compared to alternatives like Homomorphic Encryption. However, SGX has limitations, including memory constraints and programming challenges, which have led to the development of runtime layers like Gramine, Occlum, and Scone to ease software adaptation, albeit at the cost of a larger Trusted Computing Base (TCB). In contrast, VM-based TEEs like SEV and Intel’s Trust Domain eXtension (TDX) allow existing applications to run without modification, although they present a weaker threat model.

The paper highlights a significant gap in the literature regarding the performance evaluation of various TEE solutions, particularly in terms of quantitative comparisons for transparent protection of data-in-use. While previous studies have compared SGX and SEV, there has been no experimental evaluation of TDX due to its recent release and lack of commercial availability. This work aims to fill that gap by providing a comprehensive analysis of TEE solutions, including an experimental evaluation of TDX, focusing on performance metrics such as computational overhead and CPU utilization across a diverse set of legacy applications. The findings indicate that VM-based TEEs generally outperform Process-based TEEs in memory- and I/O-intensive workloads, while Process-based TEEs may be preferable for CPU-intensive tasks due to their stronger trust model. Additionally, TDX demonstrates superior efficiency compared to SEV, and Gramine-SGX outperforms Occlum-SGX in both performance and resource consumption.

Methods

In the Methods section, the authors detail the hardware and software configurations employed in their experimental investigations. The subsequent analysis focuses on the results obtained from these experiments, emphasizing the interpretation of data in relation to the initial hypotheses and the broader implications of the findings.

The experimental results are categorized based on workload types. For CPU-intensive tasks, the authors compare execution times across various technologies, while for memory and I/O-intensive workloads, they assess throughput and latency. Additionally, the analysis includes average CPU utilization metrics. To facilitate comparison, all graphical data is normalized using the formula \( x_{\text{norm}} = \frac{x – x_{\text{min}}}{x_{\text{max}} – x_{\text{min}}} \).

Discussion

In the discussion of process-based Trusted Execution Environments (TEEs), the paper outlines the architecture and operational mechanisms of secure enclaves, particularly focusing on Intel Software Guard eXtensions (SGX). SGX segregates secure and untrusted parts of a process, with sensitive computations performed in encrypted memory, known as the Enclave Page Cache (EPC). The communication between the secure enclave and the untrusted operating system is tightly controlled, ensuring that data is encrypted during transit and only decrypted within the enclave. The paper highlights the challenges developers face when porting applications to SGX, necessitating a careful design to maintain security. To alleviate these challenges, runtime environments like Gramine and Occlum have emerged, simplifying the integration of applications into SGX enclaves by abstracting complexities and allowing for quasi-transparent porting through a Library OS (LibOS).

The paper also discusses VM-based TEEs, such as AMD Secure Encrypted Virtualization (SEV) and Intel Trust Domain Extensions (TDX), which encrypt entire virtual machine memory to protect against malicious hypervisor interference. SEV provides distinct encryption keys for each VM, while TDX enhances security by protecting against physical memory attacks and enabling remote attestation. The motivation for this research stems from the increasing complexity in selecting appropriate TEE solutions that balance security and performance. The authors emphasize the need for a comparative analysis of various TEE technologies, including performance metrics and operational costs, to assist stakeholders in making informed decisions tailored to specific application requirements. This research aims to contribute to the design of TEEs that align better with user expectations and regulatory standards, such as GDPR and CCPA, by providing insights into their performance implications.