# What is COSE?

> COSE is the IETF standard for signing, MACing and encrypting data written in CBOR, a compact binary format. It is the binary counterpart of JOSE, and it also defines how to write cryptographic keys in CBOR.

Explainer by Boston Identity, 2026-11-07. 5 min read. https://insights.bostonidentity.com/glossary/cose

- What it is: standard
- Defined by: IETF, RFC 9052 (Internet Standard 96)
- Who it's for: Teams buying device attestation, mobile credentials or signed logs

## What is COSE?

COSE, short for CBOR Object Signing and Encryption, sets out how to sign, encrypt and add a message authentication code (MAC, a tag made with a shared secret key) to data encoded in CBOR, the Concise Binary Object Representation [S1 Abstract]. CBOR extends the data model of JSON (JavaScript Object Notation) with binary data, and it was built to keep both messages and code small [S1 §1]. The IETF (Internet Engineering Task Force) designed COSE first for small, constrained devices in the Internet of Things (IoT) [S1 §1].

JOSE, the JSON Object Signing and Encryption family, already did this job for JSON. RFC 9052 does the same thing for CBOR, but its authors say it is not a direct copy: they re-examined JOSE's choices [S1 §1]. Binary data travels as raw bytes instead of base64 text, signed and MACed messages are separate types, and every message shares one overall structure [S1 §1.3].

RFC 9052 defines the message structures and how to build the inputs to the cryptography. The algorithms themselves are in RFC 9053 and RFC 8230, and more are expected in future documents [S1 §1]. COSE, like JOSE, is meant for store-and-forward or offline use. An online protocol that needs encryption has to set up keys first [S1 §1].

Think of it like this: A COSE message is like a sealed envelope with two labels: one printed under the seal, one stuck on the outside. Anyone can peel and swap the outside label, so only what is under the seal can be trusted. The comparison stops at the seal itself: COSE seals a rebuilt copy of the contents, not the envelope as it travels.

Not the same as: COSE is not a token format. It wraps any CBOR payload, and a CBOR Web Token (CWT) is one thing built on top of it [BI-FIND-2018-0011](https://insights.bostonidentity.com/ref/BI-FIND-2018-0011).

## How does COSE work?

We walk through the simplest case, a message with one signer (COSE_Sign1). The actors are the sender, who holds the signing key, and the recipient, whose application decides what to do with the message.

[Figure: The sender signs a rebuilt structure, not the message bytes as sent, and the recipient must rebuild the same structure and then still decide whether the signer may act.]

1. **The sender fills two header buckets.** Every COSE message is a CBOR array that starts with a protected bucket, an unprotected bucket, and the content [S1 §2]. Only the protected bucket is covered by the cryptography [S1 §3]. The algorithm identifier, alg, must be authenticated where the algorithm allows it, for example by placing it in the protected bucket [S1 §3.1].
2. **The sender builds the Sig_structure.** The sender does not sign the message as it will travel. It builds a separate array, the Sig_structure, holding a context string ("Signature1" for one signer), the protected headers, any externally supplied data from the application, and the full payload [S1 §4.4]. The external data lets an application bind outside information, such as protocol options, that is never carried in the message [S1 §4.3].
3. **The sender encodes it with fixed rules.** The sender encodes the Sig_structure into a byte string called ToBeSigned [S1 §4.4]. That encoding must use definite lengths and the shortest possible form, so both sides produce the same bytes [S1 §9].
4. **The sender signs and sends the message.** The sender runs the signature algorithm over ToBeSigned with its key and puts the result in the signature field [S1 §4.4]. The message sent is an array of protected headers, unprotected headers, payload and signature, marked with CBOR tag 18 when tagged [S1 §4.2]. The payload may also travel separately, with nil in its place [S1 §4.1].
5. **The recipient rebuilds and verifies.** The recipient builds the same Sig_structure from what it received plus its own copy of any external data, encodes it the same way, and runs the verification algorithm with the key and alg [S1 §4.4]. If the protected headers were re-encoded in transit, verification fails unless the bytes come out identical [S1 §3].
6. **The application decides whether to act.** A valid signature is not the end. The application also checks that the key is correctly paired with the signing identity and that this identity is authorized before it performs any action [S1 §4.4].

## Why does COSE matter now?

COSE sits under several identity formats our sources covered this year. The one profile that RFC 9711 defines for device attestation tokens uses CBOR only and COSE_Sign1 signing [BI-FIND-2025-0413](https://insights.bostonidentity.com/ref/BI-FIND-2025-0413). The Verifiable Credentials Data Model 2.0 recommends JOSE and COSE envelopes as one way to secure a credential [BI-FIND-2025-0022](https://insights.bostonidentity.com/ref/BI-FIND-2025-0022). RFC 9942 registers three COSE header parameters for transparency-log receipts [BI-FIND-2026-1439](https://insights.bostonidentity.com/ref/BI-FIND-2026-1439).

The algorithms inside COSE are changing too. RFC 9864 deprecates the older COSE identifiers ES256, ES384, ES512 and EdDSA, and says new deployments should use the replacements unless documented requirements prevent it [BI-FIND-2025-0507](https://insights.bostonidentity.com/ref/BI-FIND-2025-0507). RFC 9964 fixes how ML-DSA, a post-quantum signature scheme, carries its private key in JOSE and COSE: as a 32-byte seed [BI-FIND-2026-1693](https://insights.bostonidentity.com/ref/BI-FIND-2026-1693). A post-quantum passkey draft restates ML-DSA signature sizes of 2,420 to 4,627 bytes [BI-FIND-2025-0630](https://insights.bostonidentity.com/ref/BI-FIND-2025-0630). We read that as a planning issue for small devices, which is where COSE started.

## Where does it fit?

- Compared with CBOR: CBOR is the data format: how a map or a byte string is written in binary. COSE is the security layer that signs, MACs or encrypts CBOR data [S1 §1].
- Compared with CWT: A CWT is a token, a CBOR map of claims. Checking one means running COSE verification or decryption on it until a claims map comes out [BI-FIND-2018-0011](https://insights.bostonidentity.com/ref/BI-FIND-2018-0011).
- Compared with SCITT: A SCITT transparency service returns receipts, and RFC 9943 requires them to be COSE Receipts [BI-FIND-2026-0972](https://insights.bostonidentity.com/ref/BI-FIND-2026-0972). RFC 9942 registers the COSE header parameters for those receipts and defines one log type for them [BI-FIND-2026-1439](https://insights.bostonidentity.com/ref/BI-FIND-2026-1439).

## What goes wrong?

- A valid signature proves which key signed, not that the signer may act. RFC 9052 leaves the authorization check to the application [BI-FIND-2022-0011](https://insights.bostonidentity.com/ref/BI-FIND-2022-0011).
- The key identifier, kid, is a hint. Applications must not assume it is unique, so several keys may need to be tried [S1 §3.1] [BI-FIND-2022-0012](https://insights.bostonidentity.com/ref/BI-FIND-2022-0012).
- Anything in the unprotected bucket is not protected by the cryptography [S1 §3]. A recipient that trusts it can be fooled.
- Using one key with two algorithms can leak information about the key. The RFC recommends restricting each key to a single algorithm [S1 §12].
- RFC 9052 sets no mandatory algorithms. It leaves that choice to each application profile, so two COSE products need not work together [S1 §10].
- COSE provides no uniform padding. With the content encryption algorithms in RFC 9053, an observer can tell "YES" from "NO" by message length, and it is up to applications to document how content is padded [S1 §12].

## What should a security leader ask?

1. When our verifier accepts a COSE signature, which code then checks that the signer is allowed to request the action?
2. Which COSE algorithm identifiers do our devices and verifiers accept today, and do they still rely on the ones RFC 9864 deprecated?
3. Does any decision in our system read a value from the unprotected header bucket?
4. Which COSE profile does this vendor implement, and which algorithms does it make mandatory?
5. How will our constrained devices carry ML-DSA signatures of up to 4,627 bytes?

## Sources

- [S1] [CBOR Object Signing and Encryption (COSE): Structures and Process](https://www.rfc-editor.org/rfc/rfc9052) (IETF, RFC 9052, Internet Standard (STD 96), August 2022)

## Evidence

- [BI-FIND-2018-0011](https://insights.bostonidentity.com/ref/BI-FIND-2018-0011): RFC 8392 requires rejection if any listed CWT validation step fails. The procedure checks the encoding, performs the relevant COSE verification or decryption and processes nested layers until the result is a CBOR claims map. Its security considerations also say the recipient needs to authenticate and trust the party that created the CWT before making an authorization decision from its claims. (from "CWT leaves required claims to the application, including issuer, audience and expiry")
- [BI-FIND-2025-0413](https://insights.bostonidentity.com/ref/BI-FIND-2025-0413): EAT keeps the full flexibility of CWT, JWT, COSE and JOSE, and the RFC says a profile has to narrow those options to guarantee interoperability. Only a full profile may be named in the eat_profile claim. The one profile the RFC defines, urn:ietf:rfc:rfc9711, is for constrained devices: CBOR only, COSE_Sign1 signing, receivers that accept ES256, ES384 and ES512, the verification key named by key ID or UEID, and a new unique nonce for every token request. Any deviation, even requiring one extra claim, needs a different identifier. Outside that profile, all EAT use must still provide freshness, and the EAT nonce is one option among several. (from "RFC 9711 standardizes the attestation token and sets no security floor for the device that signs it")
- [BI-FIND-2025-0022](https://insights.bostonidentity.com/ref/BI-FIND-2025-0022): Neither of the two credential standards requires DIDs. VC Data Model 2.0 requires only that the issuer be a URL, names a DID as one option, and says credentials do not depend on DIDs; it recommends JOSE and COSE envelopes or embedded Data Integrity proofs, and mentions SD-JWT only in an example while never naming the IETF's SD-JWT VC. SD-JWT VC, for its part, finds issuer keys by URL or X.509 certificate and leaves DIDs to profiles. A credential ecosystem can grow without DIDs; DID-based agent naming has to win on its own case. (from "The W3C credential standard leaves out what agents need most: which issuers to trust, and who may present")
- [BI-FIND-2026-1439](https://insights.bostonidentity.com/ref/BI-FIND-2026-1439): RFC 9942 gives receipts one envelope but defines a single log type for it, and it warns that implementers "should not expect interoperability across" different verifiable data structures; a security analysis MUST be conducted before migrating to a new one. The RFC registers three COSE header parameters, receipts (394), vds (395) and vdp (396), and opens two IANA registries, one for verifiable data structures and one for their proof types, under a Specification Required policy. The only structure it defines is RFC9162_SHA256, the Certificate Transparency 2.0 Merkle tree, with an inclusion proof and a consistency proof. The RFC names disclosure and non-inclusion among the proofs a receipt can carry but gives them no encoding of their own. Any other log type needs a specification that says how to encode, produce and consume its proofs, and when a receipts header is present the verifier MUST confirm that the structure and proofs match registered entries. (from "A COSE Receipt signs a Merkle root, not the entry, and RFC 9942 recommends checking signature and proof as one result")
- [BI-FIND-2025-0507](https://insights.bostonidentity.com/ref/BI-FIND-2025-0507): RFC 9864 registers curve-specific COSE ECDSA identifiers and separate Ed25519 and Ed448 identifiers for JOSE and COSE. It deprecates JOSE EdDSA and the older COSE ES256, ES384, ES512 and EdDSA identifiers. Deprecated means the preferred replacement SHOULD be used in new deployments unless documented operational or regulatory requirements prevent migration. Prohibited means the functionality MUST NOT be used. The RFC deprecates no polymorphic encryption algorithms because it provides no replacements for them. (from "RFC 9864 deprecates ambiguous signature identifiers without prohibiting their use")
- [BI-FIND-2026-1693](https://insights.bostonidentity.com/ref/BI-FIND-2026-1693): RFC 9964 requires ML-DSA private information in JOSE and COSE to use a 32-byte seed: priv MUST be that seed and MUST have that length. The expanded private key is not a serialization option in this profile. In the generic Algorithm Key Pair (AKP) structure, alg and pub are REQUIRED, and priv MUST NOT appear in a public key. JWK key parameters are base64url encoded; COSE keys carry the byte strings without that encoding. The authors choose one compact representation to aid interoperability; they do not report an interoperability test. (from "RFC 9964 fixes ML-DSA private keys at a 32-byte seed in JOSE and COSE")
- [BI-FIND-2025-0630](https://insights.bostonidentity.com/ref/BI-FIND-2025-0630): Along with draft-ietf-cose-dilithium-05, the draft asks IANA for COSE algorithm values -48, -49 and -50 for ML-DSA-44, -65 and -87, and restates the FIPS 204 sizes: public keys of 1312 to 2592 bytes and signatures of 2420 to 4627 bytes. It advises using ML-DSA-44 and ML-DSA-65, since ML-DSA-87 "might not be the best option" where faster processing is expected, yet it asks for "Recommended: Yes" on all three. Its §6.2 takes it as given that USB HID, BLE and NFC can carry CBOR exchanges "often over 2000 bytes", and the draft reports no prototype, test or measurement. (from "A 2025 post-quantum passkey draft lets the private key sit encrypted on flash or disk, for want of ML-DSA hardware")
- [BI-FIND-2026-0972](https://insights.bostonidentity.com/ref/BI-FIND-2026-0972): In Emirdag and Feichtinger's profile the agent's operator signs a record of each consequential action, and an independent Evidence Custodian running a SCITT transparency service holds the chain append-only. Once a record is admitted nobody can alter or reorder it unnoticed, and a gap in the sequence numbers shows a record produced and not registered. "An action that was never recorded leaves no gap", however. The threat model excludes an operator that records an action inaccurately or not at all, and compromise of the agent. Only the admission time on the custodian's receipt comes from outside the operator; the timestamps inside the record are the operator's own. If one entity runs both roles, "the tamper-evidence guarantees are void", and a colluding operator and custodian can alter evidence without detection by relying parties that trust only that custodian's receipts. Revision -01 has not yet specified its receipts as COSE Receipts, as RFC 9943 requires, defines no inclusion proof or non-equivocation proofs, and withdrew -00's claim that the hash chain matches a Merkle inclusion proof. (from "A transparency-log profile for agents exposes edited and dropped records; an action nobody logged leaves no gap")
- [BI-FIND-2022-0011](https://insights.bostonidentity.com/ref/BI-FIND-2022-0011): RFC 9052 says that, in addition to verifying a COSE signature, the application checks that the key is correctly paired with the signing identity and that the identity is authorized before performing actions. Its trust-decision guidance also asks whether the key owner may request the action and whether the request fits the application’s current state. Successful signature verification therefore leaves an application-level permission decision to make. (from "COSE signature checks still require an application decision about who may act")
- [BI-FIND-2022-0012](https://insights.bostonidentity.com/ref/BI-FIND-2022-0012): A COSE key identifier, kid, may refer to multiple keys and is a hint for finding candidates. RFC 9052 forbids assuming it is unique. A separate rule applies when a key object contains an algorithm restriction: the application must check that it matches the intended operation and must not use that object if the algorithms differ. The restriction is conditional on the parameter being present. (from "COSE signature checks still require an application decision about who may act")

---

© 2026 Boston Identity LLC. All rights reserved. Published by Boston Identity LLC.
Quote up to 100 words with the credit "Boston Identity, IAM Insights" and a link to https://insights.bostonidentity.com/glossary/cose as the source. Claim numbers may be cited freely. Training, fine-tuning and text-and-data-mining use of this page is permitted.
Terms: https://insights.bostonidentity.com/terms · How to cite: https://insights.bostonidentity.com/cite
