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

CacheQL:量化和定位生产软件中的缓存侧通道漏洞

CacheQL: Quantifying and Localizing Cache Side-Channel Vulnerabilities in Production Software

Yuanyuan Yuan, Zhibo Liu, Shuai Wang

摘要:

缓存侧信道攻击通过检查受害者软件如何访问缓存来提取秘密。到目前为止,在不同的场景下,对密码系统和媒体库的实际攻击被证明,推断密钥和重建私人媒体数据,如图像。这项工作首先提出了八个标准,设计一个全面的检测器缓存侧通道漏洞。然后,我们提出了CacheQL,一种满足所有这些标准的新型检测器。CacheQL通过描述记录的边通道跟踪的可重复性来精确量化二进制代码的信息泄漏。此外,CacheQL模型泄漏作为一个合作的游戏,允许信息泄漏被精确地分配到易受缓存侧通道的程序点。CacheQL经过精心优化,可以分析从生产软件中记录的整个侧通道跟踪(每个跟踪可能有数百万条记录),并消除由加密盲法、ORAM或真实世界噪声引入的随机性。我们的评估量化了生产加密和媒体软件的侧通道泄漏。我们进一步本地化以前的检测器报告的漏洞,并确定了几百个新的泄漏网站在最近的OpenSSL(版本。3.0.0)、MbedTLS(ver. 3.0.0),Libgcrypt(ver. 1.9.4)。我们的许多本地化程序点都在密码系统的预处理模块中,由于可扩展性,现有的作品没有分析这些模块。我们还本地化Libjpeg中的漏洞(ver. 2.1.2)泄露关于输入图像的隐私。

英文摘要:

Cache side-channel attacks extract secrets by examining how victim software accesses cache. To date, practical attacks on cryptosystems and media libraries are demonstrated under different scenarios, inferring secret keys and reconstructing private media data such as images. This work first presents eight criteria for designing a full-fledged detector for cache side-channel vulnerabilities. Then, we propose CacheQL, a novel detector that meets all of these criteria. CacheQL precisely quantifies information leaks of binary code, by characterizing the distinguishability of logged side channel traces. Moreover, CacheQL models leakage as a cooperative game, allowing information leakage to be precisely distributed to program points vulnerable to cache side channels. CacheQL is meticulously optimized to analyze whole side channel traces logged from production software (where each trace can have millions of records), and it alleviates randomness introduced by cryptographic blinding, ORAM, or real-world noises. Our evaluation quantifies side-channel leaks of production cryptographic and media software. We further localize vulnerabilities reported by previous detectors and also identify a few hundred new leakage sites in recent OpenSSL (ver. 3.0.0), MbedTLS (ver. 3.0.0), Libgcrypt (ver. 1.9.4). Many of our localized program points are within the pre-processing modules of cryptosystems, which are not analyzed by existing works due to scalability. We also localize vulnerabilities in Libjpeg (ver. 2.1.2) that leak privacy about input images.

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

↑