journal article·2018-08-05Open access

Fast and Secure Implementation of Modular Exponentiation for Mitigating Fine-Grained Cache Attacks

Youngjoo Shin

Applied Sciences· Volume 8· Issue 8

Abstract

Constant-time technique is of crucial importance to prevent secrets of cryptographic algorithms from leakage by cache attacks. In this paper, we propose Permute-Scatter-Gather, a novel constant-time method for the modular exponentiation that is used in the RSA cryptosystem. On the basis of the scatter-gather design, our method utilizes pseudo-random permutation to obfuscate memory access patterns. Based on this strategy, the resistance against fine-grained cache attacks is ensured, i.e., providing the higher level of security than the existing scatter-gather implementations. Evaluation shows that our method outperforms the OpenSSL library at most 11% in the mainstream Intel processors.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Security and Verification in Computing · Cloud Data Security Solutions · Cryptography and Data Security

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computer and Information Engineering, Kwangwoon University, 20 Kwangwoon-ro, Nowon-gu, Seoul 01897, Korea

Funding

National Research Foundation of Korea

References (26)

Show source-provided references
1. Liu, F., Yarom, Y., Ge, Q., Heiser, G., and Lee, R.B. (2015, January 18–20). Last-level cache side-channel attacks are practical. Proceedings of the 2015 IEEE Symposium on Security and Privacy, San Jose, CA, USA.10.1109/SP.2015.43 ↗
2. Irazoqui, G., Eisenbarth, T., and Sunar, B. (2015, January 17–21). S$A: A shared cache attack that works across cores and defies VM sandboxing—And its application to AES. Proceedings of the 2015 IEEE Symposium on Security and Privacy, San Jose, CA, USA.10.1109/SP.2015.42 ↗
3. Gulmezoglu, B., Irazoqui, G., Eisenbarth, T., and Sunar, B. (2016, January 17–19). Cache Attacks Enable Bulk Key Recovery on the Cloud. Proceedings of the International Conference on Cryptographic Hardware and Embedded Systems (CHES 2016), Santa Barbara, CA, USA.
4. Disselkoen, C., Kohlbrenner, D., Porter, L., and Tullsen, D. (2017, January 16–18). PRIME+ABORT: A Timer-Free High-Precision L3 Cache Attack using Intel TSX. Proceedings of the 26th USENIX Security Symposium, Vancouver, BC, Canada.
5. Yarom, Y., and Falkner, K. (2014, January 20–22). Flush + Reload: A High Resolution, Low Noise, L3 Cache Side-Channel Attack. Proceedings of the 23rd USENIX Security Symposium, San Diego, CA, USA.
6. Yarom, Y., and Benger, N. (2014). Recovering OpenSSL ECDSA Nonces Using the Flush + Reload Cache Side-Channel Attack, International Association for Cryptologic Research. IACR Cryptol. ePrint Archive, Report 2014/140.
7. Berk, G., Inci, M.S., Irazoqui, G., Eisenbarth, T., and Sunar, B. (2015, January 14–15). A Faster and More Realistic Flush + Reload Attack on AES. Proceedings of the International Workshop on Constructive Side-Channel Analysis and Secure Design (COSADE 2015), Graz, Austria.
8. Gruss, D., Spreitzer, R., and Mangard, S. (2015, January 12–14). Cache Template Attacks: Automating Attacks on Inclusive Last-Level Caches. Proceedings of the 24th USENIX Security Symposium, Washington, DC, USA.
9. Gruss, D., Maurice, C., Wagner, K., and Mangard, S. (2016, January 13–14). Flush+Flush: A Fast and Stealthy Cache Attack. Proceedings of the 13th International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment (DIMVA 2006), Berlin, Germany.10.1007/978-3-319-40667-1_14 ↗
10. Zhang, Y., Juels, A., Reiter, M.K., and Ristenpart, T. (2014, January 3–7). Cross-Tenant Side-Channel Attacks in PaaS Clouds. Proceedings of the 2014 SIGSAC ACM Conference on Computer and Communications Security (CCS 2014), Scottsdale, AR, USA.10.1145/2660267.2660356 ↗
11. A Survey of Microarchitectural Timing Attacks and Countermeasures on Contemporary Hardware10.1007/s13389-016-0141-6 ↗
12. Garman, C., Green, M., Kaptchuk, G., Miers, I., and Rushanan, M. (2016, January 10–12). Dancing on the Lip of the Volcano: Chosen Ciphertext Attacks on Apple iMessage. Proceedings of the 25th USENIX Security Symposium is sponsored by USENIX, Austin, TX, USA.
13. García, C.P., and Brumley, B.B. (2017, January 16–18). Constant-Time Callees with Variable-Time Callers. Proceedings of the 26th USENIX Security Symposium, Vancouver, BC, Canada.
14. Genkin, D., Valenta, L., and Yarom, Y. (November, January 30). May the Fourth Be With You: A Microarchitectural Side Channel Attack on Several Real-World Applications of Curve25519. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security (CCS 2017), Dallas, TX, USA.10.1145/3133956.3134029 ↗
15. Kaufmann, T., Pelletier, H., Vaudenay, S., and Villegas, K. (2016, January 14–16). When constant-time source yields variable-time binary: Exploiting curve25519-donna built with MSVC 2015. Proceedings of the 15th International Conference on Cryptology and Network Security (CANS 2016), Milan, Italy.10.1007/978-3-319-48965-0_36 ↗
16. Gopal, V., Guilford, J., Ozturk, E., Feghali, W., Wolrich, G., and Dixon, M. (2009, January 27). Fast and Constant-Time Implementation of Modular Exponentiation. Proceedings of the Embedded Systems and Communications Security, Niagara Falls, NY, USA.
17. A method for obtaining digital signatures and public-key cryptosystems10.1145/359340.359342 ↗
18. OpenSSL (2018, August 05). Available online: https://www.openssl.org/.
19. Brickell, E. (October, January 28). Technologies to improve platform security. Proceedings of the Workshop on Cryptographic Hardware and Embedded Systems, Nara, Japan.
20. Brickell, E. (March, January 27). The impact of cryptography on platform security. Proceedings of the CT-RSA 2012, San Francisco, CA, USA.
21. CacheBleed: A Timing Attack on OpenSSL Constant Time RSA10.1007/s13389-017-0152-y ↗
22. Bos, J., and Coster, M. (1989, January 20–24). Addition chain heuristics. Proceedings of the Conference on the Theory and Application of Cryptology CRYPTO, Santa Barbara, CA, USA.
23. Ernie Brickell, G.G., and Seifert, J.P. (2006, January 13–17). Mitigating cache/timing based side-channels in AES and RSA software implementations. Proceedings of the RSA Conference 2006 Session DEV-203, San Jose, CA, USA.
24. Fog, A. (2016). The Microarchitecture of Intel, AMD and via CPUs: An Optimization Guide for Assembly Programmers and Compiler Makers, Technical University of Denmark.
25. Intel (2018). Intel 64 and IA-32 Architectures Optimization Reference Manual (April 2018), Intel.
26. Intel (2018). Intel 64 and IA-32 Architectures Software Developer Manuals (March 2018), Intel.