Skip to content
IAM Insights

Explainers · Glossary

COSE

CBOR Object Signing and Encryption · RFC 9052

By Boston Identity · Explained · 5 min read

The short answer

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.

What it is
A standard
Defined by
IETF, RFC 9052 (Internet Standard 96)
Who it's for
Teams buying device attestation, mobile credentials or signed logs
In our briefings
48By month of the source: 2025-12: 1, 2026-01: 1, 2026-02: 1, 2026-03: 1, 2026-04: 0, 2026-05: 3, 2026-06: 6, 2026-07: 4, 2026-08: 0, 2026-09: 5, 2026-10: 9, 2026-11: 44by month, last 12
01

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.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.§1 The IETF (Internet Engineering Task Force) designed COSE first for small, constrained devices in the Internet of Things (IoT).§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.§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.§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.§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.§1

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.1

02

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 steps
  1. The sender fills two header buckets
  2. The sender builds the Sig_structure
  3. The sender encodes it with fixed rules
  4. The sender signs and sends the message
  5. The recipient rebuilds and verifies
  6. The application decides whether to act
Fig. 1

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.

Drawn from RFC 9052, sections 3, 4.2, 4.4 and 9

Swipe for the full figure →

  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.§2 Only the protected bucket is covered by the cryptography.§3 The algorithm identifier, alg, must be authenticated where the algorithm allows it, for example by placing it in the protected bucket.§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.§4.4 The external data lets an application bind outside information, such as protocol options, that is never carried in the message.§4.3

  3. The sender encodes it with fixed rules

    The sender encodes the Sig_structure into a byte string called ToBeSigned.§4.4 That encoding must use definite lengths and the shortest possible form, so both sides produce the same bytes.§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.§4.4 The message sent is an array of protected headers, unprotected headers, payload and signature, marked with CBOR tag 18 when tagged.§4.2 The payload may also travel separately, with nil in its place.§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.§4.4 If the protected headers were re-encoded in transit, verification fails unless the bytes come out identical.§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.§4.4

03

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.2 The Verifiable Credentials Data Model 2.0 recommends JOSE and COSE envelopes as one way to secure a credential.3 RFC 9942 registers three COSE header parameters for transparency-log receipts.4

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.5 RFC 9964 fixes how ML-DSA, a post-quantum signature scheme, carries its private key in JOSE and COSE: as a 32-byte seed.6 A post-quantum passkey draft restates ML-DSA signature sizes of 2,420 to 4,627 bytes.7 We read that as a planning issue for small devices, which is where COSE started.

04

Where does it fit?

Compared withHow COSE differs
CBORCBOR 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.§1
CWTA 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.1
SCITTA SCITT transparency service returns receipts, and RFC 9943 requires them to be COSE Receipts.8 RFC 9942 registers the COSE header parameters for those receipts and defines one log type for them.4
05

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.9
  • The key identifier, kid, is a hint. Applications must not assume it is unique, so several keys may need to be tried.§3.1,10
  • Anything in the unprotected bucket is not protected by the cryptography.§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.§12
  • RFC 9052 sets no mandatory algorithms. It leaves that choice to each application profile, so two COSE products need not work together.§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.§12
06

What should a security leader ask?

  1. 01

    When our verifier accepts a COSE signature, which code then checks that the signer is allowed to request the action?

  2. 02

    Which COSE algorithm identifiers do our devices and verifiers accept today, and do they still rely on the ones RFC 9864 deprecated?

  3. 03

    Does any decision in our system read a value from the unprotected header bucket?

  4. 04

    Which COSE profile does this vendor implement, and which algorithms does it make mandatory?

  5. 05

    How will our constrained devices carry ML-DSA signatures of up to 4,627 bytes?

07

Sources

›Evidence: 10 claims from 9 briefings
  1. 1BI-FIND-2018-0011 · CWT leaves required claims to the application, including issuer, audience and expiryRFC 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.
  2. 2BI-FIND-2025-0413 · RFC 9711 standardizes the attestation token and sets no security floor for the device that signs itEAT 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.
  3. 3BI-FIND-2025-0022 · The W3C credential standard leaves out what agents need most: which issuers to trust, and who may presentNeither 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.
  4. 4BI-FIND-2026-1439 · A COSE Receipt signs a Merkle root, not the entry, and RFC 9942 recommends checking signature and proof as one resultRFC 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.
  5. 5BI-FIND-2025-0507 · RFC 9864 deprecates ambiguous signature identifiers without prohibiting their useRFC 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.
  6. 6BI-FIND-2026-1693 · RFC 9964 fixes ML-DSA private keys at a 32-byte seed in JOSE and COSERFC 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.
  7. 7BI-FIND-2025-0630 · A 2025 post-quantum passkey draft lets the private key sit encrypted on flash or disk, for want of ML-DSA hardwareAlong 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.
  8. 8BI-FIND-2026-0972 · A transparency-log profile for agents exposes edited and dropped records; an action nobody logged leaves no gapIn 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.
  9. 9BI-FIND-2022-0011 · COSE signature checks still require an application decision about who may actRFC 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.
  10. 10BI-FIND-2022-0012 · COSE signature checks still require an application decision about who may actA 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.

›In our briefings

What our briefings say about COSE itself, with the most direct claims first.

  1. 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.

    RFC 9964 fixes ML-DSA private keys at a 32-byte seed in JOSE and COSEBI-FIND-2026-1693

  2. The RFC says a COSE thumbprint ("ckt") and a JSON Web Key thumbprint ("jkt") "are different even when the underlying cryptographic key material is the same", and it registers neither ckt as a confirmation method for JWTs nor jkt for CWTs. It likens a COSE thumbprint to a digest of an X.509 SubjectPublicKeyInfo, which covers the key alone, rather than to the "x5t" digest of a whole certificate, and notes it is computed over CBOR rather than ASN.1. We read this as one key carrying two names: a service that meets the same key in JSON and CBOR tokens cannot match them by hash and has to recompute from the key itself.

    RFC 9679 lets a CBOR token name its holder's key by thumbprint alone, and leaves finding the key to the verifierBI-FIND-2024-0084

  3. RFC 9360 describes an identity-misbinding attack in which an attacker obtains a certificate with someone else's public key but a different subject, then replaces the real certificate in a COSE message. Section 5 requires COSE integrity protection for the end-entity certificate unless it is known that the certificate authority required proof of possession of the subject's private key when issuing it. The protection binds the certificate whose identity the application relies on.

    COSE certificate headers leave trust validation with the relying applicationBI-FIND-2023-0075

›Cited in 48 briefings

Every briefing that discusses this term, newest first.

  1. An IETF draft puts the last check on an AI agent's action at the service that commits it

    Draft · · IETF Datatracker · Sangam Das · Nov 17, 2026

  2. The Agent Authenticator draft asks IANA for an OAuth token type for agent assertions

    Draft · · IETF Datatracker · Harish Santhanalakshmi Ganesan · Nov 15, 2026

  3. Hassan's agent delegation draft now classes granting access as execute, not write

    Draft · · IETF Datatracker · Amr Hassan · Oct 22, 2026

  4. W3C's JOSE and COSE rules for credentials admit there is no standard way yet to fetch a JWK from a DID URL

    Article · · W3C · Michael Jones et al. · Oct 13, 2026

  5. Sello has the services an AI agent calls sign its receipts; the agent can't fake them, but it can go around them

    Paper · · arXiv · Juan Figuera · Jun 2, 2026

  6. Agent-audit draft now admits a call on the principal and the current agent, as RFC 8693 requires

    Draft · · IETF Datatracker · Shameer Thaha et al. · Oct 19, 2026

  7. A draft rebuilds agent session records on vCon, where software without the extension ignores the tool calls

    Draft · · IETF Datatracker · Henk Birkholz et al. · Nov 2, 2026

  8. An IETF draft puts TLS attestation after the handshake and bans session resumption; its formal analysis is unfinished

    Draft · · IETF Datatracker · Muhammad Usama Sardar et al. · Nov 2, 2026

  9. A SCITT draft tells verifiers not to guess how a hash was made; its interop proof is the authors' own record

    Draft · · IETF Datatracker · Steven Mih et al. · Oct 26, 2026

  10. An agent audit draft says the agent is not trusted, yet lets the agent's operator run the audit store

    Draft · · IETF Datatracker · Mirja Kühlewind et al. · Sep 7, 2026

  11. An agent can act with permission on a quarantined belief; a Glyphzero draft lets the action record show it

    Draft · · IETF Datatracker · Karthik Rampalli, Glyphzero Labs · Jul 4, 2026

  12. A draft has each company sign its own half when one company's agent acts at another's request, refusals included

    Draft · · IETF Datatracker · Steven Mih, Action State Group · Oct 29, 2026

  13. A draft makes an AI system's refusals auditable in a SCITT log, but only for requests the system logged

    Draft · · IETF Datatracker · Tokachi Kamimura, VeritasChain Standards Organization · Oct 24, 2026

  14. A 'human approved' field is not evidence, says Schrock's draft; only a bound, signed approval counts

    Draft · · IETF Datatracker · Iman Schrock, EMILIA Protocol · Jul 3, 2026

  15. Lee's draft would hold an agent's action at the boundary until a receipt for that exact action passes every check

    Draft · · IETF Datatracker · Yong Bok Lee, Meridian Verity Group · Jun 5, 2026

  16. Agent delegation records not anchored in trusted time become deniable once timestamps can be forged

    Draft · · IETF Datatracker · V.K. Uppalapati · Sep 29, 2026

  17. Niyikiza's agent tokens narrow to a tool's arguments offline; revision -02 breaks -01 implementations

    Draft · · IETF Datatracker · Niki Aimable Niyikiza · Jun 15, 2026

  18. The SCITT API heading to RFC leaves who may register a statement to each operator

    Draft · · IETF Datatracker · Henk Birkholz et al. · Jun 26, 2026

  19. An IETF draft caps each attestation verdict at its worst check and leaves the unchecked parts to the relying party

    Draft · · IETF Datatracker · Thomas Fossati et al. · May 26, 2026

  20. Delegation receipts for AI agents, revision 15: holding a copy of a receipt no longer lets you extend the chain

    Draft · · IETF Datatracker · Ryan Nelson, Authproof · Oct 22, 2026

  21. A COSE Receipt signs a Merkle root, not the entry, and RFC 9942 recommends checking signature and proof as one result

    Article · · RFC Editor · Orie Steele et al. · Jun 30, 2026

  22. RFC 9943 makes a log prove who signed a statement, not that it is true or that nothing was left out

    Article · · IETF (RFC Editor) · Henk Birkholz et al. · Jun 30, 2026

  23. RATS wraps attestation messages in one envelope and requires composite evidence to be bound together

    Draft · · IETF Datatracker · Henk Birkholz et al. · Dec 11, 2025

  24. Orange researchers would drop certificates from agent handshakes by putting post-quantum keys on a ledger

    Paper · · arXiv · Karol Budzyn et al. · Oct 16, 2026

  25. A transparency-log profile for agents exposes edited and dropped records; an action nobody logged leaves no gap

    Draft · · IETF Datatracker · Pinar Emirdag et al. · Oct 12, 2026

  26. A draft records every AI agent verdict, refusals too, and won't let a dispatched action pass as confirmed

    Draft · · IETF Datatracker · Steven Mih, Action State Group · Sep 27, 2026

  27. A post-quantum agent certificate draft warns that its own declared scopes are not proof of behaviour

    Draft · · IETF Datatracker · Reuben Burls · Jul 21, 2026

  28. Schrock's receipts prove a named key approved one exact agent action, and the draft lists at length what they cannot prove

    Draft · · IETF Datatracker · Iman Schrock, EMILIA Protocol · Sep 12, 2026

  29. Munoz's agent Permit is signed before the action runs, but the profile does not make the action wait for it

    Draft · · IETF Datatracker · Christian Munoz, Keel API, Inc. · Jul 19, 2026

  30. NIST and CISA advise one-hour tokens, 90-day keys and hardware key storage; AI agents get one paragraph

    Article · · NIST (CSRC) · Ryan Galluzzo et al. · Sep 15, 2026

  31. RFC 9964 fixes ML-DSA private keys at a 32-byte seed in JOSE and COSE

    Article · · RFC Editor · Michael Prorock et al. · May 19, 2026

  32. Protocol 427 offers agents a reusable spending allowance, then ties each signed proof to one request

    Draft · · IETF Datatracker · John Paul McGraw et al. · May 6, 2026

  33. A cross-domain agent trust draft requires the call chain, then leaves its format to a version that never came

    Draft · · IETF Datatracker · Daniel King et al. · Mar 15, 2026

  34. A draft format for signed AI agent session records warns a signature does not vouch for what the record says

    Draft · · IETF Datatracker · Henk Birkholz et al. · Feb 25, 2026

  35. SD-CWT requires a key-signed proof for each verifier, yet none of its three prototypes reports interop testing

    Draft · · IETF Datatracker · Michael Prorock et al. · Jan 13, 2026

  36. SPICE includes software agents as credential issuers, holders and verifiers

    Draft · · IETF Datatracker · Brent Zundel et al. · Oct 20, 2025

  37. RFC 9864 deprecates ambiguous signature identifiers without prohibiting their use

    Article · · IETF / RFC Editor · Michael B. Jones et al. · Oct 1, 2025

  38. Arm's PSA attestation RFC trusts two device states, and its Table 1 labels one as root-of-trust debug

    Article · · RFC Editor · Hannes Tschofenig et al. · Jun 13, 2025

  39. W3C's Controlled Identifiers 1.0 lets an HTTPS URL publish its keys, and whoever can edit that document is its controller

    Article · · W3C · Manu Sporny et al. · May 15, 2025

  40. The W3C credential standard leaves out what agents need most: which issuers to trust, and who may present

    Article · · W3C · Manu Sporny et al. · May 15, 2025

  41. A 2025 post-quantum passkey draft lets the private key sit encrypted on flash or disk, for want of ML-DSA hardware

    Draft · · IETF Internet-Draft · Aditya Mitra et al. · Apr 2, 2025

  42. RFC 9711 standardizes the attestation token and sets no security floor for the device that signs it

    Article · · RFC Editor · Laurence Lundblade et al. · Apr 2025

  43. RFC 9679 lets a CBOR token name its holder's key by thumbprint alone, and leaves finding the key to the verifier

    Article · · RFC Editor · Kohei Isobe et al. · Dec 20, 2024

  44. RFC 9597 exposes token claims in COSE headers without giving them extra trust

    Article · · IETF / RFC Editor · Tobias Looker et al. · Jun 1, 2024

  45. COSE certificate headers leave trust validation with the relying application

    Article · · RFC Editor · Jim Schaad · Feb 16, 2023

  46. RFC 9053 allows identity inputs in COSE key derivation to be omitted

    Article · · IETF / RFC Editor · Jim Schaad · Aug 1, 2022

  47. COSE signature checks still require an application decision about who may act

    Article · · RFC Editor / IETF · Jim Schaad · Aug 1, 2022

  48. CWT leaves required claims to the application, including issuer, audience and expiry

    Article · · RFC Editor / IETF · Michael B. Jones et al. · May 1, 2018

Related terms

What appears alongside COSE in the same briefings.

RFC 9053 (COSE Initial Algorithms)RFC 9338 COSE CountersignaturesCBORCWTCDDL (RFC 8610)SCITTCBOR Web Token (RFC 8392)RFC 9943 SCITT architecture

Was this explainer useful?

Share this explainer

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem that involves COSE? Talk to Boston Identity