Security
A vault keeps proofs for years, sometimes decades. What is encrypted or signed today has to hold up for that long, including against the computers of the future. This page describes how each layer of a vault is protected, and what that protection rests on.
Why post-quantum now
Someone who copies an encrypted object today can keep it until a large quantum computer exists, and then open it. This attack is known as "harvest now, decrypt later". A quantum computer would break the classical public-key algorithms that most encryption uses today, such as X25519.
A vault's encryption already resists this attack. It is hybrid: each object is encrypted with a key derived from both X25519, a classical algorithm, and ML-KEM-768, a post-quantum algorithm standardized by NIST (FIPS 203). To open an object without your key, an attacker has to break both. If a flaw is found in ML-KEM-768, X25519 still protects the object against today's computers.
Signatures face a different risk. A quantum computer could forge a classical signature, so a signature made today has to stay unforgeable for as long as the evidence is kept. Octet's receipts and checkpoints carry a post-quantum signature next to the classical one. Every checkpoint is also anchored in Bitcoin, which rests on hashes, not signatures.
The layers
| Layer | How | Protects against |
|---|---|---|
| Encryption | HPKE (RFC 9180) with X-Wing, a hybrid of ML-KEM-768 and X25519, HKDF-SHA256 and AES-256-GCM (suite hpke/647a/0001/0002). Each object is padded to a size class before encryption. |
Anyone without your recipient key reading an object, Octet included, now or after a quantum computer exists. A changed or moved object fails to open. |
| Signatures | Receipts are signed with Ed25519 and ML-DSA-65. Checkpoints are signed with Ed25519 and ML-DSA-44. A verifier requires both signatures. | A forged receipt or checkpoint, as long as either algorithm holds |
| Log | Every change is an event in an append-only SHA-256 Merkle tree (RFC 9162). A witness cosigns each checkpoint with Ed25519. | An event removed, replaced or reordered after a checkpoint, and a log rolled back to an earlier state |
| Time | Every checkpoint gets an RFC 3161 timestamp from DigiCert and an OpenTimestamps anchor in a Bitcoin block. Octet renews the RFC 3161 timestamps every year, and sooner if DigiCert's key or its hash or signature algorithm ages. | An object backdated, or a forgery dated before the anchor |
| Keys | You generate and hold every private key that opens or authorizes your vault. Key files are encrypted with your passphrase (Argon2id, AES-256-GCM), and can also require a FIDO2 security key. Recovery shares split a recipient key among custodians, each share encrypted to the custodian's X-Wing key. | Octet, or anyone who copies a key file, opening your objects. Losing your only copy of a key. |
What each layer rests on
Not every layer is post-quantum in the same way. This is where each one's long-term protection comes from:
- Encryption is hybrid: X25519 and ML-KEM-768 together.
- Receipts and checkpoints are signed twice: with Ed25519, and with ML-DSA, a post-quantum algorithm standardized by NIST (FIPS 204).
- Other Octet signatures are Ed25519 only. Octet's two offline root keys, on YubiKeys, certify its signing keys with Ed25519, and the vault's list of your recipient keys is signed with Ed25519. Every certificate is a log event, so the Bitcoin anchor fixes when it was made, and a certificate forged later can't be dated before the anchor.
- Your owner key is Ed25519, and so are the delegation root key and the signing half of an auditor key. They authorize recipient keys, delegations and auditor requests while you use them. Verifying an archived object does not depend on them. What you grant an auditor is encrypted to the auditor's X-Wing key.
- The log is a hash tree, not a signature. A quantum computer does not make SHA-256 forgeable the way it would make Ed25519 forgeable.
- RFC 3161 timestamps are classical. DigiCert signs them with RSA, which a quantum computer would break. Renewal protects them from an ageing key or a weakening hash, not from a quantum computer. The Bitcoin anchor covers that case: it depends only on SHA-256 and the Bitcoin chain, so it still shows when a checkpoint existed after the signatures in the archive can be forged.
- The proofs themselves are signed by the device with ECDSA P-256, a classical algorithm. The anchor shows that a proof existed in its sealed form by the anchor's time, so a proof forged later can't be passed off as archived earlier.
What Octet can read
Octet can read a proof during its first 24 hours in the upload buffer, as it can every uploaded proof. The hourly key that protects the buffer copy, backups included, is destroyed 25 to 26 hours after upload. From then on, only your recipient key opens the proof. Octet never receives, derives or holds a recipient private key. See How It Works.
Octet runs the only witness for its log today, so the witness detects a rolled-back database but not a split view made by Octet itself. See Log, Receipts and Timestamps.
What Cloudflare handles
Your vault's stored data (sealed objects, the index and the log) stays in Google Cloud in Belgium and London. Your app's proof uploads and every request to the vault API pass through Cloudflare's network, which may handle them in locations outside the UK and the EEA. Cloudflare terminates TLS, so it handles each uploaded proof in transit before Octet seals it, and every vault token sent to the API. Octet seals each proof inside its own service in Google Cloud before it stores it, and after sealing the proof travels only as ciphertext, so Cloudflare never handles an opened vault object. See Where the data lives.
Details
- Keys: every key, who holds it, security keys and recovery shares
- Log, Receipts and Timestamps: the log, witnesses, timestamps, archive renewal and the root of trust
- Verification: how
octet-vault verifychecks an object end to end