Abusing Commodity DRAMs in IoT Devices to Remotely Spy on Temperature

Florian Frank, Wenjie Xiong, Nikolaos Athanasios Anagnostopoulos, André Schaller, Tolga Arul, Farinaz Koushanfar, Stefan Katzenbeisser, Ulrich Rührmair, Jakub Szefer

TL;DR

Researchers have demonstrated a "software-only" attack that turns standard DRAM modules in IoT devices into highly accurate thermometers. By exploiting the temperature-dependent decay of memory cells, an attacker can remotely monitor a device's environment with 0.5°C precision—even on devices that lack a dedicated temperature sensor.

What Problem Does This Paper Address?

In the world of IoT security, we often focus on protecting "obvious" sensors like microphones, cameras, and GPS. However, hardware components not intended for sensing can often be abused as "covert channels" to leak information.

This paper addresses a specific vulnerability in Dynamic Random Access Memory (DRAM). DRAM cells are essentially tiny capacitors that leak charge over time. To prevent data loss, the system must "refresh" them every few milliseconds. Because the rate of this leakage is highly sensitive to ambient temperature, the authors ask: Can an attacker who has compromised an IoT device's software use the DRAM itself to spy on the environment? This could allow an adversary to remotely track a victim's daily routines at home, monitor industrial production lines, or even estimate the workload of tenants in a shared data center.

Methods

The attack relies on a phenomenon called DRAM decay.

  1. The Exploit: The attacker first gains kernel-level access to an IoT device. They then disable the DRAM refresh operation for a specific region of memory.
  2. Measurement: After a set "decay time" (e.g., 60 or 120 seconds), the attacker reads the memory. They count the number of "bit-flips"—cells that lost enough charge to change their logical state (usually from 1 to 0).
  3. Temperature Mapping: Since bit-flips increase exponentially with temperature, the attacker can map the flip count to a specific temperature.

What’s New: * Indicator Cells: Instead of reading megabytes of RAM (which is slow and noisy), the authors identify specific "indicator cells" that are highly reliable. By monitoring just a few dozen of these bits, they can determine if the temperature has crossed a specific threshold with very low computational overhead. * Cross-Device Approximation: The authors developed a mathematical function that allows an attacker to characterize one device in a lab and then apply that model to a different "victim" device of the same model using only a single calibration measurement.

Datasets

The researchers did not use a standard machine learning dataset. Instead, they generated their own experimental data using:

  • Hardware: Four Intel Galileo Gen 2 IoT boards equipped with Micron DDR3-SDRAM.
  • Controlled Environments: Two professional-grade thermal chambers (TestEquity 1007C and Weisstechnik LabEvent) to sweep temperatures from 0°C to 70°C in precise 2.5°C increments.
  • Comparison: A Raspberry Pi was used to control the chambers and provide reference temperature readings via thermocouples.

Key Insights and Ideas

  • The "Invisible" Sensor: The most striking insight is that every device with DRAM has a built-in thermometer, whether the manufacturer intended it or not. This bypasses standard OS permissions that might restrict access to a "real" temperature sensor.
  • Exponential Sensitivity: Because leakage current in semiconductors is an exponential function of temperature, DRAM is actually a better thermometer at higher temperatures, where bit-flips become more frequent and predictable.
  • Privacy via Heat: The paper demonstrates that by simply watching the temperature of a device on a table, an attacker can see when people are in a room (due to body heat and AC usage) or when a nearby server starts a heavy computational task.
  • Stealth: By using the "indicator cell" method, the attack generates very little network traffic, making it difficult for traditional Intrusion Detection Systems (IDS) to spot.

Key Results

  • High Resolution: The system achieved a temperature resolution of 0.5°C in practical settings.
  • Accuracy: Using their new approximation function, the authors could predict the temperature on a previously "unseen" device with an error of less than 1°C.
  • Range: The attack was validated across a wide range (0°C to 70°C), covering almost all indoor and most industrial environments.
  • Countermeasures: The authors tested "shielding" the device in a box. While this distorted the readings, it didn't stop the attack; it just changed the "fingerprint" of the temperature curve.

Limitations and Future Work

  • Kernel Access Required: The attack currently requires the ability to disable DRAM refresh, which usually necessitates kernel or firmware-level privileges. While many IoT devices are notoriously easy to "root," this is still a significant barrier.
  • System Stability: Disabling refresh for the entire RAM would crash the device. The authors had to write a custom kernel module to selectively refresh critical system memory while letting the "spy" region decay.
  • Future Work: The authors suggest investigating if this can be done without kernel access (perhaps via specific memory-intensive patterns like Rowhammer) and exploring circuit-level hardware defenses that could prevent software from tampering with refresh rates.

Summary updated

BibTeX
@article{frank2023abusing,
  author = {Florian Frank and Wenjie Xiong and Nikolaos Athanasios Anagnostopoulos and André Schaller and Tolga Arul and Farinaz Koushanfar and Stefan Katzenbeisser and Ulrich Rührmair and Jakub Szefer},
  title = {{Abusing Commodity DRAMs in IoT Devices to Remotely Spy on Temperature}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2023},
  doi = {10.1109/tifs.2023.3271252},
}
Figure