QuanShield:利用自毁飞地防御侧信道攻击
QuanShield: Protecting against Side-Channels Attacks using Self-Destructing Enclaves
AI总结:
针对可信执行环境易受中断类侧信道攻击的问题,提出QuanShield系统,通过专用CPU核心无中断环境、飞地保存区作第二栈及编译器修改实现中断即自毁,有效提升攻击门槛且开销实用。
摘要:
可信执行环境(Trusted Execution Environments, TEEs)允许用户进程创建飞地,保护安全敏感计算免受操作系统内核和虚拟机监控程序的访问。近期研究表明,TEEs易受侧信道攻击,攻击者可借此窃取飞地中防护的机密信息。此类攻击大多通过触发异常或中断来追踪飞地执行的控制流或数据流。\n我们提出了QuanShield系统,用于保护飞地免受会中断飞地执行的侧信道攻击。QuanShield的核心思路是通过在专用CPU核心上构建无中断环境来强化资源隔离,运行于该环境的飞地一旦发生中断就会终止。QuanShield利用最新操作系统内核支持的无节拍调度模式来避免中断。随后,QuanShield将飞地的保存区(save area, SA,硬件用于支持中断处理的区域)用作第二栈。通过基于LLVM的编译器 passes,QuanShield修改飞地指令,将函数帧基址等内存引用存储到SA中或从SA加载。当中断发生时,硬件会用CPU状态覆盖SA中的数据,从而确保飞地执行失败。我们的评估表明,QuanShield显著提升了基于中断的攻击的实施门槛,且开销处于实际可接受范围。
英文摘要:
Trusted Execution Environments (TEEs) allow user processes to create enclaves that protect security-sensitive computation against access from the OS kernel and the hypervisor. Recent work has shown that TEEs are vulnerable to side-channel attacks that allow an adversary to learn secrets shielded in enclaves. The majority of such attacks trigger exceptions or interrupts to trace the control or data flow of enclave execution. We propose QuanShield, a system that protects enclaves from side-channel attacks that interrupt enclave execution. The main idea behind QuanShield is to strengthen resource isolation by creating an interrupt-free environment on a dedicated CPU core for running enclaves in which enclaves terminate when interrupts occur. QuanShield avoids interrupts by exploiting the tickless scheduling mode supported by recent OS kernels. QuanShield then uses the save area (SA) of the enclave, which is used by the hardware to support interrupt handling, as a second stack. Through an LLVM-based compiler pass, QuanShield modifies enclave instructions to store/load memory references, such as function frame base addresses, to/from the SA. When an interrupt occurs, the hardware overwrites the data in the SA with CPU state, thus ensuring that enclave execution fails. Our evaluation shows that QuanShield significantly raises the bar for interrupt-based attacks with practical overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。