Acıiçmez et al.: branch prediction analysis reads RSA exponent bits
Onur Acıiçmez, Çetin Kaya Koç and Jean-Pierre Seifert showed that a spy process can infer the direction of secret-dependent branches in a victim (such as the square-or-multiply decision in RSA exponentiation) by manipulating and timing the shared branch target buffer. Their 'Simple Branch Prediction Analysis' (2006-07) recovered most exponent bits from a single OpenSSL RSA execution in a controlled setting.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
This work extended side-channel thinking from caches to other shared microarchitectural predictors, foreshadowing Spectre's branch-predictor poisoning (2018), BranchScope (2018) and Indirector (2024). Its lesson is that eliminating secret-dependent table lookups is not enough: secret-dependent control flow also leaks, so constant-time code must avoid both.
Published as ePrint 2006/288 (CT-RSA 2007) and 2006/351 (ASIACCS 2007). Practical exploitation at the time required favourable conditions, hence 'theoretical' impact here.
Sources
- paperPredicting Secret Keys via Branch Prediction (ePrint 2006/288, CT-RSA 2007)IACR ePrint, eprint.iacr.org
- paperOn the Power of Simple Branch Prediction Analysis (ePrint 2006/351, ASIACCS 2007)IACR ePrint, eprint.iacr.org