Summary

  • RFC 9597 registers a CWT Claims map in COSE header parameter 15, so selected claims stay readable before decryption, alongside detached content, or next to a payload that is not a CWT at all.
  • A visible issuer, audience or identifier is a hint, not an authenticated fact. Any routing, lookup or parser budget spent before cryptographic validation is provisional and must be confirmed — or revoked — afterward.
  • Duplicate claims in header and payload must match unless the application defines its own rule, and privacy, type interpretation, key authority, local authorization and observed effect remain five separate controls that no single “verified” flag can cover.

A gateway receives an encrypted COSE object. The payload is a locked box. The header, however, is talkative: a CWT Claims map, label 15, announcing an issuer. The gateway takes the hint, picks a key-discovery service, gets a key back, decrypts, verifies the signature. Somewhere a dashboard turns green and prints “trusted issuer.”

Every word of that is true except, possibly, the last two.

The issuer might have arrived in an unprotected header. A protected value might have been read under an unprotected type hint. The discovery service might have returned a perfectly valid key that was never authorized for this class of object. The decrypted payload might name a different issuer. The audience might exclude this endpoint. The object might be flawlessly authentic and still not authorize the operation someone just performed with it.

RFC 9597 standardizes the useful half of that chain: how CWT claims ride in a COSE header when the payload must stay opaque, when a signature covers detached content, or when the payload is not a CWT Claims Set and may not even be CBOR. It makes early inspection interoperable. It does not make early inspection true.

One container, because integers collide

CWT claim keys and COSE header labels are both compact integers. Drop each CWT claim straight into the COSE header and the two registries start colliding. RFC 9597 therefore registers a single COSE parameter, “CWT Claims,” with label 15, whose value is a map keyed by CWT claim labels.

That map can carry the familiar cast from RFC 8392 — issuer, subject, audience, expiration, not-before, issued-at, token identifier — plus anything registered later in the IANA CWT registry. The IANA COSE registry coordinates the outer label, and RFC 8610 supplies the CDDL notation that describes the map.

Registries solve identification. They do not decide which claims an endpoint requires, what a claim means inside a particular protocol, which issuer may assert it, or what happens next. The common layer names the container. The application still owns the consequences.

The parameter works with any COSE object that has headers, not just CWT payloads. An image, a firmware blob or some other binary structure can be signed while an issuer claim sits out front for key discovery. That flexibility is genuinely useful, and it kills a tempting inference: seeing CWT claims does not prove the payload is a CWT.

Protected placement narrows malleability, not authority

RFC 9052 splits COSE headers into protected and unprotected maps. RFC 9597 recommends the protected map, because an unprotected value is malleable, and permits the parameter only once across the two.

“Recommended” is doing real work in that sentence. No implementation may assume every received CWT Claims map is protected just because a sensible producer would protect it. The acceptance profile has to say whether unprotected placement is rejected, kept as an untrusted hint, or allowed for one sharply bounded purpose.

Even protected placement proves less than the dashboard implies. Cryptographic protection binds the claim bytes inside one COSE security operation. It does not establish that the signer was competent to assert that issuer, that the audience includes this service, that the claim is fresh, that the discovery response was authorized, or that the requested business action is permitted.

Protecting the interpretation matters just as much. RFC 9597 requires the intended meaning to be unambiguous and recommends the typ parameter from RFC 9596 where the application has no natural alternative. Protect the claims but leave the type — or the context that selects their meaning — in the clear, and the decision chain has a weak joint. Integrity must cover both the assertion and the rule that says what the assertion is.

The provisional interval is where incidents are born

The sharpest operational sentence in the document sits in its security considerations: processing claims before their integrity is cryptographically secure can be risky, and tentative decisions made from unverified information must be confirmed after cryptographic processing.

Key discovery is the obvious case. A receiver may need an issuer or key identifier before it knows which key can verify anything. That circularity does not disappear because it is inconvenient. Safe design does not ban the early lookup; it caps what the lookup is allowed to cause.

An unverified issuer may choose a lookup namespace, but it should not grant a tenant context. It may select candidate keys, but it should not approve an operation. It may set a decoder budget, but it should not open an unlimited parser. It may route work into an isolation queue, but it should not commit irreversible state.

The receipt chain should record the exact received bytes, whether label 15 was protected, the early claim value, the provisional branch taken, the discovery request, the returned candidate, the cryptographic result, the interpretation source, the payload comparison, the application policy and the final action. If validation fails, the provisional state must be revoked or quarantined — not left sitting in a cache as an identity fact nobody remembers inventing.

This is where running code outranks reassuring vocabulary. A design document can promise “verified later.” Only execution logs, negative tests and observed rollback show that later verification actually governs the earlier branch.

Two copies, one comparison rule — and equality is not truth

RFC 7519 set the precedent, exposing selected JWT claims in JOSE headers. RFC 9597 brings the capability to CWT and adds a direct consistency rule: when a claim appears in both payload and header, the receiving application must verify the values are identical unless it defines another specific processing rule.

That closes a genuinely confusing path. A gateway can no longer route on header issuer A while a downstream service authorizes payload issuer B and then describe both as processing the same token.

But equality is not validation. Two identical expiration values can both be stale. Two identical audiences can both exclude the receiver. Two identical issuer values can both come from an unauthorized signer. The equality receipt answers “did the copies diverge?” It does not answer “is the claim true?” or “may this operation proceed?”

An application that deliberately permits different copies needs a precise rule: which component consumes which copy, why divergence is safe, what protection covers each value, and how the decision is audited. “The profile allows it” is not enough without the profile version and the executed branch.

Visibility is a privacy decision, not a logging default

The reason to hoist a claim into a header is usually that somebody must see it before the payload opens. Which means the claim now lives outside encryption. RFC 9597 warns that registered CWT claims can carry privacy-sensitive information and that COSE objects bearing them should be visible only to appropriate parties.

An issuer can reveal an organization. A subject can identify a device or a person. An audience can disclose the intended service. A token identifier can support correlation across everything it touches. A deployment that copies all claims “for observability” quietly converts an encrypted token into a tracking envelope.

So the privacy decision precedes serialization. Which minimal claim does the early task actually need? Who can observe it on the wire, in queues, in logs, in caches, in error reports? How long is it retained? Can a coarse routing realm stand in for a stable subject? Cryptographic correctness does not authorize disclosure.

Detached content stretches the evidence chain

COSE can protect detached content, but RFC 9052 leaves the application responsible for transporting those bytes unchanged. A header issuer plus a valid COSE structure proves nothing about whether the verifier fetched, hashed and processed the intended detached payload.

The system must preserve the payload locator or retrieval context, the exact bytes or digest, the association with the COSE object, and the validation result. Otherwise an early claim can successfully select a key while the later payload belongs to an entirely different transaction — a mismatch that looks like success from every angle except the one that matters.

The final statement should stay narrow: this header claim was visible; this exact value and interpretation were protected by this validated object; any duplicate payload copy matched under this rule; this local policy accepted the result; this action was attempted; this effect was observed. No earlier receipt should be allowed to impersonate a later one.

Sources