在Keystone中引入快速安全的确定性无隐藏只写不经意RAM用于按需分页
Introducing Fast and Secure Deterministic Stash Free Write Only Oblivious RAMs for Demand Paging in Keystone
摘要:
Keystone是基于RISC-V架构的可信执行环境。它将内存分为安全的Keystone私有内存和不安全的非Keystone内存,并允许Keystone私有内存中的代码安全地执行。Keystone中的简单请求分页最终会将Keystone应用程序的敏感访问模式泄漏到操作系统(OS),这被认为是恶意的。这是因为,要访问不安全的非Keystone内存,Keystone需要操作系统的支持。为了缓解这一点,Keystone需要实现不经意的需求分页,同时通过使用不经意RAM(ORAM)技术混淆其页面访问模式。这会导致应用程序执行速度大幅减慢。在本文中,我们通过使用确定性,无隐藏,只写ORAM(DetWoORAM)的不经意的需求分页,在Keystone中弥合了应用程序执行时间与不安全和安全需求分页之间的性能差距。我们还展示了为什么DetWoORAM,这是一个只写的ORAM,是足够的不经意的需求分页。DetWoORAM将内存逻辑地划分为主区域和保持区域。实际页面存储在主区域中。我们提出了两个增强DetWoORAM,改善应用程序执行速度减慢。第一个增强,我们称之为Eager DetWoORAM,涉及页面预加载,利用DetWoORAM的确定性访问模式,并试图隐藏ORAM延迟。第二个增强,我们称之为并行DetWoORAM,涉及产生多个线程,每个线程执行DetWoORAM内存访问算法的一部分。与显示[1.4x,2x和3.24x]的减速的DetWoORAM相比,对于k= 3,7和15,Eager DetWoORAM和Parallel DetWoORAM分别提供[1.2x,1.8x和3.2x]和[1.1x,1.1x和1.4x]的减速。
英文摘要:
Keystone is a trusted execution environment, based on RISC-V architecture. It divides the memory into a secure Keystone private memory and an unsecure non-Keystone memory, and allows code that lies inside the Keystone private memory to execute securely. Simple demand paging in Keystone ends up leaking sensitive access patterns of Keystone application to the Operating System(OS), that is assumed to be malicious. This is because, to access the unsecure non-Keystone memory, Keystone needs support of the OS. To mitigate this, Keystone needs to implement oblivious demand paging while obfuscating its page access patterns by using Oblivious RAM(ORAM) techniques. This causes substantial slowdown in the application execution. In this paper, we bridge the performance gap between application execution time with unsecure and secure demand paging in Keystone by using Deterministic, stash free, Write only ORAM (DetWoORAM) for oblivious demand paging. We also show why DetWoORAM, that is a write-only ORAM, is sufficient for oblivious demand paging. DetWoORAM logically partitions the memory into a main area and a holding area. The actual pages are stored in main area. We propose two enhancements over DetWoORAM that improves the application execution slowdown. The first enhancement, which we call the Eager DetWoORAM, involves page preloading that exploits the deterministic access pattern of DetWoORAM, and tries to hide the ORAM latency. The second enhancement, which we call the Parallel DetWoORAM, involves spawning multiple threads and each thread performs a part of the DetWoORAM memory access algorithm. Compared to DetWoORAM that shows slowdown of [1.4x, 2x, and 3.24x], Eager DetWoORAM and Parallel DetWoORAM provide slowdown of [1.2x, 1.8x, and 3.2x] and [1.1x, 1.1x, and 1.4x], for k= 3, 7, and 15, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。