YubiKey explained

Yubico Inc.
Type:Private
Foundation:2007
Location:Palo Alto, California, United States
Key People:Stina Ehrensvärd (CEO and founder)
Jakob Ehrensvärd (CTO)
Industry:Hardware

The YubiKey is a hardware authentication device manufactured by Yubico to protect access to computers, networks, and online services that supports one-time passwords (OTP), public-key cryptography, and authentication, and the Universal 2nd Factor (U2F) and FIDO2 protocols[1] developed by the FIDO Alliance. It allows users to securely log into their accounts by emitting one-time passwords or using a FIDO-based public/private key pair generated by the device. YubiKey also allows storing static passwords for use at sites that do not support one-time passwords.[2] Google, Amazon, Microsoft, Twitter, and Facebook use YubiKey devices to secure employee accounts as well as end-user accounts.[3] [4] [5] Some password managers support YubiKey.[6] [7] Yubico also manufactures the Security Key, a similar lower-cost device with only FIDO2/WebAuthn and FIDO/U2F support.[8] [9]

The YubiKey implements the HMAC-based one-time password algorithm (HOTP) and the time-based one-time password algorithm (TOTP), and identifies itself as a keyboard that delivers the one-time password over the USB HID protocol. A YubiKey can also present itself as an OpenPGP card using 1024, 2048, 3072 and 4096-bit RSA (for key sizes over 2048 bits, GnuPG version 2.0 or higher is required) and elliptic curve cryptography (ECC) p256, p384 and more, depending on version,[10] allowing users to sign, encrypt and decrypt messages without exposing the private keys to the outside world. Also supported is the PKCS#11 standard to emulate a PIV smart card. This feature allows code signing of Docker images as well as certificate-based authentication for Microsoft Active Directory and SSH.[11] [12] [13] [14]

Founded in 2007 by CEO Stina Ehrensvärd, Yubico is a private company with offices in Palo Alto, Seattle, and Stockholm.[15] Yubico CTO, Jakob Ehrensvärd, is the lead author of the original strong authentication specification that became known as Universal 2nd Factor (U2F).[16]

YubiKey released the YubiKey 5 series in 2018, which adds support for FIDO2.[17]

History

Yubico was founded in 2007 and began offering a Pilot Box for developers in November of that year.[18] The original YubiKey product was shown at the annual RSA Conference in April 2008,[19] [20] and a more robust YubiKey II model was launched in 2009.[21] Yubico's explanation of the name "YubiKey" is that it derives from the phrase "your ubiquitous key", and that "yubi" is the Japanese word for finger.[22]

YubiKey II and later models have two "slots" available, for storing two distinct configurations with separate AES secrets and other settings. When authenticating the first slot is used by only briefly pressing the button on the device, while the second slot gets used when holding the button for 2 to 5 seconds.

In 2010, Yubico began offering the YubiKey OATH and YubiKey RFID models. The YubiKey OATH added the ability to generate 6- and 8-character one-time passwords using protocols from the Initiative for Open Authentication (OATH), in addition to the 32-character passwords used by Yubico's own OTP authentication scheme. The YubiKey RFID model included the OATH capability plus also included a MIFARE Classic 1k radio-frequency identification chip,[23] though that was a separate device within the package that could not be configured with the normal Yubico software over a USB connection.[24]

Yubico announced the YubiKey Nano in February 2012, a miniaturized version of the standard YubiKey which was designed so it would fit almost entirely inside a USB port and only expose a small touch pad for the button.[25] Most later models of the YubiKey have also been available in both standard and "nano" sizes.

2012 also saw the introduction of the YubiKey Neo, which improved upon the previous YubiKey RFID product by implementing near-field communication (NFC) technology and integrating it with the USB side of the device.[26] The YubiKey Neo (and Neo-n, a "nano" version of the device) are able to transmit one-time passwords to NFC readers as part of a configurable URL contained in a NFC Data Exchange Format (NDEF) message. The Neo is also able to communicate using the CCID smart-card protocol in addition to USB HID (human interface device) keyboard emulation. The CCID mode is used for PIV smart card and OpenPGP support, while USB HID is used for the one-time password authentication schemes.[27]

In 2014, the YubiKey Neo was updated with FIDO Universal 2nd Factor (U2F) support.[28] Later that year, Yubico released the FIDO U2F Security Key, which specifically included U2F support but none of the other one-time password, static password, smart card, or NFC features of previous YubiKeys. At launch, it was correspondingly sold at a lower price point of just $18, compared to $25 for the YubiKey Standard ($40 for the Nano version), and $50 for the YubiKey Neo ($60 for Neo-n).[29] Some of the pre-release devices issued by Google during FIDO/U2F development reported themselves as "Yubico WinUSB Gnubby (gnubby1)".[30]

In April 2015, the company launched the YubiKey Edge in both standard and nano form factors. This slotted in between the Neo and FIDO U2F products feature-wise, as it was designed to handle OTP and U2F authentication, but did not include smart card or NFC support.[31]

The YubiKey 4 family of devices was first launched in November 2015, with USB-A models in both standard and nano sizes. The YubiKey 4 includes most features of the YubiKey Neo, including increasing the allowed OpenPGP key size to 4096 bits (vs. the previous 2048), but dropped the NFC capability of the Neo.

At CES 2017, Yubico announced an expansion of the YubiKey 4 series to support a new USB-C design. The YubiKey 4C was released on February 13, 2017.[32] On Android OS over the USB-C connection, only the one-time password feature is supported by the Android OS and YubiKey, with other features not currently supported including Universal 2nd Factor (U2F).[33] A 4C Nano version became available in September 2017.[34]

In April 2018, the company brought out the Security Key by Yubico, their first device to implement the new FIDO2 authentication protocols, WebAuthn (which reached W3C Candidate Recommendation status in March[35]) and Client to Authenticator Protocol (CTAP). At launch, the device is only available in the "standard" form factor with a USB-A connector. Like the previous FIDO U2F Security Key, it is blue in color and uses a key icon on its button. It is distinguished by a number "2" etched into the plastic between the button and the keyring hole. It is also less expensive than the YubiKey Neo and YubiKey 4 models, costing $20 per unit at launch because it lacks the OTP and smart card features of those previous devices, though it retains FIDO U2F capability.

Product features

A list of the primary features and capabilities of the YubiKey products.[36] |-! YubiKey VIP !! YubiKey Plus !! YubiKey Nano !! YubiKey NEO-n !! YubiKey 4 Nano !! YubiKey Edge-n !! YubiKey Standard !! YubiHSM 1 !! FIDO U2F Security Key !! Security Key by Yubico !! YubiKey NEO !! YubiKey 4C Nano !! YubiKey 4C !! YubiKey 4 Nano !! YubiKey 4 !! YubiKey C Nano FIPS !! YubiKey C FIPS !! YubiKey Nano FIPS !! YubiKey FIPS !! YubiHSM 2 !! Security Key NFC by Yubico !! YubiKey 5C Nano !! YubiKey 5C !! YubiKey 5 Nano !! YubiKey 5 NFC !! YubiKey 5Ci !! YubiKey 5C NFC|-| 2011–2017 || 2014–2015 || 2012–2016 || 2014–2016 || 2016–2017 || 2015–2016 || 2014–2016 || 2015–2017 || 2013–2018 || 2018–2020 || 2012–2018 || 2017–2018 || 2017–2018 || 2015–2018 || 2015–2018 || 2018–present || 2018–present || 2018–present || 2018–present || 2017–present || 2019–present || 2018–present || 2018–present || 2018–present || 2018–present || 2019–present || 2020–present|-| Yes || Yes || || || || || || || || || || || || || || || || || || || || || || || || || |-| || || Yes || Yes || Yes || Yes || Yes || || || || Yes || Yes || Yes || Yes || Yes || || || || || || || Yes || Yes || Yes || Yes || Yes || Yes|-| || || Yes || Yes || Yes || Yes || Yes || || || || Yes || Yes || Yes || Yes || Yes || || || || || || || Yes || Yes || Yes || Yes || Yes || Yes|-| || || Yes || Yes || Yes || Yes || Yes || || || || Yes || Yes || Yes || Yes || Yes || || || || || || || Yes || Yes || Yes || Yes || Yes || Yes|-| || || || Yes || || || || || || || Yes || Yes || Yes || Yes || Yes || || || || || || || Yes || Yes || Yes || Yes || Yes || Yes|-| || || || Yes || Yes || Yes || || || || || Yes || Yes || Yes || Yes || Yes || || || || || || || Yes || Yes || Yes || Yes || Yes || Yes|-| || || || Yes || Yes || Yes || || || || || Yes || Yes || Yes || Yes || Yes || || || || || || || Yes || Yes || Yes || Yes || Yes || Yes|-| || Yes || || Yes || Yes || Yes || || || Yes || Yes || Yes || Yes || Yes || Yes || Yes || || || || || || Yes || Yes || Yes || Yes || Yes || Yes || Yes|-| || || || || || || || || || Yes || || || || || || || || || || || Yes || Yes || Yes || Yes || Yes || Yes || Yes|-| || || || || || || || Yes || || || || || || || || || || || || Yes || || || || || || || |-| || || || || || || || || || || || || || || || Yes || Yes || Yes || Yes || || || || || || || || |-| || || || || || || || || || || Yes || || || || || || || || || || Yes || || || || Yes || || Yes|-| Yes || Yes || Yes || Yes || Yes || Yes || Yes || Yes || Yes || Yes || Yes || || || Yes || Yes || || || Yes || Yes || Yes || Yes || || || Yes || Yes || || |-| || || || || || || || || || || || Yes || Yes || || || Yes || Yes || || || || || Yes || Yes || || || Yes || Yes|-| || || || || || || || || || || || || || || || || || || || || || || || || || Yes ||

ModHex

When being used for one-time passwords and stored static passwords, the YubiKey emits characters using a modified hexadecimal alphabet which is intended to be as independent of system keyboard settings as possible. This alphabet is referred to as ModHex and consists of the characters "cbdefghijklnrtuv", corresponding to the hexadecimal digits "0123456789abcdef".[37]

Since YubiKeys use raw keyboard scan codes in USB HID mode, there can be problems when using the devices on computers that are set up with different keyboard layouts, such as Dvorak. ModHex was created to avoid conflicts between different keyboard layouts. It only uses characters that are located in the same place on most Latin alphabet keyboards, but is still 16 characters, allowing it to be used in place of hexadecimal.[38] Alternatively, this issue can be addressed by using operating system features to temporarily switch to a standard US keyboard layout (or similar) when using one-time passwords. However, YubiKey Neo and later devices can be configured with alternate scan codes to match layouts that aren't compatible with the ModHex character set.[39]

This problem only applies to YubiKey products in HID mode, where it must emulate keyboard input. U2F authentication in YubiKey products bypasses this problem by using the alternate U2FHID protocol, which sends and receives raw binary messages instead of keyboard scan codes.[40] CCID mode acts as a smart card reader, which does not use HID protocols at all.

Security issues

YubiKey 4 closed-sourcing concerns

Most of the code that runs on a YubiKey is closed source. While Yubico has released some code for industry standard functionality like PGP and HOTP it was disclosed that as of the 4th generation of the product this is not the same code that the new units ship with.[41] [42] Because new units are permanently firmware locked at the factory it is not possible to compile the open source code and load it on the device manually, a user must trust that the code on a new key is authentic and secure.

Code for other functionality such as U2F, PIV and Modhex is entirely closed source.

On May 16, 2016, Yubico CTO Jakob Ehrensvärd responded to the open-source community's concerns with a blog post saying that "we, as a product company, have taken a clear stand against implementations based on off-the-shelf components and further believe that something like a commercial-grade AVR or ARM controller is unfit to be used in a security product."[43]

Techdirt founder Mike Masnick strongly criticized this decision, saying "Encryption is tricky. There are almost always vulnerabilities and bugs -- a point we've been making a lot lately. But the best way to fix those tends to be getting as many knowledgeable eyes on the code as possible. And that's not possible when it's closed source."[44]

ROCA vulnerability in certain YubiKey 4, 4C, and 4 Nano devices

In October 2017, security researchers found a vulnerability (known as ROCA) in the implementation of RSA keypair generation in a cryptographic library used by a large number of Infineon security chips, as used in a wide range of security keys and security token products (including YubiKey). The vulnerability allows an attacker to reconstruct the private key by using the public key.[45] [46] All YubiKey 4, YubiKey 4C, and YubiKey 4 Nano devices within the revisions 4.2.6 to 4.3.4 were affected by this vulnerability.[47] Yubico remedied this issue in all shipping YubiKey 4 devices by switching to a different key generation function and offered free replacements for any affected keys until March 31, 2019. In some cases, the issue can be bypassed by generating new keys outside of the YubiKey and importing them onto the device.[48]

OTP password protection on YubiKey NEO

In January 2018, Yubico disclosed a moderate vulnerability where password protection for the OTP functionality on the YubiKey NEO could be bypassed under certain conditions. The issue was corrected as of firmware version 3.5.0, and Yubico offered free replacement keys to any user claiming to be affected until April 1, 2019.[49]

Reduced initial randomness on certain FIPS series devices

In June 2019, Yubico released a security advisory reporting reduced randomness in FIPS-certified devices with firmware version 4.4.2 and 4.4.4 (there is no version 4.4.3), shortly after power-up.[50] Security keys with reduced randomness may leave keys more easily discovered and compromised than expected. The issue affected the FIPS series only, and then only certain scenarios, although FIPS ECDSA usage was "at higher risk". The company offered free replacements for any affected keys.

Social activism

In 2018, Yubico gave away free YubiKeys with laser engraved logos to new WIRED and ArsTechnica subscribers.[51]

Yubico provided 500 YubiKeys to protesters during the 2019–2020 Hong Kong protests. The company states the decision was based on their mission to protect vulnerable Internet users and work with free speech supporters.[52] [53]

See also

Notes and References

  1. Web site: Specifications Overview. FIDO Alliance. 4 December 2015.
  2. Web site: What Is A Yubikey. Yubico. 7 November 2014.
  3. Facebook Pushes Passwords One Step Closer to Death . Wired . 3 October 2013 . 7 November 2014 . McMillan.
  4. News: Diallo. Amadou. Google Wants To Make Your Passwords Obsolete. 15 November 2014. Forbes. 30 November 2013.
  5. News: Say Goodbye to the Password. Blackman. Andrew. 15 September 2013. 15 November 2014. https://web.archive.org/web/20140103085719/https://online.wsj.com/news/articles/SB10001424127887323585604579008620509295960. 3 January 2014. The Wall Street Journal.
  6. Web site: YubiKey Authentication. LastPass. 15 November 2014.
  7. Web site: KeePass & YubiKey. KeePass. 15 November 2014.
  8. Yubico Releases FIDO U2F Security Key. Yubico. 2014-10-21. 2018-05-05.
  9. Yubico Launches New Developer Program and Security Key for FIDO2 and WebAuthn W3C Specifications. 2018-04-10. 2018-05-06.
  10. https://support.yubico.com/hc/en-us/articles/360016649139-YubiKey-5-2-Enhancements-to-OpenPGP-3-4-Support#h.17w9cagj5zl8
  11. Web site: Launching The 4th Generation YubiKey. Yubico. 20 November 2015.
  12. Web site: With a Touch, Yubico, Docker Revolutionize Code Signing. Yubico. 20 November 2015.
  13. Web site: Setting up Windows Server for YubiKey PIV Authentication. 2021-06-06. Yubico. en-US.
  14. Web site: SSH user certificates. 2021-06-06. developers.yubico.com.
  15. Web site: The Team. Yubico. 12 September 2015 .
  16. Web site: History of FIDO. FIDO Alliance. 16 March 2017.
  17. Web site: Yubico launches new YubiKey 5 Series 2FA keys, supports passwordless FIDO2 and NFC. 2018-09-24. Android Police. 2019-10-07.
  18. Web site: Yubico launches YubiKey Pilot Box. Yubico. https://web.archive.org/web/20080221182949/http://yubico.com/news/071126/. 2008-02-21. 2007-11-26. 2018-05-06. live.
  19. Web site: Security Now! Notes for Episode #141. Security Now!. Steve Gibson. Gibson Research Corporation. April 2008. 2018-05-05.
  20. Web site: Episode #141 - RSA Conference 2008. Leo Laporte and Steve Gibson. Security Now!. Gibson Research Corporation. 2008-04-24. 2018-05-05.
  21. Web site: Yubikey II – got it. Mike. Read My Damn Blog. 2018-05-05. 2009-08-27.
  22. Web site: Company Information. 2020-11-30. Yubico. en-US.
  23. Web site: RFID YubiKey. https://web.archive.org/web/20110829223639/https://store.yubico.com//store/catalog/product_info.php?products_id=17. Yubico Store. 2018-05-05. 2011-08-29.
  24. Web site: RFID YubiKey. IDivine Technology. 2018-05-05.
  25. Yubico Launches YubiKey Nano, The World's Smallest One-Time Password Token. Yubico. 2018-05-05. 2012-02-28.
  26. Web site: Yubico introduces one-time password token that secures access to the contents of NFC phones. NFC World. 2012-02-22. Sarah. Clark. 2018-05-05.
  27. Web site: YubiKey NEO Composite Device. David. Maples. 2012-12-26. Yubico. 2018-05-05.
  28. Yubico Introduces Industry's First FIDO Ready™ Universal 2nd Factor Device. Yubico. 2014-01-06. 2018-05-05.
  29. Web site: YubiKey Hardware. Yubico. https://web.archive.org/web/20141107232634/https://www.yubico.com/products/yubikey-hardware/. 2014-11-07.
  30. Web site: pamu2fcfg doesn't support test devices. .
  31. Yubico Launches YubiKey Edge at RSA 2015; OTP and U2F Two-Factor Authentication in One Key. Yubico. 2018-05-05.
  32. News: NEW YubiKey 4C featuring USB-C revealed at CES 2017 Yubico. 2017-01-05. Yubico. 2017-09-14.
  33. News: Can the YubiKey 4C be plugged directly into Android phones or tablets with USB-C ports? Yubico. Yubico. 2017-09-14. 2017-09-14. https://web.archive.org/web/20170914215822/https://www.yubico.com/support/knowledge-base/categories/articles/can-yubikey-4c-plugged-directly-android-phones-tablets-usb-c-ports/. dead.
  34. Web site: Our Family is Growing! YubiKey 4C Nano Unveiled at Microsoft Ignite. 2017-09-25. Yubico. 2018-05-05.
  35. Web site: Candidate Recommendation (CR) for Web Authentication Specification. Michael. Jones. W3C Web Authentication Working Group. 2018-03-20. 2018-05-06.
  36. Web site: What YubiKey Do You Have. 2021-02-11.
  37. Web site: Modhex - why and what is it?. Yubico. 12 June 2008. 6 November 2016. Jakob. E. 16 November 2017. https://web.archive.org/web/20171116184919/https://forum.yubico.com/viewtopic.php?f=6&t=96. dead.
  38. Web site: Modified hexadecimal encoding (ModHex) . 2023-09-01 . docs.yubico.com.
  39. Web site: Expanding YubiKey Keyboard Support. Alvin. Toh. 2013-07-24. Yubico. 2018-05-05.
  40. Web site: FIDO U2F HID Protocol Specification. 2017-04-11. FIDO Alliance. 2018-05-06.
  41. Web site: A comparison of cryptographic keycards. 21 September 2020. LWN.net.
  42. Web site: Bad News: Two-Factor Authentication Pioneer YubiKey Drops Open Source PGP For Proprietary Version. 21 September 2020. techdirt.
  43. Web site: Secure Hardware vs. Open Source. Yubico.com. 18 September 2022.
  44. Web site: Masnick. Mike. 16 May 2016. Bad News: Two-Factor Authentication Pioneer YubiKey Drops Open Source PGP For Proprietary Version. Techdirt. 27 March 2020.
  45. Web site: ROCA: Vulnerable RSA generation (CVE-2017-15361) [CRoCS wiki]]. crocs.fi.muni.cz. 2017-10-19.
  46. Web site: NVD - CVE-2017-15361. nvd.nist.gov. 2017-10-19.
  47. Web site: Infineon RSA Key Generation Issue - Customer Portal. Yubico.com. 11 June 2019.
  48. Web site: Yubico Mitigation Recommendations. Yubico.com. 11 June 2019.
  49. Web site: Security advisory YSA-2018-01. 2021-01-04. Yubico. en-US.
  50. Web site: Security Advisory YSA-2019-02 Reduced initial randomness on FIPS keys. 2019-06-14.
  51. Web site: Manning . Ronnie . 2018-02-01 . WIRED and Ars Technica Experts Choose YubiKey 4 for New Subscribers . 2023-09-01 . Yubico . en-US.
  52. Web site: Swedish tech firm Yubico hands Hong Kong protesters free security keys amid fears over police tactics online. 2019-10-10. South China Morning Post. 2019-10-18.
  53. Web site: Yubico 贊助香港抗爭者世上最強網上保安鎖匙 Yubikey 立場新聞. 立場新聞 Stand News. zh. 2019-10-18.