github trustcrypto/OnlyKey-Firmware v3.1.0-prod
OnlyKey 3.1.0 Firmware

pre-release37 minutes ago

We are pleased to announce that the new production OnlyKey firmware is now available! Follow the step-by-step 3.1.0 upgrade guide, and back up your OnlyKey first: see Backup and Restore in the User's Guide. Firmware files and loading instructions are on the firmware page.

OnlyKey 3.1.0 is released together with python-onlykey 1.3.1, onlykey-agent 1.1.17 / lib-agent 1.0.9, OnlyKey App 6.0.0 and the web app at apps.onlykey.io.

Upgrade notes: read these first

  1. Firmware 3.1.0 uses the new web app at apps.onlykey.io. The old app at apps.crp.to supports v3.0.4 or older. A key on v3.0.4 or older cannot answer on apps.onlykey.io: the page shows that no OnlyKey is connected and links to apps.crp.to.
  2. Web PGP with stored keys keeps working, as on v3.0.4. Web/Agent derivation keys are now supported in the browser (this uses a different key from existing SSH/GPG derived keys), to disable Web/Agent derivation keys put the key in config mode and run onlykey-cli webcryptpolicy 0, or use OnlyKey App 6.0.0 → Preferences → Webcrypt Access.
  3. Other websites cannot use the Webcrypt FIDO2 extension. Only apps.crp.to and apps.onlykey.io are admitted, and the list is compiled in. Ordinary FIDO2/WebAuthn login is unaffected.
  4. SSH/GPG derived keys do not change. onlykey-agent keeps the derivation it has always used (v1) as the default. The new v2 derivation is used only when asked for (--skey derived-v2 / --dkey derived-v2), and gives different keys using a better derivation method.
  5. python-onlykey 1.3.1 needs Python 3.10+.
  6. If you had turned the FIDO2 extension off on v3.0.4, it stays off until you set the new Webcrypt policy explicitly.
  7. The International Travel Edition has been removed in this release. There is one firmware edition.
  8. Plausible deniability can no longer be set up; a second profile is encrypted with its own PIN. An OnlyKey that already uses plausible deniability keeps working after the upgrade.

New

  • Post-quantum keys. ML-KEM-768 and X-Wing keys in the ECC slots, which the device can generate itself. Composite PQC PGP keys in the RSA slots (PQC1–PQC4), loaded with onlykey-cli loadpqc, included in backups.
  • Derived X-Wing keys for age. Label-based recipients; the device keeps the private half and does the decapsulation, over USB or in the browser.
  • SSH/GPG agent derivation v2 (opt-in). HKDF-SHA256 over the device key, per identity. v1 is unchanged and remains the default.
  • Authenticated browser transport (transit v2). Every message between the web app and the key is AES-GCM with a counter IV and a verified tag.
  • Webcrypt policy (setting 31). Controls whether the browser may use stored (PGP) keys, derived keys only, or nothing.
  • User input modes. Stored keys, derived keys, and web-and-agent derived keys each have their own confirmation setting: challenge code, button press, or (web-and-agent derived keys only) no press.
  • Keyboard layouts are stored as tables. Every layout is in the release build, in less than half the flash. The circumflex dead key (^, â ê î ô û) is corrected in twelve layouts, Belgian [ and ] are back, and about twenty other per-layout entries now match the Windows layouts.

Fixed

  • Security improvements.
  • Entering the challenge code for a derived secret requested from the browser could refuse a correct code at the first button.
  • Adding a second PIN in config mode to a key that was set up with one PIN made the first profile's keys unreadable. A key that was already affected needs to be restored from backup.
  • Programming HMAC challenge-response and Yubico OTP slots with YubiKey tools (ykman, ykpersonalize) now requires config mode, as loading keys with onlykey-cli does. Challenges are answered as before.
  • A truncated or corrupted backup file is refused on restore instead of partly restored.
  • A signature or ECDH request that fails returns an error instead of an unusable result.
  • Derived key slots 211–214 (web-and-agent derivation) are reachable; one WebCrypt extension credential is accepted per request.
  • The release build enumerates three USB interfaces, as 3.0.4 did.
  • The 20-second confirmation timer kept running after a request was confirmed or refused. A request arriving about 20 s later was answered "Timeout occured while waiting for confirmation on OnlyKey" before it was shown.
  • A CTAPHID message that was still arriving could be wiped by the 5-second buffer timer.
  • A refused stored-key request from the browser was silently dropped; the browser now gets the reason.
  • Failed confirmations are no longer all reported as "incorrect challenge".
  • Responses over 1024 bytes, multi-report sends and FIDO2 response sizing.

Thanks to Thierry De Leeuw for his security review, and to Bradley Matusiak, Keith Jaroszewski, and Rodney Golpe for release testing!

SHA 256 checksums

Signed Txt format firmware files (to be loaded in OnlyKey app)

Signed_OnlyKey_3_1_0_STD.txt
b391eab93a4e3faed9d2969cc279694a90d4a1063126fb4b2f3d12908a69ed4a

Release File Name Information

Signed = Cryptographically signed release file
OnlyKey = Target device
3.1.0 = Version major, minor and patch
STD = Firmware Edition

Don't miss a new OnlyKey-Firmware release

NewReleases is sending notifications on new releases.