arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.13124cs.CR
收藏

Cipherfix:缓解软件中的密文侧信道攻击

Cipherfix: Mitigating Ciphertext Side-Channel Attacks in Software

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

AI总结:

本文提出软件方案Cipherfix,通过污点跟踪与二进制插桩定位敏感数据并在写入内存前掩码,无需重编译即可缓解TEE中的密文侧信道攻击。

摘要:

可信执行环境(TEE)通过提供额外的硬件辅助安全保证,为在云中运行工作负载提供了无需信任云服务提供商的环境。然而,作为抵御试图读取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.

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

↑