OGOPSEC // Dispatch
TPM 2.0 on Linux: What It Is and Why It Matters
If you have shopped for a laptop or read a hardening guide in the last few years, you have seen the acronym. TPM 2.0 on Linux is one of those technologies that gets name-dropped constantly and explained almost never. It is not a magic security chip, and it will not stop a careless click or a reused password. What it is, precisely, is a small, standardized coprocessor that can hold secrets and measurements in a way the main CPU cannot quietly tamper with. Understanding that narrow job is the whole point.
A Trusted Platform Module is a chip (or firmware equivalent) that implements the Trusted Computing Group's specification. Version 2.0 is the current one. It can generate keys, store them so they never leave the chip in plaintext, sign and decrypt small pieces of data, hold a set of integrity measurements called PCRs, and provide a hardware random number generator. That is roughly the entire menu. Everything useful you hear about TPMs is some combination of those primitives.
Do you already have one?
Most machines built after 2016 ship with a TPM 2.0, either as a discrete chip or as firmware (Intel PTT, AMD fTPM). On Linux you can check in a few seconds:
ls /dev/tpm* /dev/tpmrm*
# and, with tpm2-tools installed:
sudo tpm2_getcap properties-fixed | grep -i version
If /dev/tpmrm0 exists, you have a kernel resource manager in front of a working TPM, which is what you want. If you only see /dev/tpm0, applications have to coordinate access themselves. No device nodes at all usually means the TPM is disabled in firmware; it can often be switched on in the BIOS/UEFI setup screen.
What the chip is genuinely good at
Three jobs justify the TPM's existence on a Linux box.
Keeping keys non-exportable
A key created inside the TPM can be marked so that the private portion never leaves the chip. Software asks the TPM to sign or decrypt; it does not get to read the key. An attacker who copies your entire disk does not copy that key, because it was never on the disk in usable form.
Binding secrets to system state
During boot, firmware and bootloader components are hashed and the results folded into the TPM's Platform Configuration Registers. You can then "seal" a secret so the TPM will only release it when those registers hold expected values. This is how disk-encryption keys can be released automatically on a known-good system but withheld after tampering.
Resisting rollback and guessing
The TPM provides monotonic counters that only ever increase and dictionary-attack logic that slows or locks out repeated authorization failures. These turn "copy the state and try a million times offline" into a much harder problem.
What TPM 2.0 does not do
This is where honesty matters more than enthusiasm. A TPM does not encrypt your disk by itself; it stores or releases the key that LUKS uses. It does not authenticate you; it authenticates the platform and guards secrets. It does nothing against malware running as your user after you have logged in, against a phishing page that harvests a password, or against a vulnerability in the software that talks to it. And a firmware TPM shares a trust boundary with the CPU, so it is weaker against sophisticated physical attacks than a well-designed discrete chip.
The right mental model: the TPM is a careful notary, not a bodyguard. It will faithfully attest to what happened and refuse to hand over secrets out of order. It will not fight anyone.
A quick, honest first experiment
Read your boot measurements. They are not secret, and looking at them teaches you what PCRs are:
sudo tpm2_pcrread sha256
Reboot after a firmware update and read them again; several values will change. That is the mechanism behind measured boot working exactly as designed — the chip noticed the platform changed.
Where this fits in a real setup
On its own, a TPM is infrastructure, not a product. It becomes useful when something builds on it: LUKS with a TPM-sealed key for unattended-but-tamper-aware decryption, or an authentication system that stores a device key in the TPM so the credential cannot be cloned off the machine. At OGOPSEC we use TPM 2.0 binding as one layer under Dire Wolf — the device key is TPM-bound and protected by the chip's anti-rollback counters — but we are careful to describe it as one layer among several, not the whole wall. A TPM is only as valuable as the honest design wrapped around it.
Start by confirming the chip is present and reading your PCRs. Once the primitive stops being an acronym and becomes something you can query, the rest of the TPM world — sealing, attestation, hardware-bound keys — is far easier to reason about.