Skip to content
Crypto Write-up Advanced

HP ThinPro TPM Encryption Flaw: How Physical Access Can Unlock "Secure" Thin Clients

HP ThinPro's TPM sealing policy only measures PCR 0, 2, and 4, omitting the GRUB configuration, Linux kernel, and initramfs. An attacker with brief physical access can modify the initramfs keyscript so the TPM unseals the LUKS key and leaks it to the unencrypted boot partition, then return later to decrypt the drive.

xpert4cyber Follow

Published on medium.com

New research from security researcher Darren McDonald (AmberWolf) exposes a critical design flaw in HP ThinPro’s TPM-sealed LUKS2 disk encryption — and it affects thin clients deployed across enterprise VDI environments, call centers, and kiosk systems worldwide.

Xpert4Cyber, on medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

HP ThinPro is the operating system HP ships on its thin clients, the small fanless desktops used in enterprise VDI estates, call centres and kiosk deployments. ThinPro 8 and 9 encrypt their local disk with LUKS2, and the volume key is sealed to the machine's TPM so that the device can boot without an operator typing a passphrase. The security of that arrangement rests entirely on measured boot: the TPM should only release the sealed key when the firmware and boot chain are in the state HP expects.

A critical gap in HP's TPM sealing policy lets attackers silently extract LUKS2 encryption keys from ThinPro 8 and 9 devices — no CVE or patch yet From the original on medium.com

According to the research, HP's TPM sealing policy measures only PCR 0, PCR 2 and PCR 4. Those three registers cover the BIOS firmware, option ROMs and the GRUB bootloader binary. They do not cover the GRUB configuration, the Linux kernel or the initramfs, which is the layer where the encryption key is actually unsealed. The researcher is Darren McDonald (AmberWolf), and the affected models confirmed in the write-up are the t530 and t540.

Setup

The precondition for the attack is brief physical access to the thin client. The attacker needs to be able to write to the boot partition and then let the machine boot once, normally, before returning to it later.

The write-up records a CVSS 3.1 score of 6.1 (Medium). It also states that no CVE has been assigned and no official patch exists, and that the 90-day disclosure window has already lapsed.

Finding it

The observation is a mismatch between what the TPM measures and what actually decides whether the key is released. PCR 0, 2 and 4 attest the firmware, the option ROMs and the GRUB binary, so an attacker cannot swap out GRUB itself without changing the measurements. But the GRUB configuration, the kernel and the initramfs are all outside the measured set. Those are precisely the components that run the keyscript which asks the TPM to unseal the LUKS2 key. A boot chain can therefore be modified in the unmeasured layer while every measured register still matches its expected value, and the TPM will unseal as usual.

Exploitation

Step 1: modify the initramfs keyscript

With physical access, the attacker alters the keyscript inside the initramfs. Because the initramfs is not covered by PCR 0, 2 or 4, this change does not disturb any measurement the TPM checks.

Step 2: let the device boot normally

On the next boot the TPM unseals the key exactly as designed. From the outside nothing looks wrong: the measured registers match, the unseal succeeds, and the machine starts up.

Step 3: leak the raw key to the boot partition

The modified keyscript writes the raw LUKS key out to the unencrypted boot partition. The key is now sitting in plaintext on a partition that is readable without any decryption.

Step 4: return and decrypt the drive

The attacker comes back later, reads the key from the boot partition and decrypts the entire drive. That exposes credentials, configuration files and the /etc/shadow hashes stored on the device.

Root cause

The design mistake is the scope of the sealing policy. Sealing to PCR 0, 2 and 4 protects the firmware, option ROMs and the GRUB binary, but leaves the GRUB configuration, kernel and initramfs unmeasured. Since the key is unsealed from within the initramfs, an attacker who controls that unmeasured layer controls the code that handles the key, and the TPM has no way to tell the difference. The measured-boot defence does what it was configured to do; it was simply configured to cover too little of the chain. The same class of gap has appeared in BitLocker and in other Linux TPM plus LUKS deployments.

Impact

An attacker with brief physical access to an affected thin client can obtain the raw LUKS key and later decrypt the whole disk offline. The data at risk, as listed in the research, is credentials, configuration and /etc/shadow hashes. The affected population is thin clients deployed in enterprise VDI environments, call centres and kiosk systems. Confirmed devices are the t530 and t540 running ThinPro 8 and 9. The severity recorded is CVSS 3.1 6.1 (Medium), and at the time of writing there is no CVE and no official patch.

Fix

No official patch is described. No official patch is described, and the original does not set out a specific fix. The general advice given is that anyone relying on measured boot anywhere in their stack should verify their PCR coverage now.

Variants to test

  1. Enumerate the sealing policy on other TPM plus LUKS appliances. A positive result is a policy that measures firmware and the bootloader binary but not the bootloader configuration, kernel or initramfs.
  2. Check whether the bootloader configuration can be edited without changing a measured PCR. A positive result is an edit that survives a reboot with the TPM still unsealing the key.
  3. Check whether the initramfs can be modified without changing a measured PCR. A positive result is a modified keyscript that still receives the unsealed key on the next boot.
  4. Check whether the unencrypted boot partition is writable from the pre-boot environment and readable afterwards. A positive result is a location where a keyscript can deposit the raw key and an attacker can retrieve it later.
  5. Compare against BitLocker and other Linux TPM plus LUKS deployments, which have shown the same class of gap. A positive result is the same mismatch between what is measured and where the key is unsealed.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 13 min read.

What happened, in plain words

HP makes small desktop computers called thin clients. They are cheap, fanless boxes that sit on a desk and connect to a central server, which does the real work. Companies use them in call centres, in kiosks and in large office networks where many people share the same kind of machine. The operating system HP puts on these boxes is called HP ThinPro.

ThinPro 8 and ThinPro 9 can encrypt the disk inside the box. Encryption means the data on the disk is scrambled, so if someone steals the disk or the whole machine, they cannot read it without the right key. The tool ThinPro uses for this is called LUKS2, a standard way of encrypting disks on Linux. Normally a person would have to type a passphrase at every boot to unlock the disk. That is inconvenient for a kiosk or a call centre desk, so HP uses a chip called the TPM to hold the key instead. The TPM is a small security chip soldered onto the motherboard. It can store a secret and only hand it back when the machine is in the state the manufacturer expects.

A security researcher, Darren McDonald (AmberWolf), looked at how HP set up that hand-back and found a gap. The TPM was told to check only part of the boot process before releasing the key. The parts it does not check are exactly the parts that handle the key. So an attacker who gets a few minutes alone with the machine can change one of those unchecked parts, let the machine boot once as normal, and have the key quietly copied out to a place where it can be picked up later. After that the whole disk can be decrypted.

The research records a severity score of CVSS 3.1 6.1 (Medium). No CVE has been assigned and there is no official patch. A CVE is a public identifier for a known security flaw, so the absence of one means there is no official tracking entry for this issue. The 90-day disclosure window, the usual period a researcher gives a vendor before publishing, has already passed.

A critical gap in HP's TPM sealing policy lets attackers silently extract LUKS2 encryption keys from ThinPro 8 and 9 devices — no CVE or patch yet From the original on medium.com

The image is the article's headline card. It says that a gap in HP's TPM sealing policy lets attackers silently extract LUKS2 encryption keys from ThinPro 8 and 9 devices, and that there is no CVE or patch yet.

The pieces you need to know first

Before the attack makes sense, a few ideas need to be clear. Each one is explained from zero.

Thin clients and VDI

A thin client is a small computer with just enough power to show a screen and talk to a server. The heavy work happens elsewhere. VDI stands for Virtual Desktop Infrastructure: instead of one physical PC per person, the company runs many virtual desktops on big servers and each thin client connects to one of them. The thin client still has a local disk, and that disk can hold cached data, configuration and login information.

Disk encryption and LUKS2

Disk encryption scrambles everything written to a disk. To read it back you need a key, a long random string of characters. LUKS2 is the standard format Linux uses to store an encrypted disk and the information needed to unlock it. Think of LUKS2 as a locked safe: the safe is the disk, and the key is the combination. Without the combination the contents look like random noise.

The volume key

The volume key is the actual key that decrypts the disk. It is a long random value. Nobody types it by hand; it is generated when the disk is set up and then protected in some other way. In this setup the volume key is what gets sealed to the TPM.

The TPM and sealing

A TPM (Trusted Platform Module) is a small chip that can keep secrets and can also measure the machine. Sealing means giving the TPM a secret together with a condition: only release this secret if the machine matches these measurements. If the measurements do not match, the TPM refuses. This lets a machine boot without a human typing a passphrase, while still refusing to hand over the key if someone has tampered with the boot process.

Measured boot and PCRs

Measured boot is the process of taking fingerprints of each stage of the boot as it runs, and storing those fingerprints in the TPM. The storage slots are called PCRs, short for Platform Configuration Registers. Each PCR holds a hash, which is a short fixed-length fingerprint of some data. If the data changes by even one byte, the fingerprint changes completely. The TPM compares the PCR values against the values it recorded when the key was sealed. If they match, the key is released.

Different PCRs are used for different things. In this case HP's policy uses three of them:

  • PCR 0 covers the BIOS firmware, the low-level software built into the motherboard.
  • PCR 2 covers option ROMs, small pieces of firmware that come with add-on hardware.
  • PCR 4 covers the GRUB bootloader binary, the first program that runs and loads the operating system.

GRUB, the kernel and the initramfs

GRUB is the bootloader. It is the program that starts first and decides what to load next. GRUB reads a configuration file that says which kernel to start and with what options. The kernel is the core of the operating system. The initramfs is a small temporary filesystem that is loaded into memory at boot, before the real disk is available. It contains the scripts needed to unlock the encrypted disk. One of those scripts is the keyscript, the piece of code that asks the TPM to unseal the key.

A useful comparison: think of the boot process as a chain of people passing a parcel. GRUB is the first person, the configuration file is the instruction sheet they follow, the kernel is the next person, and the initramfs is the person at the end who opens the safe. HP's TPM checks the identity of the first person and the instruction sheet's cover, but not the instruction sheet itself, not the next person, and not the person who opens the safe.

The boot partition

The boot partition is a small part of the disk that holds the files needed to start the machine. It has to be readable before the disk is decrypted, so it is not encrypted itself. That is normal and necessary. It also means anything written there can be read by anyone who can access the disk.

CVSS

CVSS is a standard scoring system for security flaws. It produces a number from 0 to 10, where higher means more serious. A score of 6.1 is labelled Medium. The score is not a measure of how many machines are affected; it is a rough summary of how easy the flaw is to use and how much damage it can do.

The setup the attack needs

The only precondition described is brief physical access to the thin client. They need to be able to write to the boot partition, then let the machine boot once normally, then come back to it later.

That is a low bar in the environments these devices live in. A kiosk in a lobby, a call centre desk, a machine in a shared office, a device in a warehouse: any of these can be reached by someone with a few minutes alone. The attack does not require stealing the machine, only brief access and a later return.

Finding the gap

The finding is a mismatch. The TPM measures some things, but the thing that actually decides whether the key is released is not among them.

PCR 0, PCR 2 and PCR 4 cover the firmware, the option ROMs and the GRUB binary. So an attacker cannot simply replace GRUB itself: that would change PCR 4 and the TPM would refuse to unseal. But the GRUB configuration, the kernel and the initramfs are outside the measured set. Those are exactly the components that run the keyscript, and the keyscript is what asks the TPM to unseal the LUKS2 key.

The consequence is that the boot chain can be modified in the unmeasured layer while every measured register still matches its expected value. The TPM sees what it was told to look at, everything matches, and it unseals as usual. The defence works exactly as configured; it was configured to cover too little.

The attack, step by step

Step 1: modify the initramfs keyscript

With physical access, the attacker changes the keyscript inside the initramfs. The initramfs is not covered by PCR 0, 2 or 4, so this change does not disturb any measurement the TPM checks. The attacker is editing the code that will later handle the key, and the TPM has no way to notice.

Why this step: the keyscript is the piece of code that receives the unsealed key. If you control that code, you control what happens to the key after the TPM hands it over.

Step 2: let the device boot normally

On the next boot the TPM unseals the key exactly as designed. From the outside nothing looks wrong: the measured registers match, the unseal succeeds, and the machine starts up. Anyone watching would see a normal boot.

Why this step: the TPM will only unseal when the machine boots. The attacker cannot force the unseal from outside; they have to let the machine do it on its own, in its normal way.

Step 3: leak the raw key to the boot partition

The modified keyscript writes the raw LUKS key out to the unencrypted boot partition. The key is now sitting in plaintext on a partition that can be read without any decryption.

Why this step: the boot partition is the one place on the disk that is readable without the key. Putting the key there turns a locked disk into an open one for anyone who comes back later.

Step 4: return and decrypt the drive

The attacker comes back later, reads the key from the boot partition and decrypts the entire drive. That exposes credentials, configuration files and the /etc/shadow hashes stored on the device.

/etc/shadow is the file on a Linux system that stores password hashes for user accounts. A hash is a one-way fingerprint of a password: you cannot read the password back from it directly, but you can try guesses and compare the fingerprints. If an attacker has the hashes, they can attempt to crack them offline, at their own pace, on their own hardware.

Why this step: the goal is not to break encryption. The goal is to get the key, and once you have the key the encryption is irrelevant.

Why it works: the root cause

The design mistake is the scope of the sealing policy. Sealing to PCR 0, 2 and 4 protects the firmware, the option ROMs and the GRUB binary, but leaves the GRUB configuration, the kernel and the initramfs unmeasured. Since the key is unsealed from within the initramfs, an attacker who controls that unmeasured layer controls the code that handles the key, and the TPM cannot tell the difference.

A comparison: imagine a bank vault that checks the guard's badge at the door, but not the trolley the guard pushes inside. The badge check is real and it works. The problem is that the thing carrying the money out is not checked at all.

The same class of gap has appeared in BitLocker, Microsoft's disk encryption feature on Windows, and in other Linux TPM plus LUKS deployments. The pattern is not unique to HP; it is a recurring mistake in how measured boot is configured.

What is at risk

An attacker with brief physical access to an affected thin client can obtain the raw LUKS key and later decrypt the whole disk offline. Offline means they take the disk or the key away and work on it without the machine being watched or connected to anything.

The data listed as at risk is credentials, configuration and /etc/shadow hashes. Credentials could include saved logins or certificates. Configuration could include network settings, server addresses and other details that help an attacker move further into the company.

The affected population is thin clients deployed in enterprise VDI environments, call centres and kiosk systems. The confirmed devices are the t530 and t540 running ThinPro 8 and 9. The recorded severity is CVSS 3.1 6.1 (Medium). At the time of writing there is no CVE and no official patch.

What to do about it

No official patch is described. No official patch is described, and the original does not set out a specific fix. In plain terms: tell the TPM to check the instruction sheet, the next person in the chain and the person who opens the safe, not just the first person and the cover of the sheet.

The general advice given is that anyone relying on measured boot anywhere in their stack should verify their PCR coverage now. That means checking which PCRs the sealing policy uses and asking whether the components that handle the key are among them.

Variants to test

These are the checks the research suggests for finding the same pattern elsewhere. Each one describes what a positive result looks like.

  1. Enumerate the sealing policy on other TPM plus LUKS appliances. A positive result is a policy that measures firmware and the bootloader binary but not the bootloader configuration, kernel or initramfs.
  2. Check whether the bootloader configuration can be edited without changing a measured PCR. A positive result is an edit that survives a reboot with the TPM still unsealing the key.
  3. Check whether the initramfs can be modified without changing a measured PCR. A positive result is a modified keyscript that still receives the unsealed key on the next boot.
  4. Check whether the unencrypted boot partition is writable from the pre-boot environment and readable afterwards. A positive result is a location where a keyscript can deposit the raw key and an attacker can retrieve it later.
  5. Compare against BitLocker and other Linux TPM plus LUKS deployments, which have shown the same class of gap. A positive result is the same mismatch between what is measured and where the key is unsealed.

Glossary

  • BIOS firmware: the low-level software built into a computer's motherboard that starts the machine before any operating system runs.
  • BitLocker: Microsoft's disk encryption feature on Windows, which can also use a TPM to hold the key.
  • Boot partition: a small part of a disk that holds the files needed to start the machine and is readable before the disk is decrypted.
  • Bootloader: the first program that runs at startup and loads the operating system; GRUB is one.
  • CVE: a public identifier assigned to a known security flaw so that vendors and defenders can track it.
  • CVSS: a standard scoring system for security flaws, producing a number from 0 to 10 where higher is more serious.
  • Credentials: information used to prove identity, such as usernames, passwords, certificates or saved logins.
  • Disk encryption: scrambling the contents of a disk so that they cannot be read without the right key.
  • GRUB: the bootloader used on many Linux systems; it reads a configuration file and starts the kernel.
  • Hash: a short fixed-length fingerprint of some data; changing the data changes the fingerprint completely, and the original cannot be read back from it.
  • Initramfs: a small temporary filesystem loaded into memory at boot, containing the scripts needed to unlock the encrypted disk.
  • Kernel: the core of an operating system, which manages hardware and runs programs.
  • Keyscript: the script inside the initramfs that asks the TPM to unseal the disk key.
  • LUKS2: the standard format Linux uses to store an encrypted disk and the information needed to unlock it.
  • Measured boot: the process of taking fingerprints of each stage of the boot and storing them in the TPM, so the TPM can check the machine has not been tampered with.
  • Option ROM: a small piece of firmware that comes with add-on hardware and runs during boot.
  • PCR (Platform Configuration Register): a storage slot in the TPM that holds a hash of one part of the boot process.
  • Sealing: giving the TPM a secret together with a condition, so it only releases the secret when the machine matches that condition.
  • Thin client: a small, low-power desktop computer that connects to a central server which does the real work.
  • TPM (Trusted Platform Module): a small security chip on the motherboard that can store secrets and measure the boot process.
  • VDI (Virtual Desktop Infrastructure): a setup where many virtual desktops run on central servers and users connect to them from thin clients.
  • Volume key: the long random key that actually decrypts an encrypted disk.
  • /etc/shadow: the file on a Linux system that stores password hashes for user accounts.

More by xpert4cyber

View all

11 more disclosed reports, best first.

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.