Why Pluton without competition is not good for security
Inspiration: Matthew Garret's recent blog post about Pluton
Take this article as a food for thought.
I tried to express my critical thinking.
1. Real-world security vs Marketing
Marketing wins.
Since Pluton in x86 CPUs was announced, about a year ago, there are numerous stories claiming that a TPM chip is insecure. Some articles from popular online media go further to suggest that the TPM chips are flawed.
What is the reality?
TPM 2.0 has Man-in-the-Middle protection called Parameter Encryption. Together with its HMAC session, every communication between the CPU and the TPM 2.0 is protected.
Challenge?
OEMs like Lenovo, including UEFI makers, and OS makers like Microsoft, seem lazy to enable the TPM 2.0 MITM protection. Because in the famous Dolos attack this is exactly what we saw - Basic flaw in the system configuration. Not a chip flaw.
T Hudson goes into a great level of detail about how generic the Dolos attack is and how easy it is to fix in this blog post.
Including Matthew Garret wrote about this in his own tweeter thread:

2. How do you feel about anyone becoming your only vendor of hardware security for x86?
Let us start with the economics.
No OEM will pay $1 for a TPM (or other HSM) after Intel & AMD CPUs with Pluton become mass available.
Therefore, it is a reasonable assumption that in 5 to 10 years from now, the only hardware security available on x86 will be the one built in the CPU aka Microsoft's Pluton.
3. What are the alternatives?
OpenTitan funded by Google and developed by LowRisc, without clear date when an actual off-the-shelf chip will be available for purchase.
Microsoft's reference TPM code running inside a generic MCU - Not meant for actual security or use in real-world production environment.
TPM simulators running in memory isolation - meant for development and testing, not actual security.
Use a TPM 2.0 module(header board) and have more control over your computer and servers security. Just do not forget to enable Parameter Encryption as Lenovo and Microsoft did.
Bottom line
Do you prefer Nike's sports gear or Under Armor's?
Maybe you are in Europe and prefer Adidas and Puma better?
Either way, there are options. Different product qualities and price.
When it comes to hardware security in x86,
we are moving away from the limited choice
(of Intel TXT & AMD PSP) and soon we will
be left without a choice.
Intel and AMD hold 90% of the Server Market and 100% of the x86 server market. Everyone's security soon will be limited to one choice and one choice only.
Please think about it and let me know what you think.
Thanks,
Dimi
#ChatAndFeedback👍
1❤️
👍
💡
👏
😂
Explore More Posts
The latest tpm2-tools 5.8 release addresses three GitHub security advisories. One is a heap overflow in tpm2_getekcertificate, and the other is an out-of-bounds write that happens when too many sessions are in use. I don’t have information on the third advisory. Beyond the fixes, 5.8 extends EK certificate handling. It adds the option to read EK certificates from NV RAM, introduces new EK templates and supports a marshaled quote format. https://github.com/tpm2-software/tpm2-tools/releases/tag/5.8
Random Number Generator (TPM2)
1. IntroductionAmong other features, Trusted Platform Modules (TPM) comes with a True Random Number Generator (TRNG) that can be used for various applications including cryptographic purposes. This RNG module serves as the source for randomness for the TPM 2.0 Chip. A RNG module in TPM2 will typically contain the following -
An entropy source and collector
State Register
A mixing func.
There can be two types of calls to the TPM’s Random Number Generator, Internal call and External Call. RNG is capable to provide enough randomness for all the internal calls made. As well as, RNG is capable of providing 32 octets of randomness as per the specification to an external call. Another thing to note here is, each call made to the RNG produces a new value irrespective of the type of call. 1.1 The source of RandomnessThe source of entropy in the TPM is the entropy collector. As the name suggests, entropy collector collects entropy from entropy sources and also removes bias. A TPM2.0 has at least one internal source of entropy. These sources can include noise, clock variations, air movement amongst other events. As depicted in Fig 1.1 the entropy collector provides input to the State Register. 1.2 Stages involved Various algorithms and process supported by TPM calls RNG for unpredictable numbers, which is actually obtained from “RNG Protected Capability”. The “Deterministic Random Bit Generator (DRBG) Protected Capability“ obtains entropy from “Entropy Protected Capability”. Along with Entropy Protected Capability, TPM2_StirRandom() can also gather entropy from other entropy sources within the same TPM. 2. Random Numbers via TPM2 ToolsIf one needs to use TPM’s RNG for other external applications, then TPM2 Tools Command Line tools can be a great option. TPM2 Tools Command : tpm2_getrandom - - hex 16 - - hex : Converts output to hexadecimal 16 : Size in bytes Now, if one wants to have additional randomness, TPM2 Tools provides a convenient utility for this purpose called tpm2_stirrandom. To inject entropy via TPM2_StirRandom() to “Entropy Protected Capability” , we can use some file or use stdin. TPM2 Tools Command : echo -n “some_random_data” | tpm2_stirrandom Note : 128 bytes can only be injected using stdin at once through stirrandom() 3. ConclusionThe TPM2 provides in a sense True Random Numbers for use. These unpredictable numbers are coming from a dedicated hardware, hence can be trusted to be given as input to Crypto Algorithms amongst other applications. TPM2 also uses this for its internal use, and TCG claims it to be as secure as the strongest algorithm that TPM supports. Also, using the RNG is pretty straight forward via TPM2 Tools. #Tutorials



Comments
Start the Conversation
Good point! I'd like to point out two things:
1) Params Encryption in TPMv2.0 is important and we've been using it for a while:
https://github.com/hardenedvault/vaultboot
2) Putting all eggs into one basket never a good idea especially when the basket was found being broken and it's hard to fix:
https://blog.talosintelligence.com/2021/11/a-review-of-azure-sphere.html
This problem with MonoCulture has been addressed over the years...
Here is one of the articles which discussed the problem of having one or two dominant …more
as requested...sent
The session key exchange sniffing can be mitigated by validating the EK Public before establishing the connection. As long as it's not an attacker controlled EK, you're fine.
The only solution that currently works for the TPM 2.0 vulnerabilities is to use an fTPM, and pretty much all modern CPUs have one, so... there's no real issue. But! That means we're already at "you get your security "chip" from the CPU …more
Nicolas Williams Pluton is a black box - We do NOT know how it works. TPM 2.0 is a grey box - We know how it works, following some spec and public information.