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

Possibility of using WebUSB to interact with age keys stored on a YubiKey? #16

Open
mirshko opened this issue Dec 18, 2023 · 2 comments

Comments

@mirshko
Copy link
Contributor

mirshko commented Dec 18, 2023

Subject says it all really, but wondering if it would be possible to decrypt using the private key stored on a yubikey at all, or if this functionality wouldn't really be possible in-browser.

@FiloSottile
Copy link
Owner

This would be nice, but my understanding is that smart cards (presumably all of CCID/OpenPGP/PIV/CTAP2) are not accessible via WebUSB like all other device classes handled natively by the OS. In fact, there was a big vulnerability because initially it was possible to use WebUSB to talk directly to FIDO2 tokens and bypass origin binding in WebAuthN.

What is probably possible is using the WebAuthN prf extension (explainer) to interoperate with age-plugin-fido2-hmac. (Note that's not age-plugin-yubikey and only supports symmetric encryption.) I'd be happy to see a PoC of that, and you could consider opening an issue in age-plugin-fido2-hmac's tracker.

There is also a Web Smart Card API proposal. It's possible we'd be able to use that, but I am not sure how they plan to handle the security issues they describe.

@olastor
Copy link
Contributor

olastor commented Aug 31, 2024

What is probably possible is using the WebAuthN prf extension (explainer) to interoperate with age-plugin-fido2-hmac. (Note that's not age-plugin-yubikey and only supports symmetric encryption.) I'd be happy to see a PoC of that, and you could consider opening an issue in age-plugin-fido2-hmac's tracker.

Just saw this comment. This is quite exciting as my latest understanding was that the hmac-secret extension has no browser support at all. I created an issue to look into this.

@olastor olastor mentioned this issue Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants