Skip to content

pando85/passless

Repository files navigation


logo
passless

Build status passless license

Passless is a software FIDO2 authenticator that emulates hardware security keys. Built with soft-fido2, it runs as a virtual UHID device on Linux.

It also includes client capabilities for interacting with any FIDO2 authenticator.

Important

Client compatibility: Sandboxed environments (Flatpak, Snap) and some Electron applications may not be able to communicate with the authenticator out of the box. The Credentials for Linux project is developing a system credential service and browser integrations that may provide a portal-style path for confined applications. Current integrations are experimental and do not automatically enable arbitrary Electron, Flatpak, or Snap applications. See docs/CLIENT_COMPATIBILITY.md for details on compatibility boundaries, troubleshooting, and credentialsd integration.

⚠️ Security Warning

Passless is a software FIDO2 authenticator and does not provide the same hardware-backed isolation as dedicated security keys. While Passless applies multiple hardening measures (GPG encryption, memory protection, core dump prevention), credentials stored in software remain more exposed to system-level compromise than non-exportable keys protected by secure hardware.

For many users, this trade-off is acceptable in exchange for better availability, usability, and Linux-native integration. However, hardware FIDO2 authenticators offer stronger guarantees against credential exfiltration and OS-level compromise, and remain the recommended option for high-value accounts or stricter threat models.

Users should choose the solution that best fits their own security and practicality requirements.

Features

  • FIDO2/WebAuthn authentication without hardware tokens
  • Passkey support (resident credentials)
  • User verification via desktop notifications or PIN
  • PIN support with configurable enforcement policies
  • Storage backends:
    • pass (encrypted, git-synced)
    • TPM 2.0 (Experimental), including a portable TPM backend with TPM-resident non-exportable keys syncable across devices via a recovery seed
    • Local filesystem (testing only)
  • Security hardening (memory locking, core dump prevention)
  • Credential management via CTAP commands

Android

Password Store (Passkey Edition) is the Android companion application for managing passkeys on mobile devices. It extends the well-known pass password manager with full FIDO2/WebAuthn credential support.

Credential Provider

Password Store registers as an Android Credential Manager provider, allowing supported applications and browsers to request WebAuthn passkey operations directly from the device. This enables passwordless authentication on Android using the same credentials managed by Passless on desktop.

Interoperability

Passkeys created by Passless can be imported and used on Android, and passkeys created on Android can be used by Passless on desktop. Both tools share the same encrypted CBOR credential format and operate on the same pass-compatible directory structure, so credentials synchronize seamlessly through the existing git-backed pass store.

Installation

Password Store (Passkey Edition) is available from:

PIN Support

Passless supports optional PIN-based user verification. When a PIN is set, the authenticator requires PIN verification for WebAuthn operations based on the configured enforcement policy.

PIN Enforcement Policies

Policy always_uv=false always_uv=true
never Notification Notification
optional Notification PIN required
required PIN required PIN required

Default: enforcement=optional, always_uv=true

Behavior Matrix

PIN Set enforcement always_uv User Verification Method
No any any Desktop notification
Yes never false Desktop notification
Yes never true Desktop notification
Yes optional false Desktop notification
Yes optional true PIN required
Yes required false PIN required
Yes required true PIN required

Setting a PIN

# Set a new PIN
passless client pin set 1234

# Change existing PIN
passless client pin change 1234 5678

Configuration

[pin]
# PIN enforcement policy: "never", "optional", "required"
enforcement = "optional"

# Minimum PIN length (4-63 characters)
min_length = 4

# Maximum PIN retry attempts before lockout
max_retries = 8

# Maximum user verification retry attempts before UV is blocked
# Use `passless client pin uv-reset` to restore after authentication
max_uv_retries = 8

Note: For enhanced security with hardware-backed protection, consider using the TPM backend which seals credentials to the TPM hardware. The experimental portable TPM backend goes further: signing keys are generated inside the TPM and never exposed to host memory, and credential blobs can be synchronized across multiple TPMs provisioned from the same recovery seed.

Configuration

Passless can be configured using a TOML configuration file. By default, the configuration file is located at ~/.config/passless/config.toml.

To generate a default configuration file:

mkdir -p ~/.config/passless
passless config print > ~/.config/passless/config.toml

You can then edit this file to customize the storage backend, security settings, and other options. Command-line arguments will override settings from the configuration file.

Installation

Cargo

Install from source with full system integration. See DEVELOPMENT.md for required dependencies.

# Clone the repository
git clone https://github.com/pando85/passless.git
cd passless

# Install everything (binary, systemd service, udev rules, sysusers config)
make install

# Follow the post-install instructions to:
# 1. Add yourself to the fido group
# 2. Load the uhid kernel module
# 3. Log out and back in
# 4. Enable the systemd service

Arch Linux

yay -S passless

or the binary from AUR:

yay -S passless-bin

Permissions and Hardening

Passless runs as an unprivileged user and requires only regular-user read/write access to /dev/uhid. Root is neither required nor recommended.

For detailed setup instructions, backend-specific permissions, hardened systemd service examples, and troubleshooting, see docs/PERMISSIONS.md.

Single-Instance Enforcement

Only one Passless daemon may own a given backend state directory at a time. Starting a second daemon against the same backend fails immediately with a clear error. Multiple daemons are supported only when each uses a different backend state path.

Client commands (passless client ..., passless config print) do not acquire the daemon lock and work normally while the authenticator is running.

Acknowledgements

A big thank you to the PassKeeZ project for being such a great source of inspiration. Their work on a FIDO2 / Passkey-compatible Linux authenticator gave this project both motivation and direction.

About

Virtual FIDO2 device and client FIDO 2 utility

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages