DRAFT 0.1.0-draft Todo lo que hay aquí es un borrador sin revisar. Nada está listo para producción. Estado y hoja de ruta

CCSAX Labs · L2

Committing, context-bound AEAD for multi-tenant storage

Status: open question · CCSAX 0.1.0-draft · unreviewed

Question

CEF (spec/CCSAX-0003-cef.md) claims two properties beyond ordinary AEAD security:

  • Key commitment: a ciphertext can only be opened under the key it was made with.
  • Context binding/commitment: a ciphertext opens only under the application context (tenant id, purpose, object id, schema version) it was made for, even though that context is not stored in the envelope.

In suite CCSAX-S1, CEF derives (k_enc, kc) = HKDF-SHA-384(CK, info = label || SHA-384(context) || nonce), stores the 32-byte commitment kc in the authenticated header, and encrypts with AES-256-GCM using AAD = label || header bytes || SHA-384(context).

The question: what exactly is the security notion CEF targets, and can we prove that CEF-S1 meets it under standard, explicitly stated assumptions? In particular, where does CEF sit in the committing-AEAD hierarchy (CMT-1, CMT-3, CMT-4 in the Bellare–Hoang terminology; context commitment in the Menda–Len–Grubbs–Ristenpart terminology), and what must we assume about HKDF-SHA-384 for the commitment to hold?

Why it matters

  • AES-GCM is not key-committing. Published attacks exploit this ("invisible salamanders", partitioning oracles), and multi-tenant storage is a setting where an adversary may choose or learn some keys (a malicious tenant, a compromised KMS path, a confused deputy).
  • CEF's design follows published fixes, but "follows a published fix" is not the same as "proven secure as composed". The exact inputs to the KDF, the nonce in the info, the hashing of context, and the placement of kc inside the AAD all affect which notion holds.
  • The commitment argument treats HKDF-SHA-384 as if it were a committing PRF (that is, as collision-resistant in its key and info). That is a reasonable engineering assumption, but it is an assumption, and it needs to be stated and justified, not implied.

Prior art

Committing AEAD foundations:

  • P. Grubbs, J. Lu, T. Ristenpart, "Message Franking via Committing Authenticated Encryption", CRYPTO 2017, LNCS.
  • M. Bellare, R. Ng, B. Tackmann, "Nonces Are Noticed: AEAD Revisited", CRYPTO 2019, LNCS.
  • J. Len, P. Grubbs, T. Ristenpart, "Partitioning Oracle Attacks", USENIX Security 2021 (full version IACR ePrint 2020/1491).
  • A. Albertini, T. Duong, S. Gueron, S. Kölbl, A. Luykx, S. Schmieg, "How to Abuse and Fix Authenticated Encryption Without Key Commitment", USENIX Security 2022 (IACR ePrint 2020/1456). CEF's "commitment derived by a KDF" approach follows this paper.
  • M. Bellare, V. T. Hoang, "Efficient Schemes for Committing Authenticated Encryption", EUROCRYPT 2022, LNCS. Defines the CMT-1/CMT-3/CMT-4 notions and the UtC and HtE transforms; CEF-S1 resembles these transforms but is not identical to either.
  • J. Chan, P. Rogaway, "On Committing Authenticated-Encryption", ESORICS 2022, LNCS.
  • S. Menda, J. Len, P. Grubbs, T. Ristenpart, "Context Discovery and Commitment Attacks: How to Break CCM, EAX, SIV, and More", EUROCRYPT 2023, LNCS.
  • M. Bellare, V. T. Hoang, "Succinctly-Committing Authenticated Encryption", CRYPTO 2024, LNCS.
  • K. Minematsu, A. Inoue, "Revisiting Generic Transforms for Committing Authenticated Encryption", IACR Transactions on Symmetric Cryptology, 2026 (issue to verify).

Primitives CEF-S1 builds on:

  • M. Dworkin, NIST SP 800-38D, "Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC", November 2007.
  • H. Krawczyk, P. Eronen, RFC 5869, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", May 2010.
  • H. Krawczyk, "Cryptographic Extraction and Key Derivation: The HKDF Scheme", CRYPTO 2010, LNCS.

Method (proposed)

  1. Write CEF-S1 as pseudocode exactly as specified in spec/CCSAX-0003-cef.md, including header encoding, nonce handling and failure behaviour. Any mismatch between spec and reference implementation found here is filed as a spec bug, not fixed silently.
  2. Define the target notion. Start from Bellare–Hoang CMT-4 (commitment to key, nonce, associated data and message) and the Menda et al. context-commitment game, adapted so that the "context" includes the unstored application context. State the adversary's powers: which keys it may choose, whether it sees kc, whether nonces may repeat.
  3. Isolate the KDF assumption. Formulate the property needed of HKDF-SHA-384 (for example: collision resistance of (CK, info) ↦ kc with 256-bit output, modelled either via a random oracle or via collision resistance of HMAC-SHA-384 under adversarial keys) and cite or prove the reduction. Note explicitly where the 32-byte truncation of kc sets the bound (birthday bound on 256 bits).
  4. Prove or refute. Give a pen-and-paper reduction showing CEF-S1 is CMT-4 / context committing under (AES-GCM AE security) + (KDF assumption), with concrete bounds. Also check that confidentiality and integrity (nAE in the Bellare–Ng–Tackmann sense) are preserved, given that the nonce also enters the KDF.
  5. Mechanise. Port the proof to EasyCrypt or CryptoVerif. In parallel, a cheap negative check: try to reproduce known GCM commitment attacks against the reference implementation and confirm they fail at the kc check.
  6. Publish the definition, proof and any counterexample as a CCSAX analysis note, with AI provenance per the disclosure policy.

Status

Open question. No result exists yet. The notion is not formally defined and no proof of CEF-S1 has been written. CEF-S1 itself is a Core design composed of standard primitives following published fixes; this Labs line is about proving what it gives. Nothing from Labs protects production data until promoted through idea → specified → analysed → reviewed → audited → core.

How to help

  • Definition: write a game-based definition of "key- and context-committing AEAD with an unstored context" and show how it relates to CMT-4 and to context commitment.
  • KDF assumption: write down the weakest property of HKDF-SHA-384 under which kc commits to (CK, context, nonce), and check whether existing analyses of HMAC cover the adversarially-keyed case we need.
  • Proof: draft the reduction for CEF-S1 with concrete bounds; or find an attack.
  • EasyCrypt: formalise the CEF-S1 commitment game in EasyCrypt with HKDF modelled as a random oracle as a first step.
  • Attack tests: implement a known AES-GCM key-commitment attack (Albertini et al.; Len–Grubbs–Ristenpart) as a negative test vector against the reference implementation.
  • Spec review: read spec/CCSAX-0003-cef.md and point out any ambiguity in what is hashed, in which order, and with which encoding.

This document is licensed under CC BY 4.0.