arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1905.13332cs.CR
收藏

通过秘密增强的抽象解释识别基于缓存的边信道

Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation

Shuai Wang, Yuyan Bao, Xiao Liu, Pei Wang, Danfeng Zhang, Dinghao Wu

摘要:

基于缓存的侧通道使专门的攻击者能够通过测量缓存访问模式来揭示程序秘密。实际的攻击已经被证明是针对真实世界的加密算法实现,如RSA,AES和ElGamal。到目前为止,识别由于基于缓存的侧信道导致的信息泄漏,无论是静态还是动态方式,仍然是一个挑战:现有方法无法同时提供高精度,全覆盖和良好的可扩展性,从而阻碍了它们在现实世界场景中的实际使用。在本文中,我们提出了一种新的静态分析方法对二进制检测缓存为基础的侧通道。我们使用抽象解释来推理每个程序点上的抽象值的程序状态。为了使这种抽象的解释可扩展到现实世界的密码系统,同时提供高精度和全覆盖,我们提出了一种新的抽象域称为秘密增强符号域(SAS)。SAS跟踪程序秘密和对它们的依赖性以获得精确度,而它只跟踪粗粒度的公共信息以获得可扩展性。我们已经将所提出的技术实现到一个名为CacheS的实用工具中,并在现实世界的加密库中广泛使用的加密算法(包括Libgcrypt,OpenSSL和mbedTLS)的实现上对其进行了评估。CacheS成功证实了之前研究报告的154个信息泄露和54个之前未知的泄露。我们已经向开发商报告了我们的发现。他们证实,许多未知的信息泄露确实会导致潜在的侧渠道。

英文摘要:

Cache-based side channels enable a dedicated attacker to reveal program secrets by measuring the cache access patterns. Practical attacks have been shown against real-world crypto algorithm implementations such as RSA, AES, and ElGamal. By far, identifying information leaks due to cache-based side channels, either in a static or dynamic manner, remains a challenge: the existing approaches fail to offer high precision, full coverage, and good scalability simultaneously, thus impeding their practical use in real-world scenarios. In this paper, we propose a novel static analysis method on binaries to detect cache-based side channels. We use abstract interpretation to reason on program states with respect to abstract values at each program point. To make such abstract interpretation scalable to real-world cryptosystems while offering high precision and full coverage, we propose a novel abstract domain called the Secret-Augmented Symbolic domain (SAS). SAS tracks program secrets and dependencies on them for precision, while it tracks only coarse-grained public information for scalability. We have implemented the proposed technique into a practical tool named CacheS and evaluated it on the implementations of widely-used cryptographic algorithms in real-world crypto libraries, including Libgcrypt, OpenSSL, and mbedTLS. CacheS successfully confirmed a total of 154 information leaks reported by previous research and 54 leaks that were previously unknown. We have reported our findings to the developers. And they confirmed that many of those unknown information leaks do lead to potential side channels.

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

↑