crosser / pam_pcsc_cr

PAM module for challenge-response over PC/SC. Supports YubikeyNEO.
2 stars 0 forks source link

Support non-smartcard (HID feature) interface, including OnlyKey #2

Open onlykey opened 5 years ago

onlykey commented 5 years ago

Following up from another discussion. I would like to discuss further supporting OnlyKey. Probably the first thing to mention is OnlyKey currently does not have a CCID usb interface. It supports challenge-response the same way as Yubikey which actually uses a USB keyboard interface. The communication is accomplished by sending HID feature reports (8 bytes of data at a time). One advantage of this approach is no UDEV rule is required as USB HID keyboards are supported natively.

crosser commented 5 years ago

Thank you for the suggestion. I generally disapprove of using USB-HID interface in a security gadget, because that

  1. makes it unusable in other-than-desktop context (tablets and phones), and
  2. potentially increases attack surface.

That said, supporting a pupular interface that is also used by low-end yubikeys would be a useful improvement to this PAM module, so I am keeping this open as a potential TODO item. Thanks again!

onlykey commented 5 years ago

@crosser Another common interface used by security devices is USB HID (FIDO U2F). This USB HID interface is different than using the keyboard interface. It generally communicates via 64bytes in/out. This would also be something to consider supporting as this is supported by many devices. Yubico has a PAM-U2F module.