arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.12656cs.CR
收藏

基于动态程序划分的SGX飞地抗内存访问模式攻击的有效加固

Efficiently Hardening SGX Enclaves against Memory Access Pattern Attacks via Dynamic Program Partitioning

Yuzhe Tang, Kai Li, Yibo Wang, Jiaqi Chen, Cheng Xu

摘要:

众所周知,英特尔SGX易受一类利用内存访问模式侧通道的实际攻击,尤其是页面错误攻击和缓存计时攻击。一种有前途的加固方案是将应用程序包装在英特尔TSX支持的硬件事务中,在意外的缓存未命中和中断时将控制权返回给软件,以便可以检测和缓解利用这些微架构事件的现有侧信道攻击。然而,现有的硬化方案仅扩展到小数据计算,典型的工作集小于一次或几次(例如,$8$次)。这项工作解决了英特尔SGX安全区针对内存访问模式侧通道的安全加固方案的数据可扩展性和性能效率。关键的见解是,目标计算中TSX事务的大小至关重要,无论是性能还是安全性。与现有的设计不同,这项工作动态分区的目标计算,扩大交易,同时避免中止,从而降低性能开销和提高侧通道的安全性。我们实现了动态分区方案,并建立了一个C++库,在运行时监控和建模缓存利用率。我们进一步使用该库构建了一个数据分析系统,并实现了各种外部不经意算法。性能评估表明,我们的工作可以有效地增加事务的大小和减少执行时间高达两个数量级相比,国家的最先进的解决方案。

英文摘要:

Intel SGX is known to be vulnerable to a class of practical attacks exploiting memory access pattern side-channels, notably page-fault attacks and cache timing attacks. A promising hardening scheme is to wrap applications in hardware transactions, enabled by Intel TSX, that return control to the software upon unexpected cache misses and interruptions so that the existing side-channel attacks exploiting these micro-architectural events can be detected and mitigated. However, existing hardening schemes scale only to small-data computation, with a typical working set smaller than one or few times (e.g., $8$ times) of a CPU data cache. This work tackles the data scalability and performance efficiency of security hardening schemes of Intel SGX enclaves against memory-access pattern side channels. The key insight is that the size of TSX transactions in the target computation is critical, both performance- and security-wise. Unlike the existing designs, this work dynamically partitions target computations to enlarge transactions while avoiding aborts, leading to lower performance overhead and improved side-channel security. We materialize the dynamic partitioning scheme and build a C++ library to monitor and model cache utilization at runtime. We further build a data analytical system using the library and implement various external oblivious algorithms. Performance evaluation shows that our work can effectively increase transaction size and reduce the execution time by up to two orders of magnitude compared with the state-of-the-art solutions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑