arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.10749cs.CRcs.PL
收藏

Constantine:使用高效控制和数据流线性化的自动侧通道电阻

Constantine: Automatic Side-Channel Resistance Using Efficient Control and Data Flow Linearization

Pietro Borrello, Daniele Cono D'Elia, Leonardo Querzoni, Cristiano Giuffrida

摘要:

在微架构侧信道的时代,供应商争相部署针对瞬时执行攻击的缓解措施,但留下针对敏感软件的传统侧信道攻击(例如,密码程序)由开发者通过恒定时间编程(即,不存在秘密相关的代码/数据模式)。不幸的是,手工编写恒定时间代码是很困难的,生产端抗通道代码中发现的许多缺陷就是证明。以前的努力,自动转换程序到恒定时间的等价物提供有限的安全性或兼容性保证,阻碍了他们的适用性,以现实世界的软件。在本文中,我们提出了康斯坦丁,一个基于编译器的系统,以自动加固程序对微架构侧通道。Constantine追求一个激进的设计点,其中秘密相关控制和数据流完全线性化(即,总是执行所有涉及的代码/数据访问)。该策略通过构造提供了强大的安全性和兼容性保证,但其自然实现导致了实际程序中的状态爆炸。为了应对这一挑战,Constantine依赖于精心设计的优化,例如实时循环线性化和积极的函数克隆,以进行完全上下文敏感的点分析,这不仅解决了状态爆炸问题,而且还带来了高效和兼容的解决方案。Constantine在标准基准测试中的开销低至16%,并且可以处理来自生产SSL库的完全成熟的组件。

英文摘要:

In the era of microarchitectural side channels, vendors scramble to deploy mitigations for transient execution attacks, but leave traditional side-channel attacks against sensitive software (e.g., crypto programs) to be fixed by developers by means of constant-time programming (i.e., absence of secret-dependent code/data patterns). Unfortunately, writing constant-time code by hand is hard, as evidenced by the many flaws discovered in production side channel-resistant code. Prior efforts to automatically transform programs into constant-time equivalents offer limited security or compatibility guarantees, hindering their applicability to real-world software. In this paper, we present Constantine, a compiler-based system to automatically harden programs against microarchitectural side channels. Constantine pursues a radical design point where secret-dependent control and data flows are completely linearized (i.e., all involved code/data accesses are always executed). This strategy provides strong security and compatibility guarantees by construction, but its natural implementation leads to state explosion in real-world programs. To address this challenge, Constantine relies on carefully designed optimizations such as just-in-time loop linearization and aggressive function cloning for fully context-sensitive points-to analysis, which not only address state explosion, but also lead to an efficient and compatible solution. Constantine yields overheads as low as 16% on standard benchmarks and can handle a fully-fledged component from the production wolfSSL library.

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

↑