Multicore DRAM Bank-& Row-Conflict Bomb for Timing Attacks in Mixed-Criticality Systems (2404.01910v1)
Abstract: With the increasing use of multicore platforms to realize mixed-criticality systems, understanding the underlying shared resources, such as the memory hierarchy shared among cores, and achieving isolation between co-executing tasks running on the same platform with different criticality levels becomes relevant. In addition to safety considerations, a malicious entity can exploit shared resources to create timing attacks on critical applications. In this paper, we focus on understanding the shared DRAM dual in-line memory module and created a timing attack, that we named the "bank & row conflict bomb", to target a victim task in a multicore platform. We also created a "navigate" algorithm to understand how victim requests are managed by the Memory Controller and provide valuable inputs for designing the bank & row conflict bomb. We performed experimental tests on a 2nd Gen Intel Xeon Processor with an 8GB DDR4-2666 DRAM module to show that such an attack can produce a significant increase in the execution time of the victim task by about 150%, motivating the need for proper countermeasures to help ensure the safety and security of critical applications.
- G. Gala, G. Fohler, P. Tummeltshammer, S. Resch, and R. Hametner, “RT-cloud: Virtualization technologies and cloud computing for railway use-case,” in 24th IEEE International Symposium On Real-Time distributed Computing (IEEE ISORC), IEEE, 2021.
- Online, Scalable Open Architecture for Embedded Edge (SOAFEE). Last accessed:12/22.
- Last accessed:12/22.
- A. Agrawal, G. Fohler, J. Nowotsch, S. Uhrig, and M. Paulitsch, “Poster abstract: Slot-level time-triggered scheduling on cots multicore platform with resource contentions,” in 2016 IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS), 2016.
- G. Farina, G. Gala, M. Cinque, and G. Fohler, “Enabling memory access isolation in real-time cloud systems using intel’s detection/regulation capabilities,” Journal of Systems Architecture, vol. 137, 02 2023.
- G. Farina, G. Gala, M. Cinque, and G. Fohler, “Assessing intel’s memory bandwidth allocation for resource limitation in real-time systems,” in 2022 IEEE 25th International Symposium On Real-Time Distributed Computing (ISORC), 2022.
- G. Monaco, G. Gala, and G. Fohler, “Shared resource orchestration extensions for kubernetes to support real-time cloud containers,” in 2023 IEEE 26th International Symposium on Real-Time Distributed Computing (ISORC), 2023.
- P. Sohal, M. Bechtel, R. Mancuso, H. Yun, and O. Krieger, “A closer look at intel resource director technology (rdt),” in 30th International Conference on Real-Time Networks and Systems, RTNS ’22, (New York, USA), Association for Computing Machinery, 2022.
- N. Suzuki, H. Kim, D. d. Niz, B. Andersson, L. Wrage, M. Klein, and R. Rajkumar, “Coordinated bank and cache coloring for temporal protection of memory accesses,” in 2013 IEEE 16th International Conference on Computational Science and Engineering, 2013.
- M. Bechtel and H. Yun, “Denial-of-service attacks on shared cache in multicore: Analysis and prevention,” in 2019 IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS), 2019.
- M. Bechtel and H. Yun, “Denial-of-service attacks on shared resources in intel’s integrated cpu-gpu platforms,” in 2022 IEEE 25th International Symposium On Real-Time Distributed Computing (ISORC), 2022.
- M. Bechtel and H. Yun, “Memory-aware denial-of-service attacks on shared cache in multicore real-time systems,” IEEE Transactions on Computers, vol. 71, no. 9, 2022.
- Intel, “64 and ia-32 architectures optimization reference manual,” 2023.
- Intel, “Intel® xeon® processor scalable memory family uncore performance monitoring,” 2020.
- X. Pan, Y. J. Gownivaripalli, and F. Mueller, “Tintmalloc: Reducing memory access divergence via controller-aware coloring,” in International Parallel and Distributed Processing Symposium (IPDPS), 2016.
- A. Kurdila, M. Nechyba, R. Prazenica, W. Dahmen, P. Binev, R. DeVore, and R. Sharpley, “Vision-based control of micro-air-vehicles: Progress and problems in estimation,” vol. 2, 01 2005.
- H. Yun, R. Pellizzon, and P. K. Valsan, “Parallelism-aware memory interference delay analysis for cots multicore systems,” in 2015 27th Euromicro Conference on Real-Time Systems, 2015.
- Z. Zhang, Z. Zhu, and X. Zhang, “A permutation-based page interleaving scheme to reduce row-buffer conflicts and exploit data locality,” in Proceedings 33rd Annual IEEE/ACM International Symposium on Microarchitecture. MICRO-33 2000, 2000.
- P. Pessl, D. Gruss, C. Maurice, M. Schwarz, and S. Mangard, “DRAMA: Exploiting DRAM addressing for Cross-CPU attacks,” in 25th USENIX Security Symposium (USENIX Security 16), (Austin, TX), Aug. 2016.
- P. K. Valsan, H. Yun, and F. Farshchi, “Taming non-blocking caches to improve isolation in multicore real-time systems,” in IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS), 2016.
- H. Yun, R. Mancuso, Z.-P. Wu, and R. Pellizzoni, “Palloc: Dram bank-aware memory allocator for performance isolation on multicore platforms,” in 2014 IEEE 19th Real-Time and Embedded Technology and Applications Symposium (RTAS), 2014.
- C. Helm, S. Akiyama, and K. Taura, “Reliable reverse engineering of intel dram addressing using performance counters,” in 2020 28th International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS), 2020.
- F. Bellosa, “Process cruise control: Throttling memory access in a soft real-time environment,” in Symposium on Operating Systems Principles, 1997.
- H. Yun, G. Yao, R. Pellizzoni, M. Caccamo, and L. Sha, “Memory access control in multiprocessor for real-time systems with mixed criticality,” in 2012 24th Euromicro Conference on Real-Time Systems, 2012.
- H. Yun, G. Yao, R. Pellizzoni, M. Caccamo, and L. Sha, “Memguard: Memory bandwidth reservation system for efficient performance isolation in multi-core platforms,” in 2013 IEEE 19th Real-Time and Embedded Technology and Applications Symposium (RTAS), 2013.
- M. Xu, R. Gifford, and L. T. X. Phan, “Holistic multi-resource allocation for multicore real-time virtualization,” in Proceedings of the 56th Annual Design Automation Conference 2019, DAC ’19, (New York, NY, USA), Association for Computing Machinery, 2019.
- M. Xu, L. Thi, X. Phan, H.-Y. Choi, and I. Lee, “vcat: Dynamic cache management using cat virtualization,” in 2017 IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS), 2017.
- R. Gifford, N. Gandhi, L. T. X. Phan, and A. Haeberlen, “Dna: Dynamic resource allocation for soft real-time multicore systems,” in Real-Time and Embedded Technology and Applications Symposium (RTAS), 2021.
- A. Farshin, A. Roozbeh, G. Jr, and D. Kostic, “Make the most out of last level cache in intel processors,” 03 2019.
- J. Park, S. Park, and W. Baek, “Copart: Coordinated partitioning of last-level cache and memory bandwidth for fairness-aware workload consolidation on commodity servers,” in Proceedings of the Fourteenth EuroSys Conference 2019, EuroSys ’19, (New York, NY, USA), Association for Computing Machinery, 2019.
- Y. Xiang, C. Ye, X. Wang, Y. Luo, and Z. Wang, “Emba: Efficient memory bandwidth allocation to improve performance on intel commodity processor,” 08 2019.
- G. Farina, “Technical evaluation for the new intel memory bandwidth regulation capabilities on the real-time domain,” master thesis, Università Degli Studi di Napoli Federico II, 2020-2021.