Password-lock selected Windows apps before they launch.
Ferrlock is a Windows desktop app built with Tauri and React that intercepts protected .exe launches through IFEO and requires a password before the target app starts.
- Protect specific Windows applications by executable name
- Store the master password as an Argon2 hash
- Show a lightweight unlock prompt when a protected app is launched
- Restore protection automatically after the target app exits
- Run as a tray app and optionally start with Windows
Ferrlock is currently Windows-only. The backend depends on the Windows registry and Win32 APIs, and the current bundle target is an NSIS installer.
When you add an app to Ferrlock, the Rust backend registers Ferrlock as the IFEO Debugger for that executable under:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
When the protected app is launched:
- Windows starts Ferrlock instead of the target executable.
- Ferrlock shows a password prompt.
- If the password is correct, Ferrlock temporarily removes the IFEO debugger entry.
- Ferrlock launches the real app.
- A helper process waits for the app to exit, then re-enables protection.
Because Ferrlock writes under HKLM, adding or removing protected apps may require elevated rights depending on the current registry ACLs and how the app was installed.
- Windows 10 or Windows 11
- Rust with the MSVC toolchain
- Bun
- WebView2 runtime
- Tauri build prerequisites for Windows, including Visual Studio C++ build tools
Install dependencies:
bun installRun the app in development mode:
bun run tauri devCreate a production build:
bun run tauri buildFerrlock releases are published by GitHub Actions from semver tags in the form vX.Y.Z.
Maintainer flow:
- Update the version in
package.json,src-tauri/Cargo.toml, andsrc-tauri/tauri.conf.json. - Merge the version bump to
main. - Create and push the tag:
git tag v0.1.0
git push origin v0.1.0The release workflow validates that the pushed tag matches all three version files, builds the NSIS installer, creates or updates the corresponding GitHub Release, and uploads:
Ferrlock_<version>_x64-setup.exeFerrlock_<version>_x64-setup.exe.sha256Ferrlock_<version>_x64-setup.exe.siglatest.json
The updater feed in latest.json points to the signed Windows updater artifact from the release. With the current Tauri v2 setup, that is the signed NSIS installer plus its .sig file.
The release pipeline now signs updater artifacts for Ferrlock's in-app updater, but it still does not include Windows code signing. Published installers may therefore show SmartScreen warnings until OS-level signing is added.
Ferrlock's updater uses a dedicated Tauri signing key pair that is separate from Windows code signing.
One-time maintainer setup:
- Generate a key pair locally:
bun x tauri signer generate -w $env:USERPROFILE\.tauri\ferrlock-updater.key- Commit the public key to Ferrlock's updater config.
- Add the private key contents to the
TAURI_SIGNING_PRIVATE_KEYGitHub Actions secret. - If you protected the key with a password, add
TAURI_SIGNING_PRIVATE_KEY_PASSWORDas a second secret. If you generated the key without a password, set the password to an empty string for local builds and leave the GitHub secret unset.
Local updater-enabled build:
scripts/validate-signing-key.ps1
scripts/build.ps1If your updater key is password-protected, set TAURI_SIGNING_PRIVATE_KEY_PASSWORD first or pass -KeyPassword to the script.
If the password is intentionally empty, the script forces Tauri's --ci mode so the build stays non-interactive instead of prompting for a password on stdin.
Recovery and rotation notes:
- If the private key is lost, Ferrlock can no longer publish compatible updater artifacts for existing installs. Generate a new key pair and ship it only as part of a full installer-driven upgrade path.
- If the key is compromised, rotate it by shipping a release that updates the embedded public key and signs that release with the old private key first, then switch CI to the new private key for subsequent releases.
- If you regenerate the key unexpectedly, existing installs will reject future in-app updates until they receive a build signed by the previous key.
- Launch Ferrlock.
- Open the
Settingstab and set a password. - Open
Protected Appsand add one or more.exefiles. - Launch a protected app normally from Explorer, Start, or a shortcut.
- Enter the password in the Ferrlock prompt to continue.
Ferrlock stores its configuration in:
%APPDATA%\ferrlock\config.json
That file contains:
- The Argon2 password hash
- The list of protected applications
- UI-level application settings
src/ React frontend
src-tauri/ Rust backend, Tauri config, Windows integration
Ferrlock is a local access-control convenience tool, not a full anti-tamper system. Anyone with sufficient Windows privileges can still modify registry entries, replace binaries, or remove the protection mechanism. Use it as an application gate on your own machine, not as a hardened security boundary.
The repository includes standard ignore rules and editor metadata files, but no license file has been added yet. Choose a license explicitly before publishing the repo publicly.
