5 comments

  • kanbankaren4 minutes ago
    If you are worried about privacy, do a FDE, but don&#x27;t enroll with TPM.<p>You have no idea what is inside the TPM chip and its vulnerabilities.
  • lakeviewterrace40 minutes ago
    Extraordinary how Linux continues to be 20 years behind Microsoft and Apple when it comes to FDE. This is a hilariously stupid level of complexity for something that should have a universal solution across distros by now.<p>This is literally a one click process in Windows (plus a couple shell commands to enable TPM+PIN).<p>I&#x27;m not disparaging the author in any way — he&#x27;s merely documenting the stupidity.
    • setopt12 minutes ago
      On both my Fedora laptop and on my MacBook, I have to enter a password at boot to unlock the hard drive, and both had similar complexity to set it up (in Fedora I clicked a button and entered a password during the install, on Mac I clicked a button and wrote down a backup key after the install).<p>I think this is specifically for the TPM2 integration, which isn’t required for FDE. But I assume it makes it smoother. System updates that requires multiple reboots for example are more annoying on Fedora, since every reboot requires re-entering the password, while on Mac I just login after the final reboot.
    • bubblethink32 minutes ago
      What problem is this solving though? The post says they&#x27;re doing this to avoid typing passphrases. Why would you want the private key hidden in the tpm chip of that device? How will you decrypt if the laptop goes bust or if you move the drive elsewhere?
      • lakeviewterrace29 minutes ago
        The TPM generates a strong, non-exportable key in hardware that is far less susceptible to brute-force attacks.<p>As opposed to accidentally creating your own key of &quot;4&quot;, for instance.<p>A PIN can be used to protect the TPM from unlocking. Even if you set a PIN of &quot;1234&quot; — it would still be far more secure if the disk and laptop were ever to become separated, because the TPM will have generated a strong key anyway.<p>The TPM is basically a smart card soldered to the motherboard.<p>&gt; How will you decrypt if the laptop goes bust or if you move the drive elsewhere<p>Windows and Apple both generate a recovery key as part of the enrollment process which you can store offline.
        • hparadiz10 minutes ago
          When you format LUKS you can add multiple decryption keys in case the TPM is hosed for some reason like the mobo failing. Can even use a Yubikey instead of a TPM. Or both. Or none. It&#x27;s really up to you.
    • Avamander35 minutes ago
      Fairly sure that if the correct GPOs are set, there is no need for any shell commands needed for a TPM PIN enrollment.<p>Windows and macOS both can do FDE with good UI&#x2F;UX compared to Linux.
      • lakeviewterrace32 minutes ago
        This is 100% correct, my comment was referring to non-domain joined PCs with no policies set.
    • hparadiz5 minutes ago
      Has nothing to do with distros. This is you encrypting your disk for the kernel to open during boot. It literally prompts you normally when it hits the step where it attempts to mount the main partition. The way Linux does it is far more flexible and secure because the keys aren&#x27;t sent to some third party and no one can unlock it without your keys. You are free to use anything to sign the LUKS partition besides a TPM or some silly pin like a Yubikey or whatever the hell you want.
  • Velocifyer1 hour ago
    This is a worse version of my post <a href="https:&#x2F;&#x2F;blog.velocifyer.com&#x2F;Posts&#x2F;6,How%20to%20set%20up%20secure%20boot%20and%20lockdown%20mode%20and%20TPM%20based%20storage%20decryption%20on%20Arch%20Linux&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.velocifyer.com&#x2F;Posts&#x2F;6,How%20to%20set%20up%20se...</a>
  • izacus26 minutes ago
    Does this still prevent hibernation from working?
  • phoronixrly57 minutes ago
    This is still vulnerable to evil maid. You need to be able to attest the system before you enter the PIN.
    • bri3d26 minutes ago
      Sealing to a reasonable subset of PCRs (ie, not just 7 like the article) is reasonably strong against point-in-time evil maid, no?<p>Like, in Evil Maid Scenario 1, where the Evil Maid only has one-time access, if you&#x27;ve sealed to say 0,2,4,7,9 , or 7 and 15 with a reasonable setup for what gets extended into 15, the Evil Maid&#x27;s Fake PIN Entry Software would _not_ validate in the secured boot configuration and couldn&#x27;t actually unseal the TPM, only coerce you into entering your PIN. Then the Evil Maid would have to physically return to your &quot;correct&quot; boot state with the PIN to unseal the disk, no?<p>(this is all modulo firmware and early boot exploits, of course, since in that case the attestation could also be forged also)
      • bubblethink22 minutes ago
        The maid can just swap out the laptop for a diff one.
        • lakeviewterrace11 minutes ago
          A different one ... that you would notice immediately because the PIN would not unlock your disk?<p>You&#x27;re in here shitting on TPM but don&#x27;t seem to understand the threat model at all.
          • bri3d9 minutes ago
            No, I think this is a valid threat model and a good rebuttal. The evil maid steals the original laptop, replaces it with a second laptop with a look-alike PIN entry screen without an attestation. You enter your PIN, it is transmitted to the evil maid with the first laptop, and your data is unlocked. You would notice, but your data would be exposed.<p>Now, to be clear, I don&#x27;t think this negates TPM-sealed disk encryption or TPM-and-PIN sealed disk encryption; they&#x27;re still meaningfully better than the alternatives (with a passphrase alone, your data is already compromised regardless in this invented scenario, and all scenarios are equally variable to the swiss-cheesiness of UEFI firmware unless it is replaced). But it is a valid model.
          • bubblethink10 minutes ago
            What does it matter if it doesn&#x27;t unlock the disk? It&#x27;s a different device with a logger. The purpose of the maid is to be evil and steal your pin. The maid has your real device. The only way to prevent this is by you authenticating the device before you enter anything. Look at the heads project (<a href="https:&#x2F;&#x2F;github.com&#x2F;linuxboot&#x2F;heads" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;linuxboot&#x2F;heads</a>).
        • phoronixrly19 minutes ago
          Precisely, exfiltrate the pin, unlock the real one.
    • phoronixrly50 minutes ago
      tpm2totp used to do this, and it also eliminated the need to divulge the secret used to unlock the TPM, I now see that it has not seen a commit in 2 years.<p>I also hear mjg59 is looking into encrypted swap hibernation support, so there&#x27;s a slim chance there will be some development on the system-attestation front.