Security and Limits¶
Scope: the honest audit: what this design genuinely protects, what it provably doesn't, and where the weakest parts of a household vault actually live. No throat-clearing; the good news first because it is real.
What the design gets right¶
- The server never holds keys. The
master password, the stretched key,
and the plaintext vault exist only on
client devices (chapter 1). A full
copy of the server — database, config,
everything — is a box of sealed
envelopes. The lab's own specimen item
is the one exception in this book, and
only because the lab chose readable
stand-ins for teaching; a real client's
fields look like the
keyandpasswordstrings in t08: noise. - Guessing is priced. Each account's KDF settings (chapter 3) make every password guess cost real time and memory — 600,000 PBKDF2 iterations, or Argon2id with 32 MiB per guess, in the lab's two accounts. An attacker with the database must pay that price per guess, per account.
- The server won't gossip about its users. Prelogin invents decoy settings for unknown addresses; refused registrations won't say whether an address exists (chapters 3, 5). An outsider cannot use your server to enumerate your household.
- The boundary between accounts is enforced. A non-member's sync doesn't merely hide a shared item; it contains no trace of it (t15).
What it does not protect¶
- Weak master passwords. The KDF prices guesses; it does not make a guessable password unguessable. With the database in hand, an attacker runs a dictionary against the stretched hashes at hardware speed multiplied by the KDF's cost — "correct horse battery staple"-style passphrases survive that arithmetic, and pets' names don't. The master password is the vault; everything else is commentary. Nobody can set its policy for your household: Vaultwarden accepts what the client accepts.
- The clients' devices. Malware on the phone that unlocks the vault reads the open vault. Zero-knowledge ends at the glass. (The companion temptation — turning on every convenience unlock, never letting the vault time out — widens exactly this surface.)
- Metadata is not sealed. The server knows email addresses, when accounts synced, how many items exist and roughly how large they are, and which organisations share members. An attacker with the database learns the shape of your household's password life, though none of its contents.
- Availability is yours now. Cloud Bitwarden's problem — uptime, power, the disk under the spare-room server — is yours. The sealed-box design means a dead server loses nothing that a backup can't replace (chapter 7), but the backup has to exist.
The operator is the attack surface¶
The gravest risks in this guide are not cryptographic. They are the settings:
- Registration left open turns your
server into anonymous storage for
strangers, indefinitely, invisibly
(chapter 5). Of every setting in the
book,
SIGNUPS_ALLOWED=falseis the one to verify twice. - The admin token is the whole
building. One string, full control,
no second factor. Keep it a PHC hash
in the config (chapter 5), keep the
password for it in your (closed-loop)
vault, and consider whether
/adminneeds to exist at all between the times you use it — removing the token and restarting removes the page. - The box itself. SSH left on a default password, a neglected OS, other services sharing the machine — an intruder on the host sits where the tokens, the config, and the live process are. They still can't unseal vaults, but they can delete them, watch who logs in, and wait. Your vault server deserves the same boring hygiene as any server: updates, keys not passwords, nothing else public.
- Your own memory. One master password, used nowhere else, held by one skull. Write it on paper in a drawer before you write it anywhere digital — the oldest advice in the field, still load-bearing (chapter 7).
The trust sentence, whole¶
Running Vaultwarden means trusting an unofficial, volunteer-run reimplementation with the availability — not the secrecy — of every password you own, and trusting yourself with its operation. Bitwarden's clients are the official part; the server is the community's, and its security record is maintained the way chapter 8 describes: in public, on a monthly cadence, patched by releases you must actually apply. For a household that keeps its server patched, its door closed, and its backups rehearsed, that is a fair trade for holding your own keys. If any of the three habits won't stick, the honest recommendation is the commercial cloud this guide exists to let you leave — operated by people who do those things for a living.