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

一种用于密码软件边通道检测的Cache细化类型

Cache Refinement Type for Side-Channel Detection of Cryptographic Software

Ke Jiang, Yuyan Bao, Shuai Wang, Zhibo Liu, Tianwei Zhang

摘要:

缓存侧信道攻击对软件安全和隐私构成了严重威胁,尤其是对密码系统。在本文中,我们提出了CaType,一种新的细化类型为基础的工具,用于检测高速缓存侧通道加密软件。与以前的工作相比,CaType提供了以下优点:(1)CaType第一次使用x86汇编代码上的细化类型来分析缓存侧通道。它揭示了改进类型的几个重要而有效的增强,包括位级粒度跟踪,区分变量的不同影响,精确的类型推断和高可伸缩性。(2)CaType是第一个考虑基于盲法防御的加密库静态分析器。(3)从实现的角度来看,CaType使用潜在易受攻击的控制流分支的缓存布局,而不是缓存状态来抑制误报。我们评估CaType在识别真实世界的加密软件中的侧通道漏洞,包括来自OpenSSL和Libgcrypt的RSA,ElGamal和(EC)DSA。CaType捕获所有已知的缺陷,检测以前未知的漏洞,并揭示以前工具的几个误报。在性能方面,CaType在分析相同库时比CacheD快16倍,比CacheS快131倍。这些评估结果证实了CaType在以高精度、高效率和可扩展性识别侧通道缺陷方面的能力。

英文摘要:

Cache side-channel attacks exhibit severe threats to software security and privacy, especially for cryptosystems. In this paper, we propose CaType, a novel refinement type-based tool for detecting cache side channels in crypto software. Compared to previous works, CaType provides the following advantages: (1) For the first time CaType analyzes cache side channels using refinement type over x86 assembly code. It reveals several significant and effective enhancements with refined types, including bit-level granularity tracking, distinguishing different effects of variables, precise type inferences, and high scalability. (2) CaType is the first static analyzer for crypto libraries in consideration of blinding-based defenses. (3) From the perspective of implementation, CaType uses cache layouts of potential vulnerable control-flow branches rather than cache states to suppress false positives. We evaluate CaType in identifying side channel vulnerabilities in real-world crypto software, including RSA, ElGamal, and (EC)DSA from OpenSSL and Libgcrypt. CaType captures all known defects, detects previously-unknown vulnerabilities, and reveals several false positives of previous tools. In terms of performance, CaType is 16X faster than CacheD and 131X faster than CacheS when analyzing the same libraries. These evaluation results confirm the capability of CaType in identifying side channel defects with great precision, efficiency, and scalability.

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

↑