Skip to content

Conseal is pre-release. The interface can change between releases.

Threat model: caller assumptions

The properties in this document hold only if these are true:

# Assumption If it isn’t
1 The app is served over HTTPS with a valid certificate A network attacker can serve a malicious JavaScript bundle
2 The app enforces a strict Content Security Policy, with no inline scripts or untrusted sources XSS can call Conseal directly and use every key in IndexedDB
3 Passphrases have enough entropy, or a Secret Key is always used Offline brute force against a stolen wrapped key becomes feasible
4 The Secret Key is never stored on the server or anywhere it can read The defence against a compromised server (§3.1) collapses
5 The mnemonic is treated as a top secret, kept offline One leak rebuilds the AEK
6 The app doesn’t eval or run untrusted scripts in its origin As 2: any script can use the loaded CryptoKeys
7 The browser’s SubtleCrypto is not compromised Every operation is the browser’s; a backdoored browser breaks everything
8 init() runs before any seal() or unseal() that uses the stored AEK loadCryptoKey(AEK_KEY_ID) returns null, and sealing throws on it. There is no fallback key
9 The app shows the verification code and approves a join only once the user confirms it matches A server can swap the joining device’s key and receive the AEK (§4.5)
10 An app that runs the circle without CircleClient takes the commitment before the key pair, derives the approving device’s code from its own commitment, and finishes a join only once the codes are confirmed A server can answer a join itself and read everything the device seals (§4.3)
11 Collections where a stale value matters use a merge policy that compares versions A dishonest server can roll records back unnoticed (§6.3)