RFC 10021 lets IoT devices verify who sent a multicast command

In short

2 modes: group (signatures) and pairwise (derived keys); 8 bytes authentication tag of the mandatory AES-CCM-16-64-128 algorithm; 1 Group Manager per group, which hands out keys and IDs

Why can a shared group key not tell senders apart?

CoAP, the Constrained Application Protocol, is a small web protocol for low-power devices such as sensors and lamps. It can send one request to a whole group of devices by IP multicast. The RFC lists use cases such as lighting control, building control, firmware and configuration updates, commissioning of constrained networks and emergency multicast.

Securing that traffic is harder than securing a chat between two devices. If every member of a group shares one symmetric key, a message proves that someone in the group sent it. The RFC says so directly: any group member can derive the sender key of another member and compute a valid authentication tag, so the content "could originate from any of the current group members". A compromised sensor could then issue commands that appear to come from the wall switch.

Group OSCORE builds on OSCORE (RFC 8613), the existing protocol that wraps a CoAP message in an encrypted and authenticated COSE object. OSCORE protects messages between one sender and one recipient and works through intermediaries such as proxies. Group OSCORE extends the same end-to-end protection to requests that have several recipients, and to their responses.

Group mode: sign every message

In group mode, each request or response is encrypted with group keying material and also carries a countersignature: a digital signature made with the sender's own private key. Receivers hold the public keys of the group members and check the signature, so the message is tied to one sender rather than to the group as a whole.

According to the RFC, the countersignature is itself encrypted with a keystream derived from the group keys. That gives group privacy: an outsider cannot link one endpoint's messages across two groups, unless the outsider is a member of both.

The RFC summarises the group mode's properties as:

Proof of group membership relies on rekeying. When a member leaves, the group is rekeyed and the remaining members delete the leaver's credentials. The RFC's example is a former member that later rejoins only as an "external signature checker", a party that can verify signatures for others. It cannot inject messages, because current members no longer hold its credentials and so reject them.

Pairwise mode: derive a key for each pair

Signatures cost bytes, and constrained networks have few to spare. In pairwise mode, two members use their asymmetric keys to compute a Diffie-Hellman shared secret and derive a symmetric key from it that other members do not know. Messages are then protected with that key, normally over unicast, and no countersignature is needed. The RFC says this allows shorter integrity tags and so lower message overhead.

The two modes can be mixed, and the application decides per message. The RFC highlights one combination: requests in group mode, responses in pairwise mode. A request goes to many devices, so each of them may answer, and a short tag costs less than a full signature on every reply.

The RFC also describes a deployment that uses only the pairwise mode. In a network with many endpoints, the number of pairs grows with the square of the number of endpoints. With Group OSCORE, each endpoint holds one shared secret and the public keys of the other members, and derives each pair's key itself. (The comparison with the square is the RFC's; the example sizes are not given.)

The pairwise mode has a stated weakness. If the stored Diffie-Hellman secret of two members leaks, a third member can use it to impersonate either of them to the other, or to decrypt their stored traffic. The RFC says such a leak is more likely than the leak of a private key, and describes a trade-off between how long a secret is kept and how often it is recomputed.

Who runs the group

Every group has a Group Manager. It assigns the Group Identifier and each member's Sender ID, keeps the members' authentication credentials, and tracks a Key Generation Number that identifies the current version of the group keys. The RFC leaves the protocols between the Group Manager and the members out of scope, so how a device joins a group is specified elsewhere.

What devices must support

The RFC makes HKDF with SHA-256 mandatory. For the group mode, the mandatory encryption algorithm is AES-CCM-16-64-128, where the tag is 8 bytes; A128CTR is mandatory where non-authenticated encryption is used. Less constrained endpoints must implement EdDSA with Ed25519 or ECDSA with P-256, and should implement both. The RFC notes that supporting more than one signature algorithm is problematic for many constrained devices, so constrained endpoints must implement at least one.

Group OSCORE works with CoAP and with CoAP-mappable HTTP, for example when pairwise-mode messages go to one recipient or when group-mode messages pass through an HTTP-to-CoAP proxy. It can be combined with DTLS between a client and a proxy, which hides addressing options that Group OSCORE does not protect. DTLS alone cannot secure multicast.

Terms in plain English

Where things stand

RFC 10021 is a published Standards Track specification. The source describes the protocol and its security properties; it reports no measured performance and no list of products that implement it, and we have not tested any implementation. The companion document on group communication for CoAP is RFC 10020.

Sources

Sources

Related stories

More from Wi-Fi Wizards

All stories from Wi-Fi Wizards