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

Investigate emulation possibilities (kvm/qemu) of Nitrokey usb security dongles #1842

Open
tlaurion opened this issue Nov 8, 2024 · 8 comments

Comments

@tlaurion
Copy link
Collaborator

tlaurion commented Nov 8, 2024

This guide introduces the USB/IP runner and shows how it can be used to simulate a Nitrokey 3 device.
https://github.com/Nitrokey/nitrokey-3-firmware/blob/main/docs/usbip.md

That would resolve most of my qemu (tcg, not kvm) problems in HOTP testing, and most of automated testings needs (outside of #1203)

@tlaurion
Copy link
Collaborator Author

tlaurion commented Nov 8, 2024

Alternative that could implement reverse HOTP sealing support:

@mkopec
Copy link
Contributor

mkopec commented Nov 21, 2024

I got the usbip NK3 runner working according to the doc , the key appears in lsusb but it looks like the usbip runner is built without the secrets app (so no HOTP support). I'm still looking into how difficult it would be to enable

@macpijan
Copy link
Contributor

@mkopec So this would need to be added to the NK3 emulator? Why don't we ask @daringer about that? We may also create issue in NK repo with such a question, and cross-reference here. If that can be done, I am sure NitroKey folks would know better than us.

@mkopec
Copy link
Contributor

mkopec commented Nov 21, 2024

Created Nitrokey/nitrokey-3-firmware#564

@tlaurion
Copy link
Collaborator Author

@mkopec details requested under Nitrokey/nitrokey-3-firmware#564 (comment)

@tlaurion
Copy link
Collaborator Author

@mkopec details requested under Nitrokey/nitrokey-3-firmware#564 (comment)

@mkopec asked specifics for Heads use case and docs improvements needed for qemu under following comment

@tlaurion
Copy link
Collaborator Author

tlaurion commented Nov 25, 2024

CCID functions not supported from usb runner?

Nitrokey/nitrokey-3-firmware#564 (comment) :

Seems like refered doc limitation section's bug Nitrokey/nitrokey-3-firmware#261 is blocker to this, referring to this discussion (no fix) : https://lore.kernel.org/lkml/ZBHxfUX60EyCMw5l@Sun/

@tlaurion
Copy link
Collaborator Author

Cannot build usb-runner Nitrokey/nitrokey-3-firmware#564 (comment)

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