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

新幽灵时代的恒定时间基础

Constant-Time Foundations for the New Spectre Era

Sunjay Cauligi, Craig Disselkoen, Klaus v. Gleissenthall, Dean Tullsen, Deian Stefan, Tamara Rezk, Gilles Barthe

摘要:

恒定时间规则是一种基于软件的对策,用于保护高保证加密实现免受定时侧信道攻击。常数时间是有效的(它可以防止许多已知的攻击),严格的(它可以使用程序语义形式化),并服从自动验证。然而,微体系结构攻击的出现使得今天存在的恒定时间变得不那么有用。本文奠定了基础,在投机和乱序执行的存在下,常数时间编程。我们提出了一个操作语义和恒时程序在这个扩展设置的正式定义。我们的语义避免形式化的微架构功能(而不是假设对手的控制下),并产生一个概念的恒定时间,保持优雅和易处理的通常的概念。我们证明了我们的语义在两个方面的相关性:第一,通过对比现有的幽灵般的攻击与我们的定义的恒定时间。其次,通过实现一个静态分析工具Pitchfork,它可以检测在现实世界的加密库中违反我们扩展的恒定时间属性的行为。

英文摘要:

The constant-time discipline is a software-based countermeasure used for protecting high assurance cryptographic implementations against timing side-channel attacks. Constant-time is effective (it protects against many known attacks), rigorous (it can be formalized using program semantics), and amenable to automated verification. Yet, the advent of micro-architectural attacks makes constant-time as it exists today far less useful. This paper lays foundations for constant-time programming in the presence of speculative and out-of-order execution. We present an operational semantics and a formal definition of constant-time programs in this extended setting. Our semantics eschews formalization of microarchitectural features (that are instead assumed under adversary control), and yields a notion of constant-time that retains the elegance and tractability of the usual notion. We demonstrate the relevance of our semantics in two ways: First, by contrasting existing Spectre-like attacks with our definition of constant-time. Second, by implementing a static analysis tool, Pitchfork, which detects violations of our extended constant-time property in real world cryptographic libraries.

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

↑