journal article·2020-05-29Open access

On the Security of Practical Mail User Agents against Cache Side-Channel Attacks

Hodong Kim, Hyundo Yoon, Youngjoo Shin, Junbeom Hur

Applied Sciences· Volume 10· Issue 11

Abstract

Mail user agent (MUA) programs provide an integrated interface for email services. Many MUAs support email encryption functionality to ensure the confidentiality of emails. In practice, they encrypt the content of an email using email encryption standards such as OpenPGP or S/MIME, mostly implemented using GnuPG. Despite their widespread deployment, there has been insufficient research on their software structure and the security dependencies among the software components of MUA programs. In order to understand the security implications of the structures and analyze any possible vulnerabilities of MUA programs, we investigated a number of MUAs that support email encryption. As a result, we found severe vulnerabilities in a number of MUAs that allow cache side-channel attacks in virtualized desktop environments. Our analysis reveals that the root cause originates from the lack of verification and control over the third-party cryptographic libraries that they adopt. In order to demonstrate this, we implemented a cache side-channel attack on RSA in GnuPG and then conducted an evaluation of the vulnerability of 13 MUAs that support email encryption in Ubuntu 14.04, 16.04 and 18.04. Based on our experiment, we found that 10 of these MUA programs (representing approximately 77% of existing MUA programs) allow the installation of a vulnerable version of GnuPG, even when the latest version of GnuPG, which is secure against most cache side-channel attacks, is in use. In order to substantiate the importance of the vulnerability we discovered, we conducted a FLUSH+RELOAD attack on these MUA programs and demonstrated that the attack restored 92% of the bits of the 2048-bit RSA private key when the recipients read a single encrypted email.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Malware Detection Techniques · Security and Verification in Computing · Cloud Data Security Solutions

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

Affiliations

Department of Computer Science and Engineering, Korea University, Seoul 02841, Korea

School of Computer and Information Engineering, Kwangwoon University, Seoul 01897, Korea

Funding

Defense Acquisition Program Administration and Agency for Defense Development of Korea

References (40)

Show source-provided references
1. The Radicati Group, Inc. (2018). Email Statistics Report, 2018–2022, The Radicati Group, Inc.. Technical Report.
2. Making sense from Snowden: What’s significant in the NSA surveillance revelations10.1109/MSP.2013.90 ↗
3. Egelman, S., Cranor, L.F., and Hong, J. (2008, January 5–10). You’ve been warned: An empirical study of the effectiveness of web browser phishing warnings. Proceedings of the 26th ACM Conference on Human Factors in Computing Systems (CHI), Florence, Italy.10.1145/1357054.1357219 ↗
4. Wikileaks (2020, May 27). VP Contender Sarah Palin Hacked. Available online: https://wikileaks.org/wiki/VP_contender_Sarah_Palin_hacked.
5. Wikileaks (2020, May 27). Sony Email Archive. Available online: https://wikileaks.org/sony/.
6. Wikileaks (2020, May 27). Hillary Clinton Email Archive. Available online: https://wikileaks.org/clinton-emails/.
7. Amnesty International (2020, May 27). VerschlüSselte Kommunikation via PGP Oder S/MIME. Available online: https://www.amnesty.de/keepitsecret.
8. United Nations Educational, Scientific and Cultural Organization and Reporters Without Borders (2017). Safety Guide for Journalists—A Handbook for Reporters in High-Risk Environments, United Nations Educational, Scientific and Cultural Organization and Reporters Without Borders.
9. (2020, May 27). Got a Confidential News Tip? The New York Times. Available online: https://www.nytimes.com/tips?module=inline.
10. The Washington Post (2020, May 27). Confidential Tips—Maximize Your Data Security. Available online: https://www.washingtonpost.com/anonymous-news-tips/?utm_term=.feb659746de3.
11. The Guardian (2020, May 27). How to Contact the Guardian Securely. Available online: https://www.theguardian.com/help/2016/sep/19/how-to-contact-the-guardian-securely.
12. Electronic Frontier Foundation (2020, May 27). How to: Use PGP for Windows. Available online: https://ssd.eff.org/en/module/how-use-pgp-windows.
13. ITFE (2007). OpenPGP Message Format, ITFE. RFC4880.
14. (2020, May 27). Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.2 Message Specification. Available online: https://tools.ietf.org/html/rfc5751.
15. The GNU Privacy Guard (GnuPG) (2020, May 27). GNU Project. Available online: https://www.gnupg.org.
16. Gullasch, D., Bangerter, E., and Krenn, S. (2011, January 22–25). Cache games–Bringing access-based cache attacks on AES to practice. Proceedings of the 32nd IEEE Symposium on Security and Privacy (SP), Berkeley, CA, USA.10.1109/SP.2011.22 ↗
17. 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 (USENIX Security), San Diego, CA, USA.
18. Liu, F., Yarom, Y., Ge, Q., Heiser, G., and Lee, R.B. (2015, January 17–21). Last-Level Cache Side-Channel Attacks are Practical. Proceedings of the IEEE Symposium on Security & Privacy, San Jose, CA, USA.10.1109/SP.2015.43 ↗
19. Daniel Gruss, R.S., 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.
20. Gruss, D., Maurice, C., Wagner, K., and Mangard, S. (2016, January 7–8). Flush+Flush: A fast and stealthy cache attack. Proceedings of the 13th Conference on Detection of Intrusions and Malware & Vulnerability Assessment, San Sebastián, Spain.10.1007/978-3-319-40667-1_14 ↗
21. Irazoqui, G., Inci, M.S., Eisenbarth, T., and Sunar, B. (2015, January 14–17). Lucky 13 strikes back. Proceedings of the 10th ACM Symposium on Information, Computer and Communications Security (AsiaCCS), Singapore.10.1145/2714576.2714625 ↗
22. Ronen, E., Gillham, R., Genkin, D., Shamir, A., Wong, D., and Yarom, Y. (2019, January 20–22). The 9 Lives of Bleichenbacher’s CAT: New Cache ATtacks on TLS Implementations. Proceedings of the 40th IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA.10.1109/SP.2019.00062 ↗
23. Kim, H., Yoon, H., Shin, Y., and Hur, J. (2020, January 7–10). Cache Side-Channel Attack on Mail User Agent. Proceedings of the 2020 International Conference on Information Networking (ICOIN), Barcelona, Spain.10.1109/ICOIN48656.2020.9016619 ↗
24. Yan, L. (2011, January 27–29). Development and application of desktop virtualization technology. Proceedings of the 2011 IEEE International Conference on Communication Software and Networks (ICCSN), Xi’an, China.10.1109/ICCSN.2011.6013725 ↗
25. Zhang, Y., Juels, A., Reiter, M.K., and Ristenpart, T. (2012, January 16–18). cross-VM side channels and their use to extract private keys. Proceedings of the 19th ACM Conference on Computer and Communications Security (CCS), Raleigh, NC, USA.10.1145/2382196.2382230 ↗
26. Coron, J.S. (1999, January 12–13). Resistance against differential power analysis for elliptic curve cryptosystems. Proceedings of the First International Workshop on Cryptographic Hardware and Embedded Systems (CHES), Worcester, MA, USA.10.1007/3-540-48059-5_25 ↗
27. Alrwais, S., Yuan, K., Alowaisheq, E., Liao, X., Oprea, A., Wang, X., and Li, Z. (2016, January 5–9). Catching Predators at Watering Holes: Finding and Understanding Strategically Compromised Websites. Proceedings of the 32nd Annual Conference on Computer Security Applications (ACSAC), Los Angeles, CA, USA.10.1145/2991079.2991112 ↗
28. Sebastian Berndt, M.L. (November, January 30). Algorithm Substitution Attacks from a Steganographic Perspective. Proceedings of the ACM Conference on Computer and Communications Security, Dallas, TX, USA.
29. Key Recovery Method for CRT Implementation of RSA
30. Al Fardan, N.J., and Paterson, K.G. (2013, January 19–22). Lucky thirteen: Breaking the TLS and DTLS record protocols. Proceedings of the 34th IEEE Symposium on Security and Privacy (SP), Berkeley, CA, USA.10.1109/SP.2013.42 ↗
31. Bleichenbacher, D. (1998, January 23–27). Chosen ciphertext attacks against protocols based on the RSA encryption standard PKCS# 1. Proceedings of the 18th Annual International Cryptology Conference (CRYPTO), Santa Barbara, CA, USA.10.1007/BFb0055716 ↗
32. Böck, H., Somorovsky, J., and Young, C. (2018, January 15–17). Return Of Bleichenbacher’s Oracle Threat (ROBOT). Proceedings of the 27th USENIX Security Symposium (USENIX Security), Baltimore, MD, USA.
33. Whitten, A., and Tygar, J.D. (1999, January 23–36). Why Johnny Can’t Encrypt: A Usability Evaluation of PGP 5.0. Proceedings of the 8th USENIX Security Symposium (USENIX Security), Washington, DC, USA.
34. Sheng, S., Broderick, L., Koranda, C.A., and Hyland, J.J. (2006, January 12–14). Why johnny still can’t encrypt: Evaluating the usability of email encryption software. Proceedings of the Second Symposium On Usable Privacy and Security (SOUPS), Pittsburgh, PA, USA.
35. Ruoti, S., Andersen, J., Zappala, D., and Seamons, K. (2015). Why Johnny still, still can’t encrypt: Evaluating the usability of a modern PGP client. arXiv.
36. Ristenpart, T., Tromer, E., Shacham, H., and Savage, S. (2009, January 9–13). Hey, you, get off of my cloud: Exploring information leakage in third-party compute clouds. Proceedings of the 16th ACM Conference on Computer and Communications Security (CCS), Chicago IL, USA.10.1145/1653662.1653687 ↗
37. Suzaki, K., Iijima, K., Yagi, T., and Artho, C. (2011, January 10). Memory deduplication as a threat to the guest OS. Proceedings of the 4th European Workshop on System Security (EuroSec), Salzburg, Austria.10.1145/1972551.1972552 ↗
38. Davis, D. (2001, January 25–30). Defective Sign & Encrypt in S/MIME, PKCS# 7, MOSS, PEM, PGP, and XML. Proceedings of the 2001 USENIX Annual Technical Conference, General Track, Boston, MA, USA.
39. Poddebniak, D., Dresen, C., Müller, J., Ising, F., Schinzel, S., Friedberger, S., Somorovsky, J., and Schwenk, J. (2018, January 15–17). Efail: Breaking S/MIME and OpenPGP Email Encryption using Exfiltration Channels. Proceedings of the 27th USENIX Security Symposium (USENIX Security), Baltimore, MD, USA.
40. Ronen, E., Paterson, K.G., and Shamir, A. (2018, January 15–19). Pseudo constant time implementations of TLS are only pseudo secure. Proceedings of the 25th ACM Conference on Computer and Communications Security (CCS), Toronto, ON, Canada.10.1145/3243734.3243775 ↗