-
Notifications
You must be signed in to change notification settings - Fork 1
/
draft-ietf-dnssd-privacyscaling.xml
725 lines (679 loc) · 30.9 KB
/
draft-ietf-dnssd-privacyscaling.xml
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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY rfc1033 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.1033.xml'>
<!ENTITY rfc1034 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.1034.xml'>
<!ENTITY rfc1035 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.1035.xml'>
<!ENTITY rfc2045 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2045.xml'>
<!ENTITY rfc2119 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml'>
<!ENTITY rfc2782 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2782.xml'>
<!ENTITY rfc4055 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4055.xml'>
<!ENTITY rfc4075 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4075.xml'>
<!ENTITY rfc4279 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4279.xml'>
<!ENTITY rfc5246 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5246.xml'>
<!ENTITY rfc6762 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6762.xml'>
<!ENTITY rfc6763 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6763.xml'>
<!ENTITY rfc7626 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7626.xml'>
<!ENTITY rfc7844 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7844.xml'>
<!ENTITY rfc7858 PUBLIC ''
'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7858.xml'>
<!ENTITY I-D.ietf-intarea-hostname-practice PUBLIC ''
"http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-intarea-hostname-practice.xml">
<!ENTITY I-D.ietf-dprive-dnsodtls PUBLIC ''
"http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-dprive-dnsodtls.xml">
<!ENTITY I-D.ietf-tls-tls13 PUBLIC ''
"http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-tls-tls13.xml">
<!ENTITY I-D.ietf-dnssd-push PUBLIC ''
"http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-dnssd-push">
<!ENTITY I-D.ietf-dnssd-pairing PUBLIC ''
"http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-dnssd-pairing">
<!ENTITY I-D.ietf-dnssd-privacy PUBLIC ''
"http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-dnssd-privacy">
<!ENTITY I-D.ietf-dnssd-pairing PUBLIC ''
"http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-dnssd-pairing">
<!ENTITY kw14a PUBLIC ''
"references/reference.kw14a.xml">
<!ENTITY kw14b PUBLIC ''
"references/reference.kw14b.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc compact="yes"?>
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<!-- Expand crefs and put them inline -->
<?rfc comments='yes' ?>
<?rfc inline='yes' ?>
<rfc category="info"
docName="draft-ietf-dnssd-privacyscaling-00"
ipr="trust200902">
<front>
<title abbrev="DNS-SD Privacy Scaling Tradeoffs">
DNS-SD Privacy Scaling Tradeoffs
</title>
<author fullname="Christian Huitema" initials="C." surname="Huitema">
<organization>Private Octopus Inc.</organization>
<address>
<postal>
<street></street>
<city>Friday Harbor</city>
<code>98250</code>
<region>WA</region>
<country>U.S.A.</country>
</postal>
<email>[email protected]</email>
</address>
</author>
<date year="2018" />
<abstract>
<t>
DNS-SD (DNS Service Discovery) normally discloses information about both the devices offering
services and the devices requesting services. This information includes host names, network
parameters, and possibly a further description of the corresponding service instance. Especially
when mobile devices engage in DNS Service Discovery over Multicast DNS at a public hotspot,
a serious privacy problem arises.
</t>
<t>
The draft currently progressing in the DNS-SD Working Group assumes peer-to-peer pairing
between the service to be discovered and each of its clients. This has good security properties,
but creates scaling issues, because each server needs to publish as many announcements as it
has paired clients. This leads to large number of operations when servers are paired
with many clients.
</t>
<t>
Different designs are possible. For example, if there was only one server "discovery key" known
by each authorized client, each server would only have to announce a single record, and clients
would only have to process one response for each server that is present on the network. Yet,
these designs will present different privacy profiles, and pose different management
challenges. This draft analyses the tradeoffs between privacy and scaling in a set of different
designs, using either shared secrets or public keys.
</t>
</abstract>
</front>
<middle>
<section title="Introduction">
<t>
DNS-SD <xref target="RFC6763" /> over mDNS <xref target="RFC6762" /> enables configurationless
service discovery in local networks.
It is very convenient for users, but it requires the public exposure
of the offering and requesting identities along with information about the offered and
requested services.
Parts of the published information can seriously breach the users' privacy.
These privacy issues and potential solutions are discussed in <xref target="KW14a" />
and <xref target="KW14b" />.
</t>
<t>
A recent draft <xref target="I-D.ietf-dnssd-privacy" /> proposes to solve this problem
by relying on device pairing. Only clients that have paired with a device would be
able to discover that device, and the discovery would not be observable by third
parties. This design has a number of good privacy and security properties, but it
has a cost, because each server must provide separate annoucements for each client.
In this draft, we compare scaling and privacy properties of three different designs:
</t>
<t>
<list style="symbols">
<t>
The individual pairing defined in <xref target="I-D.ietf-dnssd-privacy" />,
</t>
<t>
A single server discovery secret, shared by all authorized clients,
</t>
<t>
A single server discovery public key, known by all authorized clients.
</t>
</list>
</t>
<t>
After presenting briefly these three solutions, the draft presents the scaling
and privacy properties of each of them.
</t>
</section>
<section title="Privacy and Secrets" anchor="secrets">
<t>
Private discovery tries to ensure that clients and servers can discover each other
in a potentially hostile network context, while maintaining privacy. Unauthorized
third parties must not be able to discover that a specific server or device is
currently present on the network, and they must not be able to discover that a
particular client is trying to discover a particular service. This cannot be
achieved without some kind of shared secret between client and servers. We
review here three particular designs for sharing these secrets.
</t>
<section title="Pairing secrets" anchor="pairsecret" >
<t>
The solution proposed in <xref target="I-D.ietf-dnssd-privacy" /> relies on pairing
secrets. Each client obtains a pairing secret from each
server that they are authorized to use. The servers publish announcements
of the form "nonce|proof", in which the proof is the hash of the nonce and the
pairing secret. The proof is of course different for each client, because the
secrets are different. For better scaling, the nonce is common to all clients,
and defined as a coarse function of time, such as the current 30 minutes
interval.
</t>
<t>
Clients discover the required server by issuing queries containing the current nonce and
proof. Servers respond to these queries if the nonce matches the current
time interval, and if the proof matches the hash of the nonce with one of the
pairing key of an authorized client.
</t>
</section>
<section title="Group public keys" anchor="discogroupkey">
<t>In contrast to pair-wise shared secrets, applications may associate public and private
key pairs with groups of equally authorized clients. This is identical to the pairwise
sharing case if each client is given a unique key pair. However, this option permits
multiple users to belong to the same group associated with a public key, depending on
the type of public key and cryptographic scheme used. For example, broadcast encryption
is a scheme where many users, each with their own private key, can access content encrypted
under a single broadcast key. The scaling properties of this variant depend not only
on how private keys are managed, but also on the associated cryptographic algorithm(s)
by which those keys are used.</t>
</section>
<section title="Shared symmetric secret" anchor="discosecret" >
<t>
Instead of using a different secret for each client as in <xref target="pairsecret"/>,
another design is to have a single secret per server, shared by all authorized clients of
that server. As in the previous solution, the servers publish announcements
of the form "nonce|proof", but this time they only need to publish a single
announcement per server, because each server maintains a single discovery secret.
Again, the nonce can be common to all clients,
and defined as a coarse function of time.
</t>
<t>
Clients discover the required server by issuing queries containing the current nonce and
proof. Servers respond to these queries if the nonce matches the current
time interval, and if the proof matches the hash of the nonce with one of the
discovery secrets.
</t>
</section>
<section title="Shared public key" anchor="discopubkey" >
<t>
Instead of a discovery secret used in <xref target="discosecret"/>,
clients could obtain the public keys of the servers that they are
authorized to use.
</t>
<t>
Many public key systems assume that the public key of the server is, well,
not secret. But if adversaries know the public key of a server, they
can use that public key as a unique identifier to track the server.
Moreover, they could use variations of the padding oracle to observe
discovery protocol messages and attribute them to a specific public
key, thus breaking server privacy. For these reasons, we assume here
that the discovery public key is kept secret, only known to
authorized clients.
</t>
<t>
As in the previous solution, the servers publish announcements
of the form "nonce|proof", but this time they only need to publish a single
announcement per server, because each server maintains a single discovery secret.
The proof is obtained by either hashing the nonce with the public key,
or using the public key to encrypt the nonce -- the point being that
both clients and server can construct the proof. Again, the nonce can be
common to all clients, and defined as a coarse function of time.
</t>
<t>
The advantage of public key based solutions is that the clients can
easily verify the identity of the server, for example if the service is
accessed over TLS. On the other hand, just using standard TLS would disclose the
certificate of the server to any client that attempts a connection, not just to
authorized clients. The server should thus only accept connections from clients that
demonstrate knowledge of its public key.
</t>
</section>
</section>
<section title="Scaling properties of different solutions" anchor="scaleprop" >
<t>
To analyze scaling issues we will use the following variables:
</t>
<t>
<list style="hanging">
<t hangText="N:">
The average number of authorized clients per server.
</t>
<t hangText="G:">
The average number of authorized groups per server.
</t>
<t hangText="M:">
The average number of servers per client.
</t>
<t hangText="P:">
The average total number of servers present during discovery.
</t>
</list>
</t>
<t>
The big difference between the three proposals is the number of
records that need to be published by a server when using DNS-SD
in server mode, or the number of broadcast messages that needs
to be announced per server in mDNS mode:
</t>
<t>
<list style="hanging" >
<t hangText="Pairing secrets:">
O(N): One record per client.
</t>
<t hangText="Group public keys:">
O(G): One record per group.
</t>
<t hangText="Shared symmetric secret:">
O(1): One record for all (shared) clients.
</t>
<t hangText="Shared public key:">
O(1): One record for all (shared) clients.
</t>
</list>
</t>
<t>
There are other elements of scaling, linked to the mapping of the privacy
discovery service to DNS-SD. DNS-SD identifies services by a combination of
a service type and an instance name. In classic mapping behavior,
clients send a query for a service type, and will receive
responses from each server instance supporting that type:
</t>
<t>
<list style="hanging" >
<t hangText="Pairing secrets:">
O(P*N): There are O(P) servers present, and each publishes O(N) instances.
</t>
<t hangText="Group public keys:">
O(P*G): There are O(P) servers present, and each publishes O(G) instances.
</t>
<t hangText="Shared symmetric secret:">
O(P): One record per server present.
</t>
<t hangText="Shared public secret:">
O(P): One record per server present.
</t>
</list>
</t>
<t>
The DNS-SD Privacy draft suggests an optimization that considerably reduces
the considerations about scaling of responses -- see section 4.6 of
<xref target="I-D.ietf-dnssd-privacy" />. In that case, clients compose
the list of instance names that they are looking for, and specifically
query for these instance names:
</t>
<t>
<list style="hanging" >
<t hangText="Pairing secrets:">
O(M): The client will compose O(M) queries to discover all the
servers that it is interested in. There will be at most O(M) responses.
</t>
<t hangText="Group public keys:">
O(M): The client will compose O(M) queries to discover all the
servers that it is interested in. There will be at most O(M) responses.
</t>
<t hangText="Shared symmetric secret:">
O(M): Same behavior as in the pairing secret case.
</t>
<t hangText="Shared public secret:">
O(M): Same behavior as in the pairing secret case.
</t>
</list>
</t>
<t>
Finally, another element of scaling is cacheability. Responses to DNS
queries can be cached by DNS resolvers, and mDNS responses can be
cached by mDNS resolvers. If several clients send the same queries,
and if previous responses could be cached, the client can be
served immediately. There are of course differences between the
solutions:
</t>
<t>
<list style="hanging" >
<t hangText="Pairing secrets:">
No caching possible, since there are separate server instances for
separate clients.
</t>
<t hangText="Group public keys:">
Caching is possible for among members of a group.
</t>
<t hangText="Shared symmetric secret:">
Caching is possible, since there is just one server instance.
</t>
<t hangText="Shared public secret:">
Caching is possible, since there is just one server instance.
</t>
</list>
</t>
</section>
<section title="Comparing privacy posture of different solutions" anchor="privapost" >
<t>
The analysis of scaling issues in <xref target="scaleprop"/> shows that the
solutions base on a common discovery secret or discovery public key scale much better than the
solutions based on pairing secret. All these solutions protect against
tracking of clients or servers by third parties, as long as the secret on which they
rely are kept secret. There are however significant differences in
privacy properties, which become visible when one of the clients becomes compromised.
</t>
<section title="Effects of compromized client" anchor="clientcompro" >
<t>
If a client is compromised, an adversary will take possession of the secrets
owned by that client. The effects will be the following:
</t>
<t>
<list style="hanging" >
<t hangText="Pairing secrets:">
With a valid pairing key, the adversary can issue queries and parse announcements.
It will be able to track the presence of all the servers to which the
compromised client was paired. It may be able to track other clients of these servers if
it can infer that multiple independent instances are tied to the same
server, for example by assessing the IP address associated with a specific
instance. It will not be able to impersonate the servers
for other clients.
</t>
<t hangText="Group public keys:">
With a valid group private key, the adversary can issue queries and parse announcements.
It will be able to track the presence of all the servers with which the compromised group
was authenticated. It may be able to track other clients of these servers if
it can infer that multiple independent instances are tied to the same
server, for example by assessing the IP address associated with a specific
instance. It will not be able to impersonate the servers for other clients or groups.
</t>
<t hangText="Shared symmetric secret:">
With a valid discovery secret, the adversary can issue queries and parse announcements.
It will be able to track the presence of all the servers that the
compromised client could discover. It will also be able to detect the clients
that try to use one of these servers. This will not reveal the identity of
the client, but it can provide clues for network analysis. The adversary
will also be able to spoof the server's announcements, which could be the
first step in a server impersonation attack.
</t>
<t hangText="Shared public secret:">
With a valid discovery public key, the adversary can issue queries and parse announcements.
It will be able to track the presence of all the servers that the
compromised client could discover. It will also be able to detect the clients
that try to use one of these servers. This will not reveal the identity of
the client, but it can provide clues for network analysis. The adversary
will not be able to spoof the server's announcements, or to impersonate the
server.
</t>
</list>
</t>
</section>
<section title="Revocation" >
<t>
Assume an administrator discovers that a client has been compromised.
As seen in <xref target="clientcompro" />, compromising a client
entails a loss of privacy for all the servers that the client was authorized
to use, and also to all other users of these servers. The worse situation happens
in the solutions based on "discovery secrets", but no solution provides
a great defense. The administrator will have to remedy the problem,
which means different actions based on the different solutions:
</t>
<t>
<list style="hanging" >
<t hangText="Pairing secrets:">
The administrator will need to revoke the pairing keys used by the compromised
client. This implies contacting the O(M) servers to which the client was paired.
</t>
<t hangText="Group public key:">
The administrator must revoke the private key associated with the compromised
group members and, depending on the cryptographic scheme in use, generate new
private keys for each existing, non-compromised group member. The latter is
necessary for public key encryption schemes wherein group access is permitted
based on ownership (or not) to an included private key. Some public key
encryption schemes permit revocation without rotating any non-compromised
group member private keys.
</t>
<t hangText="Shared symmetric secret:">
The administrator will need to revoke the discovery secrets used by the compromised
client. This implies contacting the O(M) servers that the client was
authorized to discover, and then the O(N) clients of each of these servers.
This will require a total of O(N*M) management operations.
</t>
<t hangText="Shared public secret:">
The administrator will need to revoke the discovery public keys used by the compromised
client. This implies contacting the O(M) servers that the client was
authorized to discover, and then the O(N) clients of each of these servers. Just as in the
case of discovery secrets, this will require O(N*M) management operations.
</t>
</list>
</t>
<t>
The revocation of public keys might benefit from some kind of
centralized revocation list, and thus may actually be easier to organize
than simple scaling considerations would dictate.
</t>
</section>
<section title="Effect of compromized server" >
<t>
If a server is compromised, an adversary will take possession of the secrets
owned by that server. The effects are pretty much the same in all configurations.
With a set of valid credentials, the adversary can impersonate the server. It
can track all of the server's clients. There are no differences between the
various solutions.
</t>
<t>
As remedy, once the compromise is discovered, the administrator
will have to revoke the credentials of O(N) clients, or O(G) groups,
connected to that server. In all cases, this could be done by notifying
all potential clients to not trust this particular server anymore.
</t>
</section>
</section>
<section title="Summary of tradeoffs" >
<t>
In the preceding sections, we have reviewed the scaling and privacy properties of
three possible secret sharing solutions for privacy discovery. The comparison can
be summed up as follow:
</t>
<texttable anchor="table_ex" title="Comparison of secret sharing solutions">
<ttcol align='center'>Solution</ttcol>
<ttcol align='center'>Scaling</ttcol>
<ttcol align='center'>Resistance</ttcol>
<ttcol align='center'>Remediation</ttcol>
<c>Pairing secret</c>
<c>Poor</c>
<c>Bad</c>
<c>Good</c>
<c>Group public key</c>
<c>Medium</c>
<c>Bad</c>
<c>Maybe</c>
<c>Shared symmetric secret</c>
<c>Good</c>
<c>Really bad</c>
<c>Poor</c>
<c>Shared public secret</c>
<c>Good</c>
<c>Bad</c>
<c>Maybe</c>
</texttable>
<t>
All four types of solutions provide reasonable privacy when the secrets are
not compromised. They all have poor resistance to the compromise of
a client, as explained in <xref target="clientcompro" />, but
sharing a symmetric secret is much worse because it does not
prevent server impersonation. The
pairing secret solution scales worse than the discovery secret and
discovery public key solutions. The group public key scales as the
number of groups for the total set of clients; this depends on group
assignment and will be intermediate between the pairing secret and
shared secret solutions. The pairing secret solution can recover from
a compromise with a smaller number of updates, but the public key
solutions may benefit from a simple recovery solution using
some form of "revocation list".
</t>
</section>
<section title="Security Considerations">
<t>
This document does not specify a solution, but discusses future choices when
providing privacy for discovery protocols.
</t>
</section>
<section title="IANA Considerations" anchor="iana">
<t>
This draft does not require any IANA action.
</t>
</section>
<section title="Acknowledgments">
<t>
This draft results from initial feedback in the DNS SD working group on
<xref target="I-D.ietf-dnssd-privacy" />. The text on Group public keys is
based on Chris Wood's contributions.
</t>
</section>
</middle>
<back>
<references title="Informative References">
&I-D.ietf-dnssd-privacy;
&I-D.ietf-dnssd-pairing;
&rfc6762;
&rfc6763;
&rfc7858;
<reference anchor="KW14a" target="http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7011331">
<front>
<title>Adding Privacy to Multicast DNS Service Discovery</title>
<author initials="D." surname="Kaiser" fullname="Daniel Kaiser">
<organization/>
</author>
<author initials="M." surname="Waldvogel" fullname="Marcel Waldvogel">
<organization/>
</author>
<date year="2014"/>
</front>
<seriesInfo name="DOI" value="10.1109/TrustCom.2014.107"/>
</reference>
<reference anchor="KW14b" target="http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7056899">
<front>
<title>Efficient Privacy Preserving Multicast DNS Service Discovery</title>
<author initials="D." surname="Kaiser" fullname="Daniel Kaiser">
<organization/>
</author>
<author initials="M." surname="Waldvogel" fullname="Marcel Waldvogel">
<organization/>
</author>
<date year="2014"/>
</front>
<seriesInfo name="DOI" value="10.1109/HPCC.2014.141"/>
</reference>
<reference anchor="Wu16" target="https://arxiv.org/pdf/1604.06959.pdf%22">
<front>
<title>Privacy, discovery, and authentication for the internet of things</title>
<author initials='D.' surname='Wu' fullname='David Wu'>
<organization>Stanford University</organization>
</author>
<author initials='A.' surname='Taly' fullname='Ankur Taly'>
<organization>Google</organization>
</author>
<author initials='A.' surname='Shankar' fullname='Asim Shankar'>
<organization>Google</organization>
</author>
<author initials='D.' surname='Boneh' fullname='Dan Boneh'>
<organization>Stanford University</organization>
</author>
<date year="2016"/>
</front>
</reference>
<reference anchor="SIGMA" target="http://link.springer.com/content/pdf/10.1007/978-3-540-45146-4_24.pdf">
<front>
<title>SIGMA: The 'SIGn-and-MAc'approach to authenticated Diffie-Hellman and its use in the IKE protocols</title>
<author initials='H.' surname='Krawczyk' fullname='Hugo Krawczyk'>
<organization>EE Department, Technion, Haifa, Israel, and IBM T.J. Watson Research Center</organization>
</author>
<date year="2003"/>
</front>
</reference>
</references>
<section title="Survey of Implementations">
<t>This section surveys several private service discovery designs in the context of the threat model
detailed above.</t>
<section title="DNS-SD Privacy Extensions">
<t>Huitema and Kaiser <xref target="I-D.ietf-dnssd-privacy"></xref> decompose
private service discovery into two stages: (1) identify specific peers offering
private services, and (2) issue unicast DNS-SD queries to those hosts after
connecting over TLS using a previously agreed upon pre-shared key (PSK), or
pairing key. Any out-of-band pairing mechanism will suffice for PSK establishment,
though the authors specifically mention <xref target="I-D.ietf-dnssd-pairing"></xref>
as the pairing mechanism. Step (1) is done by broadcasting "private instance names"
to local peers, using service-specific pairing keys. A private instance name N'
for some service with name N is composed of a unique nonce r and commitment to r using
N_k. Commitments are constructed by hashing N_k with the nonce. Only owners of N_k
may verify its correctness and, upon doing so, answer as needed. The draft recommends
randomizing hostnames in SRV responses along with other identifiers, such as
MAC addresses, to minimize likability to specific hosts.
Note that this alone does not prevent fingerprinting and tracking using that hostname.
However, when done in conjunction with steps (1) and (2) above, this mitigates fingerprinting
and tracking since different hostnames are used across venues and real discovered services
remain hidden behind private instance names.</t>
<t>After discovering its peers, a node will directly connect to each device using
TLS, authenticated with a PSK derived from each associated pairing key, and
issue DNS-SD queries per usual. DNS messages are formulated as per
<xref target="RFC7858"></xref>.</t>
<t>As an optimization, the authors recommend that each nonce be deterministically
derived based on time so that commitment proofs may be precomputed asynchronously.
This avoids O(N*M) computation, where N is the number of nodes in a local network
and M is the number of per-node pairings.</t>
<t>
This system has the following properties:
<list style='numbers'>
<t>Symmetric work load: clients and servers can pre-compute private instance names
as a function of their pairing secret and predictable nonce.</t>
<t>Mutual identity privacy: Both client and server identities are hidden from
active and passive attackers that do not subvert the pairing process.</t>
<t>No client set size hiding: The number of private instance names
reveals the number of unique pairings a server has with its clients. (Servers
may pad the list of records with random instance names, though this introduces more
work for clients.)</t>
<t>Unlinkability: Private service names are unlinkable to post-discovery TLS
connections. (Note that if deterministic nonces repeat, servers risk linkability
across private service names.)</t>
<t>No fingerprinting: Assuming servers use fresh nonces per private instance name,
advertisements change regularly.</t>
</list>
</t>
</section>
<section title="Private IoT">
<t>Boneh et al. <xref target="Wu16"></xref> developed an approach for private service
discovery that reduces to private mutual authentication. Moreover, it should be
infeasible for any adversary to forge advertisements or impersonate anyone else on
the network. Specifically, service discoverers only wish to reveal their identity
to services they trust, and vice versa. Existing protocols such as TLS, IKE, and
<xref target="SIGMA">SIGMA</xref> require that one side reveal its identity first.
Their approach first allocates, via some policy manager, key pairs associated with
human-readable policy names. For example, user Alice might have a key pair associated
with the names /Alice, /Alice/Family, and /Alice/Device. Her key is bound to each
of these names. Authentication policies (and trust models) are then expressed as
policy prefix patterns, e.g., /Alice/*. Broadcast messages are encrypted to policies.
For example, Alice might encrypt a message m to the policy /Bob/*. Only Bob, who
owns a private key bound to, e.g., /Bob/Devices, can decrypt m. (This procedure
uses a form of identity-based encryption called prefix-based encryption. Readers
are referred to <xref target="Wu16"></xref> for a thorough description.)</t>
<t>Using prefix- and policy-based encryption, service discovery is decomposed into
two steps: (1) service announcement and (2) key exchange, similar to
<xref target="I-D.ietf-dnssd-privacy"></xref>. Announcements carry service
identities, ephemeral key shares, and a signature, all encrypted under the
service’s desired policy prefix, e.g., /Alice/Family/*. Upon receipt of an
announcement, clients with matching policy private keys can decrypt the
announcement and use the ephemeral key share to perform an Authenticated
Diffie Hellman key exchange with the service. Upon completion, the derived
shared secret may be used for any further communication, e.g., DNS-SD queries,
if needed.</t>
<t>
This system has the following properties:
<list style='numbers'>
<t>Asymmetric work load: computation for clients is on the order of advertisements.</t>
<t>Mutual identity privacy: Both client and server identities are hidden from
active and passive attackers.</t>
<t>Client set size hiding: Policy-based encryption advertisements hides the number
of clients with matching policy keys.</t>
<t>Unlinkability: Client initiated connections are unlinkable to service advertisements (modulo
network-layer connection information, such as advertisement origin and connection destination).</t>
</list>
</t>
</section>
</section>
</back>
</rfc>