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

CipherGuard:编译器辅助的密文侧信道攻击缓解

CipherGuard: Compiler-aided Mitigation against Ciphertext Side-channel Attacks

Southern University of Science and Technology(南方科技大学);Hong Kong University of Science and Technology(香港科技大学);Nanyang Technological University(南洋理工大学)

Ke Jiang, Sen Deng, Yinshuai Li, Shuai Wang, Tianwei Zhang, Yinqian Zhang

AI总结:

针对TEE中确定性内存加密导致的密文侧信道攻击,提出编译器辅助的缓解工具CipherGuard,通过多种策略高效增强密码实现安全性,平均性能开销仅1.41倍。

摘要:

近期,可信执行环境(TEEs)中确定性内存加密所引发的新型密文侧信道,使得密文在顺序写入同一内存地址时能够显现出可识别的模式。能够读取TEE中加密内存的攻击者,可能通过分析这些变化的密文模式来推断明文。在本文中,我们设计了CipherGuard,一种基于编译器的缓解工具,以高效且安全地抵御密文侧信道攻击。CipherGuard基于LLVM生态系统,并包含多种防御策略,包括软件辅助的概率加密、秘密感知的寄存器分配以及基于转移的混淆。CipherGuard的设计表明,编译器技术对于缓解代码生成的细粒度控制及辅助组件管理非常有效。通过全面评估,我们证明CipherGuard能够比现有最先进的防御手段CipherFix更高效地增强多种密码实现的的安全性。在其最高效的策略中,CipherGuard的平均性能开销仅为1.41倍,最大开销为1.95倍。

英文摘要:

Recently, the new ciphertext side channels resulting from the deterministic memory encryption in Trusted Execution Environments (TEEs), enable ciphertexts to manifest identifiable patterns when being sequentially written to the same memory address. Attackers with read access to encrypted memory in TEEs can potentially deduce plaintexts by analyzing these changing ciphertext patterns. In this paper, we design CipherGuard, a compiler-based mitigation tool to counteract ciphertext side channels with high efficiency and security guarantees. CipherGuard is based on the LLVM ecosystem, and encompasses multiple defense strategies, including software-assisted probabilistic encryption, secret-aware register allocation, and diversion-based obfuscation. The design of CipherGuard demonstrates that compiler techniques are highly effective for fine-grained control over mitigation code generation and assisted component management. Through a comprehensive evaluation, it demonstrates that CipherGuard can strengthen the security of various cryptographic implementations more efficiently than existing state-of-the-art defense, i.e., CipherFix. In its most efficient strategy, CipherGuard incurs an average performance overhead of only 1.41X, with a maximum of 1.95X.

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

↑