CipherGuard: Compiler-aided Mitigation against Ciphertext Side-channel Attacks
Ke Jiang, Sen Deng, Yinshuai Li, Shuai Wang, Tianwei Zhang, Yinqian Zhang

TL;DR
CipherGuard is a compiler-based tool that mitigates ciphertext side-channel attacks in TEEs by employing multiple defense strategies, achieving high security with minimal performance overhead.
Contribution
It introduces a novel compiler-assisted approach within LLVM to effectively counter ciphertext side channels with improved efficiency over existing methods.
Findings
CipherGuard significantly reduces side-channel leakage risks.
It achieves an average performance overhead of 1.41X.
It outperforms the state-of-the-art defense CipherFix.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCryptographic Implementations and Security · Security and Verification in Computing · Advanced Malware Detection Techniques
