News for hackers. Stuff that matters.
Re:Linux and TPMs with systemd measured boot [video] by 542458 on Sunday November 05, 2023 @07:43AM (#38150664)
Side note, does anybody know why TPM schemes use a numeric PIN for pre-boot unlock rather than a full alphanumeric password? For a given length (say, 8) a password would presumably be more secure than just a PIN. It’s not like this is a phone where you need users to be able to quickly enter the code on a limited input surface.
Re:Linux and TPMs with systemd measured boot [video] by Foxboron on Sunday November 05, 2023 @07:49AM (#38150687)
There is no limit to the password. Usinging a 4 digit numeric PIN is just easier to remember, and because of the bruteforce resistance it doesn't decrease the security.
Re:Linux and TPMs with systemd measured boot [video] by alex7734 on Sunday November 05, 2023 @08:48AM (#38151073)
If you're going to use a long password there is no point to using the TPM as the length of the password itself is enough brute force resistance.
Re:Linux and TPMs with systemd measured boot [video] by SV_BubbleTime on Sunday November 05, 2023 @09:28AM (#38151411)
Some you know + something you have/are?
Re:Linux and TPMs with systemd measured boot [video] by alex7734 on Sunday November 05, 2023 @11:44AM (#38152765)
I don't think it is that much more secure, given that in this case "something you have" is bolted onto the machine you're attempting to protect and that a sufficiently long password provides enough space to make brute forcing impossible anyway.

In my opinion all the TPM achieves in this case is ensuring you lose your data if the machine dies (or if some OS update fucks up and doesn't properly ensure the TPM acknowledges the new version as valid).

That said it does help against the so called evil maid attacks, given that it would lock itself out if anyone modifies the OS, so if that's part of your threat model then it is useful, I guess.

Re:Linux and TPMs with systemd measured boot [video] by bootsmann on Sunday November 05, 2023 @06:34PM (#38156913)
Even with a TPM the disk is still fundamentally encrypted with a key that you can make a copy off and put in your drawer for recovery purposes. It just offers a way to do FDE with no or just a low entropy passcode. This protects against most data loss incidents (laptop getting stolen) without producing massive overhead.
Re:Linux and TPMs with systemd measured boot [video] by dist-epoch on Sunday November 05, 2023 @09:16AM (#38151300)
> rather than a full alphanumeric password

Because there are different kinds of keyboards out there, with different layouts, so if you switch keyboard you could find yourself unable to input the password. Imagine typing a "non-English" letter in the password and then switching to a US layout keyboard without that letter. Sure, a rare scenario, but with hundreds of millions of users you will hit it.

Re:Linux and TPMs with systemd measured boot [video] by n_plus_1_acc on Sunday November 05, 2023 @12:06PM (#38153027)
French keyboards have the numbers and symbols swapped. The numbers require shift.
Re:Linux and TPMs with systemd measured boot [video] by poettering on Sunday November 05, 2023 @03:53PM (#38155536)
With systemd you can enroll any string you want as "PIN" for tpm. There are no restrictions. Can be long, can be alphanumeric, contain weird chars, up to you.
Re:Linux and TPMs with systemd measured boot [video] by bootsmann on Sunday November 05, 2023 @06:25PM (#38156833)
This is just the default configuration BitLocker used for a long time, there is a no hardware constraint that causes this. However, pins are easier to remember, usually guaranteed to be available at the pre-boot time the tpm needs unlocking and as the TPM ships with anti-hammering abilities they offer sufficient entropy to protect against attacks.
Re:Linux and TPMs with systemd measured boot [video] by tempmac on Tuesday November 07, 2023 @03:39AM (#38174569)
for windows 10 pro+: you can get full alphanumeric+special_chars ONLY if you do some gpedit stuff

(for win home users: regedit?)