arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2008.12188cs.CR
收藏

CACHE SNIPER:缓存回收的精确定时控制

CACHE SNIPER : Accurate timing control of cache evictions

Samira Briongos, Ida Bruhns, Pedro Malagón, Thomas Eisenbarth, José M. Moya

摘要:

在过去的几年里,微架构侧信道攻击在安全研究中非常突出。高速缓存一直是一个杰出的隐蔽通道,因为它们提供高分辨率和通用的跨核泄漏,即使是简单的用户模式代码执行权限。为了防止这些通用的跨核攻击,所有主要的加密库现在都提供了通过跨核缓存攻击来阻止密钥提取的对策,例如避免秘密相关访问模式和预取数据。在本文中,我们表明,旨在防止简单的缓存攻击的“足够好”的对策保护的实现仍然是脆弱的。我们提出了一种新的攻击,使用一种特殊的定时技术来确定何时开始加密,然后在所需的时刻准确地驱逐数据。这种新的攻击不需要特殊权限,也不需要攻击者和受害者之间的显式同步。我们的攻击的一个关键改进是一种方法,通过利用TSX的瞬时功能并依赖于最近反向工程的L3替换策略,在没有共享内存的情况下,通过单次内存访问从缓存中驱逐数据。我们证明了效率,通过执行异步最后一级缓存攻击,以提取RSA密钥从最新的SSL库,这已特别适应,以避免泄漏的访问模式,并通过提取AES密钥从S盒实现包括在OpenSSL绕过每轮预取打算作为对缓存攻击的保护。

英文摘要:

Microarchitectural side channel attacks have been very prominent in security research over the last few years. Caches have been an outstanding covert channel, as they provide high resolution and generic cross-core leakage even with simple user-mode code execution privileges. To prevent these generic cross-core attacks, all major cryptographic libraries now provide countermeasures to hinder key extraction via cross-core cache attacks, for instance avoiding secret dependent access patterns and prefetching data. In this paper, we show that implementations protected by 'good-enough' countermeasures aimed at preventing simple cache attacks are still vulnerable. We present a novel attack that uses a special timing technique to determine when an encryption has started and then evict the data precisely at the desired instant. This new attack does not require special privileges nor explicit synchronization between the attacker and the victim. One key improvement of our attack is a method to evict data from the cache with a single memory access and in absence of shared memory by leveraging the transient capabilities of TSX and relying on the recently reverse-engineered L3 replacement policy. We demonstrate the efficiency by performing an asynchronous last level cache attack to extract an RSA key from the latest wolfSSL library, which has been especially adapted to avoid leaky access patterns, and by extracting an AES key from the S-Box implementation included in OpenSSL bypassing the per round prefetch intended as a protection against cache attacks.

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

↑