Skip to content
Crypto Write-up Advanced

TPM-Sniffing LUKS Keys on an Embedded Linux Device [CVE-2026-0714]

The Moxa UC-1222A Secure Edition releases its full LUKS disk encryption key in plaintext over the SPI bus during boot when the host reads a TPM NV index. An attacker with physical access can passively sniff the SPI bus to recover the key and decrypt the storage.

cyloq.se

Published on cyloq.se

Trusted Platform Modules (TPM 2.0) are widely used to protect storage encryption keys and provide hardware backed attestation. While TPM bus sniffing attacks against Windows systems with BitLocker are well documented, less research has focused on non-BitLocker targets such as embedded Linux devices using LUKS.

The author, on cyloq.se

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The TPM returns the LUKS key in plaintext over SPI because the host does not use TPM parameter encryption (salted sessions) for the NV read operation.

Impact

An attacker with physical access could recover the LUKS key and decrypt the device's storage.

What the attacker needed

Physical access to the device; ability to attach a logic analyser to SPI pins; device boot process

The fix

The device should use TPM salted sessions to encrypt command and response parameters, as recommended by the TCG.

How it was found

  1. Extract the initrd from the firmware and find the generate-keys script that calls tpm2_nvread.
  2. Attach a logic analyser to the TPM's SPI pins (CS, SCLK, MISO, MOSI) and record the boot traffic.
  3. Parse the captured SPI data to locate the TPM2_NV_Read command and its response.
  4. Carve out the response data to obtain the LUKS key in plaintext.
  5. De-solder the eMMC chip, read its contents, and use the sniffed key to decrypt the LUKS partition.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A TPM is a chip that stores secrets like disk encryption keys. On this device, the main processor asks the TPM for the disk key during startup, and that key travels over a wire (the SPI bus) without encryption. Anyone who can attach a logic analyser to that wire can read the key and unlock the disk.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.