I’d like to clarify several low-level security capabilities of the Librem 5 and Liberty Phone, particularly what is already supported on shipping devices versus what would require additional development.
1. LUKS2 / Storage Encryption
Is LUKS2 fully supported on both devices?
Can all persistent user data be encrypted, and which partitions must remain unencrypted?
Are there any known limitations with the existing encryption implementation?
2. Hardware-Protected Key Storage
Does the hardware provide usable secure key storage through NXP CAAM, OP-TEE, or another mechanism?
Can Linux use these facilities to protect or retrieve LUKS2 unlock secrets?
Are there existing drivers, APIs, documentation, or working examples?
3. Measured Boot / Boot-Bound Key Release
Does the hardware support trustworthy measurements of the bootloader, kernel, initramfs, and relevant boot configuration?
Can a LUKS2 unlock secret be bound to those measurements, so it is available only when the approved boot environment is running?
Can this work without preventing alternative operating systems from booting?
Can the owner configure and update the approved measurements or key-release policies?
Is any of this already implemented, or would it require bootloader/firmware development?
4. Secure Boot / Bootloader
Are the Librem 5 and Liberty Phone shipped with NXP High Assurance Boot (HAB) enabled or disabled?
Can owners configure their own Secure Boot signing keys?
Can hardware-enforced boot verification be enabled without preventing independently built and signed OS images?
Would enabling it require irreversible fuse programming?
Are USB/UUU recovery and microSD boot subject to the same verification mechanism?
5. External Security Keys
Is USB host mode available during initramfs startup, before the encrypted root filesystem is mounted?
Can FIDO2 security keys such as YubiKey be used for LUKS2 unlocking?
Is there any existing integration with Librem Key or other external security tokens?
6. Practical Implementation
Which of the above capabilities are already functional on shipping hardware?
Which are supported by the SoC but require additional firmware, bootloader, kernel, or userspace development?
Are there relevant documentation pages, Git repositories, implementation examples, or known limitations?
I’m particularly interested in whether hardware-protected, boot-state-bound LUKS2 unlocking is achievable on these devices without requiring a conventional boot-time passphrase or prohibiting alternative OS booting.
Thanks in advance for any technical clarification or references.
This community forum is probably not the best venue to directly contact the Purism team for detailed technical information; as an entity, they don’t spend much time here.
However, @JCS (an employee) and other informed users here may be able to provide some answers.
A small number of general comments from me (just a community member):
There probably isn’t any difference between the two phones in terms of security capability. So it may be OK just to ask about one model of phone.
LUKS2 is certainly in use by default if the intent of your question is to distinguish LUKS2 from LUKS1.
I think “no”. Out of the box (if you choose LUKS at all), the boot partition is not encrypted and the root partition is encrypted.
I think the intention may be that the OpenPGP card is used to unlock LUKS if you want to unlock LUKS without entering a passphrase. I don’t know whether anyone has tried to get that to work. The OpenPGP card is optional (and removable).
At this time, I think not. So there are no restrictions on booting.
Basically, the laptops are some years ahead of the phones, as far as protecting the boot goes.
I’m not an expert in encryption and boot measurements, but I know a bit or two about Librem 5 and i.MX 8M Quad, so I’ll answer what I can.
Yes, it’s used by default.
In the default implementation, the entire rootfs is encrypted and the /boot partition with kernel and initramfs is not.
If you taught u-boot how to decrypt the partition and grab and pass the key to the kernel you could encrypt /boot as well, I guess.
There’s CAAM, AFAIK OP-TEE should just work on imx8mq, eMMC has a RPMB block and there’s a smart card reader which you can use however you like.
I don’t see why it couldn’t; assembly required though.
Disabled.
Yes, yes, yes, yes.
Haven’t tested for a while, but it should be. If it’s not, it sure could be fixed.
Can’t see why not.
I’m not aware of anything explicitly targeting Librem 5, but integrations that work on desktops should work here too. It’s a regular Debian LUKS setup (and you’re free to use other kinds of setups as well, such as systemd-homed).
And for everyone who can answer, just a few follow-up questions to understand the practical implementation:
Measured boot + hardware-protected LUKS key: Do you know of any existing Librem 5 implementation, proof of concept, Git repository, or HOWTO that demonstrates binding a LUKS unlock secret to trusted boot measurements? Or would this need to be developed from scratch using CAAM/OP-TEE?
HAB Secure Boot: Is there any Librem 5-specific guide for generating our own signing keys, signing U-Boot/kernel images, configuring HAB, and safely provisioning the necessary eFuses? I’d particularly appreciate any tested procedure that avoids the risk of permanently bricking the (expensive and old) device.
Boot chain: Does enabling HAB on the Librem 5 authenticate only the initial bootloader, or is verification of the kernel and initramfs already implemented as well? Would additional U-Boot configuration or development be required?
External security key: Has anyone successfully used a YubiKey/FIDO2 token or the built-in smart-card reader to unlock LUKS during Librem 5 startup?
I’m mainly looking for existing working implementations or documentation versus capabilities that are theoretically possible but require additional engineering.