Differential Analysis and Fingerprinting of ZombieLoads on Block Ciphers

  • Conference paper
  • First Online:
Smart Card Research and Advanced Applications (CARDIS 2020)

Part of the book series: Lecture Notes in Computer Science ((LNSC,volume 12609))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://github.com/cmcqueen/aes-min/tree/728e156091/.

  2. 2.

    Kernel parameters: nokaslr nopti mds=off tsx_async_abort=off.

  3. 3.

    The source code of all implementations used in this paper can be found at https://github.com/tillschlueter/zombieload-on-block-ciphers.

References

  1. 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

    Chapter  Google Scholar 

  2. 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)

    Google Scholar 

  3. Canella, C., et al.: A systematic evaluation of transient execution attacks and defenses, May 2019. https://arxiv.org/pdf/1811.05441v3

  4. 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

  5. Intel Corp.: Processors affected: microarchitectural data sampling (2020). https://software.intel.com/security-software-guidance/insights/processors-affected-microarchitectural-data-sampling

  6. 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

  7. 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

    Chapter  Google Scholar 

  8. Kocher, P., et al.: Spectre attacks: exploiting speculative execution. In: 40th IEEE Symposium on Security and Privacy (S&P 2019), San Francisco (2019)

    Google Scholar 

  9. Lipp, M., et al.: Meltdown: reading kernel memory from user space. In: 27th USENIX Security Symposium (USENIX Security 18). USENIX Association, Baltimore, August 2018

    Google Scholar 

  10. Mangard, S., Oswald, E., Popp, T.: Power Analysis Attacks. Springer, Boston, MA (2007). https://doi.org/10.1007/978-0-387-38162-6

    Book  MATH  Google Scholar 

  11. McQueen, C.: aes-min, December 2018. https://github.com/cmcqueen/aes-min/blob/728e156091/README.md

  12. 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

    Google Scholar 

  13. 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

  14. 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

  15. Schlüter, T.: ZombieLoad-Angriff auf den Advanced Encryption Standard. Master’s thesis, Bonn-Rhein-Sieg University of Applied Sciences, January 2020

    Google Scholar 

  16. 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)

    Google Scholar 

  17. 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

  18. 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)

    Google Scholar 

  19. 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)

    Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Till Schlüter .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics

Navigation