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

使用控制流随机化缓解对英特尔SGX的分支阴影攻击

Mitigating Branch-Shadowing Attacks on Intel SGX using Control Flow Randomization

Shohreh Hosseinzadeh, Hans Liljestrand, Ville Leppänen, Andrew Paverd

摘要:

英特尔Software Guard Extensions(SGX)是一种基于硬件的技术,可保护敏感计算免受可能受损的系统软件的攻击。然而,最近的研究表明,SGX容易受到分支阴影的攻击--一种侧信道攻击,它会泄露飞地(SGX保护的代码)的细粒度(分支粒度)控制流,从而可能向攻击者泄露敏感数据。先前提出的称为Zigzagger的防御机制试图隐藏控制流,但如果攻击者可以使用最近的SGX-Step框架单步通过飞地,则已被证明是无效的。考虑到这些更强的攻击能力,我们提出了一种新的防御分支阴影,基于控制流随机化。我们的计划的灵感来自Zigzagger,但提供了可量化的安全保证相对于一个可调的安全参数。具体来说,我们消除了条件分支,并隐藏了无条件分支的目标,使用编译时修改和运行时代码随机化的组合。我们评估了我们的方法的性能,通过测量SGX-Nbench在SGX环境中的10个基准程序的运行时开销。

英文摘要:

Intel Software Guard Extensions (SGX) is a promising hardware-based technology for protecting sensitive computations from potentially compromised system software. However, recent research has shown that SGX is vulnerable to branch-shadowing -- a side channel attack that leaks the fine-grained (branch granularity) control flow of an enclave (SGX protected code), potentially revealing sensitive data to the attacker. The previously-proposed defense mechanism, called Zigzagger, attempted to hide the control flow, but has been shown to be ineffective if the attacker can single-step through the enclave using the recent SGX-Step framework. Taking into account these stronger attacker capabilities, we propose a new defense against branch-shadowing, based on control flow randomization. Our scheme is inspired by Zigzagger, but provides quantifiable security guarantees with respect to a tunable security parameter. Specifically, we eliminate conditional branches and hide the targets of unconditional branches using a combination of compile-time modifications and run-time code randomization. We evaluated the performance of our approach by measuring the run-time overhead of ten benchmark programs of SGX-Nbench in SGX environment.

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

↑