Zero-Knowledge Vaults: Who Holds the Key, and What Happens When Nobody Does

A zero-knowledge vault encrypts data before it reaches the provider, so the provider holds ciphertext and cannot decrypt it. That is the point, and it is also the problem: the same property that stops the provider from reading your files stops the provider from helping you when the key is lost.

The short version: design key custody before choosing a vault. Decide who can decrypt, what happens when a device is lost, and how recovery works without handing the provider the ability to read everything.

The key hierarchy

Practical designs use a hierarchy: a master key derived from a passphrase, per-item or per-folder keys derived from the master, and wrapping keys that encrypt the item keys for sharing. Each layer exists to limit the blast radius of a compromise and to make revocation possible without re-encrypting everything.

Two properties matter. Rotating an item key must not require re-encrypting the whole vault, which is why per-item keys exist. Revoking access to an item must actually change the key material, not merely remove a permission in the provider’s database, or a previously authorised device keeps its copy.

The passphrase problem

If the master key is derived from a passphrase, then the passphrase’s strength is the vault’s strength. Derivation with a memory-hard function raises the cost of guessing, and the cost must be chosen with devices in mind: a setting that makes a phone take three seconds to unlock is a setting users will disable.

Passphrase loss is total loss. That has to be stated plainly to users, because every other service they use has a reset link, and the habit of expecting one is what turns a lost passphrase into a lost archive.

Device enrolment as a key event

Each device holds wrapped copies of the keys it needs. Enrolling a device is a key distribution event: the new device receives wrapped keys, and the old devices should learn that it exists. A vault with no visibility into enrolled devices has no way to notice that a stolen laptop remains authorised.

The useful controls are device lists with last-seen times, one-click revocation that invalidates wrapped keys rather than merely marking a device inactive, and a notification to other devices when a new one enrols. Without the last item, an attacker who enrols a device is silent.

Recovery without breaking the premise

Recovery options sit on a spectrum. The worst is a provider-held recovery key, which reintroduces exactly the access the vault was meant to remove. The better options are a printed recovery key stored offline, a social recovery scheme where several trusted parties each hold a share, or a second device kept in a safe place that can re-authorise new devices.

Each has a different failure profile: paper keys are lost or photographed, social recovery requires those parties to be alive and reachable, and the spare device must be kept updated or it becomes an obsolete artefact that no longer opens the vault.

Shared vaults and the revocation gap

Sharing introduces a key per recipient, and revocation means re-keying the shared item and redistributing to the remaining recipients. Systems that implement revocation as a permission change leave the removed party holding a working copy, which is a gap that only shows up when it matters.

Ask the provider, specifically, what happens to a removed collaborator’s cached copy. The honest answers are “we re-key” or “we do not”; anything vaguer is a system where the answer is effectively the latter.

Threat model honesty

Zero knowledge protects data at rest against the provider and against anyone who obtains the provider’s storage. It does not protect a compromised client device, a keylogger during unlock, or a malicious browser extension that reads the decrypted view. Those are the real risks for most users, and no vault design removes them.

Say so in the documentation. A vault marketed as protecting everything invites users to store things they would not otherwise entrust to any service, and the marketing becomes the vulnerability.

Metadata the provider still sees

Zero knowledge applies to file contents. The provider still sees the number of items, their approximate sizes, the times they were written, and often the folder structure, because syncing needs to know what changed. That is enough to infer a lot: a burst of writes at midnight, a large file appearing weekly, a folder that grows by a predictable amount.

Some designs hide names and sizes by padding and batching. Where they do not, the honest description is “encrypted contents, visible structure”, which is still useful protection but not the same claim.

Sharing outside the vault

Sharing a file means either granting an account access or producing a link with the key in the fragment. The link form puts the key in a place that browsers, chat clients, and clipboard history may retain. If a link-based share is used, prefer one that expires, and avoid pasting it into channels that archive messages.

For anything durable, share into the recipient’s own vault rather than by link. The mechanism is less convenient and the key custody is clearer.

Testing the premise

Verify the zero-knowledge claim with an experiment rather than a promise: change the account password through the provider’s web interface, and observe whether an existing session can still decrypt. A provider that can re-wrap your keys without your old passphrase is a provider that holds something that can decrypt, whatever the marketing says.

What to check before you commit

  • Map the key hierarchy and what each layer protects.
  • Choose a derivation cost that a phone can afford.
  • Require an explicit warning that passphrase loss is permanent.
  • Enrol devices visibly, with revocation that re-wraps keys.
  • Pick a recovery scheme and test it once, in full.
  • Confirm that removing a collaborator actually re-keys.
  • Document what the vault does not protect.

A zero-knowledge vault is a custody design wearing an application. The encryption is standard and the engineering is not: it lives in the decisions about who can decrypt, what happens when they cannot, and how those decisions are enforced.

Photo: Photo by Joe Mabel, via Wikimedia Commons (CC BY-SA 4.0).

Leave a Comment