Loading Manufacturer Usage Description (MUD) URLs from QR CodesSandelman Software Worksmcr+ietf@sandelman.caCIRA LabsJacques.Latour@cira.caUNSW Sydneyh.habibi@unsw.edu.au
Internet
RLAISOIEC189004ANSI MH10.8.2This informational document details a protocol to load Manufacturer Usage Description (MUD) definitions from RFC 8520
for devices that do not have them integrated.This document is published to inform the Internet community of this mechanism to allow
interoperability and to serve as a basis of other standards work if there is interest.Status of This Memo
This document is not an Internet Standards Track specification; it is
published for informational purposes.
This is a contribution to the RFC Series, independently of any
other RFC stream. The RFC Editor has chosen to publish this
document at its discretion and makes no statement about its value
for implementation or deployment. Documents approved for
publication by the RFC Editor are not candidates for any level of
Internet Standard; see Section 2 of RFC 7841.
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
.
Copyright Notice
Copyright (c) 2022 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
() in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with
respect to this document.
Table of Contents
. Introduction
. Terminology
. Protocol
. The SQRL Protocol
. Manufacturer Usage Descriptions in SQRL
. B000 Company Name
. B001 Product Name
. B002 Model Number
. MUD URL Data Record
. Device MAC Address
. Applicability
. Generic URL or Version-Specific URL
. Crowd Supply of MUD Files
. Privacy Considerations
. Security Considerations
. QR Codes Are Not Assurances
. MUD Files Can Have Signatures
. URL Shortening Services Can Change Content
. MUD QR Code Stickers Could Be Confused
. QR Code Can Include a MAC Address
. IANA Considerations
. References
. Normative References
. Informative References
Acknowledgements
Authors' Addresses
IntroductionThe Manufacturer Usage Description (MUD) defines a YANG data model to express what sort of access a device requires to operate correctly.
That document additionally defines three ways for the device to
communicate the MUD URL (i.e., the URL of the resulting MUD file in JSON ) to a network enforcement point: via DHCP, within an X.509 certificate extension, and via the Link Local Discovery Protocol (LLDP).Each of the above mechanisms conveys the MUD URL in band and requires modifications to the device firmware.
Most small Internet of Things (IoT) devices do not have LLDP and often have very restricted DHCP clients.
Adding LLDP or DHCP options requires at least some minimal configuration change and possibly entirely new subsystems.
Meanwhile, use of the PKIX certification extension only makes sense as part of a larger deployment based on an Initial Device Identifier (IDevID) , for instance, as described in .In the above cases, these mechanisms can only be implemented by persons with access to modify and update the firmware of the device.In the meantime, there is a chicken or egg problem . That is, manufacturers are not motivated to (and thus likely do not) include MUD URLs in their products, as they believe that there are no gateways using those URLs.
At the same time, gateways have little incentive to (and thus likely do not) include code that processes MUD URLs, as it is believed that no products have or disseminate URLs.The protocol described in this document allows any person with physical access to the device to affix a reference to a MUD URL that can later be scanned by an end user.The QR-based protocol is presented as a convenient alternative when the mechanisms from are not available to use on the device or the gateway.Affixing a sticker can be done by:
the marketing department of the manufacturer,
an outsourced assembler plant,
value-added resellers (perhaps in response to a local request for proposal (RFP)),
a company importing the product (possibly to comply with a local regulation),
a network administrator (perhaps before sending devices home with employees or to remote sites), and
a retailer as a value-added service.
QR codes are informally described in and formally defined in .
The protocol described in this document uses a QR code to encode the MUD URL. Specifically, the protocol leverages the data format from the Reverse Logistics Association's Standardized Quick Response for Logistics .SQRL codes are being put on devices via a sticker or via laser etching into the case in order to deal with many situations but specifically for end-of-life processing for the device.
An important idea behind the effort is that clearly identifying a product permits appropriate disposal, refurbishment, or recycling of the components of the product.There are also use cases for SQRL in which the codes are used as part of regular maintenance for a product.SQRL is an application of the 12N Data Identifier system specified by the ANSI MH10.8.2 Committee in a format appropriate for QR codes, as well as other things like Normalization Form C (NFC) transmissions.QR code generators are available as web services
or as programs, such as . summarizes the considerations contained in "Updating files vs Updating MUD URLs" ().
Due to the immutable nature of the QR code, MUD URLs in this document will need to
be non-firmware specific.TerminologyAlthough this document is not an IETF Standards Track publication, it
adopts the conventions for normative language to provide clarity of
instructions to the implementer.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",
"MAY", and "OPTIONAL" in this document are to be interpreted as
described in BCP 14
when, and only when, they appear in all capitals, as shown here.
Readers should be familiar with the terminology in , including: MUD file, MUD URL, manufacturer, MUD manager, and controller.ProtocolThe QR code protocol builds upon the work by .
That protocol is very briefly described in .
Then, the list of needed Data Records to be filled in is explained.The SQRL Protocol documents an octet protocol that can be efficiently encoded into QR codes using a sequence of US-ASCII bytes, plus six control codes (see Section 3.1 of ):
<RS> Record Separator (US-ASCII 30)
<EoT> End of Transmission (US-ASCII 4)
<FS> Field Separator (US-ASCII 28)
<GS> Group Separator (US-ASCII 29)
<US> Unit Separator (US-ASCII 31)
Concatenation Operator (US-ASCII 43: "+")
Section 7.2 of gives the details, which can be summarized as:
The QR code header starts with:
"[)>" <RS> "06" <GS> "12N"
Include one or more Data Records. This consists of a four-letter Field Identifier, followed by US-ASCII characters terminated with a <Unit Separator>.
End with:
<RS><EoT>
Additionally, there are optional flags that may be present in every Data Record, as described in Section 7.4 of .
These flags have no bearing on MUD processing.
A parser that is only collecting MUD URLs will not need to parse those flags.
A general-purpose SQRL parser will need more complexity.Field Separator characters are used in SQRL to signify the beginning of a new unit of data.
A MUD-specific parser that encounters a Field Separator and has not yet collected the right MUD information MUST ignore the characters collected so far and then restart.Environment records, as described in Section 7.4 of , look and act exactly as fields, with a special Field Identifier.
They serve no purpose when looking for MUD information and MAY be ignored.Manufacturer Usage Descriptions in SQRLB000 Company NameThe B000 Data Record is mandatory in .
It MUST be in US-ASCII representation.
It should be a representation of the company or brand name.
It SHOULD match the ietf-mud/mud/mfg-name in the MUD file; however, the MUD file can contain arbitrary UTF-8 for this name, while the SQRL files are expected to be 7-bit US-ASCII.B001 Product NameThe B001 Data Record is optional in .
It is the Product Name in US-ASCII.
Its presence is RECOMMENDED.
Some third parties that create QR code stickers might not know the product name with 100% certainty and MAY prefer to omit this rather than create further confusion.B002 Model NumberThe B002 Data Record is optional in but is MANDATORY in this profile.
It is the Model Name in US-ASCII.
It SHOULD match the optional ietf-mud/mud/model-name in the MUD file if that entry is present in the MUD file. MUD files can contain arbitrary UTF-8 for the model-name, while the SQRL files are expected to be 7-bit US-ASCII.If a third party that is creating QR codes cannot locate an official model number when creating their MUD file and QR code, then the third party SHOULD make one up.MUD URL Data RecordA new Field Identifier has been assigned by the Reverse Logistics Association, which is "M180".
This record MUST be filled with the MUD URL.Short URLs are easier to encode into a QR code because they require fewer pixels of
QR code.
More content in the QR code requires a bigger image.Use of URL shortening services (see ) can be useful, provided that the service is stable throughout the lifetime of the device and QR code and that the privacy stance of the service is well understood.
The Security Considerations section of applies, particularly Section .Section 8.1 of also has some good advice on longevity concerns with URLs.The URL provided MUST NOT have a query (?) portion present.
If one is present, the query portion MUST be removed before processing.Device MAC AddressIf a Media Access Control (MAC) address is used as a unique device identifier (which is RECOMMENDED if possible), then it MUST be included in this Data Record.Section 9.10 of defines the Data Record "M06C" as the MAC address.
No format for the MAC address is provided in that document.In this document, it is RECOMMENDED that 12 (or 16) hex octets are used with no spaces or punctuation.
(16 octets are used in the IEEE 64-bit Extended Unique Identifier (EUI-64) format used in and some next generation Ethernet proposals).
In this document, it is RECOMMENDED that uppercase hexadecimal letters be used.Parsers that find punctuation (such as colons (":"), dashes ("-"), US-ASCII Space (32), US-ASCII TAB (0), US-ASCII linefeed (10), or US-ASCII
carriage return (13)) MUST
skip over the punctuation.
Parsers MUST tolerate hexadecimal in uppercase, lowercase, and even mixed case. Systems SHOULD canonicalize it to uppercase.ApplicabilityThe use of stickers to convey MUD URLs would appear to have little value when the stickers are applied by the end-user organization and consumed by the same.
This is particularly the case when the QR code does not include the device MAC address.
In such a situation, the installer handling the device would scan the QR code to get the appropriate MUD file reference and have to input the associated MAC address as well.In such a case, one might wonder why the installer couldn't just enter the appropriate MAC address and select the appropriate Access Control Lists (ACLs) for the device. Then a MUD file or QR code to convey the MAC
address would not be needed. However, the use of a MUD file (or
QR code or other way to convey the MAC address) is advantageous
because it offers several layers of indirection:
The ACLs for a given device may be added or removed.
The ACLs may refer to DNS names, which may map to IPv4 or IPv6 addresses.
The entire file may be replaced and may also include supply chain information, such as Software Bill of Materials (SBOM).
In addition, the mechanism to install a new device (MAC address) to MUD file mapping does not need to permit any other network security settings to be alterable by the person doing the installation.Generic URL or Version-Specific URLMUD URLs that are communicated in band by the device and that are programmed into the device's firmware may provide a firmware-specific version of the MUD URL. The advantage of this is that the resulting ACLs enforced in the network are specific to the needs of that version of the firmware.A MUD URL that is affixed to the device with a sticker or etched into the case cannot be changed.Given the considerations of "Updating MUD URLs vs Updating MUD files" (), it is prudent to use a MUD URL that points to a MUD file that will only have new features added over time and never have features removed.
To recap, if a feature is removed from the firmware and the MUD file still permits it, then there is a potential hole that could perhaps be exploited.
The opposite situation, where a MUD file wrongly forbids something, leads to false positives in the security system, and the evidence is that this results in the entire system being ignored.
Preventing attacks on core infrastructure may be more important than getting the ACL perfect.When the firmware eventually receives built-in MUD URL support, then a more-specific URL may be used.Note that in many cases, it will be third parties who are generating these QR codes, so the MUD file may be hosted by the third party.Crowd Supply of MUD FilesAt the time of writing, the IETF MUD is a new IETF Proposed Standard.
Hence, IoT device manufacturers have not yet provided MUD profiles for their devices.
A research group at the University of New South Wales (UNSW Sydney) has developed an open-source tool, called MUDgee , which automatically generates a MUD file (profile) for an IoT device from its traffic trace in order to make this process faster, easier, and more accurate.
Note that the generated profile completeness solely depends on the completeness of the input traffic traces.
MUDgee assumes that all the activity seen is intended and benign.UNSW researchers have applied MUDgee to about 30 consumer IoT devices from their lab testbed and publicly released their MUD files .
MUDgee can assist IoT manufacturers in developing and verifying MUD profiles, while also helping adopters of these devices to ensure they are compatible with their organizational policies.Similar processes have been done in a number of other public and private labs.
One of the strong motivations for this specification is to allow for this work to leave the lab and to be applied in the field.Privacy ConsiderationsThe presence of the MUD URL in the QR code reveals the manufacturer of the device, the type or model of the device, and possibly the firmware version of the device.The MAC address of the device will also need to be present, and this is potentially Personally Identifiable Information (PII).
Such QR codes should not be placed on the outside of the packaging and only on the device itself, ideally on a non-prominent part of the device (e.g., the bottom).The QR code sticker should not be placed on any part of the device that might become visible to machine vision systems in the same area.
This includes security systems, robotic vacuum cleaners, or anyone taking a picture with a camera.
Such systems may store the picture(s) in such a way that a future viewer of the image will be able to decode the QR code, possibly through an assembly of multiple pictures.
Of course, the QR code is not, however, a certain indicator that the device is present, only that the QR code sticker that came with the device is present.The use of URL shorting services discussed in may result in trading convenience and efficiency with privacy, since the service provider might leverage per-device or per-customer, short URLs to track and correlate requests.Security ConsiderationsQR Codes Are Not AssurancesThe mere presence of a QR code on a device does not in itself create any security issues on its own.
Neither an attached paper sticker nor a laser-etched code in a plastic case will affect the device operation.The QR code is not active; in general, it is not able to communicate using nearby networks.
It is conceivable that something more active is concealed in the sticker, e.g., an NFC or a Radio Frequency Identification (RFID) tag.
But, any sticker could contain such a thing, e.g., on some university campuses, stickers are often used as part of political campaigns and can be found attached all over the place.Security issues that this protocol creates are related to assumptions that the presence of the QR code might imply.
The presence of the QR code may imply to some owners or network operators that the behavior of the device has been vetted by some authority.
It is here that some caution is required.A possibly bigger risk from application of MUD file stickers to devices is that they may begin to convey a sense of safety to users of the device.
The presence of the sticker, possibly with the logo of the physical establishment in which the device is located, could convey to occupants of the establishment that this device is an official device,
for instance, a university that only deploys sensors on the university campus that have been vetted for compliance against a MUD definition.The risk is then of social engineering, e.g., any device with a reasonable-looking QR code may be seen as a trusted device (even though such trust is not justified based on that evidence).
An attacker that wishes to infiltrate their own devices need only suitably camouflage the device with an appropriate sticker in order to convey legitimacy.MUD Files Can Have SignaturesThe network operator who takes the MUD file designated by the QR code needs to be careful that they are validating the signature on the MUD file.
The network operator needs to verify that the file is intact and
that the signer of the file is authorized to sign MUD files
for that vendor, or if a MUD file is a crowd-sourced definition,
they need to establish if it can be trusted.
does not define any infrastructure to authenticate or authorize MUD file signers.URL Shortening Services Can Change ContentIf a URL shortening service is used, it is possible that the MUD controller will be redirected to another MUD file with different content.
The use of MUD signatures can detect attacks on the integrity of the file.
To do this, the MUD controller needs to be able to verify the signature on the file.If a Trust-On-First-Use (TOFU) policy is used for signature trust anchors, then the URL shortening service can still attack if it substitutes content and signature on the first use.
MUD controllers and the people operating them need to be cautious when using TOFU.MUD QR Code Stickers Could Be ConfusedAnother issue with the stickers is that the wrong sticker could be applied to a device by a reseller or another trusted party, either in error or via some physical or socially engineered attack against that party.
The network operator now onboards a device and applies what they think is a legitimate network policy for the device in their hands, only it is in fact a policy for another kind of device.Careful examination of stickers is in order!QR Code Can Include a MAC AddressInclusion of the device-specific MAC address (described in ) in the QR code makes use of the MUD code much easier, as it identifies the device specifically.
If the MAC address is not included, then a network operator, having the device in their hands, has to associate the policy with the device through some other interface.Despite the significant advantage of having the MAC address included, it is unlikely that third-party stickers will include it.
Including the MAC address requires that a unique sticker with a QR code be created for each device.
This is possible if the sticker is applied by a manufacturer; it is already common to have a serial number and MAC address on the outside of the device.
In that case, if the QR code is part of that sticker, then the customization problem is not that complex.For cases where a third party has produced the QR code, it is likely that every device of a particular model will have the same QR code applied, omitting the MAC address.
This increases the possibility that the wrong policy will be applied to a device.IANA ConsiderationsThis document has no IANA actions.ReferencesNormative ReferencesKey words for use in RFCs to Indicate Requirement LevelsIn many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.Ambiguity of Uppercase vs Lowercase in RFC 2119 Key WordsRFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.Manufacturer Usage Description SpecificationThis memo specifies a component-based architecture for Manufacturer Usage Descriptions (MUDs). The goal of MUD is to provide a means for end devices to signal to the network what sort of access and network functionality they require to properly function. The initial focus is on access control. Later work can delve into other aspects.This memo specifies two YANG modules, IPv4 and IPv6 DHCP options, a Link Layer Discovery Protocol (LLDP) TLV, a URL, an X.509 certificate extension, and a means to sign and verify the descriptions.SQRL Codes: Standardized Quick Response for Logistics, Using the 12N Data IdentifierReverse Logistics AssociationInformative ReferencesChicken or the eggWikipediaIEEE Standard for Low-Rate Wireless NetworksIEEEIEEE Standard for Local and Metropolitan Area Networks - Secure Device IdentityIEEEInformation technology - Automatic identification and data capture techniques - QR Code bar code symbology specificationISO/IECData Identifier and Application Identifier StandardANSIAuthorized update to MUD URLsSandelman Software WorksHuawei TechnologiesCisco Systems This document provides a way for an RFC8520 Manufacturer Usage
Description (MUD) definitions to declare what are acceptable
replacement MUD URLs for a device.
RFCEDITOR-please-remove: this document is being worked on at:
https://github.com/mcr/iot-mud-acceptable-urls
Work in ProgressMUD ProfilesUNSW SydneyMUDgeecommit f63a88dQR codeWikipedialibqrencodecommit 715e29fUniform Resource Identifier (URI): Generic SyntaxA Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource. This specification defines the generic URI syntax and a process for resolving URI references that might be in relative form, along with guidelines and security considerations for the use of URIs on the Internet. The URI syntax defines a grammar that is a superset of all valid URIs, allowing an implementation to parse the common components of a URI reference without knowing the scheme-specific requirements of every possible identifier. This specification does not define a generative grammar for URIs; that task is performed by the individual specifications of each URI scheme. [STANDARDS-TRACK]The JavaScript Object Notation (JSON) Data Interchange FormatJavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data interchange format. It was derived from the ECMAScript Programming Language Standard. JSON defines a small set of formatting rules for the portable representation of structured data.This document removes inconsistencies with other specifications of JSON, repairs specification errors, and offers experience-based interoperability guidance.Bootstrapping Remote Secure Key Infrastructure (BRSKI)This document specifies automated bootstrapping of an Autonomic Control Plane. To do this, a Secure Key Infrastructure is bootstrapped. This is done using manufacturer-installed X.509 certificates, in combination with a manufacturer's authorizing service, both online and offline. We call this process the Bootstrapping Remote Secure Key Infrastructure (BRSKI) protocol. Bootstrapping a new device can occur when using a routable address and a cloud service, only link-local connectivity, or limited/disconnected networks. Support for deployment models with less stringent security requirements is included. Bootstrapping is complete when the cryptographic identity of the new key infrastructure is successfully deployed to the device. The established secure connection can be used to deploy a locally issued certificate to the device as well.URL shorteningWikipediaAcknowledgementsThis work was supported by the Canadian Internet Registration Authority (cira.ca).Authors' AddressesSandelman Software Worksmcr+ietf@sandelman.caCIRA LabsJacques.Latour@cira.caUNSW Sydneyh.habibi@unsw.edu.au