Threat model
Version: October 2026 Scope:
@consealdev/consealwith its/syncand/uientry points, the wire contract inspec/, and backends that serve it, such asConsealDev.ConsealAudience: integrators, security reviewers and auditors
What Conseal protects, against whom, and what it relies on. Each section says what Conseal enforces, what that depends on, and what it leaves to the app. What Conseal doesn’t protect against, and what the app must provide for any of this to hold, close the document (§11 to §13).
1. The system
Section titled “1. The system”Conseal is end-to-end encryption on the user’s device, built on the Web Crypto API
(SubtleCrypto). Its central promise is zero knowledge: the server stores only ciphertext and wrapped keys, never
plaintext and never bare key material. Every cryptographic operation happens on the device.
It has three layers, one per entry point of @consealdev/conseal:
- The core (
@consealdev/conseal): the primitives, the circle that shares a user’s key between their devices, and channels that share a key between users. - Sync (
@consealdev/conseal/sync):CircleClient, which runs the circle’s join ceremony against a backend, andSyncEngine, which moves the user’s records between their devices as the contract inspec/defines. - The ceremony screens (
@consealdev/conseal/ui): Lit components overCircleClient, with no crypto or HTTP of their own.
Key assets
Section titled “Key assets”| Asset | Description | Where it lives |
|---|---|---|
| AEK (Account Encryption Key) | The user’s root AES-256-GCM key. It seals their data, or the DEKs that seal it | Each device, as a non-extractable CryptoKey |
| Wrapped AEK | The AEK under PBKDF2 + AES-GCM, one per device | The server |
| AEK commitment | SHA-256 of the AEK | The server |
| Secret Key (SK) | A 128-bit second factor for wrapping the AEK | The device only, such as localStorage or a CircleStore |
| Passphrase | The user’s chosen credential, combined with the SK in PBKDF2 | The user’s memory |
| BIP-39 mnemonic | 24 words the AEK is derived from, kept as an offline backup | The user’s written record only |
| DEK (Data Encryption Key) | A fresh AES-256-GCM key per record write and per blob, sealed under the AEK | Beside its ciphertext |
| Plaintext | The app’s data before sealing | JavaScript memory, and with sync, the app’s RecordStore (§6) |
| Ciphertext | AES-256-GCM sealed records and blobs | The server and its object storage |
| Identity key pairs | The user’s ECDH and ECDSA key pairs, for messages sealed to them and signatures they make | Public keys wherever the app publishes them. Private keys on the device, and with sync in the keyring record (§7) |
| Passphrase check | A salted PBKDF2 hash of the approving device’s passphrase, with a digest of the sealed AEK | Sealed to the joining device, only while a join runs |
| Channel AEK | An AES-256-GCM key shared by a channel’s members, across users | Members’ devices, as a non-extractable CryptoKey |
| Wrapped channel AEK | The channel AEK under one member’s circle AEK (AES-GCM, bound to the channel id) | The server, one per member |
| Sealed backup | An export of the user’s records, under a passcode | Wherever the user keeps it |
2. Who is trusted
Section titled “2. Who is trusted”| Party | Trusted with |
|---|---|
| The user’s devices | Plaintext and the AEK. A device that runs an attacker’s script (XSS, a malicious extension) can use both (§11.1) |
| The server, its storage and its operator | Availability and honest ordering. Never with content: everything it stores is sealed before it leaves a device |
| The host app’s sign-in | Which user a request belongs to. Whoever can sign in as the user can read and write their ciphertext, but not open it |
| The network | Nothing. TLS protects requests, and presigned URLs carry their own short-lived authority |
The browser’s SubtleCrypto |
Every cryptographic operation. A backdoored browser breaks everything (§12) |