Util::Lookup: Exploiting key decoding in cryptographic libraries
Florian Sieck, Sebastian Berndt, Jan Wichelmann, Thomas Eisenbarth

TL;DR
This paper reveals that utility functions in cryptographic libraries, especially base64 decoding, can leak sensitive information and are exploitable even in trusted environments, with recent countermeasures sometimes easing attacks.
Contribution
It identifies and demonstrates the exploitability of utility functions in cryptographic libraries, showing how they leak information and can be attacked with minimal traces.
Findings
Base64 decoding functions leak sufficient information for key recovery.
Recent countermeasures to transient attacks can facilitate these leaks.
Complete RSA key recovery is feasible with optimized side-channel attacks.
Abstract
Implementations of cryptographic libraries have been scrutinized for secret-dependent execution behavior exploitable by microarchitectural side-channel attacks. To prevent unintended leakages, most libraries moved to constant-time implementations of cryptographic primitives. There have also been efforts to certify libraries for use in sensitive areas, like Microsoft CNG and Botan, with specific attention to leakage behavior. In this work, we show that a common oversight in these libraries is the existence of \emph{utility functions}, which handle and thus possibly leak confidential information. We analyze the exploitability of base64 decoding functions across several widely used cryptographic libraries. Base64 decoding is used when loading keys stored in PEM format. We show that these functions by themselves leak sufficient information even if libraries are executed in trusted…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Advanced Malware Detection Techniques · Cryptographic Implementations and Security
