[Paper Review] JackHammer: Efficient Rowhammer on Heterogeneous FPGA-CPU Platforms
This paper presents JackHammer, a novel Rowhammer attack launched from an FPGA to the host CPU's main memory on Intel Arria 10 GX FPGA-CPU platforms. By bypassing CPU caching and directly targeting DRAM rows, JackHammer achieves twice the speed and four times the bit-flip rate of CPU-based Rowhammer, enabling efficient fault injection in cryptographic code like WolfSSL's RSA signing, with a 25% performance advantage over CPU-only attacks.
After years of development, FPGAs are finally making an appearance on multi-tenant cloud servers. Heterogeneous FPGA-CPU microarchitectures require reassessment of common assumptions about isolation and security boundaries, as they introduce new attack vectors and vulnerabilities. In this work, we analyze the memory and cache subsystem and study Rowhammer and cache attacks enabled by two proposed heterogeneous FPGA-CPU platforms from Intel: the Arria 10 GX with an integrated FPGA-CPU platform, and the Arria 10 GX PAC expansion card which connects the FPGA to the CPU via the PCIe interface. We demonstrate JackHammer, a novel, efficient, and stealthy Rowhammer from the FPGA to the host’s main memory. Our results indicate that a malicious FPGA can perform twice as fast as a typical Rowhammer from the CPU on the same system and causes around four times as many bit flips as the CPU attack. We demonstrate the efficacy of JackHammer from the FPGA through a realistic fault attack on the WolfSSL RSA signing implementation that reliably causes a fault after an average of fifty-eight RSA signatures, 25% faster than a CPU Rowhammer. In some scenarios our JackHammer attack produces faulty signatures more than three times more often and almost three times faster than a conventional CPU Rowhammer. Finally, we systematically analyze new cache attacks in these environments following demonstration of a cache covert channel across FPGA and CPU.
Motivation & Objective
- To investigate hardware vulnerabilities in heterogeneous FPGA-CPU systems, particularly in cloud environments where FPGAs and CPUs coexist in separate security domains.
- To analyze the memory and cache subsystems of Intel Arria 10 GX FPGA-CPU platforms for new attack vectors.
- To develop and evaluate a novel Rowhammer attack (JackHammer) from the FPGA to the host CPU's main memory.
- To demonstrate practical fault attacks on cryptographic implementations, such as WolfSSL's RSA signing, using FPGA-based Rowhammer.
- To explore and demonstrate cache covert channels and side-channel attacks across FPGA-CPU and FPGA-FPGA boundaries.
Proposed method
- Reverse-engineered the cache behavior and memory access patterns of Intel Arria 10 GX FPGA-CPU platforms, including both integrated and PCIe-connected configurations.
- Designed JackHammer, a Rowhammer variant executed from the FPGA that bypasses CPU caching to directly hammer DRAM rows.
- Implemented and benchmarked JackHammer on two platforms: an integrated Arria 10 GX with CPU and a PCIe-based Arria 10 GX PAC, using OPAE for FPGA access.
- Conducted fault injection attacks on WolfSSL's RSA-CRT signing implementation by inducing bit flips in the private key components.
- Developed and measured a cache covert channel between FPGA and CPU, achieving data rates of 1.5–1.8 Mbit/s.
- Evaluated countermeasures such as increasing DRAM refresh rate, cache partitioning, disabling hugepages, and signature verification to mitigate attacks.
Experimental results
Research questions
- RQ1Can an FPGA mounted on a heterogeneous FPGA-CPU platform perform Rowhammer attacks more efficiently than a CPU on the same system?
- RQ2To what extent can FPGA-based Rowhammer bypass CPU-level monitoring and cache mechanisms to achieve higher fault rates and lower latency?
- RQ3What are the practical implications of FPGA-to-CPU and FPGA-to-FPGA cache side-channel attacks in shared-memory, multi-tenant cloud environments?
- RQ4How effective is FPGA-based Rowhammer in inducing faults in real-world cryptographic software, such as WolfSSL’s RSA implementation?
- RQ5What system-level countermeasures can effectively mitigate FPGA-hosted Rowhammer and cache side-channel attacks?
Key findings
- JackHammer achieved twice the speed of a CPU-based Rowhammer attack on the same system, with a 25% performance advantage in fault injection on WolfSSL’s RSA signing.
- The FPGA-based attack induced four times as many bit flips per second as the CPU-based Rowhammer, demonstrating significantly higher fault injection efficiency.
- JackHammer caused faulty RSA signatures more than three times more frequently and almost three times faster than conventional CPU Rowhammer in some scenarios.
- A cache covert channel was successfully demonstrated from FPGA to CPU, achieving data transmission rates of 1.5–1.8 Mbit/s.
- Increasing the DRAM row refresh rate to 32 ms reduced attack success rates to under 1% for both CPU and FPGA attacks, indicating that higher refresh rates can significantly mitigate Rowhammer.
- The vulnerability in WolfSSL’s RSA implementation was confirmed and patched in version 4.3.0 via signature verification, following disclosure on November 25, 2019.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.