So tbh this is more of a “because it’s there” kind of question than any real need. Basically most of my devices support some kind of TPM, whether it be a chip on my older OEM laptops, or an fTPM on my 3950X, and given Windows 11 I imagine it’s only going to be more prevalent going forward.
Currently I use GPG to encrypt specific folders that are sensitive, but given how convenient TPM makes whole disk encryption (and being able to use with it LUKS) it’s kind of compelling. My worry is that linking the decryption key to my physical hardware seems like a singularly bad idea. Like, if I change out my CPU or motherboard, or if the TPM ever needs replacing I’m just asking for data loss – of everything, not even the encrypted data. And it seems like the best way of preventing loss would be to back up my data unencrypted elsewhere, which would surely defeat the point. Right now it’s seeming like the probability of someone acquiring data from my desktop, vs the probability of losing said data makes the risk not really in the favour of encryption.
If any of you use TPM, on Linux or Windows tbh, how do you manage this to minimise the probability of irrevocably losing data some time down the line? It seems to make far more sense on a laptop to me, where both the chances of physically losing the sensitive data is higher and the far smaller likelihood of hardware changes causing problems with the storage of the decryption keys.
I think the idea to to attempt to mitigate malware along with using the VPS tech that Microsoft has too.
Now of course there are only so many things even a home user can do other then NEVER connecting to the inet, but of course that seems to be an impracticle solution.
As for you other questions on Encryption, leaving that to folks with better knowledge of these things
TPMs are meant to secure the data from some accessing it on the local machine/hard drive somehow and lay the ground work for further hardening of the OS, it’s not meant to be a silver bullet.
That is to say, just continue following good 1-2-3 backup practices and encryption techniques for stuff stored off the local machine.
It doesn’t actually solve or introduce any data retention issues.
TPM protects the local machine, it’s not meant to have any meaningful impacts on how data retention policies should work or be implemented.
Edit:
I’ve been using BitLocker for years and the shift to TPM basically changes nothing for me, for example.
not quite mate.
it protects data not the local machine.
it allows the local machine to access the data on it but if you take the hdd and put it in another machine with a different tpm module the data will be un readable…
its more drm than data protection and will be used as such.
all your games drm tagged, all your apps drm tagged. no sharing your music because its tpm locked and so on.
what its meant to do and what it will be used for are 2 different things.
nope not being pedantic. it is what it is and corporations will try to abuse it for there benefit not yours.
you gotta ask why microsoft are trying to push tpm. when its already been compromised by hackers with proof of concept available.
like i said mate they are pushing it as a security measure?, thats already insecure and may even be a security hazard.
to me it seems to be a cheap way of implementing drm for things like windows store.
I mean, at the end of the day it’s a tool. What that tool is used for depends on the user. The likes of Riot might want to use it as a form of DRM, as might Microsoft, but it’s just a piece of hardware that my PC has installed and all implementations this particular PC employs using it will be open source and controlled by me.
My concern is that any hardware change that messes with the TPM will essentially interfere with my PC’s ability to decrypt the main hard drive(s) (I haven’t even considered how I’d implement this with my six installed drive. The data I already encrypt isn’t even on the boot drive – maybe this makes it simpler. Maybe it makes it more complex. idk at this stage). Essentially it’s adding another point of failure, if you want to put it in mechanical terms.
I know it’s not a silver bullet of security, it’s one of many aspects that could improve not only security but also convenience. That said, I am also of the opinion that physical access to my desktop implies physical access to my home which is a substantially greater concern. I do back up regularly, but by the same token the external USB drive I use for this is… if anything easier to gain access to than the desktop… so what’s even the point?
I guess the tl;dr is that my current backup practices shouldn’t change. I should keep putting my data, as it currently exists, on my backup drives. However given that this encryption protects against someone with physical access to my PC (and assuming they can’t just… log into my account and read it), which means they have at that point broken into my house and are somehow obsessed with my desktop, and that they could at that stage just take the external backup drive and have everything anyway…
What’s even the point? lmfao Sorry, this was a really rambly stream of consciousness, I didn’t structure my thoughts here at all.
So, while I don’t agree with @anon7678104 (the TPM thing is fairly controversial, and I just didn’t want to drag that out here, honestly), I think you took away the main thing:
Basically, this.
It’s cool, man. Whatever helps you sort it out. Was fairl understandable, regardless.
The main reason I use BitLocker and stuff personally is due to how that all vertically integrates with the Windows OS for a more secure system overall. (supposedly lol I certainly am not qualified to talk on that with authority, but it does seem what they’re aiming to achieve)
I’m not particularly worried about physical access to anything myself on my desktop, but at the very least it builds good habits and costs me little to turn on, is how I look at it.
edit:
I haven’t tested this myself, but as long as the TPM remains the same, you should be able to freely swap other hardware as needed.
And even if it doesn’t work like that, from experience with fTPM, it’s as simple as just backing up the BitLocker (or whatever you use to encrypt) key somewhere to use when you need to unlock stuff manually.
edit2:
Clarification on the BitLocker thing:
The process of updating BIOS wipes the fTPM stored values, which invalidates the system credentials for the BitLocker volumes, but all that means is that I have to type in the key manually on next reboot which will than validate the system again and everything is back to normal.
I use TPM module with BitLocker on Windows, and as it’s not that hard to use. As far as I can tell any hardware change other than adding a new drive will prompt for recovery key. Print your recovery key and store it in a safe place and you are fine. You can even add PIN protection on startup so if it gets tampered with and you (or someone else) miss a few times it wipes the TPM (recovery key will still work).
For Linux, I found it pain in the ass to setup so it’s just LUKS with a passphrase and no TPM.
MacOS has FileVault where it also gives you the recovery key.
As for why, well I don’t like having unencrypted anything, just as I don’t like leaving my crappy car unlocked and then leaving. It’s probably not good enough to protect against a targeted attack but it should be more than capable of protecting your data against a common thief.
Oh, and backup of course, personally mine goes to TrueNAS with encryption on. I think TrueNAS can even encrypt and push to cloud, still looking into this.
My point is, I just don’t see a reason not to use it - adds a layer of safety and it’s easy to recover if you save the recovery keys.
Except this; owning a crappy, soft top jeep means I just leave the doors unlocked since the alternative is that they slice it open anyway (would rather them take whatever than leave me dealing with that) (T_T)
I’ve had this as well and found it easier to (temporarily) turn off BitLocker on the drive, proceed with update and re-enable it afterwards. It saves me from looking up the key and manually entering it. ^^;
But yes, overall it is quite easy to use in the manner you described.
FYI: By TPM I am talking about the products, not the concept of a trusted platform
You minimize it by not using TPM. For SOHO there are no benefits compared to HW wallets or just using passphrases and AES - TPM is a game of numbers - if you stage 1000 notebooks a month, how many of the users will you save.
Just like physics, it is all about vectors - SW attacks are so widespread that TPM does nothing for you - you can hide inside a driver and Windows is not ever remotely clean enough to notice. If you have physical access to somebody at their home - well your TPM is the least of your problems. They will use the same argument for people as they do for corporations - it is game of numbers. Except it is not - families and small offices are not even remotely as cohesive as corporations.
After user error the most dangerous vector will still be upstream and TPM will not save you from compromised sources.
The next one is unattended computer: At SOHO you do not have the budget to keep things healing and resetting. So any form of poisoning will go right pass TPM.
EDIT: Those are the reasons it was disabled for over 10 years. Companies literally lie about USB keyboard polling to promote their motherboards They would enable 2 TPMs and an TPM overclock button if there was any marketing benefit.
Do not mistake concept of Theater with real life With windows 11 you are the product and M$ is enforcing it to keep it sage just like a company would employees.
I am making a point, that you are likely thinking about TPM now because of it. If you are a user for ten or so years it is in every CPU - then I guess you have your reasons.
I’m thinking about TPM because I have a bunch of machines that utilise it and recently had to fight the TPM module in a formerly Windows 7 laptop so I could install Kubuntu on it.
My understanding of TPMs is not that comprehensive, so I could be wrong, but the general idea seems to be to have the TPM wired to be in a position where it can observe the boot process (called measurement sometimes) then it will unlock certain functionality if the boot process seemed normal.
I think at least one or both of the following is true:
You can generate keys inside the TPM, and then use those keys to perform crypto operations it has implemented so the private key material never leaves the TPM.
You can load a key into the TPM so that it performs operations or give you back the private key material when you ask for it.
In the BitLocker anecdote that @aj0413 provides, I do not know what recovery key is actually for:
is it a key for decrypting on-disk data?
—i.e.: disk + recov.key = plaintext
is it merely a key to unlock the TPM?
—i.e.: disk + TPM + recov.key = plaintext
if the latter, that means the TPM is a single point of failure, and effectively the only way to use a BitLocker-ed disk on a different computer is to reformat it.
if the former, then the TPM is simply a convenience tool that saves you the hassle (and theoretically susceptibility to key-logging) on most boots.
If this is actually what is happening (TPM values are cleared), and not just the new BIOS/firmware invalidating the TPM’s boot-time measurement, then this would suggest that the recovery key is for the actual data, not to merely unlock the TPM.
@cakeisamadeupdrug Since it sounds like you are using Linux, you probably need to look into what data LUKS actually stores on the TPM, though if TPMs are as finicky on Linux as others in the thread have described, I cannot imagine LUKS developers making it the single point of failure I hypothetically describe above.
My understanding was that in BitLocker on windows the TPM is used to both generate and somehow store(?) … (or regenerate maybe?) the key used to encrypt the data.
That key is used for the crypto operations on that drive.
You should be able to unlock a BitLocker drive on another machine using a different TPM as long as you have access to the key.
Edit:
I couldn’t speak with confidence if fTPM values are cleared or merely invalidated, but I lean towards actually wiped since nothing else survives the BIOS flash proces
Keep in mind, I was describing how fTPM works for me, I haven’t tried that with an actual physicaly separate TPM
Surely you can’t just regenerate a crypto key? if it’s gone then all the information required to decrypt that information has gone with it and you would have to reformat. I can see manually typing it in as an alternative, but not regeneration
Unless I misunderstood what you meant by regeneration
So, for instance, I recently implemented a hashing algorithm for work on passwords.
As long as the same input goes in, you’ll get the same output.
Ergo, you can “regenerate” a key as long as you have the original thing it was generated from.
Not sure if TPMs at all work that way, but wouldn’t be surprised if it basically used your hardware or something else as a fingerprint by which to generate the key from
Edit:
Would mean it doesn’t need to actually store the values as it would technically always generate the same one
That sounds like a horribly bad idea. If it really were generating the key, you would have no way of regenerating the same key with different inputs (i.e. hardware/firmware changes).
The more I think about this, the more likely I think it really is just that BitLocker is (in effect) caching a copy of the decryption key on the TPM for convenience; in LUKS terms, I suppose this would be like giving the TPM its own password slot.
I am curious though, is the recovery key the actual encryption key, or is it too just another password slot for BitLocker’s keyblock?
At least I think it is called a keyblock; I am referring to when you have a block of data that stores the final/real key multiple times, but encrypted different ways (I think encrypting a key with another key is called wrapping). This way multiple users/components/machines can unlock the same device, but each using a different starting key that can unwrap a different portion of the keyblock.
I remember reading that TPMs are very slow compared to CPUs, so the actual final encryption will never be done on the TPM itself. However, that does not mean that the CPU is doing the encryption, the TPM could be handing off the key to let the disk do the decryption itself if it is a Self Encrypting Drive (SED).