论文标题

CIPHERFIX:减轻软件中的密文侧通道攻击

Cipherfix: Mitigating Ciphertext Side-Channel Attacks in Software

论文作者

Wichelmann, Jan, Pätschke, Anna, Wilke, Luca, Eisenbarth, Thomas

论文摘要

可信赖的执行环境(TEE)通过提供其他硬件辅助安全保证,为云中运行工作负载提供了一个环境,而无需信任云服务提供商。但是,主要内存加密是防止系统级攻击者试图阅读发球区内容和物理外芯片攻击者的关键机制是不足的。最近的CipherLeaks通过分析由于确定性内存加密而显示出的密文模式,从TEE保护的实现中攻击了秘密数据。被称为密文侧渠道的基本漏洞既不受到恒定时间代码等最先进的对策或硬件修复的保护。 因此,在本文中,我们提出了一个基于软件的液滴解决方案,可以使现有的二进制文件加热,以便可以在不受密集文本侧渠道的TEE下安全执行,而无需重新编译。我们将污点跟踪与静态和动态二进制仪器相结合,以找到敏感的内存位置,并通过掩盖秘密数据将其写入内存之前来减轻泄漏。这样,尽管内存加密仍然是确定性的,但我们会破坏加密内存中的任何秘密依赖模式。我们表明,我们的概念验证实现可以保护各种恒定时间实现,以防止具有合理开销的密文侧渠道。

Trusted execution environments (TEEs) provide an environment for running workloads in the cloud without having to trust cloud service providers, by offering additional hardware-assisted security guarantees. However, main memory encryption as a key mechanism to protect against system-level attackers trying to read the TEE's content and physical, off-chip attackers, is insufficient. The recent Cipherleaks attacks infer secret data from TEE-protected implementations by analyzing ciphertext patterns exhibited due to deterministic memory encryption. The underlying vulnerability, dubbed the ciphertext side-channel, is neither protected by state-of-the-art countermeasures like constant-time code nor by hardware fixes. Thus, in this paper, we present a software-based, drop-in solution that can harden existing binaries such that they can be safely executed under TEEs vulnerable to ciphertext side-channels, without requiring recompilation. We combine taint tracking with both static and dynamic binary instrumentation to find sensitive memory locations, and mitigate the leakage by masking secret data before it gets written to memory. This way, although the memory encryption remains deterministic, we destroy any secret-dependent patterns in encrypted memory. We show that our proof-of-concept implementation protects various constant-time implementations against ciphertext side-channels with reasonable overhead.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源