Security design

Built so the server can't read your vault.

A summary of how Cove protects your data, from key derivation to the threat model.

Principles

  • Zero knowledge. The server never sees plaintext, your master password, or any key that can decrypt your data.
  • No home-made cryptography. Only standard primitives from audited libraries (RustCrypto, opaque-ke). Cove composes them, and test vectors pin every composition across all platforms.
  • One core. Encryption, the vault format and sync live in one Rust library used by every app, so there's one implementation to review instead of seven.
  • Offline first. Every device holds a complete encrypted copy and works without the server.

Two secrets, not one

Your vault is protected by your master password and a Secret Key: 128 random bits generated on your device when you create your account. Cove gives you the Secret Key in a printable Emergency Kit, and stores it on devices you trust inside the system's hardware-backed keychain. You can turn that off on a device, and Cove will ask for it each time.

Because the Secret Key is never sent to the server, a copy of the server's database is useless to an attacker: guessing your master password offline would also mean guessing 128 random bits.

master password ─┐
                 ├─ Argon2id (64 MiB) + HKDF ─┬─ account unlock key ─→ account keys
Secret Key ──────┘                            └─ sign-in secret ─────→ OPAQUE (server)

account keys ─→ vault key (per vault, per member) ─→ item key (per item) ─→ item data, attachments

Encryption

  • XChaCha20-Poly1305 for everything stored, with random 192-bit nonces.
  • Every item has its own key, wrapped by its vault's key. Rotating a vault key re-wraps item keys instead of re-encrypting everything, and a single item can be shared without exposing the vault.
  • Shared vault keys are sealed to each member's public key with HPKE (RFC 9180, X25519). Public keys are signed with Ed25519 and pinned on first use, with a safety code you can compare.
  • Each ciphertext is bound to its account, vault, item and revision, so the server can't move it elsewhere or pass off an old version as new.
  • Attachments are encrypted in 64 KiB chunks with their own keys.

Signing in without sending your password

Cove uses OPAQUE (RFC 9807), a modern password-authenticated key exchange. The server verifies you without ever receiving your password or anything it could use to test guesses offline. The key that decrypts your vault is derived separately and is never tied to the server, so you can still open your local data if the server disappears.

Keeping the server honest

Every change to a vault comes with a signed manifest: a hash-chained summary of every item and its revision, signed by the member who made the change. Membership changes form their own signed chain. Your devices check both on every sync, so a server that hides an item, rolls a vault back or adds a fake member is detected, and sync stops before anything is overwritten.

Adding a device

Scan a QR code shown by the new device with one that's already signed in. The QR code carries a public key past the server, so the server can't intercept the handoff. You still type your master password on the new device.

The web vault

A web page is only as trustworthy as the code the server sends it each time it loads. That's why Cove's main web vault runs inside the browser extension: its code is installed and signed through the browser's store and can't be changed by the server. A server-hosted web vault also exists for computers without the extension. It's built reproducibly, locked down with a strict Content Security Policy, and checked against the published release hashes when the extension is installed. You can turn it off.

Threat model

What Cove defends against, and what it doesn't.

ScenarioOutcome
The server's database is copiedOnly ciphertext and minimal metadata. Offline guessing is infeasible without the Secret Key.
The server is actively maliciousTampering, rollback and hidden items are detected by signed manifests. The server can still refuse service.
The server substitutes a public key when you shareDetectable by comparing safety codes. Keys are signed and pinned on first use.
The server sends modified web vault codeApps, the CLI and the extension-hosted vault are unaffected. The server-hosted web vault is the exposed surface; see above.
Someone on the networkTLS, plus OPAQUE: your password isn't sent, even encrypted.
A locked device is stolenThe attacker has to get past the device lock, extract the Secret Key from the hardware-backed keychain, then guess your master password against Argon2id.
Malware runs on your unlocked deviceOut of scope. No password manager can fully defend this. Auto-lock and approval prompts limit exposure.
A phishing site or malicious pageAutofill matches the registrable domain, requires a user action, asks before filling in cross-origin frames, and checks the fill menu is visible. Passkeys are bound to the real site.
A member is removed from a shared vaultThe vault is fully re-encrypted with new keys. What they already saw can't be taken back; Cove suggests changing those passwords.
Compromised dependencies or buildPinned lockfiles, vetted crypto dependencies, pinned CI actions, reproducible builds and published hashes.

What the server can see

Counts of accounts, vaults, items and devices; revision numbers and timestamps; attachment sizes; who is a member of which shared vault; which vaults are marked safe for Travel Mode. Never names, URLs, usernames, passwords, notes or any other item content.

Reporting a vulnerability

A private channel for reporting security issues will open before the first release. Cove is in development and hasn't been independently audited yet. An external review is part of phase 5.