Abstract
Microarchitectural Data Sampling (MDS) [16, 18] enables to observe in-flight data that has recently been loaded or stored in shared short-time buffers on a physical CPU core. In-flight data sampled from line-fill buffers (LFBs) are also known as “ZombieLoads” [16]. We present a new method that links the analysis of ZombieLoads to Differential Power Analysis (DPA) techniques and provides an alternative way to derive the secret key of block ciphers. This method compares observed ZombieLoads with predicted intermediate values that occur during cryptographic computations depending on a key hypothesis and known data. We validate this approach using an Advanced Encryption Standard (AES) software implementation. Further, we provide a novel technique of cache line fingerprinting that reduces the superposition of ZombieLoads from different cache lines in the data sets resulting from an MDS attack. Thereby, this technique is helpful to reveal static secret data such as AES round keys which is shown in practice on an AES implementation.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
- 2.
Kernel parameters: nokaslr nopti mds=off tsx_async_abort=off.
- 3.
The source code of all implementations used in this paper can be found at https://github.com/tillschlueter/zombieload-on-block-ciphers.
References
Bos, J.W., Hubain, C., Michiels, W., Teuwen, P.: Differential computation analysis: hiding your white-box designs is not enough. In: Gierlichs, B., Poschmann, A.Y. (eds.) CHES 2016. LNCS, vol. 9813, pp. 215–236. Springer, Heidelberg (2016). https://doi.org/10.1007/978-3-662-53140-2_11
Canella, C., et al.: Fallout: leaking data on meltdown-resistant CPUs. In: Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, CCS 2019, pp. 769–784. ACM, New York (2019)
Canella, C., et al.: A systematic evaluation of transient execution attacks and defenses, May 2019. https://arxiv.org/pdf/1811.05441v3
Intel Corp.: Deep dive: snoop-assisted L1 data sampling (2020). https://software.intel.com/security-software-guidance/deep-dives/deep-dive-snoop-assisted-l1-data-sampling
Intel Corp.: Processors affected: microarchitectural data sampling (2020). https://software.intel.com/security-software-guidance/insights/processors-affected-microarchitectural-data-sampling
Kernel Development Community: Hardware vulnerabilities - The Linux Kernel documentation (2020). https://www.kernel.org/doc/html/v5.8/admin-guide/hw-vuln/index.html. See MDS and TAA subsections
Kocher, P., Jaffe, J., Jun, B.: Differential power analysis. In: Wiener, M. (ed.) CRYPTO 1999. LNCS, vol. 1666, pp. 388–397. Springer, Heidelberg (1999). https://doi.org/10.1007/3-540-48405-1_25
Kocher, P., et al.: Spectre attacks: exploiting speculative execution. In: 40th IEEE Symposium on Security and Privacy (S&P 2019), San Francisco (2019)
Lipp, M., et al.: Meltdown: reading kernel memory from user space. In: 27th USENIX Security Symposium (USENIX Security 18). USENIX Association, Baltimore, August 2018
Mangard, S., Oswald, E., Popp, T.: Power Analysis Attacks. Springer, Boston, MA (2007). https://doi.org/10.1007/978-0-387-38162-6
McQueen, C.: aes-min, December 2018. https://github.com/cmcqueen/aes-min/blob/728e156091/README.md
Moghimi, D., Lipp, M., Sunar, B., Schwarz, M.: Medusa: microarchitectural data leakage via automated attack synthesis. In: 29th USENIX Security Symposium (USENIX Security 20). USENIX Association, Boston, August 2020
National Institute of Standards and Technology: Specification for the Advanced Encryption Standard (AES), November 2001. https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197.pdf. FIPS 197
Ragab, H., Milburn, A., Razavi, K., Bos, H., Giuffrida, C.: CrossTalk: speculative data leaks across cores are real (2020). https://download.vusec.net/papers/crosstalk_sp21.pdf
Schlüter, T.: ZombieLoad-Angriff auf den Advanced Encryption Standard. Master’s thesis, Bonn-Rhein-Sieg University of Applied Sciences, January 2020
Schwarz, M., et al.: ZombieLoad: cross-privilege-boundary data sampling. In: Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, CCS 2019, pp. 753–768. ACM, New York (2019)
van Schaik, S., Minkin, M., Kwong, A., Genkin, D., Yarom, Y.: CacheOut: leaking data on Intel CPUs via Cache Evictions (2020). https://arxiv.org/pdf/2006.13353v1.pdf
van Schaik, S., et al.: RIDL: rogue in-flight data load. In: 40th IEEE Symposium on Security and Privacy (S&P 2019). San Francisco (2019)
Wampler, J., Martiny, I., Wustrow, E.: ExSpectre: hiding malware in speculative execution. In: Proceedings 2019 Network and Distributed System Security Symposium. Internet Society, San Diego (2019)
Acknowledgments
We would like to thank our anonymous reviewers and our shepherd Daniel Gruss for their valuable feedback. We also thank Michael Schwarz for sharing his knowledge on the subtleties of implementing microarchitectural attacks.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Schlüter, T., Lemke-Rust, K. (2021). Differential Analysis and Fingerprinting of ZombieLoads on Block Ciphers. In: Liardet, PY., Mentens, N. (eds) Smart Card Research and Advanced Applications. CARDIS 2020. Lecture Notes in Computer Science(), vol 12609. Springer, Cham. https://doi.org/10.1007/978-3-030-68487-7_10
Download citation
DOI: https://doi.org/10.1007/978-3-030-68487-7_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-68486-0
Online ISBN: 978-3-030-68487-7
eBook Packages: Computer ScienceComputer Science (R0)