Security

Security design

Updated October 25, 2026

Only your devices can read your BotPassword vault. Every item is encrypted on the device before it syncs; the server validates outer headers, sizes and authentication and never decrypts. Agents use credentials through intents, and no intent returns a value in its result. This design has not yet been independently reviewed; reports appear on the audits page as they are completed.

This page summarizes the design for people deciding whether to trust BotPassword. It is condensed from the architecture documents.

Principles

  1. Plaintext lives only on your devices. The cloud stores ciphertext and the authorization metadata needed to sync it.
  2. One suite pair per purpose, no negotiation. Each envelope names its encryption suite and its signature suite; each purpose permits exactly one pair and there is no classical fallback, so there is nothing to downgrade to.
  3. Strict parsing. Unknown suites, purposes, flags and non-canonical encodings are rejected, everywhere.
  4. No intent returns a value. Value delivery is sealed by default, and disclosing delivery is a labeled, per-grant opt-in. The only path that reveals a secret to a person is the human app.
  5. Honest limits. Where the design cannot protect something, it says so (see limits).

Keys

Key What it is Where it lives
Account Root Key Random 256-bit key at the top of your vault Only unwrapped in device memory
Account Unlock Key Derived from your master password and a 128-bit+ Account Secret Derived on unlock, never stored
Device Unlock Key Per-device key, hardware-backed where available, biometric-gated Keychain, Android Keystore or DPAPI
Device keys Each device’s own Ed25519 signing key and hybrid KEM key On that device
Vault, item and revision keys A key per vault, per item and per revision Wrapped under the key above
Collection keys One per company collection, wrapped to each member Advanced on every member removal

Your master password goes through Argon2id, and the result is combined with the Account Secret through a domain-separated HKDF. A stolen copy of the server database is therefore useless without both your password and a high-entropy secret that only your devices and your emergency kit hold. Changing your master password rewraps the root key; nothing else is re-encrypted.

Cipher suites

Role Suite
Password KDF Argon2id, with a parameter floor pinned in code
Key derivation HKDF-SHA-256 with purpose labels
Symmetric encryption XChaCha20-Poly1305, 256-bit keys, random 192-bit nonces
Sharing to a recipient HPKE (RFC 9180) with the hybrid ML-KEM-768 + X25519 KEM
Signatures Ed25519 (ML-DSA-65 reserved for later)

Sharing is post-quantum from day one because a vault shared today could be recorded and decrypted later by an attacker with a quantum computer. The hybrid construction stays secure as long as either ML-KEM or X25519 holds.

Every envelope starts with a fixed 10-byte header (magic, version, purpose, encryption suite, signature suite, flags), followed by a deterministic-CBOR context map that is authenticated as associated data and, for signed purposes, covered by the signature: which account, collection and item it belongs to, its schema version, key epoch and revision. A ciphertext moved to a different item fails to decrypt.

Devices and sync

  • A new device creates its own keys. An existing, unlocked trusted device confirms the pairing with a verification challenge and signs the enrollment. The server cannot add a device by inserting a row.
  • Each vault is a hash-chained log of signed revisions, with signed checkpoints from devices, so the server cannot silently drop, reorder or roll back changes without clients noticing.
  • Browser extensions and AutoFill providers never run the password KDF; they use the Device Unlock Key, which keeps them inside platform memory limits.

Recovery

The emergency kit holds your Account Secret and a recovery sign-in key, and still needs your master password by default. If you lose every device, the kit proves possession to the server, every remaining device is notified, and a delay (24 hours by default) lets any of them veto before the encrypted vault is released to the new device. A password-bypass Recovery Key exists only if you opt in, printed on its own sheet with a plain warning. If you forget your master password and have no trusted device and no Recovery Key, the vault cannot be recovered, and the app tells you this before it can happen.

Agent access

Agent clients connect to the local daemon botpasswordd on a separate endpoint that has no code path to reveal, export, grant editing, device enrollment or recovery. Those operations are rejected by type before any policy runs. Every agent request goes through one policy function, agent_policy::evaluate, which intersects your authority, the grant, the session, the provider scope and host controls. Company credentials additionally need a lease from the organization’s server object, at most 60 seconds long and renewed with a fresh membership check, so a removed member’s agents stop within a minute even if a device is offline. Details: agent threat model.

The server

The control plane runs on Cloudflare Workers with one SQLite-backed Durable Object per account and per organization. It authenticates devices, stores ciphertext, orders revisions and relays notifications. Push notifications carry no credential names or values. Administrative access is behind Cloudflare Access with hardware-key MFA. Backups go to an independent provider outside Cloudflare.

Limits

  • A compromised, unlocked device can read what that device can read. Encryption protects data at rest and in transit, not from malware running as you.
  • run_with hands the secret to the child process. That process, and other processes running as you, can read it.
  • Agent-driven browsers can technically read a field after it is filled. Your own paired extension can fill instead, outside the agent’s browser automation, but that is disclosing too: the page and other extensions can read the field. A sealed extension-only mode is planned, not built yet.
  • Redaction is best effort. It catches known values and simple encodings, not every transformation.
  • Agent identity on a desktop is attribution, not isolation. Another program running as you can try to impersonate an agent client.

Review status

Gate What it requires Status
G0 Byte-level specification and trust-boundary review In progress
G6 Independent protocol and implementation assessment, including the hybrid KEM implementation, with remediation Not started

Every assessment report appears on the audits page, including findings that are not yet fixed. Found a problem? See the disclosure policy.

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.