The key words in this document are to be interpreted as described in BCP 14 [RFC 2119] [RFC 8174] when, and only when, they appear in all capitals.
1. System model
An application server holds plaintext transiently, calls CCSAX to seal and open data, and stores envelopes in databases, object stores and backups. Keys live in a key store (KMS/HSM, or a file in v0). Key-lifecycle events go to the CVL. Multiple tenants share the same storage.
2. Assets
| Asset | Property wanted |
|---|---|
| Plaintext data (secrets, personal data) | confidentiality, integrity, binding to its tenant/record |
| DEKs, KEKs, root key, KEM secret keys | confidentiality, integrity, controlled lifecycle |
| Suite registry / policy | integrity |
| Key-lifecycle history | integrity, append-only, verifiable by third parties |
3. Adversaries
| ID | Adversary | Capabilities |
|---|---|---|
| A1 | Storage thief | Reads databases, backups, object stores; no keys |
| A2 | Storage tamperer | A1 + modifies, deletes, reorders, replays, copies envelopes between rows/tenants |
| A3 | Malicious tenant | Legitimate account in the same application; chooses its own plaintexts; tries to read or affect other tenants' data |
| A4 | Partial key compromise | Learns one KEK or one DEK (e.g. via a bug); tries to extend to more data or to future data |
| A5 | Harvest-now-decrypt-later | Records envelopes and public keys today; may run a cryptographically relevant quantum computer in future |
| A6 | Downgrade adversary | Crafts envelopes under weaker or forbidden suites, or relabels wrap algorithms |
| A7 | Malicious or careless operator | Rotates, deletes, or restores keys without trace; rewrites history |
| A8 | Network attacker | Covered by TLS 1.3; out of CCSAX scope except as noted |
| A9 | Side-channel observer | Measures timing / errors of open operations |
4. Goals and how CCSAX addresses them
| Goal | Against | Mechanism | Spec |
|---|---|---|---|
| G1 Confidentiality at rest | A1, A2, A3 | AES-256-GCM under per-envelope keys; DEKs wrapped | 0003 |
| G2 Integrity of data and metadata | A2 | GCM over header + context; wrap AEAD over wrap block | 0003 §6–7 |
| G3 No cross-record / cross-tenant reuse | A2, A3 | Context binding in KDF and AAD | 0003 §5 |
| G4 Key commitment | A2, A3 (multi-key ciphertexts, partitioning oracles) | HKDF-derived commitment checked before decryption | 0003 §6.2 |
| G5 Limited blast radius | A4 | Per-tenant KEKs, per-object DEKs, purpose separation | 0005 |
| G6 Post-quantum key wrapping | A5 | Hybrid KEM X-Wing (H1), ML-KEM-1024+P-384 (H2, experimental) | 0004 |
| G7 No downgrade | A6 | Registry policy, key–suite binding, fail closed | 0004 §3, 0006 §4 |
| G8 Accountable key lifecycle | A7 | CVL: signed, append-only Merkle log of lifecycle events | 0007 |
| G9 Crypto-shredding | (compliance, tenant deletion) | Random per-tenant KEKs; destruction of all copies | 0005 §6 |
| G10 Uninformative errors | A9 | Generic public error; constant-time commitment compare | 0003 §9 |
5. Explicit non-goals (residual risks)
- Compromised application server while it holds keys or plaintext: CCSAX cannot protect data the server is processing. KMS-side operations reduce key exposure, not plaintext exposure.
- Rollback / replay of a record to an older valid envelope for the same context (A2): not prevented by CEF v1; applications needing freshness must bind a version (0003 §12).
- Length and metadata leakage: envelope size, suite, key ids are visible.
- Sender authenticity for H1 envelopes: anyone with the public key can create one.
- Availability: an attacker who can delete data or keys can deny service; CVL makes key deletion visible, not impossible.
- Side channels in JavaScript KEM code (impl/ts/DEPENDENCIES.md).
- Quantum attacks on symmetric primitives are believed to be manageable at 256-bit keys, but CCSAX makes no claim about unknown future attacks.
- Malicious registry or key store: if the attacker controls the policy CCSAX enforces or the keys it is given, CCSAX's guarantees do not hold.
6. Assumptions
AES-256 is a secure block cipher and GCM a secure AEAD within the NIST SP 800-38D limits; SHA-384, HMAC and HKDF behave as stated in their security analyses (with collision resistance for the commitment, Labs L2); ML-KEM-768 is IND-CCA secure or X25519 is secure (X-Wing's hybrid claim); the operating system CSPRNG is sound; key stores enforce access control.
7. References
[RFC 2119], [RFC 8174]; CCSAX-0003 to CCSAX-0007; Labs L1–L4 for the open questions behind G4, G6, G7, G8.