Intrinsic Rowhammer PUFs: Leveraging the Rowhammer effect for improved security

André Schaller, Wenjie Xiong, Nikolaos Athanasios Anagnostopoulos, Muhammad Umair Saleem, Sebastian Gabmeyer, Stefan Katzenbeisser, Jakub Szefer

Abstract

This paper presents a novel approach to hardware security by repurposing the Rowhammer vulnerability—a DRAM disturbance error—into a Physically Unclonable Function (PUF). Unlike traditional intrinsic PUFs that are often limited to boot-time access, the Rowhammer PUF enables runtime device identification and cryptographic key generation on commodity hardware without modifications. By disabling refresh mechanisms and optimizing access patterns, the researchers demonstrate high entropy (0.192 per cell) and strong uniqueness across devices, effectively transforming a known exploit into a robust security primitive.

Introduction

Physically Unclonable Functions (PUFs) serve as unique "digital fingerprints" for hardware, derived from microscopic manufacturing variations. They are critical for secure device identification and key storage. However, existing solutions often require custom circuitry (extrinsic PUFs) or are restricted to boot-time availability (SRAM-based intrinsic PUFs). While DRAM decay has been explored as a PUF source, it typically suffers from low entropy and slow readout.

This research introduces the Rowhammer PUF, the first work to utilize the Rowhammer effect for a constructive security application. Rowhammer occurs when rapid access to a "hammer" row causes charge leakage in adjacent "victim" rows, leading to bit flips. By intentionally inducing these flips, the authors create a high-entropy signature that can be queried at runtime on standard off-the-shelf systems.

Methodology

The Rowhammer PUF is implemented through a software-only approach that manipulates standard DRAM operations. The core process involves three key steps:

  1. Refresh Disabling: The DRAM's auto-refresh mechanism is temporarily disabled for target memory regions to increase susceptibility to disturbance.
  2. Pattern Optimization: To maximize bit flips, PUF rows are initialized with specific patterns (e.g., checkerboard 0xAA) while hammer rows use the inverse (0x55), exploiting the physical layout of DRAM cells.
  3. Hammering Strategies: The authors compared Single-sided Rowhammer (SSRH), where one adjacent row is hammered, and Double-sided Rowhammer (DSRH), where both adjacent rows are hammered simultaneously.
Rowhammer patterns for (a) Single-sided (SSRH) and (b) Double-sided (DSRH) hammering.

The system was evaluated on PandaBoard hardware using both a bootloader-level implementation and a Linux kernel module, demonstrating its versatility across different software layers.

Experimental Setup

The study utilized three PandaBoard ES (Revision B3) devices equipped with 1GB ELPIDA DDR2 memory. Experiments were conducted across various ambient temperatures (40°C, 50°C, and 60°C) to assess environmental resilience. For every parameter combination, 20 measurements were taken across three different memory regions on each board.

Results

Uniqueness and Robustness

The Rowhammer PUF demonstrated exceptional uniqueness, with a Jaccard inter-device similarity index ($J_{inter}$) near zero, meaning bit-flip patterns are highly device-specific. Intra-device stability remained high ($J_{intra} > 0.94$), indicating a consistent fingerprint with only ~5% noise across multiple queries.

Bit Flip Efficiency

The research found that Rowhammer-induced flips provide significantly higher entropy than standard DRAM decay. Specifically, 60 seconds of hammering produced 2.4 times more bit flips than decay alone.

Fractional bit flips vs. PUF size for (a) SSRH and (b) DSRH across different initialization vectors and hammering times.

As shown in the experimental data, DSRH generally yields a higher percentage of bit flips compared to SSRH. Furthermore, the choice of Initialization Vector (IV) significantly impacts the flip rate; the 0x55 hammer row IV (paired with 0xAA PUF rows) consistently maximized bit flips by exploiting the internal DRAM topology.

Discussion and Conclusion

The Rowhammer PUF offers a significant advancement in intrinsic security primitives by providing a high-entropy, runtime-accessible fingerprint. With a fractional entropy of 0.192 per cell, a 128-bit key can be derived from just 85 bytes of DRAM.

Despite these advantages, challenges remain. The current readout time (60-120 seconds) is relatively slow, and the long-term impact of repeated hammering on hardware longevity requires further study. Additionally, the presence of Error Correcting Code (ECC) memory in server environments may necessitate alternative readout strategies, such as monitoring ECC error logs. Future work will also explore the sensitivity of the PUF to voltage fluctuations and aging effects.

Summary updated

Abstract

Physically Unclonable Functions (PUFs) have become an important and promising hardware primitive for device fingerprinting, device identification, or key storage. Intrinsic PUFs leverage components already found in existing devices, unlike extrinsic silicon PUFs, which are based on customized circuits that involve modification of hardware. In this work, we present a new type of a memory-based intrinsic PUF, which leverages the Rowhammer effect in DRAM modules - the Rowhammer PUF. Our PUF makes use of bit flips, which occur in DRAM cells due to rapid and repeated access of DRAM rows. Prior research has mainly focused on Rowhammer attacks, where the Rowhammer effect is used to illegitimately alter data stored in memory, e.g., to change page table entries or enable privilege escalation attacks. Meanwhile, this is the first work to use the Rowhammer effect in a positive context - to design a novel PUF. We extensively evaluate the Rowhammer PUF using commercial, off-the-shelf devices, not relying on custom hardware or an FPGA-based setup. The evaluation shows that the Rowhammer PUF holds required properties needed for the envisioned security applications, and could be deployed today.
BibTeX
@inproceedings{schaller2017intrinsic,
  author = {André Schaller and Wenjie Xiong and Nikolaos Athanasios Anagnostopoulos and Muhammad Umair Saleem and Sebastian Gabmeyer and Stefan Katzenbeisser and Jakub Szefer},
  title = {{Intrinsic Rowhammer PUFs: Leveraging the Rowhammer effect for improved security}},
  booktitle = {HOST},
  year = {2017},
  doi = {10.1109/hst.2017.7951729},
}
Figure