News for hackers. Stuff that matters.
Re:Home Made TPM2.0 Module by logicallee on Saturday May 07, 2022 @05:07AM (#31293127)
Excuse my ignorance, but what is a TPM Module? I've never heard of it, what does it do?
Re:Home Made TPM2.0 Module by strstr on Saturday May 07, 2022 @05:42AM (#31293254)
Re:Home Made TPM2.0 Module by Tijdreiziger on Saturday May 07, 2022 @08:01AM (#31293855)
Computerphile made a great video explaining TPMs: https://youtu.be/RW2zHvVO09g
Re:Home Made TPM2.0 Module by aemreunal on Saturday May 07, 2022 @05:10AM (#31293137)
Re:Home Made TPM2.0 Module by TheSpiceIsLife on Saturday May 07, 2022 @05:24AM (#31293185)
I think the reason for asking the question here, rather than Letting Me Google That For Me, is that that it can lead to interesting conversation, especially since many HN conversations seem to have one or more subject matter experts drop in and explain something.
Re:Home Made TPM2.0 Module by car_analogy on Saturday May 07, 2022 @11:31AM (#31295331)
Another reason is that many of the explanations are little more than industry advertisements, that obfuscate the function of a TPM behind euphemistic or circuitous language.
Re:Home Made TPM2.0 Module by yosamino on Saturday May 07, 2022 @05:13AM (#31293147)
It's a "Trusted Platform Module". The high level summary is that it's a chip that sits inside your computer that is designed to only allow only signed code to run.

The computer's manufacturer loads it with a special certificate, so when the computer tries to boot, the bootloader has to include a signature signed with that initial certificate. This bootloader can in turn contain the next certificate to verify the operating system is signed correctly, the operating system in turn contains certificates that verify that user applications are signed correctly.

In theory this is a sound idea, in practice things and implementations are a lot more messy.

Re:Home Made TPM2.0 Module by josteink on Saturday May 07, 2022 @05:31AM (#31293213)
I’m no expert, but to me it sounds like you are describing UEFI Secure Boot, not TPM.

Case in point: TPM is not required to implement UEFI Secure Boot. You can test yourself in a QEMU VM, if you don’t believe me.

From my understanding, TPM is just a separate crypto-module meant to keep the keys secret even from the CPU and OS itself, allowing you to do various crypto and security related things with higher confidence of the keys not getting leaked.

Applications includes passwordless disk-encryption (MS BitLocker) but also hard-to-crack DRM, making the TPM a somewhat controversial piece if hardware.

Someone please correct me if I’m wrong or my answer is inaccurate in any way ;)

Re:Home Made TPM2.0 Module by joerichey on Saturday May 07, 2022 @06:20AM (#31293422)
As someone who's spent too much time with this stuff, you're correct. The TPM (either 1.2 or 2.0) is an entirely _passive_ chip. It only creates keys or measures data if the OS or UEFI asks it to. This means that it can't block or modify programs on your CPU.

Secure Boot is implemented by UEFI, so it can block the loading of a particular bootloader. You can have Secure Boot without a TPM or have a TPM without Secure Boot. They can be useful together though as you can have a disk-encryption key with a policy saying "I can only decrypt stuff if you've booted using Secure Boot in a particular configuration".

As for DRM, the TPM doesn't work very well as part of a DRM solution (as it's entirely passive). This is probably why very few (if any) DRM products use TPM. Most PC DRM that I've heard of either uses Windows Kernel modules or Intel SGX.

Re:Home Made TPM2.0 Module by yosamino on Saturday May 07, 2022 @08:22AM (#31293955)
> Case in point: TPM is not required to implement UEFI Secure Boot. You can test yourself in a QEMU VM, if you don’t believe me.

I believe you, but doesn't that mean that there is nothing particular secure about this operation ?

But thank you for the correction, I was under the impression that secure boot neccessarily needs a TPM to store it's keys.

Re:Home Made TPM2.0 Module by josteink on Saturday May 07, 2022 @09:09AM (#31294197)
> but doesn't that mean that there is nothing particular secure about this operation ?

Not at all. The trusted signing-certificates don’t need to be stored securely since they only contain public keys.

This is typically stored in NVRAM or EFI-variables.