Security Research

Cold Boot Attacks: Why Disk Encryption Doesn't Protect a Running Computer

May 9, 2026 8 min read Haven Team

Full-disk encryption protects your data when your device is powered off. But your encryption keys have to live somewhere while the computer is running — and for most systems, that somewhere is RAM. Cold boot attacks exploit the fact that RAM doesn't forget instantly.


In 2008, a team of researchers from Princeton, the EFF, and Wind River Systems published a paper that surprised much of the security community: they demonstrated that DRAM (dynamic random-access memory) retains its contents for seconds to minutes after power is removed, and sometimes much longer when cooled. By cutting power to a running machine, rapidly transferring the RAM modules to a cold environment, and booting from a custom USB tool, they could dump the entire contents of RAM — including the AES encryption keys that BitLocker, FileVault, and dm-crypt had been using to protect encrypted disks. The attack worked. Encryption keys were recovered. The paper was titled "Lest We Remember: Cold Boot Attacks on Encryption Keys."

This class of attack — now called a cold boot attack — has been refined significantly since 2008. The fundamental physics hasn't changed: DRAM cells are capacitors that lose their charge over time, but "over time" can mean seconds at room temperature or minutes when chilled with compressed air or liquid nitrogen. The attack surface exists as long as encryption keys, session tokens, or other sensitive material live in RAM on a running or recently-running machine.

How the Attack Works, Step by Step

A cold boot attack requires physical access to the target device. The general procedure:

  1. Access the running (or recently-running) machine. The device must be on, in sleep mode, or recently powered off. A machine that has been fully off for many minutes is generally safe — the capacitors have discharged.
  2. Minimize data decay. The attacker cuts power suddenly (rather than shutting down gracefully, which would trigger OS memory-wiping routines) and applies cold to the RAM modules — often with a can of compressed air inverted to spray refrigerant, which can drop surface temperature to well below freezing and extend retention from seconds to minutes.
  3. Transfer the RAM. On desktop machines, this means removing the DIMMs while cold and installing them in an attacker-controlled machine. Laptops complicate this — many modern laptops have soldered RAM, so the attacker boots from an external USB drive on the same machine while RAM is still cold.
  4. Dump and analyze. A forensic boot tool captures the full RAM image. Automated analysis tools (originally published alongside the Princeton paper, since refined by the security community) scan for known key schedules — the expanded key material that AES uses internally — and can recover 128-bit or 256-bit keys even from partially decayed RAM images using error-correction algorithms.
Key point

The attack targets RAM, not the encrypted disk. It doesn't break AES. It recovers the key that was already decrypted and loaded into memory so the OS could do its job. The strength of your encryption algorithm is irrelevant to this attack class.

Who Is Actually at Risk

Cold boot attacks require physical access, specialized equipment, and technical expertise. This is not a threat for most people in most situations. It's a targeted attack technique suited to:

For the vast majority of users, the threat model doesn't include physical access by a sophisticated attacker with RAM forensics capability. If your concern is data brokers, account theft, or dragnet surveillance, cold boot attacks are not part of your threat model and this is mostly academic. If your concern is targeted physical access by a technically capable adversary — border crossing while carrying sensitive journalistic material, for instance — this is worth thinking about carefully.

Why Sleep Mode Is Particularly Dangerous

When a laptop goes into sleep (suspend-to-RAM) rather than hibernate (suspend-to-disk) or full shutdown, the encryption keys remain loaded in RAM to allow fast wake. The disk stays encrypted; the key to decrypt it is sitting in DRAM, held in place by a trickle of power.

This means a device that appears "locked" in sleep mode may be vulnerable to cold boot attack if an attacker gains physical access. The presence of a lock screen doesn't help — the OS lock screen doesn't flush the disk encryption keys from RAM.

A laptop closed and sleeping in a conference room is not in the same security state as a laptop that has been shut down. The encryption keys are present in both cases, but in sleep mode they're in volatile RAM with a trickle of power; in shutdown mode they're gone.

Modern Mitigations and Their Limits

The security community has developed several mitigations in the years since the Princeton paper. None is perfect.

Mitigation How It Works Limits
Memory overwrite on shutdown OS overwrites RAM contents with zeros during normal shutdown Only helps if attacker can't cut power before shutdown completes
Hibernate instead of sleep Encrypted disk image replaces RAM; RAM can be cleared Slower wake; hibernation image on disk can be targeted if key is known
Pre-boot PIN (BitLocker, LUKS) TPM won't release key without PIN at boot Doesn't help against attack on a running/sleeping machine
Memory encryption (AMD SME/SEV, Intel MKTME) CPU encrypts DRAM contents with a hardware key Keys may still be in CPU cache/registers; evolving attack surface
Soldered/non-removable RAM Can't transfer DIMMs to attacker machine Attacker can still cold-boot from USB on original hardware

AMD's Secure Memory Encryption (SME) and Intel's Multi-Key Total Memory Encryption (MKTME) represent the most promising hardware-level mitigations. When enabled, the CPU transparently encrypts and decrypts DRAM contents using a key held in the CPU itself — never exposed to the memory bus. A RAM dump from a machine with hardware memory encryption active yields ciphertext, not the key material. This significantly raises the bar for cold boot attacks on modern hardware with these features enabled and configured.

Apple Silicon (M-series chips) uses a unified memory architecture where CPU, GPU, and Neural Engine share the same physical package. The memory is still DRAM and theoretically subject to data remanence, but the physical architecture makes traditional DIMM-removal attacks impossible. Cold boot via USB boot on Apple Silicon is complicated by Apple's Secure Boot implementation, which imposes significant constraints on what can execute at boot.

Practical Recommendations for Elevated Risk Profiles

If your threat model includes physical access by a capable adversary:

Full-disk encryption, as implemented by BitLocker, FileVault, LUKS/dm-crypt, and similar tools, remains essential and effective against a powered-off device. It's not broken by cold boot attacks — it just has a different threat boundary. Cold boot targets the running state; disk encryption protects the powered-off state. Know which threat you're defending against.

Try Haven free for 15 days

Encrypted email and chat in one app. No credit card required.

Get Started →