github framefilter/keyroost v0.17.0

5 hours ago

Added

  • openpgp info shows the cardholder name and public-key URL. The
    CLI prints the 005B name and 5F50 URL (cardholder_name and url
    in --json), and the app's Card details entries pre-fill from the
    card, keeping staged edits and dropping them on a card swap.
    Contributed by @dlacko. (#260)
  • fido ssh export ID picks one of several SSH credentials that share
    an RP ID,
    such as ssh-keygen keys made for the same application with
    different -O user= names. --rp alone couldn't tell them apart, so
    export refused. The ID is the credential's hex ID, an argument as in
    fido credential delete ID; fido ssh list now prints it under each
    credential. Exported by ID, the default file name carries the ID's
    first 8 hex digits, so two such exports don't land on the same file.
    (#265)
  • fido ssh list takes --json. It printed its text lines instead.
    Each resident SSH credential is an entry with its rp_id,
    credential_id (as fido credential list gives it) and cert_present,
    whether the key holds an OpenSSH certificate for it. (#265)
  • A Molto2 can be named, and its name shows as soon as it's plugged in.
    keyroost reads the serial printed on the token with the token's own
    keyless get info and nothing else: the app once per plug-in,
    keyroostctl once per command that lists keys, names one or works on a
    Molto2. Other commands (fido, oath and the like) send it nothing,
    unless their --device matched no key: then it's read so the refusal
    can say that the value names the Molto2, which can't do that. The
    token's row shows that serial, keyroostctl name set names it, and
    --device takes the name. Until now a scan never connected to a Molto2,
    so it could be named only in the app, after opening it. A token that
    doesn't answer is asked at most three times per plug-in, and opening it
    in the app fills the serial in. (#267)
  • OTP codes on Feitian FIDO keys. The new feitian group reads, adds,
    imports and deletes TOTP and HOTP accounts in the OTP applet these
    keys carry (info, list, code, add, import, delete), naming
    an account by --app and --account as otp does, and the app has a
    Feitian OTP tab that lists accounts, reads a code, and adds, imports
    and deletes accounts. The key computes a code, and saves or deletes an
    account, once it is touched. Checked on an ePass FIDO NFC Plus; the
    applet's access codes aren't supported yet. Contributed by @Snrat.
    (#268)
  • An Identiv/Hirsch uTrust FIDO2 key shows its serial number. A key
    with no USB serial string showed no serial. keyroost now reads it from
    the key's card manager through its smart-card reader, with the read
    the vendor's uTrust FIDO2 Technical Manual describes. The four bytes
    shown are the serial the vendor's uTrust Token Manager shows: on a
    uTrust FIDO2 NFC with firmware 3.33, the last eight digits of the
    serial number printed on the key. The issue's reporter checked it on
    firmware 3.30. Whether the number differs on every key is not
    verified yet; two connected keys showing the same one are kept apart.
    Contributed by @Snrat. (#271)
  • Feitian OTP without the smart-card reader. When a Feitian key has
    no reader on the computer, or its reader can't be opened, the
    feitian commands and the app's Feitian OTP tab reach the applet
    through the key's FIDO HID interface instead, as Feitian's own client
    does. A key seen only that way is listed with FEITIAN-OTP?. On
    Windows this needs an administrator, like FIDO2. Checked on an ePass
    FIDO NFC Plus and a BioPass FIDO Pro. Contributed by @Snrat. (#273)
  • Feitian OTP can be reset. feitian reset resets a Feitian key's
    OTP applet, the app's Feitian OTP tab has a Reset button, and
    factory-reset now resets that applet too instead of leaving its
    accounts on the key. The key resets once it is touched. Afterwards
    keyroost lists the applet's three slots and says the accounts are
    wiped only when every slot reads empty; otherwise it names the slot
    that still holds accounts, or that couldn't be read, and the reset
    counts as failed. The reset was checked on an ePass FIDO NFC Plus with
    accounts in its default slot, on its own and as a factory-reset
    step. Contributed by @Snrat. (#273)
  • More of PIV works on Feitian keys. keyroost now sends these keys
    their own form of five things that did not work there: importing a
    private key (piv key import and the app's import), a PIN and a touch
    policy for a generated or imported key, RSA-3072 and RSA-4096 keys,
    the PIN and PUK retry counts, and a new management key. What a key
    holds goes by its product: an ePass FIDO NFC Plus takes RSA up to 4096
    bits, P-256 and P-384 and a 3DES management key; a BioPass FIDO Pro
    takes RSA-1024, RSA-2048 and P-256 and a 3DES or AES management key.
    Checked on one key of each with the command line. Contributed by
    @Snrat. (#274)
  • PIV reset on Feitian keys. piv reset and factory-reset, and
    the same actions in the app, now reset the PIV applet of a Feitian
    key: they block its PIN and PUK and send the reset instruction these
    keys use. Before, the key refused keyroost's reset and a factory reset
    reported PIV as failed. After a reset keyroost names the PIN and PUK
    the key is left with (both 12345678). A BioPass FIDO Pro waits for a
    touch before it resets, and keyroost asks for it. Checked on an ePass
    FIDO NFC Plus and a BioPass FIDO Pro with the command line.
    Contributed by @Snrat. (#274)
  • A password vault on FIDO2 keys (experimental). fido vault keeps
    passwords in an encrypted vault in the key's large-blob store, opened with the
    FIDO2 PIN and a touch: vault list, add, delete, rotate (a new key for
    the vault), export and import (a passphrase-protected backup file,
    imported selectively), and vault entry list, show, add, edit and
    delete. Every change re-reads the key first, so another program's change is
    reported, not overwritten. It uses the vault and backup formats of Token2's
    FidoParole, checked against FidoParole's own vault code and libfido2; Token2
    approved building on it in discussion #74. The large-blob store is shared with
    websites that keep data with their passkeys, so a vault write that leaves less
    than a quarter of it free prints a note saying how full it is. Checked end to
    end on a YubiKey 5; please report problems as issues. (#285)
  • A key generated on a Feitian key is read back from the key. piv cert request and piv cert generate no longer need the public key
    saved when the key was made (--pubkey-in): an ePass FIDO NFC Plus
    and a BioPass FIDO Pro attest a key generated on them, with a command
    of Feitian's own, and keyroost reads the public key from that
    certificate. An imported key is not attested, as on a YubiKey. Checked
    on both products with the command line, except certificate import.
    On these two products, importing a certificate into a slot with a
    generated key now reads the attestation first (about 2 s on the ePass)
    and refuses a certificate whose key does not match; not checked on
    hardware. Contributed by @Snrat. (#286)
  • fido credential compare compares two keys. The new command lists
    the passkeys (resident credentials) found on only one of two connected
    FIDO2 keys, matched on relying-party ID and user handle, with --json
    support. Security-key sign-ins kept on the website's side can't be
    listed by any tool, so they aren't compared. With exactly two keys
    connected no naming is needed; otherwise --a and --b (or
    --a-path/--b-path) name the sides, or a terminal asks which, and
    --pin, --a-pin and --b-pin supply the PINs. Contributed by
    @dlacko. (#287)
  • The password vault in the app (experimental). A Vault tab on FIDO2 keys
    that can hold one, beside Authenticator, with a Password vault card on the
    Overview: unlock with the PIN and a touch, copy usernames and passwords (out
    of clipboard history on macOS, Windows and X11, and cleared after 45 seconds
    or when the vault locks), add and edit entries with a password generator,
    delete entries, create, delete and rotate vaults, and export and import
    backups, ticking which entries to bring in. A change made elsewhere is
    reloaded, never overwritten. A Learn page explains it. (#294)
  • Unlock with a fingerprint instead of the FIDO2 PIN (experimental). On a
    key with a fingerprint enrolled, --unlock fingerprint unlocks with a touch
    of the sensor and no PIN, and --unlock auto tries the finger and falls back
    to the PIN given by --pin, saying which one unlocked. Every command that
    takes the FIDO2 PIN has it, apart from fido pin change: fido credential,
    fido fingerprint, fido config, fido pin min-length set and
    force-change, fido blob, fido ssh, every fido vault command, and
    name set|clear on the key. The app has a Touch fingerprint button beside
    Unlock on the FIDO2 and Vault tabs and in the naming field, and in the
    Settings dialog on keys that allow settings changes by fingerprint; each tab
    takes its own touch. It follows CTAP 2.1, and CTAP 2.3 on a key that lists
    FIDO_2_3 (telling such a key apart for vault listings was contributed by
    @Snrat), and was tested against scripted keys, not yet on a fingerprint
    key: please report problems as issues. (#295, #299)
  • factory-reset on a CanoKey uses CanoKey's own device reset. On its
    USB reader, the command and the app's Factory reset block the key's
    Admin PIN (unless it already is), as the key requires, then reset
    everything on it in one step, FIDO2 included and with no replug: every
    applet, PIN and setting goes back to its default once the key gets a
    quick tap each of the five times it blinks (holding it down doesn't
    count). This is also the way back for a forgotten CanoKey Admin PIN.
    Contributed by @Snrat. (#296)
  • CanoKey PIV is supported as CanoKey 3.1 does it. keyroost reads a
    CanoKey's firmware version and hardware variant from its Admin applet
    and offers what that firmware supports: a PIV reset blocks the PIN and
    PUK first, as the key requires; only an AES-192 management key is
    offered, and it can be kept PIN-protected so the PIN alone unlocks
    management; the default PIN, PUK and management key are known; long
    commands go chained, since the key takes no extended-length APDU
    (OpenPGP key imports and decryption too); and an RSA-3072 or RSA-4096
    slot's public key is read back, which the key sends only when asked
    with Le, so piv test and the slot list see those keys. The IDs the
    key uses for Ed25519, X25519, RSA-3072/4096 and P-521 are read from
    the key, so a table changed with CanoKey's tools is followed. Firmware
    before 3.1 has only a 3DES management key and no P-521, so neither
    AES-192 nor P-521 is offered there, and firmware 2.x's own IDs for
    Ed25519, X25519 and RSA-3072/4096 are used (from CanoKey's source;
    not checked on such a key). Contributed by @Snrat. (#296)
  • CanoKey keys are recognized. A CanoKey (USB 20A0:42D4) is listed
    as a CanoKey with its model, such as Canary, instead of as a
    Nitrokey, and its smart-card reader and FIDO interface show as one key.
    The CanoKey support in this release follows CanoKey's
    firmware source (3.1.2) and its own tools, and was checked over USB on
    a CanoKey Canary with firmware 3.1.2 on Windows; NFC, macOS and Linux
    are not checked on a key yet. Contributed by @Snrat. (#296)
  • keyroost says when a key wants a long touch to reset (getInfo
    longTouchForReset): fido info shows it (long_touch_for_reset with
    --json), the app's FIDO2 "Security policy" card shows it, and on such
    a key every FIDO2 reset prompt, in fido reset, factory-reset and the
    app, says to touch and hold the key. fido credential list also names
    ES256K, ML-DSA-44, ML-DSA-65 and ML-DSA-87 keys. Contributed by @Snrat.
    (#297)

Changed

  • An Identiv/Hirsch uTrust FIDO2 key's firmware is the version printed
    on it.
    The firmware shown for such a key, in the app's key header
    and in fido info, was the three version bytes of its FIDO interface
    (0.0.1 on a key with firmware 3.33). It is now the version the key
    itself gives through its smart-card reader, 3.33 on that key, to a
    command found in the vendor's uTrust Token Manager for Windows (it is
    not in the vendor's documentation). The issue's reporter checked it
    on firmware 3.30. When the key doesn't answer that read, for instance
    with no reader for it here, the version bytes of its FIDO interface
    are shown as before. Contributed by @Snrat. (#271)
  • A Feitian key's firmware is its COS version. The firmware shown
    for a Feitian FIDO key, in the app's key header and in fido info,
    was the three version bytes of its FIDO interface (1.0.1 on a BioPass
    FIDO Pro). It is now the key's COS version, the one Feitian lists for
    the product, read from the key through its smart-card reader and
    shown as read: 47.17.00 on that key, which Feitian writes 4.7.17, and
    01.08.26 on an ePass FIDO NFC Plus, which Feitian writes 1.826. When
    the key doesn't answer that read, for instance with no reader for it
    here, the version bytes of its FIDO interface are shown as before.
    Contributed by @Snrat. (#273)
  • A Feitian key shows its own serial. keyroost now reads the serial
    of a Feitian key with the OTP applet from the key itself, the one
    Feitian's own software shows. Before, such a key showed the serial
    field of its OpenPGP applet, 00000001 on both keys measured, or none
    when it has no OpenPGP applet. Checked on three keys of two products,
    the ePass FIDO NFC Plus and the BioPass FIDO Pro. A Feitian key named
    before this release may need its name set again. Contributed by
    @Snrat. (#273)
  • fido credential list --json gives user_id as hex. A credential's
    user handle is bytes, often not text, so it now comes as lowercase hex
    like credential_id, and every byte can be recovered. Before, bytes that
    weren't text came out as replacement characters. (#285)
  • What keyroost knows a Feitian key's PIV to do goes by the PIV version
    it was measured at.
    An ePass FIDO NFC Plus and a BioPass FIDO Pro are
    asked for their PIV application version, which piv info and the app
    show as Feitian writes it (9166, 4717). A key of either product
    with an earlier version, or one whose version cannot be read, is still
    sent Feitian's commands; what was seen to work on the measured keys is
    then offered as unverified, not as known. Feitian told a contributor
    (November 2026) that a later version of one product has the larger
    number, and that an update to a key can change what its PIV does. The
    numbers are on Feitian's products page (9166 for the ePass FIDO NFC
    Plus K9D, 8063 for the K9). Checked on three keys with the command line.
    Contributed by @Snrat. (#286)
  • A key's name and notes: a note when the store is nearly full. A
    name saved on the key or a fido blob note belongs to no passkey, so
    a browser may clear it when the large-blob store is full and a website
    needs room; setting it again restores it. Saving one that leaves less
    than a quarter of the store free now prints the note vault saves print,
    in the CLI and in the app. (#288)
  • A CanoKey's serial is shown in decimal, as CanoKey's own tools show
    it, in list, fido info and the app. openpgp info adds the hex
    digits GnuPG shows after it (439041101 (0x1A2B3C4D)), and its --json
    gives the decimal one. A name set for a CanoKey earlier still applies.
    A CanoKey whose serial was never written (all zeros or all F) is
    treated as having no serial. The overview now shortens a serial only
    past ten characters. Contributed by @Snrat. (#296)
  • The bundled FIDO metadata is refreshed from MDS BLOB no. 303
    (tools/gen_mds_data.py, hardware authenticators as before): 350 keys
    instead of 341, among them the GoTrust Idem Card and Idem Key mini, the
    IDEMIA Cosmo FIDO R2 USB-C FIPS E, the PalmFaith Scout and three SafeNet
    IDPrime CL / eToken Fusion models, and the certification status, name or
    logo of six others brought up to date. Contributed by @Snrat. (#297)

Fixed

  • A failed reader exchange no longer stops the OTP command after it. With
    a Token2 smart card in a contact reader, otp list stopped with "An
    attempt was made to end a non-existent transaction": keyroost's check of
    the card's settings failed, and the card answered nothing after that.
    keyroost now resets the card and selects the OTP applet again after a
    failed exchange, so the command goes on, and --debug shows the reader's
    error. This has not been tried on such a card yet: the reporter couldn't
    test it. (#155)
  • Logos stored as palette PNGs are no longer skipped in the FIDO metadata
    card.
    Feitian's, Cryptnox's and Nymi's icons used to be left out.
    Contributed by @Snrat. (#257)
  • Reading a touch-required OTP code on a PIN-protected Token2 key works.
    The app showed "malformed response: unknown OTP type byte": such a key
    answers a code read only on the connection that verified its PIN, and
    encrypts the reply. otp code now takes --unlock and --pin like
    otp list, and without a PIN it says the key is PIN-protected instead of
    "wrong OTP PIN". Reported by @mielas-mp3. (#262)
  • A refusal names the keys it lists as everything else does. When
    --device was a serial or list number for the wrong kind of key, the
    keys to choose from were shown by short USB labels ("YubiKey",
    "PIN+ Series (FIDO + PGP)") and without names stored on the keys. It
    now reads those names and the full model names first, as the other
    refusals do ("YubiKey 5 Series with NFC"), only when a command is
    refused. (#267)
  • A Feitian key that Windows reports as not responding is read. On
    some Windows PCs an ePass FIDO NFC Plus's card stays unresponsive after
    plug-in, so none of its applets (OpenPGP, PIV, OTP) showed up. keyroost
    now warm-resets such a card once and connects again. Contributed by
    @Snrat. (#268)
  • A Feitian key that showed as an IDPrime card is known as Feitian.
    keyroost took the PIV application of a BioPass FIDO Pro for a
    Gemalto/Thales IDPrime, with its reset switched off. A Feitian key is
    now told by its own applications, and which product it is by what the
    key reports, so piv reset and the app's reset work on it, the PIN
    tries show, and it is offered the key types it holds. Checked on one
    key with the command line. Contributed by @Snrat. (#274)
  • PIV key import no longer sends a Feitian key the wrong command.
    The command keyroost imports a key with is a different command on
    these keys: with the PIN verified they accept it, as a change to the
    PIN and PUK retry counts. piv key import and the app's import now
    send a Feitian key its own import command instead. Seen on an ePass
    FIDO NFC Plus with harmless values; a real import was not sent the old
    way. Contributed by @Snrat. (#274)
  • FIDO2 reset in the app after a same-port replug on Windows. A key
    with no USB serial comes back on the same HID path when it goes back
    into the USB port it left, and the app did not take that for the
    replug: the reset window kept waiting and no reset was sent. It is
    now taken for the replug, with the key's identity checked as before.
    Checked on Windows 11 with an ePass FIDO NFC Plus. On Windows, and for
    keys with a USB serial on every platform, the app now takes a key as
    unplugged only once it has been missing for half a second; so do
    fido reset and factory-reset on the command line everywhere. On
    every platform, a key missing from a single scan is never taken for a
    replug. Once the key is back, the reset is sent as quickly as before.
    Contributed by @Snrat. (#275)
  • OpenPGP PINs work on cards with the KDF setting on. A card set up
    with gpg --card-edit → kdf-setup keeps its PINs hashed, and keyroost
    sent them as typed: each PIN check failed and spent a retry, enough of
    them could block the admin PIN, and PIN changes were refused. keyroost now
    reads the card's KDF setting (no PIN needed) and hashes every PIN it
    sends the way the setting says, for checking, changing and unblocking
    alike. openpgp info and the app show the setting on a KDF line (kdf
    in --json). A setting keyroost doesn't recognize is refused before any
    PIN is sent, and with the setting on, a PIN shorter than the spec allows
    (user 6, admin 8) is refused before the card sees it, since the card can
    no longer check. --debug traces of PIN commands no longer show the
    PIN's length either. Reported by @GrassGlass. (#276)
  • keyroost no longer stops with a panic while listing HID devices on
    some Windows PCs.
    There hidapi 2.6.7 panicked ("Slice is not null
    terminated") as it enumerated devices, so keyroostctl doctor ended
    before it reported anything. Until a hidapi release carries the fix
    proposed upstream (ruabmbua/hidapi-rs#189), builds from this repository
    use hidapi at that fix's commit. A cargo install from crates.io still
    resolves hidapi as published. Contributed by @Snrat. (#281)
  • A failed random source is reported, not a crash. If the operating
    system's random number source fails, FIDO2 PIN operations, the on-key
    name and Token2 OTP session setup now stop with "the system's random
    number source failed" instead of ending the program, and nothing is sent
    to the key. (#283)
  • Larger large-blob writes reach the key. keyroost now writes the
    large-blob store in pieces of at most 960 bytes. A YubiKey 5 (firmware
    5.7) refused a single 1,290-byte piece even though it reports a larger
    limit, and took the same data in smaller pieces, so names stored on the
    key, fido blob and vaults stopped saving once the store held about
    1.1 KB. (#285)
  • No half-written output files, and a plain message for a missed touch.
    A file written by openpgp sign, decrypt or authenticate --out, or by
    fido vault export, is removed if writing it fails partway, and
    --overwrite on Windows no longer cuts the old file short before the new
    one is complete. CTAP status 0x27 is shown in plain words; on a YubiKey 5
    it was the answer when the touch didn't come in time. (#285)
  • The AUR package keyroost-bin adds keyroost to the application menu.
    It installed the programs but no desktop entry or icon, so the app could
    only be started from a terminal. It now installs the same launcher and
    icon as the Flatpak (a scalable icon and a 256px one for menus that don't
    show scalable icons). Reported by @jurjendevries. (#292)
  • The app asks before deleting a passkey on the FIDO2 tab, as the Authenticator
    tab already did; for a password vault's passkey it also says the vault's
    entries go with it and offers Export backup… first. (#294)
  • CTAP status codes 0x3D–0x40 are shown with their names from the spec; 0x3F
    was shown as an integrity failure and is the key refusing user
    verification. (#295)
  • A CanoKey's FIDO2 side answers through its smart-card reader again.
    From firmware 3.1.2 a CanoKey answers FIDO2 on its own USB reader only
    under CanoKey's private selector, which keyroost now tries first, so
    FIDO2 over the reader works on that firmware too; Windows lets a
    program that isn't administrator use it. The key answers that
    selector as a U2F key, so keyroost also reads its getInfo there and
    lists FIDO2 as confirmed rather than FIDO2?. A FIDO2 reset is not sent
    through that reader, since power-cycling it doesn't restart the key:
    keyroost refuses it before asking anything and says to reset over FIDO
    HID or with factory-reset. Contributed by @Snrat. (#296)
  • Authenticator codes on a CanoKey are saved the way the key keeps
    them.
    A CanoKey adds one to an HOTP counter before it computes a
    code, so keyroost now writes one less and the first code is the one the
    service expects; an account that starts at counter 0 starts at 1 there,
    and oath add, oath import and the app say so. A name or secret
    longer than the 64 bytes a CanoKey stores is refused with a message
    that says so, and replacing an account on import works (the key answers
    a name it already holds with 6985, which keyroost took as a password
    request). oath reset and the app's Reset ask for the CanoKey Admin PIN
    (oath reset --admin-pin), since a CanoKey resets OATH through its Admin
    applet. Contributed by @Snrat. (#296)
  • piv mgmt-key change refuses an algorithm the key doesn't take,
    as the app's algorithm list already did: a cipher keyroost's list marks
    unsupported on the selected key (AES-256 on a HID Crescendo, say) is
    refused before anything is sent, and the refusal names the algorithms
    the key takes ("This key takes 3DES or AES-256: pass --algorithm 3des
    or --algorithm aes256."), with --force as the last resort. That
    includes the AES-192 default on keys whose list rejects it, such as a
    Nitrokey 3: the default is never swapped silently. Before, the command
    was sent anyway. keyroost's list now also marks AES-128 and AES-192
    unsupported on Nitrokey 3 firmware 1.9.0 and 1.9.1, where it had
    marked them unverified. Contributed by @Snrat. (#297)
  • The app's "?" on a tab says why it is there. Hovering it always
    blamed a missing smart-card reader. For FIDO2 and the Vault it now says
    what happened: the key was reached only through its reader, where it
    answered as a U2F key (on Windows without administrator rights, it
    suggests Restart as administrator so keyroost can check over USB), or
    its USB FIDO interface gave no clear answer. Contributed by @Snrat.
    (#297)
  • The idle lock no longer says "unlock again" when it clears a first PIN being
    typed for a key that has none. (#300)

Security

  • rustix moves to 1.1.6 in the shipped lockfile, which clears
    RUSTSEC-2026-0486 (extended-attribute calls). keyroost behaves the same.
    (#258)
  • The app's QR screen capture on Linux moves to ashpd 0.14 and zbus 6.
    zbus 5 used zvariant, zvariant_derive and zbus_names, which are
    no longer maintained (RUSTSEC-2026-0370, -0371, -0372); zbus 6 replaces
    them, and the app's build sheds about 30 crates, among them
    async-executor, whose 1.14.0 in v0.16.0 was yanked for a use-after-free
    when the executor is dropped (#258 had moved it to 1.14.1). It reaches the
    release binaries and the AppImage, which include QR capture; the
    Flatpak, Windows and macOS builds don't use it. Scanning a QR code from
    the screen works as before. (#264)
  • curve25519-dalek moves to 5.1.0 in the shipped lockfile, which
    clears RUSTSEC-2026-0620 (a scalar-multiplication bug in its AVX-512
    backend). It reaches keyroost through the Ed25519 and X25519 crates used
    for OpenPGP and PIV keys; keyroost behaves the same.

Full changelog: https://github.com/framefilter/keyroost/blob/v0.17.0/CHANGELOG.md

Don't miss a new keyroost release

NewReleases is sending notifications on new releases.