Memory Scraping Attack on Xilinx FPGAs: Private Data Extraction from Terminated Processes
Preprint
Abstract
FPGA-based hardware accelerators are becoming increasingly popular due to their versatility, customizability, energy efficiency, constant latency, and scalability. FPGAs can be tailored to specific algorithms, enabling efficient hardware implementations that effectively leverage algorithm parallelism. This can lead to significant performance improvements over CPUs and GPUs, particularly for highly parallel applications. For example, a recent study found that Stratix 10 FPGAs can achieve up to 90\% of the performance of a TitanX Pascal GPU while consuming less than 50\% of the power. This makes FPGAs an attractive choice for accelerating machine learning (ML) workloads. However, our research finds privacy and security vulnerabilities in existing Xilinx FPGA-based hardware acceleration solutions. These vulnerabilities arise from the lack of memory initialization and insufficient process isolation, which creates potential avenues for unauthorized access to private data used by processes. To illustrate this issue, we conducted experiments using a Xilinx ZCU104 board running the PetaLinux tool from Xilinx. We found that PetaLinux does not effectively clear memory locations associated with a terminated process, leaving them vulnerable to memory scraping attack (MSA). This paper makes two main contributions. The first contribution is an attack methodology of using the Xilinx debugger from a different user space. We find that we are able to access process IDs, virtual address spaces, and pagemaps of one user from a different user space because of lack of adequate process isolation. The second contribution is a methodology for characterizing terminated processes and accessing their private data. We illustrate this on Xilinx ML application library.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Multi-Tenant Cloud FPGA: A Survey on Security, Trust, and PrivacyACM Transactions on Reconfigurable Technology and Systems, 2025
- The Future of FPGA Acceleration in Datacenters and the CloudACM Transactions on Reconfigurable Technology and Systems, 2022
- High-Performance Accurate and Approximate Multipliers for FPGA-Based Hardware AcceleratorsIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2021
- Suitability of recent hardware accelerators (DSPs, FPGAs, and GPUs) for computer vision and image processing algorithmsSignal Processing: Image Communication, 2018
- Vulnerable GPU Memory Management: Towards Recovering Raw Data from GPUProceedings on Privacy Enhancing Technologies, 2017
- SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs2017
- A reconfigurable fabric for accelerating large-scale datacenter servicesACM SIGARCH Computer Architecture News, 2014