Skip to content

Support hmac-secret FIDO2 extension #304

Open

Description

@barathrm

Missing feature

https://fidoalliance.org/specs/fido-v2.0-rd-20180702/fido-client-to-authenticator-protocol-v2.0-rd-20180702.html#sctn-hmac-secret-extension

Justification

My specific use-case is that this is now one (apparently) very easy way to use the minible to decrypt LUKS-encrypted volumes. Here's a guide for it:

http://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html

Relevant man pages for systemd-cryptenroll and crypttab

https://www.freedesktop.org/software/systemd/man/systemd-cryptenroll.html
https://www.freedesktop.org/software/systemd/man/crypttab.html#

Yubikeys seem to support this.

Workarounds

I have to/can manually find and enter the credential using the minible.

Testing

NOTE systemd-cryptenroll doesn't seem to (?) detect the minible as a valid fido2 device, so you may have to specify it manually like so:

sudo systemd-cryptenroll --fido2-device=/dev/hidraw10 /dev/disk/by-id/<partition id>
Specified device /dev/hidraw10 is a FIDO2 device, but does not support the required HMAC-SECRET extension.

Activity

  1. My1 commented on Feb 17, 2023

    @My1
    Contributor

    hmac-secret is a pretty nice thing and iirc also needed for AAD+FIDO stuff which is pretty nice.

  2. My1 commented on Aug 4, 2023

    @My1
    Contributor

    side note: this issue is also blocking #353 (mislabeled currently as it's rather about credprotect which SSH asks for in relation to resident keys)

    credprotect needs CTAP2.1 and CTAP2.1 requires hmac-secret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions