IdeaCrafters••7 min read

hirz: Passkeys on Linux Without a USB Key

How I built hirz, an open source passkey manager for Linux: a software security key your browser already understands, approval in a window the page cannot touch, and sync through a folder you already sync.

passkeys on Linux
Linux passkey manager
WebAuthn
FIDO2 authenticator
Firefox add-on
Rust
Ubuntu PPA
Fedora COPR
open source

Every other desktop got passkeys built in. Windows has Windows Hello. Macs have Touch ID and iCloud Keychain. You click "Sign in with a passkey", touch a sensor, and you are in. On Linux, browsers could only use passkeys stored on a plug-in USB security key. There was no system passkey store for the browser to talk to, so people who moved to Linux lost passkey sign-in on the sites they use every day, or bought a hardware key and carried it around. I built hirz to close that gap.

hirz keeps your passkeys in an encrypted vault on your own disk, asks for your fingerprint, your computer password or a PIN before every sign-in, and syncs through a folder you already sync. It is written in Rust, licensed MIT or Apache 2.0, and never connects to the internet. This is the story of the decisions behind it, what was hard, and where it stands.

Decision One: Look Like a Security Key

The browser on Linux already knew how to talk to one kind of authenticator: a USB security key. So the first decision was to become one. hirz creates a FIDO device through the Linux kernel's uhid driver. To Firefox or Chrome it looks exactly like a USB key plugged into the computer, and the browser does the website checks itself, as it would for hardware. No browser patch, no add-on required, and the same device works for OpenSSH security keys and libfido2 tools.

The catch is that creating a uhid device needs root, and whoever holds a /dev/uhid descriptor can create any device at all, including a keyboard that types commands into your session. So a small root helper keeps the descriptor, creates only a FIDO device, and relays fixed-size 64-byte reports to the user daemon, only for users with an active login session. Everything that decides, approves and signs runs as you, not as root.

Decision Two: A Second Path for Firefox

A security key gets you a security-key prompt. Sites that offer passkey suggestions under their sign-in fields expect a passkey provider. So hirz has a second front door: a Firefox add-on that hands passkey requests to a small native program from the hirz package. Sites then see a regular passkey prompt, and Firefox 142 or later shows passkey suggestions.

The add-on is thin on purpose: it holds no keys, has no remote code, and declares that it collects no data. The native program checks the page's origin and the site id against the public suffix list, so a page cannot claim another site or a whole suffix like com. Both paths open the same vault, so a passkey created through one works through the other, and you do not have to choose.

Decision Three: Approval Happens Outside the Page

A web page is hostile by default in hirz's design. It is never a source of truth for which site is asking, and it never approves anything. Every signature that marks you as present needs a fresh approval in a window drawn by hirz itself, outside the browser, naming the site. A page cannot draw, hide or click it.

How you prove it is you follows what Linux already has, instead of inventing a new secret: your login password through polkit, your fingerprint through fprintd, or a hirz PIN. A plain click-to-allow exists, but it is off by default, opt-in per site, and refused when the site requires verification.

Decision Four: Sync Without a Server

I did not want a hirz account or a hirz server. People who run Linux already sync folders with Syncthing, Nextcloud, Dropbox or git, so the vault is a folder, and they sync it.

That choice shaped the vault format. Every file is encrypted and written once under a new name, never changed, so sync programs do not produce "conflicted copy" files. Records are encrypted with a random 256-bit vault key, and nothing in the folder is derived from a password, so a stolen copy of the folder cannot be attacked offline by guessing passwords. It does reveal how many files there are and when they were written.

Adding a computer works like pairing a Bluetooth device: the new machine shows four words, the old one shows four words, you compare them and confirm with your password, fingerprint or PIN. A click is never enough to approve a new device. hirz also tells sites the truth about backups: a passkey counts as backed up only once the vault has a second computer or you confirmed a backup.

Decision Five: Few Dependencies, No Network

hirz has no async runtime, no TLS stack, no HTTP client and no D-Bus library. It reaches polkit and fprintd through their command-line tools and draws prompts with the desktop's zenity. The CBOR and JSON code in shipped binaries is hand-written; libraries such as webauthn-rs serve only as test oracles. Every external dependency is listed in the repository with a reason.

What Was Hard

Firefox as a Snap. Ubuntu's default Firefox runs confined and cannot start programs outside its sandbox. The add-on path works only through a desktop portal that starts the native program on Firefox's behalf, after asking the user once.

Losing a device. Removing a lost laptop rotates the vault key, so it cannot read anything created afterwards. But the synced folder is shared state the lost device may still write to, and passkeys it already decrypted stay usable. hirz lists the affected sites so you can replace those passkeys, and the threat model spells out the rest.

Not becoming a login factor. hirz passkeys are synced software keys: whoever can read the vault on any of your devices holds them. So hirz refuses requests from pam-u2f (login, sudo, screen unlock), systemd-homed and LUKS disk unlock without showing a prompt. A hardware key is the right tool there.

Packaging for build farms without network. Launchpad builds the Ubuntu PPA offline from vendored crates, and Ubuntu 24.04 ships a Rust compiler older than hirz needs, so the build switches to a newer versioned compiler from the distribution's own updates. For Fedora COPR, the release hands over the source RPM built in the release pipeline instead of letting COPR fetch and vendor the code itself with network access.

What hirz Does Not Protect Against

The threat model lists what hirz protects against: phishing (a passkey only works on the site it was made for), silent use by a web page, a stolen or copied sync folder, a stolen laptop that is powered off when the disk is encrypted, and tampering with synced files.

It is just as plain about what it does not cover. Malware running as your user on an unlocked computer can read the vault and copy your passkeys; a hardware key is the answer if that matters to you. A compromised browser or add-on update can lie about which site is asking. On an X11 desktop, other programs can read and click approval windows. Sites that require hardware attestation refuse hirz. Whoever learns your recovery phrase and has a copy of the folder can read every passkey. hirz is pre-release and has not had an independent security review yet, so keep another way into your important accounts while it is young.

Where It Stands

Version 0.1.0 shipped on 17 November 2026 and 0.1.1 followed on 21 November 2026. hirz installs from an Ubuntu PPA, a Fedora COPR project, and its own signed apt and dnf repositories, with packages on GitHub Releases too. The Firefox add-on is on addons.mozilla.org, and Firefox and Google Chrome are tested. An Arch package is prepared in the repository but not on the AUR yet.

To try it, follow the install guide for your distribution, then register a passkey on a test site such as webauthn.io; the first request opens a setup window, and hirz status shows what is in place.

Open Source, and What's Next

hirz (حرز) is an old Arabic word for a place where something precious is kept. It is open source on GitHub, maintained by me, and its development is funded by IdeaCrafters. The project is now in a feedback period: if a site refuses hirz, or you wish it did something it does not, open an issue. Security reports go through the security policy, never a public issue.