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

绝无分叉可能:检测针对Intel SGX应用的克隆攻击

No Forking Way: Detecting Cloning Attacks on Intel SGX Applications

Samira Briongos, Ghassan Karame, Claudio Soriente, Annika Wilde

AI总结:

针对现有Intel SGX应用缺乏无TTP的克隆类分叉攻击防护的问题,提出基于缓存隐蔽信道的CloneBuster检测机制,仅增约800行TCB代码且性能影响极小,搭配单调计数器可全面防护分叉攻击。

摘要:

针对Intel SGX这类可信执行环境(TEE)的分叉攻击可通过两种方式实施:一是将应用回滚至先前状态,二是克隆应用并将其输入划分到多个克隆实例中。当前针对分叉攻击的解决方案需要可信第三方(TTP),而可信第三方在实际部署中难以获取。在缺乏TTP的场景下,许多TEE应用依赖单调计数器来缓解基于回滚的分叉攻击,但它们没有针对基于克隆的分叉攻击的防护机制。本文分析了72款SGX应用,表明其中约20%易受基于克隆的分叉攻击,包括那些依赖单调计数器的应用。为解决这一问题,我们提出了CloneBuster,这是首个不依赖TTP的实用型Intel SGX克隆检测机制,因此可直接用于保护现有应用。CloneBuster允许飞地(enclave)自我检测同一平台上是否运行着另一个具有相同二进制文件的飞地。为此,CloneBuster依赖基于缓存的隐蔽信道,让飞地向同一机器上的克隆体发出自身存在的信号(并检测克隆体的存在)。我们证明,即便存在恶意操作系统,CloneBuster依然具备鲁棒性,仅对应用性能产生边际影响,且为可信计算基(TCB)增加了约800行代码(LoC)。当与单调计数器结合使用时,CloneBuster可让应用获得针对分叉攻击的全面防护。

英文摘要:

Forking attacks against TEEs like Intel SGX can be carried out either by rolling back the application to a previous state, or by cloning the application and by partitioning its inputs across the cloned instances. Current solutions to forking attacks require Trusted Third Parties (TTP) that are hard to find in real-world deployments. In the absence of a TTP, many TEE applications rely on monotonic counters to mitigate forking attacks based on rollbacks; however, they have no protection mechanism against forking attack based on cloning. In this paper, we analyze 72 SGX applications and show that approximately 20% of those are vulnerable to forking attacks based on cloning - including those that rely on monotonic counters. To address this problem, we present CloneBuster, the first practical clone-detection mechanism for Intel SGX that does not rely on a TTP and, as such, can be used directly to protect existing applications. CloneBuster allows enclaves to (self-) detect whether another enclave with the same binary is running on the same platform. To do so, CloneBuster relies on a cache-based covert channel for enclaves to signal their presence to (and detect the presence of) clones on the same machine. We show that CloneBuster is robust despite a malicious OS, only incurs a marginal impact on the application performance, and adds approximately 800 LoC to the TCB. When used in conjunction with monotonic counters, CloneBuster allows applications to benefit from a comprehensive protection against forking attacks.

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

↑