Practical DRAM PUFs in Commodity Devices

Wenjie Xiong, André Schaller, Nikolaos A. Anagnostopoulos, Muhammad Umair Saleem, Sebastian Gabmeyer, Stefan Katzenbeisser, Jakub SzeferIACR ePrint 2016

Introduction

In the evolving landscape of IoT and embedded security, the secure storage of cryptographic keys remains a critical challenge. Traditional methods, such as burning keys into fuses or storing them in flash memory, are vulnerable to physical extraction or cloning. Physically Unclonable Functions (PUFs) offer a promising alternative by leveraging unique microscopic manufacturing variations to generate keys on demand. While SRAM-based PUFs are common, they typically require access during the boot sequence. This research explores a method to extract PUFs from standard DRAM in commercial off-the-shelf (COTS) devices during run-time, without disrupting the operating system.

The Mechanism of DRAM Decay

The core principle behind DRAM-based PUFs is the phenomenon of charge leakage. DRAM cells consist of a transistor and a capacitor; the capacitor stores a bit of data as an electrical charge. Because these capacitors are imperfect, they naturally leak charge over time.

DRAM cell structure and potential charge leakage paths.

To maintain data integrity, a memory controller must periodically "refresh" every cell. If this refresh cycle is suspended, cells will eventually lose their charge, causing bits to flip. Due to manufacturing variations, the rate of leakage is unique to each cell, creating a stable and unique "fingerprint" for the memory module.

Run-time Extraction Methodology

Implementing DRAM PUFs on a running system presents two major hurdles: preventing the OS from using the PUF memory region and preventing the system from crashing when the refresh is disabled. The researchers addressed these through two novel techniques:

  1. Memory Ballooning: By repurposing a technique from virtual machine management, the kernel "inflates" a buffer to reserve a specific physical memory region. This ensures that the OS and applications do not attempt to read or write to the memory being used for PUF generation.
  2. Selective DRAM Refresh: Since commodity hardware usually lacks the granularity to disable refresh for specific memory rows, the authors disabled the global refresh. To keep the rest of the system stable, a kernel module manually reads every row of active system memory, performing a "software-based refresh" for everything except the reserved PUF region.

Characterizing the PUF

The researchers evaluated their approach on PandaBoard ES and Intel Galileo Gen 2 platforms. A key finding was that the decay time ($t$) serves as a significant challenge parameter.

Illustration of the DRAM decay process over time.

As shown in the figure above, longer wait times result in more pronounced bit-flip patterns. This temporal dimension expands the challenge-response space significantly. Furthermore, because DRAM is sensitive to temperature, the authors developed a compensation formula to ensure consistent key generation across different environmental conditions.

To measure uniqueness and robustness, the study utilized the Jaccard Index rather than the traditional Hamming Distance. This metric is better suited for DRAM PUFs because it focuses on the specific indices of flipped bits, providing a clearer distinction between different chips.

Results and Security Analysis

The experimental results demonstrated high uniqueness (inter-device Jaccard index near zero) and strong robustness (intra-device Jaccard index > 0.8). On the Intel Galileo, a 32KB PUF region provided sufficient entropy for seven unique challenges, each supporting 128-bit security. Crucially, the selective refresh process only consumed approximately 12% of the CPU, allowing the system to remain functional during key extraction.

Limitations

While effective, the primary drawback is the readout time, which can range from two to six minutes. This latency makes the method unsuitable for instantaneous authentication but highly effective for background security tasks, such as establishing secure communication channels or generating long-term device identities.

Summary updated

BibTeX
@article{xiong2016practical,
  author = {Wenjie Xiong and André Schaller and Nikolaos A. Anagnostopoulos and Muhammad Umair Saleem and Sebastian Gabmeyer and Stefan Katzenbeisser and Jakub Szefer},
  title = {{Practical DRAM PUFs in Commodity Devices}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2016},
}
Figure