The blast radius is narrower than the technique suggests however. There is no remote component, so the attacker must be physically at the keyboard and know the right combination of keys. The machine must also have at least one account linked to an online Microsoft account, because the reset flow that anchors the attack depends on it.
Devices running only local accounts are not affected.



They are re deriving the key every time. It is a cheap operation and no, any sane TPM manufacturer will not make a TPM that has operation to anyway extract their key. Think of TPM a fancy math hardware which only expose a function called add, but only accept 1 parameter. You don’t know what the addition number is besides what you provide to it (of course in reality it is not a function that can be trivially deduced)
I am surprised because you don’t want the generation of the key to be fast - that allows brute force attacks to be simple
I know more about the Android side, but there they have the disk encryption key that takes a long time to generate locked behind a faster encryption scheme for FBE down in the TEE
On Windows, do they use a fast encryption method, or do they just not care about boot speed?
you don’t have to worry about that when you’re starting from a cyrptographic-strength key, rather than a low-entropy password. key derivation can be as fast as you want it to be and you’ll still run out of energy in the observable universe before you manage to brute force the tpm’s secret, even if it’s just a 256-bit one.
slow kdfs are just copium to make weak passwords slightly less weak.
Are the inputs of “serial number of motherboard,” “serial number of UFS” random enough to make the KDF safe to generate each time?
I guess my question is moving more to “what cryptographically secure inputs are being used if a secure key isn’t stored”
It should have one single starting seed baked in, call it the super secret internal tpm key. That one makes sure every tpm is uniqe and cannot be replicated or deduced.
The manufacturer might in theory know it.
So Bitlocker uses TPM private key + Hard drive serial number, and something like ECDSA to generate the key?
tpm private keys stay in the tpm. You can hand it some data and it’ll shuffle it based on its internal key at the moment, which is based on all the checksums it ingested and its starting seed.
You can’t just ask tmp to give you its true state, cause then you could emulate it if there were further ingested checksums (“advances”).
No clue if bitlocker throws in hard drive serial, but it might. The tpm may then encrypt it with its current state, via whatever hardware function it uses. Bitlocker is probably asking for symmetric encryption I would assume, so not ecdsa. But who knows.
The tpm generates the key, and then since bitlocker is just ripping of luks, I assume this like 256 bit key opens a luks key slot that is a much larger key that then opens the master key and lets you actually read the drives data. That is all in normal software then, from the point the tmp spits out those 256 bits.
I think you’re agreeing with me here
I don’t think the underlying encryption key is re-derivated, I think the TPM is used to unlock that key
TL;DR long semantics argument to follow:
“unlocking” with tpm requires re-deriving the tpm state, by design.
You start with some value, say the harddrive id. Then you pass it to tpm, and get back a different value.
You could call the id here the “locked key” and the return the “unlocked key”, but I think that’s highly misleading because of of sensitive the tpm is. Any change to the boot sequence, or a bios update, or manual tpm reset, can all make the tpm reach a different state (seed) and produce different output for your same input id. And it’s not “failed” to derive that key then, the new key is as valid as the old, just different (and presumably doesn’t work).
The key that unlocks the luks slot is a mix of (1) the “secret” you put in, which may be a password or just a drive id that’s publically readable, and (2) of the internal tpm state after going through the boot sequence, (downstream of) the “storage seed”.
I think Linux calls this output a derived key, which sounds better.
Note:
tpm has a few seeds.
There is a null seed, which only changes between tpm resets (bios tpm clear, or sometimes bios updates) so is directly based on the tpm secret (and maybe a reset counter or similar).
When calling the tpm, you could pick the null chain and mix in that pretty-static value (Linux does this as part of its checks of the tpm). Of course, disk encryption will not do that to initially derive/mix its key, it will use the storage seed, that does get advanced throughout the boot sequence.
Actually tpm has 24 PCRs (seeds), which go to various stages of the boot process or are used by the later OS for applications making use of the tpm. The disk key will be mixed with the pcr seeds that contain the full boot sequence: “PCRs 0, 2, 3, 5, 6, and 7 are reasonable choices.” wiki.gentoo/TPM/LUKS
The null seed is (kinda) when not selecting any PCRs
Note2:
There is a thing called wrapping (or sealing), which is basically using the tpm to lock and unlock data you care about. Simply by using symmetric encryption twice.
In checking this, I saw that clevis, the typical Linux tool for tpm disk unlock, is actually using wrapped keys stored externally.
The downside is that you need to store the database of wrapped keys somewhere and pass it to clevis, though in practice luks2 has space for this. The other downside is that there is no step to add extra information to the mix, like a harddrive id. So this would need e.g. another round of encryption of the wrapped “locked” key.
I haven’t checked what bitlocker does, but if it uses the harddrive id etc. as you say, then it’s most likely not using a wrapped key.
On the other hand even if it is using a wrapped key like Linux, I’m still unhappy about calling it unlocking, as mentioned before. Maybe I could live with “restoring”, but even then - if you go guessing tpm seeds you’re just as likely to find a random other tpm seed that happens to turn your random data into other random data that happens to unlock the luks slot, than you are to find the initial key you generated. And there is no way to tell them apart. I think for “restoring” something, you should have some inherent way of confidently knowing that some output is definitely correctly decrypted. So a good checksum, or really a meaningful output, typically much larger than they key. In fairness this would be provided by testing it on the disk, but means without that disk it’s impossible to tell.
And to turn “restoring” into “unlocking”, I’d want the process to be reliable, predictable, and based on some ultimately known thing.With tpm disk unlock there is a secret you can’t know only the tpm, with the tpm being fragile and sometimes just breaking, and then on top you add a lot of state from your entire system and all boot components.
Imagine your house keys stopped working every time you buy a new pan.
And then, you can’t just restore the key by some backup, no, it’s impossible to ever know the key again, and you have to generate a new lock and to know its key and use this one now.
If anything in the tpm changes, you cannot ever again unwrap the key, the “restore” fails, and you need to make a new key to enroll in luks, then wrap that one in the new tpm.
Only if you knew the tpm was gonna reset, you could insecurely unwrap the key, hold it in memory, then reset tpm and wrap the key with the new tpm state. While the key is wrapped, it is in dire peril. I would argue the tpm is then the thing making the key, and your stored value is merely taking the purpose of a seed.