Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hmac-secret FIDO2 extension #304

Open
barathrm opened this issue Oct 10, 2021 · 2 comments
Open

Support hmac-secret FIDO2 extension #304

barathrm opened this issue Oct 10, 2021 · 2 comments

Comments

@barathrm
Copy link

barathrm commented Oct 10, 2021

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.
@My1
Copy link
Contributor

My1 commented Feb 17, 2023

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

@My1
Copy link
Contributor

My1 commented Aug 4, 2023

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
Projects
None yet
Development

No branches or pull requests

3 participants