-
Notifications
You must be signed in to change notification settings - Fork 1
/
opsawg-cira-securehomegateway-mud-02.txt
392 lines (235 loc) · 13.6 KB
/
opsawg-cira-securehomegateway-mud-02.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
6tisch Working Group M. Richardson
Internet-Draft Sandelman Software Works
Intended status: Informational J. Latour
Expires: 29 June 2020 CIRA Labs
27 December 2019
Loading MUD URLs from QR codes
draft-richardson-opsawg-securehomegateway-mud-02
Abstract
This informational document details the mechanism used by the CIRA
Secure Home Gateway (SHG) to load MUD definitions for devices which
have no integrated MUD (RFC8520) support.
The document describes extensions to the WiFi Alliance DPP QR code to
support the use of MUD URLs.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 29 June 2020.
Copyright Notice
Copyright (c) 2019 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 (https://trustee.ietf.org/
license-info) 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. Code Components
extracted from this document must include Simplified BSD License text
Richardson & Latour Expires 29 June 2020 [Page 1]
Internet-Draft SHG-MUD December 2019
as described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 3
3. Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4. Privacy Considerations . . . . . . . . . . . . . . . . . . . 4
5. Security Considerations . . . . . . . . . . . . . . . . . . . 4
6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 5
7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 5
8. References . . . . . . . . . . . . . . . . . . . . . . . . . 5
8.1. Normative References . . . . . . . . . . . . . . . . . . 5
8.2. Informative References . . . . . . . . . . . . . . . . . 6
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 7
1. Introduction
The Manufacturer Usage Description (MUD) [RFC8520] defines a YANG
data model to express what sort of access a device requires to
operate correctly. The document additionally defines three ways for
the device to communicate the URL of the resulting JSON [RFC8259]
format file to a network enforcement point: DHCP, within an X.509
certificate extension, and via LLDP.
Each of the above mechanism conveys the MUD URL inband, and requires
modifications to the device firmware. Most small IoT devices do not
have LLDP, and have very restricted DHCP clients. Adding the LLDP or
DHCP options requires at least some minimal configuration change, and
possibly entire new subsystems. The X.509 certificateion extension
only makes sense to deploy as part of a larger IDevID based
[ieee802-1AR] system such as [I-D.ietf-anima-bootstrapping-keyinfra].
In all cases these mechanisms can only be implemented by persons with
access to modify and update the firmware of the device. The MUD
system was designed to be implemented by Manufacturers afterall!
In the meantime there is a chicken or egg problem ([chickenegg]): no
manufacturers include MUD URLs in their products as there are no
gateways that use them. No gateways include code that processes MUD
URLs as no products produce them.
The mechanism described here 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. This can be done by the (marketing
department) of the Manufacturer, by an outsourced assembler plant, by
value added resellers, by a company importing the product (possibly
Richardson & Latour Expires 29 June 2020 [Page 2]
Internet-Draft SHG-MUD December 2019
to comply with a local regulation), by a network administrator
(perhaps before sending devices home with employees), or even by a
retailer as a value added service.
The mechanism uses the QRcode, which is informally described in
[qrcode]. QR code generators are available as web services
([qrcodewebservice]), or as programs such as [qrencode]. They are
formally defined in [isoiec18004].
This document details how the CIRALabs Secure Home Gateway encode MUD
URLs as QR codes.
A issue addressed by this document is the question of whether and
when the MUD file should be specific to a specific version of the
device firmware.
The third issue is that an intermediary (ISP, or third-party security
service) may want to extend or amend a MUD file received from a
manufacturer. In order to maintain an audit trail of changes, a way
to encode the previous MUD URL and signature file (and status) is
provided. (FOR DISCUSSION)
2. Terminology
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 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
3. Protocol
The [dpp] specification from the Wi-Fi Alliance has created a base
for a QRcode based enrollment system. This specification extends it
to include a MUD URL.
The QR code is as specified in section 5.2.1 of [dpp] is repeated
here:
dpp-qr = “DPP:” [channel-list “;”] [mac “;”]
[information “;”] public-key “;;”
This is amended as follows:
dpp-qr = “DPP:” [channel-list “;”] [channel-list “;”]
[mac “;”] [information “;”] public-key
[";" mudurl ] “;;”
mudurl = "D:" *(%x20-3A / %x3C-7E) ; semicolon not allowed
Richardson & Latour Expires 29 June 2020 [Page 3]
Internet-Draft SHG-MUD December 2019
While the ABNF defined in the [dpp] document assumes a specific order
(C:, M:, I:, K:), this specification relaxes this so that the tags
can come in any order. However, in order to make interoperation with
future DPP-only clients as seamless as possible, the MUD extension
suggested here are placed after those defined in [dpp].
This document establishes an IANA registry for DPP attributes.
The syntax of the QR code definition given above does not permit a
semicolon to be included. Semicolons (";") would otherwise be
permitted in MUD URLs. This restriction on the content the URL is
not considered a concern as it is uncommon to use them in a URL.
The URL provided MUST NOT have a query (?) portion present.
An IANA registry is created for the attributes below.
4. Privacy Considerations
TBD.
5. Security Considerations
The security of the Device Provisioning Protocol is enhanced when the
public key for a device is not available without physical access to
the device. Placement of a QR code for use by a MUD controller has
no such dependancy, and so such QR codes may be affixed in prominant
places on the outside of packaging. This is not a recommended
practice as future versions of the sticker may include full DPP
information.
The QRcode described in this document is identical for all instances
of the device, and the stickers may be mass produced. The situation
is not the same when a full DPP content is present: each sticker is
unique. A manufacturing plant designed to affix MUD URLs may get
confused and not be ready for the full DPP.
It is recommended that the manufacturing process be designed with the
full DPP process -- unique QR codes per device -- initially so that
no changes are necessary when/if DPP is introduced.
Richardson & Latour Expires 29 June 2020 [Page 4]
Internet-Draft SHG-MUD December 2019
6. IANA Considerations
IANA is requested to create a new Registry entitled: "Device
Provisioning Protocol Attributes". New items can be added to using
Specification Required. In order to conserve space, registrations
are expected to be single upper-case ASCII letters, but the Expert
Reviewer MAY make exceptions. No entry may contain a colon. All
entries beginning with "X" are reserved as Private-Use values.
The following items are to be added to the initial table:
+--------+--------------+-----------------+
| Letter | Name | Document |
+========+==============+=================+
| C | channel-list | [dpp] |
+--------+--------------+-----------------+
| M | MAC address | [dpp] |
+--------+--------------+-----------------+
| I | information | [dpp] |
+--------+--------------+-----------------+
| K | public key | [dpp] |
+--------+--------------+-----------------+
| D | MUD URL | [This document] |
+--------+--------------+-----------------+
Table 1
(EDITORIAL NOTE: the authors of the DPP specification have consented
to seeding control to IANA)
7. Acknowledgements
This work was supported by the Canadian Internet Registration
Authority (cira.ca).
8. References
8.1. Normative References
[qrcode] Wikipedia, ., "QR Code", December 2019,
<https://en.wikipedia.org/wiki/QR_code>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
Richardson & Latour Expires 29 June 2020 [Page 5]
Internet-Draft SHG-MUD December 2019
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.
[RFC8520] Lear, E., Droms, R., and D. Romascanu, "Manufacturer Usage
Description Specification", RFC 8520,
DOI 10.17487/RFC8520, March 2019,
<https://www.rfc-editor.org/info/rfc8520>.
8.2. Informative References
[chickenegg]
Wikipedia, ., "Chicken or the egg", December 2019,
<https://en.wikipedia.org/wiki/Chicken_or_the_egg>.
[dpp] "Device Provisioning Protocol Specification", April 2018,
<https://www.wi-fi.org/downloads-registered-guest/Device_P
rovisioning_Protocol_Draft_Technical_Specification_Package
_v0_0_23_0.zip/31255>.
[I-D.ietf-anima-bootstrapping-keyinfra]
Pritikin, M., Richardson, M., Eckert, T., Behringer, M.,
and K. Watsen, "Bootstrapping Remote Secure Key
Infrastructures (BRSKI)", Work in Progress, Internet-
Draft, draft-ietf-anima-bootstrapping-keyinfra-31, 16
December 2019, <http://www.ietf.org/internet-drafts/draft-
ietf-anima-bootstrapping-keyinfra-31.txt>.
[ieee802-1AR]
IEEE Standard, ., "IEEE 802.1AR Secure Device Identifier",
2009, <http://standards.ieee.org/findstds/
standard/802.1AR-2009.html>.
[isoiec18004]
ISO/IEC, ., "Information technology — Automatic
identification and data capture techniques — QR Code bar
code symbology specification (ISO/IEC 18004)", February
2015.
[qrcodewebservice]
Internet, ., "QR Code Generators", December 2019,
<https://duckduckgo.com/?q=QR+code+web+generator>.
[qrencode] Fukuchi, K., "QR encode", December 2019,
<https://fukuchi.org/works/qrencode/index.html.en>.
[RFC8259] Bray, T., Ed., "The JavaScript Object Notation (JSON) Data
Interchange Format", STD 90, RFC 8259,
Richardson & Latour Expires 29 June 2020 [Page 6]
Internet-Draft SHG-MUD December 2019
DOI 10.17487/RFC8259, December 2017,
<https://www.rfc-editor.org/info/rfc8259>.
Authors' Addresses
Michael Richardson
Sandelman Software Works
Email: [email protected]
Jacques Latour
CIRA Labs
Email: [email protected]
Richardson & Latour Expires 29 June 2020 [Page 7]