/ Documentation / Keyslots / Post-quantum keyslots

Post-quantum keyslots

Hybrid ML-KEM-768 / 1024 keyslots - when, why, how.

Hybrid post-quantum keyslots add an ML-KEM (Module-Lattice Key Encapsulation Mechanism, FIPS 203) layer on top of either passphrase or FIDO2 unlock. The wrap-KEK is derived from BOTH the classical secret AND the ML-KEM shared secret, so a quantum attacker who breaks one primitive still can't recover the MVK without the other.

Should you turn this on?

Yes if you're protecting data that needs to stay confidential past 2035 against an adversary who could (a) capture USB-HID traffic during your enrollment / unlock today, (b) store your encrypted vault file, and (c) wait for a cryptographically relevant quantum computer to arrive.

No if you don't have a way to keep the separate .kyber seed file on trusted storage that's separate from the vault itself. Hybrid-PQ without the seed file is the same as no PQ.

The two flavours

Slot kind Classical factor PQ factor Strength
HybridPqKemPassphrase Argon2id passphrase ML-KEM-768 NIST cat 3 (~AES-192)
HybridPqKem1024Passphrase Argon2id passphrase ML-KEM-1024 NIST cat 5 (~AES-256), eligible for ANSSI Eleve
HybridPqKemFido2 FIDO2 hmac-secret ML-KEM-768 cat 3, hardware-backed
HybridPqKem1024Fido2 FIDO2 hmac-secret ML-KEM-1024 cat 5, hardware-backed

ML-KEM-1024 is overkill for most threat models. Pick it if your governing standard explicitly requires it (ANSSI Eleve, certain regulated industries) or if you want belt-and-suspenders.

Create a hybrid-PQ vault

# Create the vault. LUKSbox generates the Kyber seed and writes it to
# the --pq-hybrid path: put it on SEPARATE TRUSTED STORAGE (a USB
# stick you keep elsewhere, an HSM, etc.). Whoever has this file plus
# the vault passphrase can unlock the vault.
luksbox create my-vault.lbx --kind hybrid-pq \
    --pq-hybrid /media/usb/my.kyber

# For the FIDO2-hybrid variant
luksbox create my-vault.lbx --kind hybrid-pq-fido2 \
    --pq-hybrid /media/usb/my.kyber

This produces three files:

Open a hybrid-PQ vault

luksbox mount my-vault.lbx /tmp/v --pq-hybrid /media/usb/my.kyber
# Prompts for the vault passphrase.

create --kind hybrid-pq encrypts the .kyber file with the vault passphrase, so one prompt is enough. A slot added from the wizard or the GUI can protect its seed file with a different passphrase: since 0.6.0 the CLI and the wizard then ask for the seed-file passphrase too (scripts: LUKSBOX_SEED_PASSPHRASE). Before 0.6.0 such slots could not be opened from the CLI or the wizard.

For the FIDO2-hybrid variant: same command (add --fido2 if the vault also has a passphrase hybrid slot). It asks for the key's PIN and the seed-file passphrase you chose at create time, then for a touch. A FIDO2-hybrid slot added from the wizard can also bind an optional extra slot passphrase; when the slot does not open without one, the CLI and the wizard ask for it (scripts: LUKSBOX_SLOT_PASSPHRASE), without another touch. The GUI has an "extra slot passphrase" field for it. Before 0.6.0 such slots could not be opened anywhere.

Adding hybrid slots to an existing vault

From the CLI, the passphrase and FIDO2 hybrid kinds above can only be created with create; the wizard and the GUI can add them to an existing vault. The TPM and Secure Enclave hybrid kinds are added with enroll (see TPM 2.0 and Secure Enclave), where --pq-hybrid names the NEW seed file. If the vault's only slots are hybrid ones, add --unlock-pq-hybrid <existing .kyber> to unlock it (0.6.0+):

luksbox enroll my-vault.lbx --kind hybrid-pq-tpm2 \
    --unlock-pq-hybrid /media/usb/my.kyber \
    --pq-hybrid /media/usb/my-tpm.kyber

Since 0.6.0, adding a hybrid slot after revoking another hybrid slot works in every front end: the new slot usually takes the freed slot number, and the revoked slot's leftover entry in the .lbx.hybrid sidecar is now replaced. Before, the new slot could not be opened.

Threat-model context

The CTAP2 hmac-secret transport uses ECDH-P256 to encrypt the secret on the USB wire. ECDH-P256 is not post-quantum secure - a future CRQC could decrypt recorded USB exchanges and recover the hmac_secret. Pure-FIDO2 vaults are vulnerable to this attack; hybrid-PQ-FIDO2 vaults are not (the attacker would also need the Kyber seed file).

For the full threat model, see Threat model.

What about pure ML-KEM (no classical layer)?

Not offered. ML-KEM is a young primitive with limited public cryptanalysis history. Pairing it with battle-tested classical primitives (Argon2id, AES-256) means a future cryptanalytic break in either family doesn't break the vault. This is also the design guidance in NIST SP 800-208 and the broader PQ-transition consensus.

Implementation pointers