Lune

FSE2024顶会

Towards Efficient Verification of Constant-Time Cryptographic Implementations

Luwei Cai, Fu Song, Taolue Chen

摘要

Timing side-channel attacks exploit secret-dependent execution time to fully or partially recover secrets of cryptographic implementations, posing a severe threat to software security. Constant-time programming discipline is an effective software-based countermeasure against timing side-channel attacks, but developing constant-time implementations turns out to be challenging and error-prone. Current verification approaches/ tools suffer from scalability and precision issues when applied to production software in practice. In this paper, we put forward practical verification approaches based on a novel synergy of taint analysis and safety verification of self-composed programs. Specifically, we first use an IFDS-based lightweight taint analysis to prove that a large number of potential (timing) side-channel sources do not actually leak secrets. We then resort to a precise taint analysis and a safety verification approach to determine whether the remaining potential side-channel sources can actually leak secrets. These include novel constructions of taint-directed semi-cross-product of the original program and its Boolean abstraction, and a taint-directed self-composition of the program. Our approach is implemented as a cross-platform and fully automated tool CT-Prover. The experiments confirm its efficiency and effectiveness in verifying real-world benchmarks from modern cryptographic and SSL/TLS libraries. In particular, CT-Prover identify new, confirmed vulnerabilities of open-source SSL libraries (e.g., Mbed SSL, BearSSL) and significantly outperforms the state-of-the-art tools.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Constant-time foundations for the new spectre era 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Constant-time foundations for the new spectre era 引用了 Spectector: Principled Detection of Speculative Information Flows
  • Constant-time foundations for the new spectre era 引用了 Meltdown: Reading Kernel Memory from User Space
  • Spectector: Principled Detection of Speculative Information Flows 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Spectector: Principled Detection of Speculative Information Flows 引用了 Verifying Constant-Time Implementations
  • Compass: Navigating the Design Space of Taint Schemes for RTL Security Verification 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Compass: Navigating the Design Space of Taint Schemes for RTL Security Verification 引用了 Meltdown: Reading Kernel Memory from User Space
  • Decompiling for Constant-Time Analysis 引用了 Constant-time foundations for the new spectre era
  • Decompiling for Constant-Time Analysis 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Decompiling for Constant-Time Analysis 引用了 Spectector: Principled Detection of Speculative Information Flows
  • Decompiling for Constant-Time Analysis 引用了 Verifying Constant-Time Implementations
  • WaSCR: A WebAssembly Instruction-Timing Side Channel Repairer 引用了 Verifying Constant-Time Implementations
  • Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. WaSCR: A WebAssembly Instruction-Timing Side Channel RepairerLiyan Huang, Junzhou He, Chao Wang, Weihang WangWWW 2025 · 3 次引用
  2. Compass: Navigating the Design Space of Taint Schemes for RTL Security VerificationYuheng Yang, Qinhan Tan, Thomas Bourgeat, Sharad Malik 等ASPLOS 2026 · 1 次引用
  3. Decompiling for Constant-Time AnalysisSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Youcef Bouzid 等OOPSLA 2026 · 1 次引用

它引用的 Paper23

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
  3. Verifying Constant-Time ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, François Dupressoir 等USENIX Security 2016 · 274 次引用
  4. Spectector: Principled Detection of Speculative Information FlowsMarco Guarnieri, Boris Köpf, José F. Morales, Jan Reineke 等S&P 2020 · 177 次引用
  5. Constant-time foundations for the new spectre eraSunjay Cauligi, Craig Disselkoen, Klaus von Gleissenthall, Dean M. Tullsen 等PLDI 2020 · 90 次引用

相关 Paper

  1. Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-LevelLesly-Ann Daniel, Sébastien Bardin, Tamara RezkS&P 2020 · 76 次引用
  2. Formal verification of a constant-time preserving C compilerGilles Barthe, Sandrine Blazy, Benjamin Grégoire, Rémi Hutin 等POPL 2020 · 77 次引用
  3. "They're not that hard to mitigate": What Cryptographic Library Developers Think About Timing AttacksJan Jancar, Marcel Fourné, Daniel De Almeida Braga, Mohamed Sabt 等S&P 2022 · 61 次引用
  4. IODINE: Verifying Constant-Time Execution of HardwareKlaus von Gleissenthall, Rami Gökhan Kici, Deian Stefan, Ranjit JhalaUSENIX Security 2019 · 45 次引用
  5. An Empirical Study Measuring In-The-Wild Cryptographic Microarchitectural Side-Channel PatchesSen Deng, Zhibo Liu, Shuai Wang, Yinqian ZhangCCS 2025
黄昏的海面,两侧是细线勾勒的悬崖