Skip to content
All news
News

IETF revises ML-KEM key handling for COSE

By Leon Acosta4 min read

The term on this page

ML-KEMModule-Lattice-based Key Encapsulation Mechanism
the standardised post-quantum replacement for RSA and ECDH key exchange, published as FIPS 203

Also mentioned

ML-DSAML-DSAModule-Lattice-based Digital Signature AlgorithmModule-Lattice-Based Digital Signature Algorithm, the NIST-standardized post-quantum signature scheme derived from CRYSTALS-Dilithium and specified in FIPS 204.Read the full entry (new tab), KEMKEMkey encapsulation mechanismA public-key mechanism for securely establishing a shared secret key: the sender encapsulates a random secret to the recipient's public key, and the recipient decapsulates it with their private key.Read the full entry (new tab), FIPSFIPSFederal Information Processing StandardFederal Information Processing Standards, publicly announced standards developed by NIST for use in U.S. government computer systems, including cryptographic algorithms and modules.Read the full entry (new tab), NISTNISTNational Institute of Standards and TechnologyThe U.S. National Institute of Standards and Technology, the agency that develops and publishes cryptographic standards, including the FIPS series and post-quantum algorithms.Read the full entry (new tab) are defined in the glossary.

TL;DR

Read this first

On 23 November 2026, the IETF COSE working group published revision 01 of its ML-KEM key-encapsulation draft. The revision now requires AEAD content encryption, makes AKP the only COSE key representation, binds each key to direct agreement or key wrap through its algorithm field, and corrects how the KDF and ML-KEM security properties are described. It is still an Internet-Draft with temporary identifiers, not an RFC or deployment signal.

The new COSE ML-KEM draft defines how an application can use ML-KEM inside CBOR Object Signing and Encryption. COSE is the compact CBOR counterpart to JOSE and is used where JSON overhead is undesirable. Revision 01 does not introduce a new primitive. It tightens the protocol rules around an already standardized KEM.

The Datatracker history records the update one week after the draft was discussed at IETF 127. The document remains a working-group Internet-Draft. Its six proposed COSE algorithm registrations still use temporary identifiers, all are marked not recommended, and there is no IESG review or assigned RFC number.

The security model was corrected

Revision 01 removes a misleading description of the Fujisaki-Okamoto transform. ML-KEM already provides its chosen-ciphertext security through the construction standardized in FIPS 203. The COSE KDF does not create that property. Its job is narrower: derive a key of the length required by the selected content-encryption or key-wrap algorithm and bind that key to the COSE context.

Pitfall

A KDF is not a repair layer

A conforming KDF cannot make a broken KEM chosen-ciphertext secure. Implementations must use the standardized ML-KEM operation, preserve implicit rejection, and then apply the specified context-bound derivation. Treating the KDF as a generic security patch hides the property that actually needs review.

One content key, two delivery modes

The draft specifies direct key agreement and key agreement with key wrap. In direct mode, ML-KEM produces a shared secret and KMAC256 derives the content-encryption key. In key-wrap mode, the derived secret becomes a key-encryption key that wraps a separate content key. The second structure lets an application encrypt the content once and attach one wrapped content key per recipient.

  • Direct agreement: three proposed registrations map ML-KEM-512, ML-KEM-768, and ML-KEM-1024 to a content key derived for the selected AEAD algorithm.
  • Key wrap: three more pair those parameter sets with A128KW, A192KW, and A256KW respectively.
  • Key selection: the recipient key identifier is recommended so a recipient can choose the matching private key without trial decapsulation.
  • Context: direct mode includes the content algorithm in the derivation context, while key-wrap mode protects a separately generated content key.

That distinction belongs in a cryptographic inventory. Recording only ML-KEM-768 is incomplete. A useful entry also states the COSE mode, content algorithm, wrap algorithm, key identifier policy, KDF context, implementation version, and whether the message has one recipient or many.

Keys are bound to an algorithm and mode

Revision 01 adopts the Algorithm Key Pair type from RFC 9964 as the only key representation. A COSE_Key must carry the algorithm field, and that value binds the key to either direct agreement or key wrap. Supporting both modes means publishing two COSE_Key objects, even when they contain the same underlying ML-KEM key pair.

For private ML-KEM material, the draft permits only the 64-octet seed form d || z. It excludes a 32-octet shorthand and the expanded private-key representation. This removes an implementation-dependent choice from interchange. A migration plan should therefore test import and export against this exact representation instead of assuming every library serializes private keys the same way.

AEAD is now a protocol requirement

The revision requires an authenticated-encryption algorithm for the COSE_Encrypt content. Its security discussion explains why. In key-wrap mode, the content key is not derived from the content algorithm identifier. An attacker who could replace an unauthenticated algorithm and learn details from a failure path might create an algorithm-substitution oracle. Requiring AEAD makes a substituted algorithm fail authentication.

This is a protocol-level guard, not proof that an implementation handles errors safely. An implementation audit still needs malformed ciphertexts, changed algorithm identifiers, wrong recipient keys, repeated encapsulation inputs, truncated wrapped keys, and uniform failure handling. A conformance assessment can verify the chosen ML-KEM parameter set while the application tests verify COSE structure and key lifecycle behavior.

What the draft deliberately leaves out

Hybrid post-quantum KEMs are outside this draft's scope. The existing hybrid key-exchange guide now calls out that boundary. A COSE profile that needs a classical plus post-quantum combiner must follow separate work and cannot infer one from these six pure ML-KEM registrations.

The document also does not authenticate a sender merely because ML-KEM established a content key. Applications still need a signing or authenticated protocol layer appropriate to their threat model. Nor does a draft identifier authorize production interoperability. Teams can build disposable fixtures now, but they should pin revision 01 and expect the wire values or key rules to change.

Decision

Test the mode, not just the primitive

Prototype both direct and wrapped-recipient messages with synthetic keys. Record the complete COSE structure, reject altered algorithms and recipient keys, and verify that no intermediate ML-KEM values reach logs or application data. Keep the experiment separate from production until stable identifiers and released interoperable implementations exist.

References

Get started

Discuss your security needs

Tell us what you need to assess, certify, set up, or teach. We’ll help you scope the work.