Attackers and guarantees
The source threat model covers hostile networks, a malicious server/operator, other tenants, insiders, stolen accounts and local attackers. It maps each guarantee to a test that runs the attack. Read the complete test-backed source model alongside this guide; local source paths there refer to the repository checkout.
TLS protects network traffic. Client-side encryption and signed/pinned keys protect vault content from the server subject to the limits below. Tenant and organization checks protect isolation, with PostgreSQL row-level security under a restricted application role as a second line against application filter bugs. The application role can append audit events, not alter existing ones; this does not constrain a malicious database operator. Token rotation, rate limits and device revocation reduce account-theft impact. None of these protects plaintext already copied by an authorized or compromised client.
Owner-driven rotation
Owner-driven group/host rotation is built in server, core and sync; its web and desktop screens are still pending. POST /api/v1/vaults/{id}/rotate rotates a group or host and everything below it; only an owner may call it. One request and transaction must replace every key slot under the unchanged parent, re-seal every live grant to exactly its recipients using their published keys, and re-encrypt every record, including deletions, under a newer stamp. An incomplete request, wrong recipient, out-of-scope record or non-owner changes nothing.
Before re-deciding grants, the owner verifies their old signatures against the pinned charter; a grant invented by the server receives no new keys. A listed manager's new certificate enters the charter in the same step. The device switches keys only after the server stores the newly sealed records. Rotation requires an authenticated local copy of every live record in the affected scope. If a copy is unavailable, rotation is refused and the record remains intact. Sync or recover the missing version before you retry. Former holders of the replaced keys lose access to later writes sealed under the new keys. Unchanged ancestor keys can still open new child wraps.
Devices keep the highest key generation they have observed. Generations are bound into wraps and sealed/signed grant bundles; older keys or replacements in the same generation are reported as tampering, regardless of wrap order. Existing holders adopt rotated keys from their re-sealed grants. Pushes, tree changes and grants name their key epoch; the server refuses stale epochs under the vault lock. A rotation must use the current epoch, a snapshot whose affected records have not changed, and each slot's next generation. Queued tree changes are re-wrapped with current keys.
An owner re-decides no grant this device knows has ended. Grant ends are append-only on the server and retained permanently by devices; recipients' keys must match the verified certificate, and the signed path and named identity must fit the verified tree. Adopting new keys stores those keys, re-sealed unsent edits including deletions, queued tree changes, epoch and reset cursor in one transaction. A failed swap preserves the old keys and readable unsent work; deleted descendant nodes do not block their parent's rotation. For a protected vault, only a successful rotation clears the obligation.
Known limits
These are accepted, documented risks, not oversights:
-
The web UI trusts the server for its code. The browser loads the WebAssembly that derives keys from the server. A malicious server could serve code that sends the password. The native apps don't have this limit. Use the apps for anything sensitive if you don't operate the server.
-
First contact is trust on first use. A person's keys are pinned the first time a device sees them. A server that is malicious at that moment can present its own keys. The same holds for a vault offered by someone new. Compare safety numbers through a separate trusted channel. A device flags later key changes and blocks sharing until the new keys are verified.
-
Withholding is possible. The server can't forge or roll back what a device has seen, but it can withhold newer versions from a device that never saw them.
-
Existence of an email address. Sign-up in cloud mode and invitations reveal whether an address has an account. Both are rate limited (per network, per inviter).
-
A fresh self-hosted server belongs to whoever opens it first. Finish the setup before the server is reachable from the internet (see self-hosting).
-
Local unlock. On macOS the store key sits in the keychain without user presence (Touch ID) yet. That is app work, tracked separately.
-
Metadata. The server sees ids, kinds, sizes, timestamps, membership and who accessed which vault when. It never sees content.
-
Desktop styles may be inline (
style-src 'unsafe-inline'): xterm.js injects its theme as<style>elements. Inline CSS runs no code, and every other source is'self', so nothing can be loaded from elsewhere to leak data through CSS. Scripts stay strictly'self'. -
Secrets typed into the desktop web view live in the browser engine's memory until it frees them: JavaScript strings and DOM input values can't be overwritten. The Rust side wipes every copy it receives (
SecretInput, zeroizing forms); the web view never receives stored secrets back. -
Downloads go into a private owner-only directory inside the folder the user picked. Another account that may write that folder itself (a shared folder without the sticky bit) could still replace the private directory between steps; on Windows the directory gets no owner-only ACL and relies on the folder's permissions. Processes running as the same account are outside the protection on every OS.
-
Signed authority: what remains. Who may decide is verified from the vault's pinned charter (its authority roster; see access-model.md "Signed authority"). Residuals: (a) the first charter a device sees is trusted on first use, like a vault key; (b) a listed manager signs the path of their sub-grants, and a recipient can't check the tree above its own scope — a manager could claim a node outside their scope lies below it (misuse by someone the owners empowered, not a server forgery); (c) a device that hasn't synced since a removal still holds the old charter until it fetches the next version.
-
Row-level security guards against missing tenant filters. A compromised server process can still set its own tenant and use the system role for cross-tenant access. Split database credentials keep the database owner's credential out of that process. A database owner can still remove audit history.
-
Account recovery needs the recovery code. Current sign-ups add a client-held Secret Key to password-based key derivation and use OPAQUE for sign-in. Store the Emergency Kit and recovery code securely, with any second-factor recovery codes. The Emergency Kit is a deliberate plaintext export.
-
Signed writes require write authority. Devices verify a synchronized record's writer against the vault's charter and grants. A user who can only decrypt a record cannot sign a valid edit. A compromised authorized writer can still use its own permissions.
-
Rotation requires an owner action for each affected group or host. Until that scope is rotated, someone who kept its old keys can decrypt later content still written under those keys from a copy of server data, even though the server denies their access. Vault-root rotation and rotation by admins or managers are planned. A scope above the 5,000-record limit (
MAX_ROTATION_RECORDS), or over the server's request-body limit, cannot yet be rotated in one step. Rotation protects later content; it cannot erase earlier knowledge. -
Unseen rotation state is trust on first use. A fresh device, or one offline throughout a rotation, can be shown an older generation or a revoked grant as live by a malicious server if it never observed that generation or grant end. Devices retain only the highest generation and grant ends they have seen; the rotating owner's own device always knows the ends it made. This is withholding, not rollback of known state. The key epoch guards honest races across rotations; it does not protect against a malicious server.
-
The desktop web view is the operating system's (WebKit on macOS, WebView2 on Windows, WebKitGTK on Linux): its security updates come with the OS; an outdated Linux distribution ships an outdated WebKitGTK.
-
Platform component audits do not clear client dependencies for release. The platform audit excludes SQLite/RSA only in client development dependencies after verifying both are absent from its runtime/build graph. The global client audit remains strict; current client SQLite/RSA pins still need resolution before release. See the linked source model for the exact advisory IDs, dependency constraints and checks.
Reporting
Follow SECURITY.md in the source checkout for private vulnerability reporting. Do not put exploit credentials or vault data in public issues. Preserve a sanitized reproduction and the affected version.
Report vulnerabilities privately to [email protected] · Security policy