Constant-time foundations for the new spectre era
Constant-time foundations for the new spectre era
复制标题
DOI:
10.1145/3385412.3385970
复制
发表时间:
2019-10
期刊:
影响因子:
--
通讯作者:
Sunjay Cauligi;Craig Disselkoen;K. V. Gleissenthall;D. Tullsen;D. Stefan;Tamara Rezk;G. Barthe
中科院分区:
文献类型:
--
作者:
Sunjay Cauligi;Craig Disselkoen;K. V. Gleissenthall;D. Tullsen;D. Stefan;Tamara Rezk;G. Barthe
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.