Binsec/Rel: Symbolic binary analyzer for security with applications to constant-Time and secret-erasure - CEA - Commissariat à l’énergie atomique et aux énergies alternatives Accéder directement au contenu
Article Dans Une Revue ACM Transactions on Privacy and Security Année : 2023

Binsec/Rel: Symbolic binary analyzer for security with applications to constant-Time and secret-erasure

Résumé

This paper tackles the problem of designing efficient binary-level verification for a subset of information flow properties encompassing constant-time and secret-erasure. These properties are crucial for cryptographic implementations, but are generally not preserved by compilers. Our proposal builds on relational symbolic execution enhanced with new optimizations dedicated to information flow and binary-level analysis, yielding a dramatic improvement over prior work based on symbolic execution. We implement a prototype, Binsec/Rel, for bug-finding and bounded-verification of constant-time and secret-erasure, and perform extensive experiments on a set of 338 cryptographic implementations, demonstrating the benefits of our approach. Using Binsec/Rel, we also automate two prior manual studies on preservation of constant-time and secret-erasure by compilers for a total of 4,148 and 1,156 binaries respectively. Interestingly, our analysis highlights incorrect usages of volatile data pointer for secret erasure and shows that scrubbing mechanisms based on volatile function pointers can introduce additional register spilling which might break secret-erasure. We also discovered that gcc -O$\varnothing$ and backend passes of clang introduce violations of constant-time in implementations that were previously deemed secure by a state-of-the-art constant-time verification tool operating at LLVM level, showing the importance of reasoning at binary-level.
Fichier principal
Vignette du fichier
2022-tops.pdf (979.86 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

cea-04228169 , version 1 (04-10-2023)

Identifiants

Citer

Lesly-Ann Daniel, Sébastien Bardin, Tamara Rezk. Binsec/Rel: Symbolic binary analyzer for security with applications to constant-Time and secret-erasure. ACM Transactions on Privacy and Security, 2023, 26 (2), pp.11:1-42. ⟨10.1145/3563037⟩. ⟨cea-04228169⟩
70 Consultations
17 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More