Security

What the installer and updater verify, and where secrets live.

On this page

Security

  • Releases are signed. CI signs each channel's version-latest.properties and install.sh with an Ed25519 key. The public key is built into the program and into the published installer. The installer and bxrig update verify the signature and the SHA-256 of every file they download; any mismatch stops before anything changes.
  • The first curl | bash trusts the script it downloads (TLS and the bucket). For a stricter first install, download install.sh and install.sh.sig and check the signature yourself with keys/release.pub.
  • A GitHub source is not a release. install.sh --source github:OWNER/REPO@REF (for testing a branch) skips the signed release: there is no signature and no checksum from the BxRig downloads, so it warns and needs --yes or the typed word unsigned. Use it only for sources you trust. GITHUB_TOKEN or GH_TOKEN (private repositories) goes to GitHub as a header from a curl config on standard input, never on a command line, in the log or on screen.
  • MatchBox comes from mvm or from a branch you name. The stable and snapshot builds are downloaded by mvm (an external installer script that the installer shows with its URL and SHA-256 before it runs). --matchbox-branch REF clones that branch of the repository you name and runs cargo build on it, which executes the repository's build scripts as your user: name only repositories you trust. The branch build is verified to run and recorded in ~/.local/share/bxrig/matchbox/build.info (repo, branch, commit).
  • Nothing runs without a plan. Commands that change the system print a plan and need --yes.
  • Your files are yours. BxRig keeps a config you changed and only rewrites files it wrote; every write is atomic, backed up and journaled.
  • Secrets live in the desktop keyring (or a private file fallback), are typed hidden, and never appear in answers files, logs or shell history.
  • Skills from the hub are audited; one that failed its audit is refused.

Fingerprint, security key, SSH and passwordless sudo

bxrig security can turn on a fingerprint or a security key for sudo, the SSH server and passwordless sudo. These touch PAM and sudoers, so they are guarded.

bxrig security status
bxrig security fingerprint on --dry-run   # prints the exact PAM line first
bxrig security fingerprint on --yes
bxrig security fingerprint enroll --yes
bxrig security fido2 register --yes       # touch the key; `fido2 on` refuses until one is registered
bxrig security fido2 on --yes
bxrig security ssh-server on --yes
bxrig security passwordless-sudo on --yes
  • Only /etc/pam.d/sudo is changed, never the login, the login screen or the lock screen. The line is auth sufficient, so your password still works when the reader or key is missing. The first time, the original is kept as /etc/pam.d/sudo.bxrig-backup; off removes exactly the line BxRig added.
  • sudoers is checked with visudo -cf before the file is installed, so a mistake cannot lock sudo out.
  • Passwordless sudo means any program running as you gets root without a password. Use it only on a machine where you accept that.
  • Keep a root terminal open the first time you try PAM changes. They have not been tried on a real reader or key yet.
Edit this page Download Markdown Last updated Nov 26, 2026, 11:34:14 AM Report an issue