The security model, in plain terms

What LocalGateKeys is designed to protect, and what it cannot protect.

How your vault is encrypted

A random 256-bit key encrypts the vault. That key is never stored as it is; it is wrapped (encrypted) separately by each way you can unlock, so changing your password does not mean re-encrypting everything, and a wrapper copied from another vault is rejected.

Vault encryption
AES-256-GCM with a fresh random nonce for every save
Master password
Argon2id, 3 passes, parallelism 4, random salt per wrapper; 256 MiB of memory in the Windows app (64 MiB on a PC with less than 4 GB of memory) and 64 MiB in the Mac, iPhone and Android apps
Recovery phrase
Optional 24-word BIP39 phrase (256 bits), expanded with HKDF-SHA256
Windows Hello, Touch ID, Face ID and fingerprint
Release the vault key from storage the device protects; the master password is never stored
Backups and transfers
Argon2id and AES-256-GCM with the parameters stored in the authenticated header
Device sync
A random group key, handed to each device with X25519 and HKDF-SHA256 and, for a cloud folder, also wrapped by your sync password with Argon2id; every record sealed with AES-256-GCM and bound to its item, version and key epoch; every device file bound to the device that wrote it
Passkeys
ES256 (P-256) keys kept inside the encrypted vault; the app builds the signed data from the origin the browser reports, never from the page. The Microsoft Store app can also be the passkey provider of Windows 11 (off by default); Windows then keeps your passkey site and account names in its own list, never the keys
Writes to disk
Temporary file, flush, then atomic replace, so a crash cannot leave half a vault
AI agents
Off by default (Pro). An agent reaches the app only through lgk mcp on your own device and sees only the logins and items you allowed. You approve each request; the app fills the sign-in itself, and no reply to the agent contains a password. Each request goes into an access log whose entries are chained with SHA-256 hashes, and the Security check says whether that chain is intact

Designed to protect against

  • Someone who copies your vault file or a backup and does not know your master password
  • A website getting logins or passkeys saved for a different website
  • Another program on your PC talking to LocalGateKeys without the session secret it hands to its own browser helper
  • Filling a desktop app that has been swapped, updated or changed since you bound it
  • Passwords sitting unencrypted on disk
  • Forms being submitted without you
  • Your cloud provider reading synced data: it only stores ciphertext
  • A web page reading the accounts LocalGateKeys offers you: in Chrome, Edge and Firefox the list is drawn in a separate extension frame the page cannot read
  • An AI agent getting a password from LocalGateKeys: no reply to the agent contains one, and it sees only the logins you allowed

Not able to protect against

  • Malware, or anyone with administrator control, already running on your PC
  • A compromised browser, Windows installation or dependency
  • A website you deliberately fill a password into
  • Someone using your PC while the vault is unlocked
  • Phishing inside a genuine app that shows attacker-controlled content
  • Losing your vault, your backups and your master password with no recovery phrase: nobody, including us, can open it
  • An AI agent that controls your browser reading a password after LocalGateKeys has filled it into the page, or a command you approved passing on the secrets it was given

Things LocalGateKeys never does

Some ways of filling passwords are indistinguishable from spyware, so they are ruled out by design. LocalGateKeys contains no:

  • keyboard hooks or keystroke recording
  • clipboard monitoring
  • screen reading or OCR to find credentials
  • scanning of other programs' memory
  • decryption of your browser's saved-password database
  • code injection into other programs or games
  • submitting a sign-in you did not start

The network, honestly

There is no LocalGateKeys account and no server that holds vaults. The app connects to the internet in only these cases:

  • Updates. The Microsoft Store updates the Windows app and the App Store updates the Mac and iPhone apps; LocalGateKeys itself never downloads or runs an installer. The retired Windows installer builds (up to 0.4.11, the last one) download one small file from our server when you choose Check for updates and verify its signature with a key built into the app.
  • Licence revocation list. With each update check in the installer builds, and when you choose Check for updates in the Microsoft Store app with strict offline mode off, the app downloads a signed list of refunded licences and checks your licence against it on your PC. It sends nothing about your licence.
  • Website icons. To show a site's icon, the app downloads it from that site's own address. No username, password or vault data is sent, but each download tells that site, and anyone watching the network, that your vault has an account there. This is off by default and only happens if you turn on "Show website icons" in Settings; strict offline mode blocks it.
  • Breach checks, if you turn them on. When you start a check, the app sends the first five characters of each password's SHA-1 hash to Have I Been Pwned. The service sees your IP address, never the password, the full hash, the username or the website.
  • Sync, if you set it up. Over your home network, devices talk to each other directly. Through a cloud folder, your cloud-drive app does the uploading.
  • Buying Pro in the Mac, iPhone or Android app. The app sends the store's signed purchase record to our licence server, which answers with your licence key. No email address and no device data are sent.
  • Pro bought in the App Store or Google Play. After you buy, the iPhone, Mac or Android app sends the store's signed purchase record to our licence server once, so it can issue the licence that also unlocks your other devices. It contains no name, email or store account.
  • Verified site. The lookalike check runs on your device. Your saved sites never leave the app, and nothing is sent to a server.

In the Windows app, Security center › Network activity lists each of these connections with the time, the host and the result. The names of websites you saved are shown only while the app runs and are never written to disk, and devices on your own network appear as "Local network".

Strict offline mode is on by default. It blocks website icons and breach checks, an update check asks you first, and the one-time Pro licence claim above is not blocked. The privacy policy lists exactly what our servers see when you do check for updates.

Known limitations

  • The master password is moved into a wipeable buffer as soon as it reaches the app and is erased when the operation that needed it finishes. The page you type it into runs in Microsoft Edge WebView2. The page empties its field and the app lets go of the copy made by the hand-off before your key is computed, but neither of those two copies can be overwritten in memory, so traces can remain there for a short time.
  • Camera unlock asks for a random head movement, so a photo held flat in front of the camera, or a still picture on a screen, does not pass. It is still a convenience check, not certified protection: a bent or folded photo, a video that follows the prompts, or a mask may pass. Windows Hello is the stronger choice.
  • Windows app fill does not work with programs running as administrator, custom-drawn game interfaces, or embedded web views it cannot verify.
  • The vault detects being rolled back to an older copy. If you use sync, your other devices remember how new your vault was, so an older copy put back on one device is reported at the next sync, in every app. Without sync, a Windows PC keeps a second record outside the vault folder, so an older vault put back together with its anchor file is refused; someone who can change your Windows account's settings can remove that record too. The iPhone, Mac and Android apps keep their files closed to other apps, but without sync they do not notice an older copy put back in their place.
  • Passkeys work in Chrome, Edge and Firefox. Signing in with a passkey inside another site's frame works in Chrome and Edge when the surrounding site allows it; in Firefox, and when you create a passkey inside another site's frame, the browser's own passkey dialog is used. If a site cancels after you approve a new passkey, the app removes it again; when the app cannot tell whether the site kept it, the passkey stays in your vault and you can delete it in the app.
  • The lookalike warning is a hint, not a wall: a page's own script can bypass it, for example by sending a password without a form submit. Check the address yourself.
  • Emergency access has no server, so only the apps enforce the waiting period and your veto. Anyone who holds enough shards can recover your backup at once, without waiting. Pick holders who would not act together, and keep the shards apart.
  • The duress password defends against being forced to unlock the app. It does not defend against someone who examines the files on your disk, and a careful person can find out that a second vault exists. It is on Windows, the Mac, iPhone and Android.

Source code for security audits

LocalGateKeys is source-available: the full source code is published on GitHub so anyone can check how it protects your vault. The licence (PolyForm Strict, with a security research permission) lets you read, build and test the code privately to find and report vulnerabilities. It is not open source: copying, redistributing or selling it is not allowed.

Report a vulnerability

Email security@localgatekeys.app. The vulnerability disclosure policy explains what is in scope, how quickly we respond and how we credit researchers.