Difference between revisions of "RFC8882"

From RFC-Wiki
(Created page with " Internet Engineering Task Force (IETF) C. Huitema Request for Comments: 8882 Private Octopus Inc. Category: Informationa...")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 

 

 
 
  
 
Internet Engineering Task Force (IETF)                        C. Huitema
 
Internet Engineering Task Force (IETF)                        C. Huitema
Line 7: Line 5:
 
Category: Informational                                        D. Kaiser
 
Category: Informational                                        D. Kaiser
 
ISSN: 2070-1721                                University of Luxembourg
 
ISSN: 2070-1721                                University of Luxembourg
                                                          September 2020
+
                                                      September 2020
 
 
  
 
  DNS-Based Service Discovery (DNS-SD) Privacy and Security Requirements
 
  DNS-Based Service Discovery (DNS-SD) Privacy and Security Requirements
  
Abstract
+
'''Abstract'''
  
  DNS-SD (DNS-based Service Discovery) normally discloses information
+
DNS-SD (DNS-based Service Discovery) normally discloses information
  about devices offering and requesting services.  This information
+
about devices offering and requesting services.  This information
  includes hostnames, network parameters, and possibly a further
+
includes hostnames, network parameters, and possibly a further
  description of the corresponding service instance.  Especially when
+
description of the corresponding service instance.  Especially when
  mobile devices engage in DNS-based Service Discovery at a public
+
mobile devices engage in DNS-based Service Discovery at a public
  hotspot, serious privacy problems arise.  We analyze the requirements
+
hotspot, serious privacy problems arise.  We analyze the requirements
  of a privacy-respecting discovery service.
+
of a privacy-respecting discovery service.
  
Status of This Memo
+
'''Status of This Memo'''
  
  This document is not an Internet Standards Track specification; it is
+
This document is not an Internet Standards Track specification; it is
  published for informational purposes.
+
published for informational purposes.
  
  This document is a product of the Internet Engineering Task Force
+
This document is a product of the Internet Engineering Task Force
  (IETF).  It represents the consensus of the IETF community.  It has
+
(IETF).  It represents the consensus of the IETF community.  It has
  received public review and has been approved for publication by the
+
received public review and has been approved for publication by the
  Internet Engineering Steering Group (IESG).  Not all documents
+
Internet Engineering Steering Group (IESG).  Not all documents
  approved by the IESG are candidates for any level of Internet
+
approved by the IESG are candidates for any level of Internet
  Standard; see Section 2 of RFC 7841.
+
Standard; see Section 2 of [[RFC7841|RFC 7841]].
  
  Information about the current status of this document, any errata,
+
Information about the current status of this document, any errata,
  and how to provide feedback on it may be obtained at
+
and how to provide feedback on it may be obtained at
  https://www.rfc-editor.org/info/rfc8882.
+
https://www.rfc-editor.org/info/rfc8882.
  
Copyright Notice
+
'''Copyright Notice'''
  
  Copyright (c) 2020 IETF Trust and the persons identified as the
+
Copyright (c) 2020 IETF Trust and the persons identified as the
  document authors.  All rights reserved.
+
document authors.  All rights reserved.
  
  This document is subject to BCP 78 and the IETF Trust's Legal
+
This document is subject to [[BCP78|BCP 78]] and the IETF Trust's Legal
  Provisions Relating to IETF Documents
+
Provisions Relating to IETF Documents
  (https://trustee.ietf.org/license-info) in effect on the date of
+
(https://trustee.ietf.org/license-info) in effect on the date of
  publication of this document.  Please review these documents
+
publication of this document.  Please review these documents
  carefully, as they describe your rights and restrictions with respect
+
carefully, as they describe your rights and restrictions with respect
  to this document.  Code Components extracted from this document must
+
to this document.  Code Components extracted from this document must
  include Simplified BSD License text as described in Section 4.e of
+
include Simplified BSD License text as described in Section 4.e of
  the Trust Legal Provisions and are provided without warranty as
+
the Trust Legal Provisions and are provided without warranty as
  described in the Simplified BSD License.
+
described in the Simplified BSD License.
  
Table of Contents
+
1.  Introduction
 +
2.  Threat Model
 +
3.  Threat Analysis
 +
  3.1.  Service Discovery Scenarios
 +
    3.1.1.  Private Client and Public Server
 +
    3.1.2.  Private Client and Private Server
 +
    3.1.3.  Wearable Client and Server
 +
  3.2.  DNS-SD Privacy Considerations
 +
    3.2.1.  Information Made Available Via DNS-SD Resource Records
 +
    3.2.2.  Privacy Implication of Publishing Service Instance
 +
            Names
 +
    3.2.3.  Privacy Implication of Publishing Node Names
 +
    3.2.4.  Privacy Implication of Publishing Service Attributes
 +
    3.2.5.  Device Fingerprinting
 +
    3.2.6.  Privacy Implication of Discovering Services
 +
  3.3.  Security Considerations
 +
    3.3.1.  Authenticity, Integrity, and Freshness
 +
    3.3.2.  Confidentiality
 +
    3.3.3.  Resistance to Dictionary Attacks
 +
    3.3.4.  Resistance to Denial-of-Service Attacks
 +
    3.3.5.  Resistance to Sender Impersonation
 +
    3.3.6.  Sender Deniability
 +
  3.4.  Operational Considerations
 +
    3.4.1.  Power Management
 +
    3.4.2.  Protocol Efficiency
 +
    3.4.3.  Secure Initialization and Trust Models
 +
    3.4.4.  External Dependencies
 +
4.  Requirements for a DNS-SD Privacy Extension
 +
  4.1.  Private Client Requirements
 +
  4.2.  Private Server Requirements
 +
  4.3.  Security and Operation
 +
5.  IANA Considerations
 +
6.  References
 +
  6.1.  Normative References
 +
  6.2.  Informative References
 +
Acknowledgments
 +
Authors' Addresses
  
  1.  Introduction
+
== Introduction ==
  2.  Threat Model
 
  3.  Threat Analysis
 
    3.1.  Service Discovery Scenarios
 
      3.1.1.  Private Client and Public Server
 
      3.1.2.  Private Client and Private Server
 
      3.1.3.  Wearable Client and Server
 
    3.2.  DNS-SD Privacy Considerations
 
      3.2.1.  Information Made Available Via DNS-SD Resource Records
 
      3.2.2.  Privacy Implication of Publishing Service Instance
 
              Names
 
      3.2.3.  Privacy Implication of Publishing Node Names
 
      3.2.4.  Privacy Implication of Publishing Service Attributes
 
      3.2.5.  Device Fingerprinting
 
      3.2.6.  Privacy Implication of Discovering Services
 
    3.3.  Security Considerations
 
      3.3.1.  Authenticity, Integrity, and Freshness
 
      3.3.2.  Confidentiality
 
      3.3.3.  Resistance to Dictionary Attacks
 
      3.3.4.  Resistance to Denial-of-Service Attacks
 
      3.3.5.  Resistance to Sender Impersonation
 
      3.3.6.  Sender Deniability
 
    3.4.  Operational Considerations
 
      3.4.1.  Power Management
 
      3.4.2.  Protocol Efficiency
 
      3.4.3.  Secure Initialization and Trust Models
 
      3.4.4.  External Dependencies
 
  4.  Requirements for a DNS-SD Privacy Extension
 
    4.1.  Private Client Requirements
 
    4.2.  Private Server Requirements
 
    4.3.  Security and Operation
 
  5.  IANA Considerations
 
  6.  References
 
    6.1.  Normative References
 
    6.2.  Informative References
 
  Acknowledgments
 
  Authors' Addresses
 
  
1Introduction
+
DNS-Based Service Discovery (DNS-SD) [[RFC6763]] over Multicast DNS
 +
(mDNS) [[RFC6762]] enables zero-configuration service discovery in
 +
local networksIt 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 user's privacy.  These
 +
privacy issues and potential solutions are discussed in [KW14a],
 +
[KW14b], and [K17].  While the multicast nature of mDNS makes these
 +
risks obvious, most risks derive from the observability of
 +
transactions.  These risks also need to be mitigated when using
 +
server-based variants of DNS-SD.
  
  DNS-Based Service Discovery (DNS-SD) [RFC6763] over Multicast DNS
+
There are cases when nodes connected to a network want to provide or
  (mDNS) [RFC6762] enables zero-configuration service discovery in
+
consume services without exposing their identities to the other
  local networks.  It is very convenient for users, but it requires the
+
parties connected to the same networkConsider, for example, a
  public exposure of the offering and requesting identities along with
+
traveler wanting to upload pictures from a phone to a laptop when
  information about the offered and requested services.  Parts of the
+
both are connected to the Wi-Fi network of an Internet cafe, or two
  published information can seriously breach the user's privacyThese
+
travelers who want to share files between their laptops when waiting
  privacy issues and potential solutions are discussed in [KW14a],
+
for their plane in an airport lounge.
  [KW14b], and [K17].  While the multicast nature of mDNS makes these
 
  risks obvious, most risks derive from the observability of
 
  transactions.  These risks also need to be mitigated when using
 
  server-based variants of DNS-SD.
 
  
  There are cases when nodes connected to a network want to provide or
+
We expect that these exchanges will start with a discovery procedure
  consume services without exposing their identities to the other
+
using DNS-SD over mDNS.  One of the devices will publish the
  parties connected to the same network.  Consider, for example, a
+
availability of a service, such as a picture library or a file store
  traveler wanting to upload pictures from a phone to a laptop when
+
in our examples.  The user of the other device will discover this
  both are connected to the Wi-Fi network of an Internet cafe, or two
+
service and then connect to it.
  travelers who want to share files between their laptops when waiting
 
  for their plane in an airport lounge.
 
  
  We expect that these exchanges will start with a discovery procedure
+
When analyzing these scenarios in Section 3.1, we find that the DNS-
  using DNS-SD over mDNS.  One of the devices will publish the
+
SD messages leak identifying information, such as the Service
  availability of a service, such as a picture library or a file store
+
Instance Name, the hostname, or service propertiesWe use the
  in our examplesThe user of the other device will discover this
+
following definitions:
  service and then connect to it.
 
  
   When analyzing these scenarios in Section 3.1, we find that the DNS-
+
Identity
  SD messages leak identifying information, such as the Service
+
   In this document, the term "identity" refers to the identity of
   Instance Name, the hostname, or service properties. We use the
+
   the entity (legal person) operating a device.
  following definitions:
 
  
  Identity
+
Disclosing an Identity
      In this document, the term "identity" refers to the identity of
+
  In this document, "disclosing an identity" means showing the
      the entity (legal person) operating a device.
+
  identity of operating entities to devices external to the
 +
  discovery process, e.g., devices on the same network link that are
 +
  listening to the network traffic but are not actually involved in
 +
  the discovery process.  This document focuses on identity
 +
  disclosure by data conveyed via messages on the service discovery
 +
  protocol layer.  Still, identity leaks on deeper layers, e.g., the
 +
  IP layer, are mentioned.
  
  Disclosing an Identity
+
Disclosing Information
      In this document, "disclosing an identity" means showing the
+
  In this document, "disclosing information" is also focused on
      identity of operating entities to devices external to the
+
  disclosure of data conveyed via messages on the service discovery
      discovery process, e.g., devices on the same network link that are
+
  protocol layer, including both identity-revealing information and
      listening to the network traffic but are not actually involved in
+
  other still potentially sensitive data.
      the discovery process.  This document focuses on identity
 
      disclosure by data conveyed via messages on the service discovery
 
      protocol layer.  Still, identity leaks on deeper layers, e.g., the
 
      IP layer, are mentioned.
 
  
  Disclosing Information
+
== Threat Model ==
      In this document, "disclosing information" is also focused on
 
      disclosure of data conveyed via messages on the service discovery
 
      protocol layer, including both identity-revealing information and
 
      other still potentially sensitive data.
 
  
2Threat Model
+
This document considers the following attacker types sorted by
 +
increasing powerAll these attackers can either be passive (they
 +
just listen to network traffic they have access to) or active (they
 +
additionally can craft and send malicious packets).
  
   This document considers the following attacker types sorted by
+
external
   increasing power.  All these attackers can either be passive (they
+
   An external attacker is not on the same network link as victim
  just listen to network traffic they have access to) or active (they
+
   devices engaging in service discovery; thus, the external attacker
   additionally can craft and send malicious packets).
+
   is in a different multicast domain.
  
   external
+
on-link
      An external attacker is not on the same network link as victim
+
   An on-link attacker is on the same network link as victim devices
      devices engaging in service discovery; thus, the external attacker
+
  engaging in service discovery; thus, the on-link attacker is in
      is in a different multicast domain.
+
  the same multicast domain.  This attacker can also mount all
 +
  attacks an external attacker can mount.
  
   on-link
+
MITM
      An on-link attacker is on the same network link as victim devices
+
   A Man-in-the-Middle (MITM) attacker either controls (parts of) a
      engaging in service discovery; thus, the on-link attacker is in
+
  network link or can trick two parties to send traffic via the
      the same multicast domain.  This attacker can also mount all
+
  attacker; thus, the MITM attacker has access to unicast traffic
      attacks an external attacker can mount.
+
  between devices engaging in service discovery.  This attacker can
 +
  also mount all attacks an on-link attacker can mount.
  
  MITM
+
== Threat Analysis ==
      A Man-in-the-Middle (MITM) attacker either controls (parts of) a
 
      network link or can trick two parties to send traffic via the
 
      attacker; thus, the MITM attacker has access to unicast traffic
 
      between devices engaging in service discovery.  This attacker can
 
      also mount all attacks an on-link attacker can mount.
 
  
3Threat Analysis
+
In this section, we analyze how the attackers described in the
 +
previous section might threaten the privacy of entities operating
 +
devices engaging in service discoveryWe focus on attacks
 +
leveraging data transmitted in service discovery protocol messages.
  
  In this section, we analyze how the attackers described in the
+
=== Service Discovery Scenarios ===
  previous section might threaten the privacy of entities operating
 
  devices engaging in service discovery.  We focus on attacks
 
  leveraging data transmitted in service discovery protocol messages.
 
  
3.1. Service Discovery Scenarios
+
In this section, we review common service discovery scenarios and
 +
discuss privacy threats and their privacy requirements. In all three
 +
of these common scenarios, the attacker is of the type passive on-
 +
link.
  
  In this section, we review common service discovery scenarios and
+
==== Private Client and Public Server ====
  discuss privacy threats and their privacy requirements.  In all three
 
  of these common scenarios, the attacker is of the type passive on-
 
  link.
 
  
3.1.1.  Private Client and Public Server
+
Perhaps the simplest private discovery scenario involves a single
 +
client connecting to a public server through a public network. A
 +
common example would be a traveler using a publicly available printer
 +
in a business center, in a hotel, or at an airport.
  
  Perhaps the simplest private discovery scenario involves a single
+
                                    ( Taking notes:
  client connecting to a public server through a public network. A
+
                                    ( David is printing
   common example would be a traveler using a publicly available printer
+
                                    ( a document.
  in a business center, in a hotel, or at an airport.
+
                                      21:38, 5 May 2021 (UTC)21:38, 5 May 2021 (UTC)~
 +
                                                  o
 +
        ___                                        o  ___
 +
        /  \                                        _|___|_
 +
        |  |  client               server           |* *|
 +
        \_/      __                                    \_/
 +
          |      / /  Discovery  +----------+          |
 +
        /|\    /_/  <-----------> |  +----+ |        /|\
 +
        / | \__/                  +--|   |--+        / | \
 +
      /  |                          |____/          /  |  \
 +
      /  |                                          /  |  \
 +
        / \                                            / \
 +
        /  \                                          /  \
 +
      /    \                                        /    \
 +
      /      \                                      /      \
 +
    /        \                                    /        \
  
                                        ( Taking notes:
+
        David                                        Adversary
                                        ( David is printing
 
                                        ( a document.
 
                                        21:57, 22 September 2020 (UTC)21:57, 22 September 2020 (UTC)~
 
                                                    o
 
            ___                                        o  ___
 
          /  \                                        _|___|_
 
          |  |  client                server          |* *|
 
            \_/      __                                    \_/
 
            |      / /  Discovery  +----------+          |
 
            /|\    /_/  <-----------> |  +----+  |        /|\
 
          / | \__/                  +--|    |--+        / | \
 
          /  |                          |____/          /  |  \
 
        /  |                                          /  |  \
 
            / \                                            / \
 
          /  \                                          /  \
 
          /    \                                       /    \
 
        /      \                                      /      \
 
        /        \                                    /        \
 
  
          David                                        Adversary
+
In that scenario, the server is public and wants to be discovered,
 +
but the client is private.  The adversary will be listening to the
 +
network traffic, trying to identify the visitors' devices and their
 +
activity.  Identifying devices leads to identifying people, either
 +
for surveillance of these individuals in the physical world or as a
 +
preliminary step for a targeted cyber attack.
  
  In that scenario, the server is public and wants to be discovered,
+
The requirement in that scenario is that the discovery activity
  but the client is private.  The adversary will be listening to the
+
should not disclose the identity of the client.
  network traffic, trying to identify the visitors' devices and their
 
  activity.  Identifying devices leads to identifying people, either
 
  for surveillance of these individuals in the physical world or as a
 
  preliminary step for a targeted cyber attack.
 
  
  The requirement in that scenario is that the discovery activity
+
==== Private Client and Private Server ====
  should not disclose the identity of the client.
 
  
3.1.2.  Private Client and Private Server
+
The second private discovery scenario involves a private client
 +
connecting to a private server. A common example would be two people
 +
engaging in a collaborative application in a public place, such as an
 +
airport's lounge.
  
   The second private discovery scenario involves a private client
+
                                        ( Taking notes:
   connecting to a private server. A common example would be two people
+
                                        ( David is meeting
  engaging in a collaborative application in a public place, such as an
+
                                        ( with Stuart.
  airport's lounge.
+
                                          21:38, 5 May 2021 (UTC)21:38, 5 May 2021 (UTC)~
 +
                                                    o
 +
        ___                              ___        o  ___
 +
        /  \                            /  \          _|___|_
 +
        |  |  server          client   |  |          |* *|
 +
        \_/      __              __      \_/            \_/
 +
          |      / /  Discovery  \ \      |              |
 +
        /|\   /_/  <----------->  \_\    /|\            /|\
 +
        / | \__/                      \__/ | \          / | \
 +
      /  |                                |  \        /  | \
 +
      /  |                                |  \      /  |  \
 +
        / \                              / \            / \
 +
        /  \                            /  \          /  \
 +
      /    \                          /    \        /    \
 +
      /      \                        /      \      /      \
 +
    /        \                      /        \    /        \
  
                                          ( Taking notes:
+
      David                             Stuart       Adversary
                                          ( David is meeting
 
                                          ( with Stuart.
 
                                            21:57, 22 September 2020 (UTC)21:57, 22 September 2020 (UTC)~
 
                                                        o
 
            ___                              ___        o  ___
 
          /  \                            /  \          _|___|_
 
          |  |  server          client    |  |          |* *|
 
            \_/      __              __      \_/            \_/
 
            |      / /  Discovery  \ \      |              |
 
            /|\    /_/  <----------->  \_\    /|\            /|\
 
          / | \__/                      \__/ | \          / | \
 
          /  |                                |  \        /  |  \
 
        /  |                                |  \      /  |  \
 
            / \                              / \            / \
 
          /  \                            /  \          /  \
 
          /    \                          /    \        /    \
 
        /      \                        /      \      /      \
 
        /        \                      /        \    /        \
 
  
          David                              Stuart        Adversary
+
In that scenario, the collaborative application on one of the devices
 +
will act as a server, and the application on the other device will
 +
act as a client.  The server wants to be discovered by the client but
 +
has no desire to be discovered by anyone else.  The adversary will be
 +
listening to network traffic, attempting to discover the identity of
 +
devices as in the first scenario and also attempting to discover the
 +
patterns of traffic, as these patterns reveal the business and social
 +
interactions between the owners of the devices.
  
  In that scenario, the collaborative application on one of the devices
+
The requirement in that scenario is that the discovery activity
  will act as a server, and the application on the other device will
+
should not disclose the identity of either the client or the server
  act as a client.  The server wants to be discovered by the client but
+
nor reveal the business and social interactions between the owners of
  has no desire to be discovered by anyone else.  The adversary will be
+
the devices.
  listening to network traffic, attempting to discover the identity of
 
  devices as in the first scenario and also attempting to discover the
 
  patterns of traffic, as these patterns reveal the business and social
 
  interactions between the owners of the devices.
 
  
  The requirement in that scenario is that the discovery activity
+
==== Wearable Client and Server ====
  should not disclose the identity of either the client or the server
 
  nor reveal the business and social interactions between the owners of
 
  the devices.
 
  
3.1.3.  Wearable Client and Server
+
The third private discovery scenario involves wearable devices. A
 +
typical example would be the watch on someone's wrist connecting to
 +
the phone in their pocket.
  
  The third private discovery scenario involves wearable devicesA
+
                                    ( Taking notes:
   typical example would be the watch on someone's wrist connecting to
+
                                    ( David is here. His watch is
  the phone in their pocket.
+
                                    ( talking to his phone.
 +
                                      21:38, 5 May 2021 (UTC)21:38, 5 May 2021 (UTC)~
 +
                                                  o
 +
        ___                                        o  ___
 +
        /  \                                        _|___|_
 +
        |  |  client                                |* *|
 +
        \_/                                            \_/
 +
          |    _/                                      |
 +
        /|\  //                                      /|\
 +
        / | \__/  ^                                    / | \
 +
      /  |__    | Discovery                        /  | \
 +
      /  |\ \   v                                  /  |  \
 +
        / \\_\                                        / \
 +
        /  \  server                                /  \
 +
      /    \                                        /    \
 +
      /      \                                      /      \
 +
    /        \                                    /        \
  
                                        ( Taking notes:
+
        David                                        Adversary
                                        ( David is here. His watch is
 
                                        ( talking to his phone.
 
                                          21:57, 22 September 2020 (UTC)21:57, 22 September 2020 (UTC)~
 
                                                      o
 
            ___                                        o  ___
 
          /  \                                        _|___|_
 
          |  |  client                                |* *|
 
            \_/                                            \_/
 
            |    _/                                      |
 
            /|\  //                                      /|\
 
          / | \__/  ^                                    / | \
 
          /  |__    | Discovery                        /  |  \
 
        /  |\ \    v                                  /  |  \
 
            / \\_\                                        / \
 
          /  \  server                                /  \
 
          /    \                                       /    \
 
        /      \                                      /      \
 
        /        \                                    /        \
 
  
          David                                        Adversary
+
This third scenario is in many ways similar to the second scenario.
 +
It involves two devices, one acting as server and the other acting as
 +
client, and it leads to the same requirement of the discovery traffic
 +
not disclosing the identity of either the client or the server.  The
 +
main difference is that the devices are managed by a single owner,
 +
which can lead to different methods for establishing secure relations
 +
between the devices.  There is also an added emphasis on hiding the
 +
type of devices that the person wears.
  
  This third scenario is in many ways similar to the second scenario.
+
In addition to tracking the identity of the owner of the devices, the
  It involves two devices, one acting as server and the other acting as
+
adversary is interested in the characteristics of the devices, such
  client, and it leads to the same requirement of the discovery traffic
+
as type, brand, and model.  Identifying the type of device can lead
  not disclosing the identity of either the client or the server.  The
+
to further attacks, from theft to device-specific hacking.  The
  main difference is that the devices are managed by a single owner,
+
combination of devices worn by the same person will also provide a
  which can lead to different methods for establishing secure relations
+
"fingerprint" of the person, risking identification.
  between the devices.  There is also an added emphasis on hiding the
 
  type of devices that the person wears.
 
  
  In addition to tracking the identity of the owner of the devices, the
+
This scenario also represents the general case of bringing private
  adversary is interested in the characteristics of the devices, such
+
Internet-of-Things (IoT) devices into public places.  A wearable IoT
  as type, brand, and modelIdentifying the type of device can lead
+
device might act as a DNS-SD/mDNS client, which allows attackers to
  to further attacks, from theft to device-specific hacking.  The
+
infer information about devices' ownersWhile the attacker might be
  combination of devices worn by the same person will also provide a
+
a person, as in the example figure, this could also be abused for
  "fingerprint" of the person, risking identification.
+
large-scale data collection installing stationary IoT-device-tracking
 +
servers in frequented public places.
  
  This scenario also represents the general case of bringing private
+
The issues described in Section 3.1.1, such as identifying people or
  Internet-of-Things (IoT) devices into public places. A wearable IoT
+
using the information for targeted attacks, apply here too.
  device might act as a DNS-SD/mDNS client, which allows attackers to
 
  infer information about devices' owners. While the attacker might be
 
  a person, as in the example figure, this could also be abused for
 
  large-scale data collection installing stationary IoT-device-tracking
 
  servers in frequented public places.
 
  
  The issues described in Section 3.1.1, such as identifying people or
+
=== DNS-SD Privacy Considerations ===
  using the information for targeted attacks, apply here too.
 
  
3.2.  DNS-SD Privacy Considerations
+
While the discovery process illustrated in the scenarios in
 +
Section 3.1 most likely would be based on [[RFC6762]] as a means for
 +
making service information available, this document considers all
 +
kinds of means for making DNS-SD resource records availableThese
 +
means comprise of but are not limited to mDNS [[RFC6762]], DNS servers
 +
([[RFC1033]], [[RFC1034]], and [[RFC1035]]), the use of Service
 +
Registration Protocol (SRP) [SRP], and multi-link [[RFC7558]] networks.
  
  While the discovery process illustrated in the scenarios in
+
The discovery scenarios in Section 3.1 illustrate three separate
  Section 3.1 most likely would be based on [RFC6762] as a means for
+
abstract privacy requirements that vary based on the use case.  These
  making service information available, this document considers all
+
are not limited to mDNS.
  kinds of means for making DNS-SD resource records available.  These
 
  means comprise of but are not limited to mDNS [RFC6762], DNS servers
 
  ([RFC1033], [RFC1034], and [RFC1035]), the use of Service
 
  Registration Protocol (SRP) [SRP], and multi-link [RFC7558] networks.
 
  
  The discovery scenarios in Section 3.1 illustrate three separate
+
1.  Client identity privacy: Client identities are not leaked during
  abstract privacy requirements that vary based on the use caseThese
+
    service discovery or use.
  are not limited to mDNS.
 
  
  1Client identity privacy: Client identities are not leaked during
+
2Multi-entity, mutual client and server identity privacy: Neither
      service discovery or use.
+
    client nor server identities are leaked during service discovery
 +
    or use.
  
  2Multi-entity, mutual client and server identity privacy: Neither
+
3Single-entity, mutual client and server identity privacy:
      client nor server identities are leaked during service discovery
+
    Identities of clients and servers owned and managed by the same
      or use.
+
    legal person are not leaked during service discovery or use.
  
  3Single-entity, mutual client and server identity privacy:
+
In this section, we describe aspects of DNS-SD that make these
      Identities of clients and servers owned and managed by the same
+
requirements difficult to achieve in practiceWhile it is intended
      legal person are not leaked during service discovery or use.
+
to be thorough, it is not possible to be exhaustive.
  
  In this section, we describe aspects of DNS-SD that make these
+
Client identity privacy, if not addressed properly, can be thwarted
  requirements difficult to achieve in practiceWhile it is intended
+
by a passive attacker (see Section 2).  The type of passive attacker
  to be thorough, it is not possible to be exhaustive.
+
necessary depends on the means of making service information
 +
availableInformation conveyed via multicast messages can be
 +
obtained by an on-link attacker.  Unicast messages are harder to
 +
access, but if the transmission is not encrypted they could still be
 +
accessed by an attacker with access to network routers or bridges.
 +
Using multi-link service discovery solutions [[RFC7558]], external
 +
attackers have to be taken into consideration as well, e.g., when
 +
relaying multicast messages to other links.
  
  Client identity privacy, if not addressed properly, can be thwarted
+
Server identity privacy can be thwarted by a passive attacker in the
  by a passive attacker (see Section 2)The type of passive attacker
+
same way as client identity privacyAdditionally, active attackers
  necessary depends on the means of making service information
+
querying for information have to be taken into consideration as well.
  available. Information conveyed via multicast messages can be
+
This is mainly relevant for unicast-based discovery, where listening
  obtained by an on-link attacker.  Unicast messages are harder to
+
to discovery traffic requires a MITM attacker; however, an external
  access, but if the transmission is not encrypted they could still be
+
active attacker might be able to learn the server identity by just
  accessed by an attacker with access to network routers or bridges.
+
querying for service information, e.g., via DNS.
  Using multi-link service discovery solutions [RFC7558], external
 
  attackers have to be taken into consideration as well, e.g., when
 
  relaying multicast messages to other links.
 
  
  Server identity privacy can be thwarted by a passive attacker in the
+
==== Information Made Available Via DNS-SD Resource Records ====
  same way as client identity privacy.  Additionally, active attackers
 
  querying for information have to be taken into consideration as well.
 
  This is mainly relevant for unicast-based discovery, where listening
 
  to discovery traffic requires a MITM attacker; however, an external
 
  active attacker might be able to learn the server identity by just
 
  querying for service information, e.g., via DNS.
 
  
3.2.1Information Made Available Via DNS-SD Resource Records
+
DNS-Based Service Discovery (DNS-SD) is defined in [[RFC6763]]. It
 +
allows nodes to publish the availability of an instance of a service
 +
by inserting specific records in the DNS ([[RFC1033]], [[RFC1034]], and
 +
[[RFC1035]]) or by publishing these records locally using multicast DNS
 +
(mDNS) [[RFC6762]].  Available services are described using three types
 +
of records:
  
   DNS-Based Service Discovery (DNS-SD) is defined in [RFC6763].  It
+
PTR Record
  allows nodes to publish the availability of an instance of a service
+
   Associates a service type in the domain with an "instance" name of
   by inserting specific records in the DNS ([RFC1033], [RFC1034], and
+
   this service type.
  [RFC1035]) or by publishing these records locally using multicast DNS
 
  (mDNS) [RFC6762]. Available services are described using three types
 
  of records:
 
  
   PTR Record
+
SRV Record
      Associates a service type in the domain with an "instance" name of
+
   Provides the node name, port number, priority and weight
      this service type.
+
  associated with the service instance, in conformance with
 +
  [[RFC2782]].
  
  SRV Record
+
TXT Record
      Provides the node name, port number, priority and weight
+
  Provides a set of attribute-value pairs describing specific
      associated with the service instance, in conformance with
+
  properties of the service instance.
      [RFC2782].
 
  
  TXT Record
+
==== Privacy Implication of Publishing Service Instance Names ====
      Provides a set of attribute-value pairs describing specific
 
      properties of the service instance.
 
  
3.2.2Privacy Implication of Publishing Service Instance Names
+
In the first phase of discovery, clients obtain all PTR records
 +
associated with a service type in a given naming domainEach PTR
 +
record contains a Service Instance Name defined in Section 4 of
 +
[[RFC6763]]:
  
  In the first phase of discovery, clients obtain all PTR records
+
  Service Instance Name = <Instance> . <Service> . <Domain>
  associated with a service type in a given naming domain.  Each PTR
 
  record contains a Service Instance Name defined in Section 4 of
 
  [RFC6763]:
 
  
    Service Instance Name = <Instance> . <Service> . <Domain>
+
The <Instance> portion of the Service Instance Name is meant to
 +
convey enough information for users of discovery clients to easily
 +
select the desired service instance. Nodes that use DNS-SD over mDNS
 +
[[RFC6762]] in a mobile environment will rely on the specificity of the
 +
instance name to identify the desired service instance. In our
 +
example of users wanting to upload pictures to a laptop in an
 +
Internet cafe, the list of available service instances may look like:
  
  The <Instance> portion of the Service Instance Name is meant to
+
Alice's Images        . _imageStore._tcp . local
  convey enough information for users of discovery clients to easily
+
Alice's Mobile Phone  . _presence._tcp  . local
  select the desired service instance. Nodes that use DNS-SD over mDNS
+
Alice's Notebook      . _presence._tcp  . local
  [RFC6762] in a mobile environment will rely on the specificity of the
+
Bob's Notebook        . _presence._tcp  . local
  instance name to identify the desired service instance. In our
+
Carol's Notebook      . _presence._tcp  . local
  example of users wanting to upload pictures to a laptop in an
 
  Internet cafe, the list of available service instances may look like:
 
  
  Alice's Images        . _imageStore._tcp . local
+
Alice will see the list on her phone and understand intuitively that
  Alice's Mobile Phone  . _presence._tcp  . local
+
she should pick the first item. The discovery will "just work".
  Alice's Notebook      . _presence._tcp  . local
+
(Note that our examples of service names conform to the specification
  Bob's Notebook        . _presence._tcp  . local
+
in Section 4.1 of [[RFC6763]] but may require some character escaping
  Carol's Notebook      . _presence._tcp  . local
+
when entered in conventional DNS software.)
  
  Alice will see the list on her phone and understand intuitively that
+
However, DNS-SD/mDNS will reveal to anybody that Alice is currently
  she should pick the first itemThe discovery will "just work".
+
visiting the Internet cafe.  It further discloses the fact that she
  (Note that our examples of service names conform to the specification
+
uses two devices, shares an image store, and uses a chat application
  in Section 4.1 of [RFC6763] but may require some character escaping
+
supporting the _presence protocol on both of her devices.  She might
  when entered in conventional DNS software.)
+
currently chat with Bob or Carol, as they are also using a _presence
 +
supporting chat applicationThis information is not just available
 +
to devices actively browsing for and offering services but to anybody
 +
passively listening to the network traffic, i.e., a passive on-link
 +
attacker.
  
  However, DNS-SD/mDNS will reveal to anybody that Alice is currently
+
There is, of course, also no authentication requirement to claim a
  visiting the Internet cafe.  It further discloses the fact that she
+
particular instance name, so an active attacker can provide resources
  uses two devices, shares an image store, and uses a chat application
+
that claim to be Alice's but are not.
  supporting the _presence protocol on both of her devices.  She might
 
  currently chat with Bob or Carol, as they are also using a _presence
 
  supporting chat application.  This information is not just available
 
  to devices actively browsing for and offering services but to anybody
 
  passively listening to the network traffic, i.e., a passive on-link
 
  attacker.
 
  
  There is, of course, also no authentication requirement to claim a
+
==== Privacy Implication of Publishing Node Names ====
  particular instance name, so an active attacker can provide resources
 
  that claim to be Alice's but are not.
 
  
3.2.3Privacy Implication of Publishing Node Names
+
The SRV records contain the DNS name of the node publishing the
 +
service.  Typical implementations construct this DNS name by
 +
concatenating the "hostname" of the node with the name of the local
 +
domain. The privacy implications of this practice are reviewed in
 +
[[RFC8117]]. Depending on naming practices, the hostname is either a
 +
strong identifier of the device or, at a minimum, a partial
 +
identifierIt enables tracking of both the device and, by
 +
extension, the device's owner.
  
  The SRV records contain the DNS name of the node publishing the
+
==== Privacy Implication of Publishing Service Attributes ====
  service.  Typical implementations construct this DNS name by
 
  concatenating the "hostname" of the node with the name of the local
 
  domain.  The privacy implications of this practice are reviewed in
 
  [RFC8117].  Depending on naming practices, the hostname is either a
 
  strong identifier of the device or, at a minimum, a partial
 
  identifier.  It enables tracking of both the device and, by
 
  extension, the device's owner.
 
  
3.2.4Privacy Implication of Publishing Service Attributes
+
The TXT record's attribute-value pairs contain information on the
 +
characteristics of the corresponding service instance. This in turn
 +
reveals information about the devices that publish servicesThe
 +
amount of information varies widely with the particular service and
 +
its implementation:
  
  The TXT record's attribute-value pairs contain information on the
+
*  Some attributes, such as the paper size available in a printer,
  characteristics of the corresponding service instance.  This in turn
+
   are the same on many devices and thus only provide limited
   reveals information about the devices that publish services.  The
+
   information to a tracker.
   amount of information varies widely with the particular service and
 
  its implementation:
 
  
  Some attributes, such as the paper size available in a printer,
+
Attributes that have free-form values, such as the name of a
      are the same on many devices and thus only provide limited
+
  directory, may reveal much more information.
      information to a tracker.
 
  
  *  Attributes that have free-form values, such as the name of a
+
Combinations of individual attributes have more information power
      directory, may reveal much more information.
+
than specific attributes and can potentially be used for
 +
"fingerprinting" a specific device.
  
  Combinations of individual attributes have more information power
+
Information contained in TXT records not only breaches privacy by
  than specific attributes and can potentially be used for
+
making devices trackable but might directly contain private
  "fingerprinting" a specific device.
+
information about the user.  For instance, the _presence service
 +
reveals the "chat status" to everyone in the same network.  Users
 +
might not be aware of that.
  
  Information contained in TXT records not only breaches privacy by
+
Further, TXT records often contain version information about
  making devices trackable but might directly contain private
+
services, allowing potential attackers to identify devices running
  information about the user.  For instance, the _presence service
+
exploit-prone versions of a certain service.
  reveals the "chat status" to everyone in the same network.  Users
 
  might not be aware of that.
 
  
  Further, TXT records often contain version information about
+
==== Device Fingerprinting ====
  services, allowing potential attackers to identify devices running
 
  exploit-prone versions of a certain service.
 
  
3.2.5Device Fingerprinting
+
The combination of information published in DNS-SD has the potential
 +
to provide a "fingerprint" of a specific deviceSuch information
 +
includes:
  
  The combination of information published in DNS-SD has the potential
+
*  A list of services published by the device, which can be retrieved
   to provide a "fingerprint" of a specific device. Such information
+
   because the SRV records will point to the same hostname.
  includes:
 
  
  A list of services published by the device, which can be retrieved
+
Specific attributes describing these services.
      because the SRV records will point to the same hostname.
 
  
  Specific attributes describing these services.
+
Port numbers used by the services.
  
  Port numbers used by the services.
+
Priority and weight attributes in the SRV records.
  
  * Priority and weight attributes in the SRV records.
+
This combination of services and attributes will often be sufficient
 +
to identify the version of the software running on a device. If a
 +
device publishes many services with rich sets of attributes, the
 +
combination may be sufficient to identify the specific device and
 +
track its owner.
  
  This combination of services and attributes will often be sufficient
+
An argument is sometimes made that devices providing services can be
  to identify the version of the software running on a deviceIf a
+
identified by observing the local traffic and that trying to hide the
  device publishes many services with rich sets of attributes, the
+
presence of the service is futileHowever, there are good reasons
  combination may be sufficient to identify the specific device and
+
for the discovery service layer to avoid unnecessary exposure:
  track its owner.
 
  
  An argument is sometimes made that devices providing services can be
+
1.  Providing privacy at the discovery layer is of the essence for
  identified by observing the local traffic and that trying to hide the
+
    enabling automatically configured privacy-preserving network
  presence of the service is futile.  However, there are good reasons
+
    applications.  Application layer protocols are not forced to
  for the discovery service layer to avoid unnecessary exposure:
+
    leverage the offered privacy, but if device tracking is not
 +
    prevented at the deeper layers, including the service discovery
 +
    layer, obfuscating a certain service's protocol at the
 +
    application layer is futile.
  
  1Providing privacy at the discovery layer is of the essence for
+
2Further, in the case of mDNS-based discovery, even if the
      enabling automatically configured privacy-preserving network
+
    application layer does not protect privacy, services are
      applications.  Application layer protocols are not forced to
+
    typically provided via unicast, which requires a MITM attacker,
      leverage the offered privacy, but if device tracking is not
+
    whereas identifying services based on multicast discovery
      prevented at the deeper layers, including the service discovery
+
    messages just requires an on-link attacker.
      layer, obfuscating a certain service's protocol at the
 
      application layer is futile.
 
  
  2.  Further, in the case of mDNS-based discovery, even if the
+
The same argument can be extended to say that the pattern of services
      application layer does not protect privacy, services are
+
offered by a device allows for fingerprinting the device.  This may
      typically provided via unicast, which requires a MITM attacker,
+
or may not be true, since we can expect that services will be
      whereas identifying services based on multicast discovery
+
designed or updated to avoid leaking fingerprints.  In any case, the
      messages just requires an on-link attacker.
+
design of the discovery service should avoid making a bad situation
 +
worse and should, as much as possible, avoid providing new
 +
fingerprinting information.
  
  The same argument can be extended to say that the pattern of services
+
==== Privacy Implication of Discovering Services ====
  offered by a device allows for fingerprinting the device.  This may
 
  or may not be true, since we can expect that services will be
 
  designed or updated to avoid leaking fingerprints.  In any case, the
 
  design of the discovery service should avoid making a bad situation
 
  worse and should, as much as possible, avoid providing new
 
  fingerprinting information.
 
  
3.2.6. Privacy Implication of Discovering Services
+
The consumers of services engage in discovery and in doing so reveal
 +
some information, such as the list of services they are interested in
 +
and the domains in which they are looking for the services. When the
 +
clients select specific instances of services, they reveal their
 +
preference for these instances. This can be benign if the service
 +
type is very common, but it could be more problematic for sensitive
 +
services, such as some private messaging services.
  
  The consumers of services engage in discovery and in doing so reveal
+
One way to protect clients would be to somehow encrypt the requested
  some information, such as the list of services they are interested in
+
service types.  Of course, just as we noted in Section 3.2.5, traffic
  and the domains in which they are looking for the services. When the
+
analysis can often reveal the service.
  clients select specific instances of services, they reveal their
 
  preference for these instances.  This can be benign if the service
 
  type is very common, but it could be more problematic for sensitive
 
  services, such as some private messaging services.
 
  
  One way to protect clients would be to somehow encrypt the requested
+
=== Security Considerations ===
  service types.  Of course, just as we noted in Section 3.2.5, traffic
 
  analysis can often reveal the service.
 
  
3.3.  Security Considerations
+
For each of the operations described above, we must also consider
 +
security threats we are concerned about.
  
  For each of the operations described above, we must also consider
+
==== Authenticity, Integrity, and Freshness ====
  security threats we are concerned about.
 
  
3.3.1Authenticity, Integrity, and Freshness
+
Can devices (both servers and clients) trust the information they
 +
receive?  Has it been modified in flight by an adversary?  Can
 +
devices trust the source of the information?  Is the source of
 +
information fresh, i.e., not replayed?  Freshness may or may not be
 +
required depending on whether the discovery process is meant to be
 +
onlineIn some cases, publishing discovery information to a shared
 +
directory or registry, rather than to each online recipient through a
 +
broadcast channel, may suffice.
  
  Can devices (both servers and clients) trust the information they
+
==== Confidentiality ====
  receive?  Has it been modified in flight by an adversary?  Can
 
  devices trust the source of the information?  Is the source of
 
  information fresh, i.e., not replayed?  Freshness may or may not be
 
  required depending on whether the discovery process is meant to be
 
  online.  In some cases, publishing discovery information to a shared
 
  directory or registry, rather than to each online recipient through a
 
  broadcast channel, may suffice.
 
  
3.3.2Confidentiality
+
Confidentiality is about restricting information access to only
 +
authorized individuals. Ideally, this should only be the appropriate
 +
trusted parties, though it can be challenging to define who are "the
 +
appropriate trusted parties."  In some use cases, this may mean that
 +
only mutually authenticated and trusting clients and servers can read
 +
messages sent for one anotherThe process of service discovery in
 +
particular is often used to discover new entities that the device did
 +
not previously know about.  It may be tricky to work out how a device
 +
can have an established trust relationship with a new entity it has
 +
never previously communicated with.
  
  Confidentiality is about restricting information access to only
+
==== Resistance to Dictionary Attacks ====
  authorized individuals.  Ideally, this should only be the appropriate
 
  trusted parties, though it can be challenging to define who are "the
 
  appropriate trusted parties."  In some use cases, this may mean that
 
  only mutually authenticated and trusting clients and servers can read
 
  messages sent for one another.  The process of service discovery in
 
  particular is often used to discover new entities that the device did
 
  not previously know about.  It may be tricky to work out how a device
 
  can have an established trust relationship with a new entity it has
 
  never previously communicated with.
 
  
3.3.3Resistance to Dictionary Attacks
+
It can be tempting to use (publicly computable) hash functions to
 +
obscure sensitive identifiers. This transforms a sensitive unique
 +
identifier, such as an email address, into a "scrambled" but still
 +
unique identifierUnfortunately, simple solutions may be vulnerable
 +
to offline dictionary attacks.
  
  It can be tempting to use (publicly computable) hash functions to
+
==== Resistance to Denial-of-Service Attacks ====
  obscure sensitive identifiers.  This transforms a sensitive unique
 
  identifier, such as an email address, into a "scrambled" but still
 
  unique identifier.  Unfortunately, simple solutions may be vulnerable
 
  to offline dictionary attacks.
 
  
3.3.4.  Resistance to Denial-of-Service Attacks
+
In any protocol where the receiver of messages has to perform
 +
cryptographic operations on those messages, there is a risk of a
 +
brute-force flooding attack causing the receiver to expend excessive
 +
amounts of CPU time and, where applicable, battery power just
 +
processing and discarding those messages.
  
  In any protocol where the receiver of messages has to perform
+
Also, amplification attacks have to be taken into consideration.
  cryptographic operations on those messages, there is a risk of a
+
Messages with larger payloads should only be sent as an answer to a
  brute-force flooding attack causing the receiver to expend excessive
+
query sent by a verified client.
  amounts of CPU time and, where applicable, battery power just
 
  processing and discarding those messages.
 
  
  Also, amplification attacks have to be taken into consideration.
+
==== Resistance to Sender Impersonation ====
  Messages with larger payloads should only be sent as an answer to a
 
  query sent by a verified client.
 
  
3.3.5Resistance to Sender Impersonation
+
Sender impersonation is an attack wherein messages, such as service
 +
offers, are forged by entities who do not possess the corresponding
 +
secret key materialThese attacks may be used to learn the identity
 +
of a communicating party, actively or passively.
  
  Sender impersonation is an attack wherein messages, such as service
+
==== Sender Deniability ====
  offers, are forged by entities who do not possess the corresponding
 
  secret key material.  These attacks may be used to learn the identity
 
  of a communicating party, actively or passively.
 
  
3.3.6Sender Deniability
+
Deniability of sender activity, e.g., of broadcasting a discovery
 +
request, may be desirable or necessary in some use casesThis
 +
property ensures that eavesdroppers cannot prove senders issued a
 +
specific message destined for one or more peers.
  
  Deniability of sender activity, e.g., of broadcasting a discovery
+
=== Operational Considerations ===
  request, may be desirable or necessary in some use cases.  This
 
  property ensures that eavesdroppers cannot prove senders issued a
 
  specific message destined for one or more peers.
 
  
3.4.  Operational Considerations
+
==== Power Management ====
  
3.4.1. Power Management
+
Many modern devices, especially battery-powered devices, use power
 +
management techniques to conserve energy. One such technique is for
 +
a device to transfer information about itself to a proxy, which will
 +
act on behalf of the device for some functions while the device
 +
itself goes to sleep to reduce power consumption. When the proxy
 +
determines that some action is required, which only the device itself
 +
can perform, the proxy may have some way to wake the device, as
 +
described for example in [SLEEP-PROXY].
  
  Many modern devices, especially battery-powered devices, use power
+
In many cases, the device may not trust the network proxy
  management techniques to conserve energyOne such technique is for
+
sufficiently to share all its confidential key material with the
  a device to transfer information about itself to a proxy, which will
+
proxyThis poses challenges for combining private discovery that
  act on behalf of the device for some functions while the device
+
relies on per-query cryptographic operations with energy-saving
  itself goes to sleep to reduce power consumption.  When the proxy
+
techniques that rely on having (somewhat untrusted) network proxies
  determines that some action is required, which only the device itself
+
answer queries on behalf of sleeping devices.
  can perform, the proxy may have some way to wake the device, as
 
  described for example in [SLEEP-PROXY].
 
  
  In many cases, the device may not trust the network proxy
+
==== Protocol Efficiency ====
  sufficiently to share all its confidential key material with the
 
  proxy.  This poses challenges for combining private discovery that
 
  relies on per-query cryptographic operations with energy-saving
 
  techniques that rely on having (somewhat untrusted) network proxies
 
  answer queries on behalf of sleeping devices.
 
  
3.4.2Protocol Efficiency
+
Creating a discovery protocol that has the desired security
 +
properties may result in a design that is not efficient. To perform
 +
the necessary operations, the protocol may need to send and receive a
 +
large number of network packets or require an inordinate amount of
 +
multicast transmissions. This may consume an unreasonable amount of
 +
network capacity, particularly problematic when it is a shared
 +
wireless spectrumFurther, it may cause an unnecessary level of
 +
power consumption, which is particularly problematic on battery
 +
devices and may result in the discovery process being slow.
  
  Creating a discovery protocol that has the desired security
+
It is a difficult challenge to design a discovery protocol that has
  properties may result in a design that is not efficient.  To perform
+
the property of obscuring the details of what it is doing from
  the necessary operations, the protocol may need to send and receive a
+
unauthorized observers while also managing to perform efficiently.
  large number of network packets or require an inordinate amount of
 
  multicast transmissions.  This may consume an unreasonable amount of
 
  network capacity, particularly problematic when it is a shared
 
  wireless spectrum.  Further, it may cause an unnecessary level of
 
  power consumption, which is particularly problematic on battery
 
  devices and may result in the discovery process being slow.
 
  
  It is a difficult challenge to design a discovery protocol that has
+
==== Secure Initialization and Trust Models ====
  the property of obscuring the details of what it is doing from
 
  unauthorized observers while also managing to perform efficiently.
 
  
3.4.3.  Secure Initialization and Trust Models
+
One of the challenges implicit in the preceding discussions is that
 +
whenever we discuss "trusted entities" versus "untrusted entities",
 +
there needs to be some way that trust is initially established to
 +
convert an "untrusted entity" into a "trusted entity".
  
  One of the challenges implicit in the preceding discussions is that
+
The purpose of this document is not to define the specific way in
  whenever we discuss "trusted entities" versus "untrusted entities",
+
which trust can be established.  Protocol designers may rely on a
  there needs to be some way that trust is initially established to
+
number of existing technologies, including PKI, Trust On First Use
  convert an "untrusted entity" into a "trusted entity".
+
(TOFU), or the use of a short passphrase or PIN with cryptographic
 +
algorithms, such as Secure Remote Password (SRP) [[RFC5054]] or a
 +
Password-Authenticated Key Exchange like J-PAKE [[RFC8236]] using a
 +
Schnorr Non-interactive Zero-Knowledge Proof [[RFC8235]].
  
  The purpose of this document is not to define the specific way in
+
Protocol designers should consider a specific usability pitfall when
  which trust can be establishedProtocol designers may rely on a
+
trust is established immediately prior to performing discovery.
  number of existing technologies, including PKI, Trust On First Use
+
Users will have a tendency to "click OK" in order to achieve their
  (TOFU), or the use of a short passphrase or PIN with cryptographic
+
taskThis implicit vulnerability is avoided if the trust
  algorithms, such as Secure Remote Password (SRP) [RFC5054] or a
+
establishment requires more significant participation of the user,
  Password-Authenticated Key Exchange like J-PAKE [RFC8236] using a
+
such as entering a password or PIN.
  Schnorr Non-interactive Zero-Knowledge Proof [RFC8235].
 
  
  Protocol designers should consider a specific usability pitfall when
+
==== External Dependencies ====
  trust is established immediately prior to performing discovery.
 
  Users will have a tendency to "click OK" in order to achieve their
 
  task.  This implicit vulnerability is avoided if the trust
 
  establishment requires more significant participation of the user,
 
  such as entering a password or PIN.
 
  
3.4.4External Dependencies
+
Trust establishment may depend on external parties. Optionally, this
 +
might involve synchronous communication. Systems that have such a
 +
dependency may be attacked by interfering with communication to
 +
external dependenciesWhere possible, such dependencies should be
 +
minimized.  Local trust models are best for secure initialization in
 +
the presence of active attackers.
  
  Trust establishment may depend on external parties.  Optionally, this
+
== Requirements for a DNS-SD Privacy Extension ==
  might involve synchronous communication.  Systems that have such a
 
  dependency may be attacked by interfering with communication to
 
  external dependencies.  Where possible, such dependencies should be
 
  minimized.  Local trust models are best for secure initialization in
 
  the presence of active attackers.
 
  
4.  Requirements for a DNS-SD Privacy Extension
+
Given the considerations discussed in the previous sections, we state
 +
requirements for privacy preserving DNS-SD in the following
 +
subsections.
  
  Given the considerations discussed in the previous sections, we state
+
Defining a solution according to these requirements is intended to
  requirements for privacy preserving DNS-SD in the following
+
lead to a solution that does not transmit privacy-violating DNS-SD
  subsections.
+
messages and further does not open pathways to new attacks against
 +
the operation of DNS-SD.
  
  Defining a solution according to these requirements is intended to
+
However, while this document gives advice on which privacy protecting
  lead to a solution that does not transmit privacy-violating DNS-SD
+
mechanisms should be used on deeper-layer network protocols and on
  messages and further does not open pathways to new attacks against
+
how to actually connect to services in a privacy-preserving way,
  the operation of DNS-SD.
+
stating corresponding requirements is out of the scope of this
 +
document.  To mitigate attacks against privacy on lower layers, both
 +
servers and clients must use privacy options available at lower
 +
layers and, for example, avoid publishing static IPv4 or IPv6
 +
addresses or static IEEE 802 Media Access Control (MAC) addresses.
 +
For services advertised on a single network link, link-local IP
 +
addresses should be used; see [[RFC3927]] and [[RFC4291]] for IPv4 and
 +
IPv6, respectively.  Static servers advertising services globally via
 +
DNS can hide their IP addresses from unauthorized clients using the
 +
split mode topology shown in Encrypted Server Name Indication [ESNI].
 +
Hiding static MAC addresses can be achieved via MAC address
 +
randomization (see [[RFC7844]]).
  
  However, while this document gives advice on which privacy protecting
+
=== Private Client Requirements ===
  mechanisms should be used on deeper-layer network protocols and on
 
  how to actually connect to services in a privacy-preserving way,
 
  stating corresponding requirements is out of the scope of this
 
  document.  To mitigate attacks against privacy on lower layers, both
 
  servers and clients must use privacy options available at lower
 
  layers and, for example, avoid publishing static IPv4 or IPv6
 
  addresses or static IEEE 802 Media Access Control (MAC) addresses.
 
  For services advertised on a single network link, link-local IP
 
  addresses should be used; see [RFC3927] and [RFC4291] for IPv4 and
 
  IPv6, respectively.  Static servers advertising services globally via
 
  DNS can hide their IP addresses from unauthorized clients using the
 
  split mode topology shown in Encrypted Server Name Indication [ESNI].
 
  Hiding static MAC addresses can be achieved via MAC address
 
  randomization (see [RFC7844]).
 
  
4.1.  Private Client Requirements
+
For all three scenarios described in Section 3.1, client privacy
 +
requires DNS-SD messages to:
  
  For all three scenarios described in Section 3.1, client privacy
+
1. Avoid disclosure of the client's identity, either directly or via
  requires DNS-SD messages to:
+
    inference, to nodes other than select servers.
  
  1.  Avoid disclosure of the client's identity, either directly or via
+
2.  Avoid exposure of linkable identifiers that allow tracing client
      inference, to nodes other than select servers.
+
    devices.
  
  2.  Avoid exposure of linkable identifiers that allow tracing client
+
3.  Avoid disclosure of the client's interest in specific service
      devices.
+
    instances or service types to nodes other than select servers.
  
  3.  Avoid disclosure of the client's interest in specific service
+
When listing and resolving services via current DNS-SD deployments,
      instances or service types to nodes other than select servers.
+
clients typically disclose their interest in specific services types
 +
and specific instances of these types, respectively.
  
  When listing and resolving services via current DNS-SD deployments,
+
In addition to the exposure and disclosure risks noted above,
  clients typically disclose their interest in specific services types
+
protocols and implementations will have to consider fingerprinting
  and specific instances of these types, respectively.
+
attacks (see Section 3.2.5) that could retrieve similar information.
  
  In addition to the exposure and disclosure risks noted above,
+
=== Private Server Requirements ===
  protocols and implementations will have to consider fingerprinting
 
  attacks (see Section 3.2.5) that could retrieve similar information.
 
  
4.2.  Private Server Requirements
+
Servers like the "printer" discussed in Section 3.1.1 are public, but
 +
the servers discussed in Sections 3.1.2 and 3.1.3 are, by essence,
 +
private.  Server privacy requires DNS-SD messages to:
  
  Servers like the "printer" discussed in Section 3.1.1 are public, but
+
1. Avoid disclosure of the server's identity, either directly or via
  the servers discussed in Sections 3.1.2 and 3.1.3 are, by essence,
+
    inference, to nodes other than authorized clients.  In
  privateServer privacy requires DNS-SD messages to:
+
    particular, servers must avoid publishing static identifiers,
 +
    such as hostnames or service names. When those fields are
 +
    required by the protocol, servers should publish randomized
 +
    values(See [[RFC8117]] for a discussion of hostnames.)
  
  1.  Avoid disclosure of the server's identity, either directly or via
+
2.  Avoid exposure of linkable identifiers that allow tracing
      inference, to nodes other than authorized clients.  In
+
    servers.
      particular, servers must avoid publishing static identifiers,
 
      such as hostnames or service names.  When those fields are
 
      required by the protocol, servers should publish randomized
 
      values.  (See [RFC8117] for a discussion of hostnames.)
 
  
  2.  Avoid exposure of linkable identifiers that allow tracing
+
3.  Avoid disclosure to unauthorized clients of Service Instance
      servers.
+
    Names or service types of offered services.
  
  3.  Avoid disclosure to unauthorized clients of Service Instance
+
4.  Avoid disclosure to unauthorized clients of information about the
      Names or service types of offered services.
+
    services they offer.
  
  4.  Avoid disclosure to unauthorized clients of information about the
+
5.  Avoid disclosure of static IPv4 or IPv6 addresses.
      services they offer.
 
  
  5. Avoid disclosure of static IPv4 or IPv6 addresses.
+
When offering services via current DNS-SD deployments, servers
 +
typically disclose their hostnames (SRV, A/AAAA), instance names of
 +
offered services (PTR, SRV), and information about services (TXT).
 +
Heeding these requirements protects a server's privacy on the DNS-SD
 +
level.
  
  When offering services via current DNS-SD deployments, servers
+
The current DNS-SD user interfaces present the list of discovered
  typically disclose their hostnames (SRV, A/AAAA), instance names of
+
service names to the users and let them pick a service from the list.
  offered services (PTR, SRV), and information about services (TXT).
+
Using random identifiers for service names renders that UI flow
  Heeding these requirements protects a server's privacy on the DNS-SD
+
unusable.  Privacy-respecting discovery protocols will have to solve
  level.
+
this issue, for example, by presenting authenticated or decrypted
 +
service names instead of the randomized values.
  
  The current DNS-SD user interfaces present the list of discovered
+
=== Security and Operation ===
  service names to the users and let them pick a service from the list.
 
  Using random identifiers for service names renders that UI flow
 
  unusable.  Privacy-respecting discovery protocols will have to solve
 
  this issue, for example, by presenting authenticated or decrypted
 
  service names instead of the randomized values.
 
  
4.3.  Security and Operation
+
In order to be secure and feasible, a DNS-SD privacy extension needs
 +
to consider security and operational requirements including:
  
  In order to be secure and feasible, a DNS-SD privacy extension needs
+
1.  Avoiding significant CPU overhead on nodes or significantly
  to consider security and operational requirements including:
+
    higher network load.  Such overhead or load would make nodes
 +
    vulnerable to denial-of-service attacks.  Further, it would
 +
    increase power consumption, which is damaging for IoT devices.
  
  1.  Avoiding significant CPU overhead on nodes or significantly
+
2.  Avoiding designs in which a small message can trigger a large
      higher network load.  Such overhead or load would make nodes
+
    amount of traffic towards an unverified address, as this could be
      vulnerable to denial-of-service attacks.  Further, it would
+
    exploited in amplification attacks.
      increase power consumption, which is damaging for IoT devices.
 
  
  2.  Avoiding designs in which a small message can trigger a large
+
== IANA Considerations ==
      amount of traffic towards an unverified address, as this could be
 
      exploited in amplification attacks.
 
  
5. IANA Considerations
+
This document has no IANA actions.
  
  This document has no IANA actions.
+
== References ==
 
 
6.  References
 
  
6.1.  Normative References
+
=== Normative References ===
  
  [RFC6762]  Cheshire, S. and M. Krochmal, "Multicast DNS", RFC 6762,
+
[[RFC6762]]  Cheshire, S. and M. Krochmal, "Multicast DNS", [[RFC6762|RFC 6762]],
              DOI 10.17487/RFC6762, February 2013,
+
          DOI 10.17487/RFC6762, February 2013,
              <https://www.rfc-editor.org/info/rfc6762>.
+
          <https://www.rfc-editor.org/info/rfc6762>.
  
  [RFC6763]  Cheshire, S. and M. Krochmal, "DNS-Based Service
+
[[RFC6763]]  Cheshire, S. and M. Krochmal, "DNS-Based Service
              Discovery", RFC 6763, DOI 10.17487/RFC6763, February 2013,
+
          Discovery", [[RFC6763|RFC 6763]], DOI 10.17487/RFC6763, February 2013,
              <https://www.rfc-editor.org/info/rfc6763>.
+
          <https://www.rfc-editor.org/info/rfc6763>.
  
6.2.  Informative References
+
=== Informative References ===
  
  [ESNI]    Rescorla, E., Oku, K., Sullivan, N., and C. A. Wood, "TLS
+
[ESNI]    Rescorla, E., Oku, K., Sullivan, N., and C. A. Wood, "TLS
              Encrypted Client Hello", Work in Progress, Internet-Draft,
+
          Encrypted Client Hello", Work in Progress, Internet-Draft,
              draft-ietf-tls-esni-07, June 1, 2020,
+
          draft-ietf-tls-esni-07, June 1, 2020,
              <https://tools.ietf.org/html/draft-ietf-tls-esni-07>.
+
          <https://tools.ietf.org/html/draft-ietf-tls-esni-07>.
  
  [K17]      Kaiser, D., "Efficient Privacy-Preserving
+
[K17]      Kaiser, D., "Efficient Privacy-Preserving
              Configurationless Service Discovery Supporting Multi-Link
+
          Configurationless Service Discovery Supporting Multi-Link
              Networks", August 2017,
+
          Networks", August 2017,
              <https://nbn-resolving.de/urn:nbn:de:bsz:352-0-422757>.
+
          <https://nbn-resolving.de/urn:nbn:de:bsz:352-0-422757>.
  
  [KW14a]    Kaiser, D. and M. Waldvogel, "Adding Privacy to Multicast
+
[KW14a]    Kaiser, D. and M. Waldvogel, "Adding Privacy to Multicast
              DNS Service Discovery", DOI 10.1109/TrustCom.2014.107,
+
          DNS Service Discovery", DOI 10.1109/TrustCom.2014.107,
              September 2014, <https://ieeexplore.ieee.org/xpl/
+
          September 2014, <https://ieeexplore.ieee.org/xpl/
              articleDetails.jsp?arnumber=7011331>.
+
          articleDetails.jsp?arnumber=7011331>.
  
  [KW14b]    Kaiser, D. and M. Waldvogel, "Efficient Privacy Preserving
+
[KW14b]    Kaiser, D. and M. Waldvogel, "Efficient Privacy Preserving
              Multicast DNS Service Discovery",
+
          Multicast DNS Service Discovery",
              DOI 10.1109/HPCC.2014.141, August 2014,
+
          DOI 10.1109/HPCC.2014.141, August 2014,
              <https://ieeexplore.ieee.org/xpl/
+
          <https://ieeexplore.ieee.org/xpl/
              articleDetails.jsp?arnumber=7056899>.
+
          articleDetails.jsp?arnumber=7056899>.
  
  [RFC1033]  Lottor, M., "Domain Administrators Operations Guide",
+
[[RFC1033]]  Lottor, M., "Domain Administrators Operations Guide",
              RFC 1033, DOI 10.17487/RFC1033, November 1987,
+
          [[RFC1033|RFC 1033]], DOI 10.17487/RFC1033, November 1987,
              <https://www.rfc-editor.org/info/rfc1033>.
+
          <https://www.rfc-editor.org/info/rfc1033>.
  
  [RFC1034]  Mockapetris, P., "Domain names - concepts and facilities",
+
[[RFC1034]]  Mockapetris, P., "Domain names - concepts and facilities",
              STD 13, RFC 1034, DOI 10.17487/RFC1034, November 1987,
+
          [[STD13|STD 13]], [[RFC1034|RFC 1034]], DOI 10.17487/RFC1034, November 1987,
              <https://www.rfc-editor.org/info/rfc1034>.
+
          <https://www.rfc-editor.org/info/rfc1034>.
  
  [RFC1035]  Mockapetris, P., "Domain names - implementation and
+
[[RFC1035]]  Mockapetris, P., "Domain names - implementation and
              specification", STD 13, RFC 1035, DOI 10.17487/RFC1035,
+
          specification", [[STD13|STD 13]], [[RFC1035|RFC 1035]], DOI 10.17487/RFC1035,
              November 1987, <https://www.rfc-editor.org/info/rfc1035>.
+
          November 1987, <https://www.rfc-editor.org/info/rfc1035>.
  
  [RFC2782]  Gulbrandsen, A., Vixie, P., and L. Esibov, "A DNS RR for
+
[[RFC2782]]  Gulbrandsen, A., Vixie, P., and L. Esibov, "A DNS RR for
              specifying the location of services (DNS SRV)", RFC 2782,
+
          specifying the location of services (DNS SRV)", [[RFC2782|RFC 2782]],
              DOI 10.17487/RFC2782, February 2000,
+
          DOI 10.17487/RFC2782, February 2000,
              <https://www.rfc-editor.org/info/rfc2782>.
+
          <https://www.rfc-editor.org/info/rfc2782>.
  
  [RFC3927]  Cheshire, S., Aboba, B., and E. Guttman, "Dynamic
+
[[RFC3927]]  Cheshire, S., Aboba, B., and E. Guttman, "Dynamic
              Configuration of IPv4 Link-Local Addresses", RFC 3927,
+
          Configuration of IPv4 Link-Local Addresses", [[RFC3927|RFC 3927]],
              DOI 10.17487/RFC3927, May 2005,
+
          DOI 10.17487/RFC3927, May 2005,
              <https://www.rfc-editor.org/info/rfc3927>.
+
          <https://www.rfc-editor.org/info/rfc3927>.
  
  [RFC4291]  Hinden, R. and S. Deering, "IP Version 6 Addressing
+
[[RFC4291]]  Hinden, R. and S. Deering, "IP Version 6 Addressing
              Architecture", RFC 4291, DOI 10.17487/RFC4291, February
+
          Architecture", [[RFC4291|RFC 4291]], DOI 10.17487/RFC4291, February
              2006, <https://www.rfc-editor.org/info/rfc4291>.
+
          2006, <https://www.rfc-editor.org/info/rfc4291>.
  
  [RFC5054]  Taylor, D., Wu, T., Mavrogiannopoulos, N., and T. Perrin,
+
[[RFC5054]]  Taylor, D., Wu, T., Mavrogiannopoulos, N., and T. Perrin,
              "Using the Secure Remote Password (SRP) Protocol for TLS
+
          "Using the Secure Remote Password (SRP) Protocol for TLS
              Authentication", RFC 5054, DOI 10.17487/RFC5054, November
+
          Authentication", [[RFC5054|RFC 5054]], DOI 10.17487/RFC5054, November
              2007, <https://www.rfc-editor.org/info/rfc5054>.
+
          2007, <https://www.rfc-editor.org/info/rfc5054>.
  
  [RFC7558]  Lynn, K., Cheshire, S., Blanchet, M., and D. Migault,
+
[[RFC7558]]  Lynn, K., Cheshire, S., Blanchet, M., and D. Migault,
              "Requirements for Scalable DNS-Based Service Discovery
+
          "Requirements for Scalable DNS-Based Service Discovery
              (DNS-SD) / Multicast DNS (mDNS) Extensions", RFC 7558,
+
          (DNS-SD) / Multicast DNS (mDNS) Extensions", [[RFC7558|RFC 7558]],
              DOI 10.17487/RFC7558, July 2015,
+
          DOI 10.17487/RFC7558, July 2015,
              <https://www.rfc-editor.org/info/rfc7558>.
+
          <https://www.rfc-editor.org/info/rfc7558>.
  
  [RFC7844]  Huitema, C., Mrugalski, T., and S. Krishnan, "Anonymity
+
[[RFC7844]]  Huitema, C., Mrugalski, T., and S. Krishnan, "Anonymity
              Profiles for DHCP Clients", RFC 7844,
+
          Profiles for DHCP Clients", [[RFC7844|RFC 7844]],
              DOI 10.17487/RFC7844, May 2016,
+
          DOI 10.17487/RFC7844, May 2016,
              <https://www.rfc-editor.org/info/rfc7844>.
+
          <https://www.rfc-editor.org/info/rfc7844>.
  
  [RFC8117]  Huitema, C., Thaler, D., and R. Winter, "Current Hostname
+
[[RFC8117]]  Huitema, C., Thaler, D., and R. Winter, "Current Hostname
              Practice Considered Harmful", RFC 8117,
+
          Practice Considered Harmful", [[RFC8117|RFC 8117]],
              DOI 10.17487/RFC8117, March 2017,
+
          DOI 10.17487/RFC8117, March 2017,
              <https://www.rfc-editor.org/info/rfc8117>.
+
          <https://www.rfc-editor.org/info/rfc8117>.
  
  [RFC8235]  Hao, F., Ed., "Schnorr Non-interactive Zero-Knowledge
+
[[RFC8235]]  Hao, F., Ed., "Schnorr Non-interactive Zero-Knowledge
              Proof", RFC 8235, DOI 10.17487/RFC8235, September 2017,
+
          Proof", [[RFC8235|RFC 8235]], DOI 10.17487/RFC8235, September 2017,
              <https://www.rfc-editor.org/info/rfc8235>.
+
          <https://www.rfc-editor.org/info/rfc8235>.
  
  [RFC8236]  Hao, F., Ed., "J-PAKE: Password-Authenticated Key Exchange
+
[[RFC8236]]  Hao, F., Ed., "J-PAKE: Password-Authenticated Key Exchange
              by Juggling", RFC 8236, DOI 10.17487/RFC8236, September
+
          by Juggling", [[RFC8236|RFC 8236]], DOI 10.17487/RFC8236, September
              2017, <https://www.rfc-editor.org/info/rfc8236>.
+
          2017, <https://www.rfc-editor.org/info/rfc8236>.
  
  [SLEEP-PROXY]
+
[SLEEP-PROXY]
              Cheshire, S., "Understanding Sleep Proxy Service",
+
          Cheshire, S., "Understanding Sleep Proxy Service",
              December 2009,
+
          December 2009,
              <http://stuartcheshire.org/SleepProxy/index.html>.
+
          <http://stuartcheshire.org/SleepProxy/index.html>.
  
  [SRP]      Lemon, T. and S. Cheshire, "Service Registration Protocol
+
[SRP]      Lemon, T. and S. Cheshire, "Service Registration Protocol
              for DNS-Based Service Discovery", Work in Progress,
+
          for DNS-Based Service Discovery", Work in Progress,
              Internet-Draft, draft-ietf-dnssd-srp-04, July 13, 2020,
+
          Internet-Draft, draft-ietf-dnssd-srp-04, July 13, 2020,
              <https://tools.ietf.org/html/draft-ietf-dnssd-srp-04>.
+
          <https://tools.ietf.org/html/draft-ietf-dnssd-srp-04>.
  
 
Acknowledgments
 
Acknowledgments
  
  This document incorporates many contributions from Stuart Cheshire
+
This document incorporates many contributions from Stuart Cheshire
  and Chris Wood.  Thanks to Florian Adamsky for extensive review and
+
and Chris Wood.  Thanks to Florian Adamsky for extensive review and
  suggestions on the organization of the threat model.  Thanks to Barry
+
suggestions on the organization of the threat model.  Thanks to Barry
  Leiba for an extensive review.  Thanks to Roman Danyliw, Ben Kaduk,
+
Leiba for an extensive review.  Thanks to Roman Danyliw, Ben Kaduk,
  Adam Roach, and Alissa Cooper for their comments during IESG review.
+
Adam Roach, and Alissa Cooper for their comments during IESG review.
  
 
Authors' Addresses
 
Authors' Addresses
  
  Christian Huitema
+
Christian Huitema
  Private Octopus Inc.
+
Private Octopus Inc.
  Friday Harbor, WA 98250
+
Friday Harbor, WA 98250
  United States of America
+
United States of America
  
+
  URI:  http://privateoctopus.com/
+
URI:  http://privateoctopus.com/
  
 +
Daniel Kaiser
 +
University of Luxembourg
 +
6, avenue de la Fonte
 +
L-4364 Esch-sur-Alzette
 +
Luxembourg
  
  Daniel Kaiser
+
  University of Luxembourg
+
URI:  https://secan-lab.uni.lu/
  6, avenue de la Fonte
 
  L-4364 Esch-sur-Alzette
 
  Luxembourg
 
  
+
[[Category:Informational]]
  URI:  https://secan-lab.uni.lu/
 

Latest revision as of 21:38, 5 May 2021



Internet Engineering Task Force (IETF) C. Huitema Request for Comments: 8882 Private Octopus Inc. Category: Informational D. Kaiser ISSN: 2070-1721 University of Luxembourg

                                                      September 2020
DNS-Based Service Discovery (DNS-SD) Privacy and Security Requirements

Abstract

DNS-SD (DNS-based Service Discovery) normally discloses information about devices offering and requesting services. This information includes hostnames, network parameters, and possibly a further description of the corresponding service instance. Especially when mobile devices engage in DNS-based Service Discovery at a public hotspot, serious privacy problems arise. We analyze the requirements of a privacy-respecting discovery service.

Status of This Memo

This document is not an Internet Standards Track specification; it is published for informational purposes.

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Not all documents approved by the IESG are 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 https://www.rfc-editor.org/info/rfc8882.

Copyright Notice

Copyright (c) 2020 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 as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.

1. Introduction 2. Threat Model 3. Threat Analysis

 3.1.  Service Discovery Scenarios
   3.1.1.  Private Client and Public Server
   3.1.2.  Private Client and Private Server
   3.1.3.  Wearable Client and Server
 3.2.  DNS-SD Privacy Considerations
   3.2.1.  Information Made Available Via DNS-SD Resource Records
   3.2.2.  Privacy Implication of Publishing Service Instance
           Names
   3.2.3.  Privacy Implication of Publishing Node Names
   3.2.4.  Privacy Implication of Publishing Service Attributes
   3.2.5.  Device Fingerprinting
   3.2.6.  Privacy Implication of Discovering Services
 3.3.  Security Considerations
   3.3.1.  Authenticity, Integrity, and Freshness
   3.3.2.  Confidentiality
   3.3.3.  Resistance to Dictionary Attacks
   3.3.4.  Resistance to Denial-of-Service Attacks
   3.3.5.  Resistance to Sender Impersonation
   3.3.6.  Sender Deniability
 3.4.  Operational Considerations
   3.4.1.  Power Management
   3.4.2.  Protocol Efficiency
   3.4.3.  Secure Initialization and Trust Models
   3.4.4.  External Dependencies

4. Requirements for a DNS-SD Privacy Extension

 4.1.  Private Client Requirements
 4.2.  Private Server Requirements
 4.3.  Security and Operation

5. IANA Considerations 6. References

 6.1.  Normative References
 6.2.  Informative References

Acknowledgments Authors' Addresses

Introduction

DNS-Based Service Discovery (DNS-SD) RFC6763 over Multicast DNS (mDNS) RFC6762 enables zero-configuration 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 user's privacy. These privacy issues and potential solutions are discussed in [KW14a], [KW14b], and [K17]. While the multicast nature of mDNS makes these risks obvious, most risks derive from the observability of transactions. These risks also need to be mitigated when using server-based variants of DNS-SD.

There are cases when nodes connected to a network want to provide or consume services without exposing their identities to the other parties connected to the same network. Consider, for example, a traveler wanting to upload pictures from a phone to a laptop when both are connected to the Wi-Fi network of an Internet cafe, or two travelers who want to share files between their laptops when waiting for their plane in an airport lounge.

We expect that these exchanges will start with a discovery procedure using DNS-SD over mDNS. One of the devices will publish the availability of a service, such as a picture library or a file store in our examples. The user of the other device will discover this service and then connect to it.

When analyzing these scenarios in Section 3.1, we find that the DNS- SD messages leak identifying information, such as the Service Instance Name, the hostname, or service properties. We use the following definitions:

Identity

  In this document, the term "identity" refers to the identity of
  the entity (legal person) operating a device.

Disclosing an Identity

  In this document, "disclosing an identity" means showing the
  identity of operating entities to devices external to the
  discovery process, e.g., devices on the same network link that are
  listening to the network traffic but are not actually involved in
  the discovery process.  This document focuses on identity
  disclosure by data conveyed via messages on the service discovery
  protocol layer.  Still, identity leaks on deeper layers, e.g., the
  IP layer, are mentioned.

Disclosing Information

  In this document, "disclosing information" is also focused on
  disclosure of data conveyed via messages on the service discovery
  protocol layer, including both identity-revealing information and
  other still potentially sensitive data.

Threat Model

This document considers the following attacker types sorted by increasing power. All these attackers can either be passive (they just listen to network traffic they have access to) or active (they additionally can craft and send malicious packets).

external

  An external attacker is not on the same network link as victim
  devices engaging in service discovery; thus, the external attacker
  is in a different multicast domain.

on-link

  An on-link attacker is on the same network link as victim devices
  engaging in service discovery; thus, the on-link attacker is in
  the same multicast domain.  This attacker can also mount all
  attacks an external attacker can mount.

MITM

  A Man-in-the-Middle (MITM) attacker either controls (parts of) a
  network link or can trick two parties to send traffic via the
  attacker; thus, the MITM attacker has access to unicast traffic
  between devices engaging in service discovery.  This attacker can
  also mount all attacks an on-link attacker can mount.

Threat Analysis

In this section, we analyze how the attackers described in the previous section might threaten the privacy of entities operating devices engaging in service discovery. We focus on attacks leveraging data transmitted in service discovery protocol messages.

Service Discovery Scenarios

In this section, we review common service discovery scenarios and discuss privacy threats and their privacy requirements. In all three of these common scenarios, the attacker is of the type passive on- link.

Private Client and Public Server

Perhaps the simplest private discovery scenario involves a single client connecting to a public server through a public network. A common example would be a traveler using a publicly available printer in a business center, in a hotel, or at an airport.

                                    ( Taking notes:
                                    ( David is printing
                                    ( a document.
                                     21:38, 5 May 2021 (UTC)21:38, 5 May 2021 (UTC)~
                                                 o
        ___                                        o   ___
       /   \                                         _|___|_
       |   |   client                server           |* *|
        \_/      __                                    \_/
         |      / /   Discovery   +----------+          |
        /|\    /_/  <-----------> |  +----+  |         /|\
       / | \__/                   +--|    |--+        / | \
      /  |                           |____/          /  |  \
     /   |                                          /   |   \
        / \                                            / \
       /   \                                          /   \
      /     \                                        /     \
     /       \                                      /       \
    /         \                                    /         \
       David                                        Adversary

In that scenario, the server is public and wants to be discovered, but the client is private. The adversary will be listening to the network traffic, trying to identify the visitors' devices and their activity. Identifying devices leads to identifying people, either for surveillance of these individuals in the physical world or as a preliminary step for a targeted cyber attack.

The requirement in that scenario is that the discovery activity should not disclose the identity of the client.

Private Client and Private Server

The second private discovery scenario involves a private client connecting to a private server. A common example would be two people engaging in a collaborative application in a public place, such as an airport's lounge.

                                       ( Taking notes:
                                       ( David is meeting
                                       ( with Stuart.
                                         21:38, 5 May 2021 (UTC)21:38, 5 May 2021 (UTC)~
                                                    o
        ___                               ___         o   ___
       /   \                             /   \          _|___|_
       |   |   server          client    |   |           |* *|
        \_/      __               __      \_/             \_/
         |      / /   Discovery   \ \      |               |
        /|\    /_/  <----------->  \_\    /|\             /|\
       / | \__/                       \__/ | \           / | \
      /  |                                 |  \         /  |  \
     /   |                                 |   \       /   |   \
        / \                               / \             / \
       /   \                             /   \           /   \
      /     \                           /     \         /     \
     /       \                         /       \       /       \
    /         \                       /         \     /         \
      David                              Stuart        Adversary

In that scenario, the collaborative application on one of the devices will act as a server, and the application on the other device will act as a client. The server wants to be discovered by the client but has no desire to be discovered by anyone else. The adversary will be listening to network traffic, attempting to discover the identity of devices as in the first scenario and also attempting to discover the patterns of traffic, as these patterns reveal the business and social interactions between the owners of the devices.

The requirement in that scenario is that the discovery activity should not disclose the identity of either the client or the server nor reveal the business and social interactions between the owners of the devices.

Wearable Client and Server

The third private discovery scenario involves wearable devices. A typical example would be the watch on someone's wrist connecting to the phone in their pocket.

                                    ( Taking notes:
                                    ( David is here. His watch is
                                    ( talking to his phone.
                                      21:38, 5 May 2021 (UTC)21:38, 5 May 2021 (UTC)~
                                                  o
        ___                                         o  ___
       /   \                                         _|___|_
       |   |   client                                 |* *|
        \_/                                            \_/
         |     _/                                       |
        /|\   //                                       /|\
       / | \__/  ^                                    / | \
      /  |__     | Discovery                         /  |  \
     /   |\ \    v                                  /   |   \
        / \\_\                                         / \
       /   \   server                                 /   \
      /     \                                        /     \
     /       \                                      /       \
    /         \                                    /         \
       David                                        Adversary

This third scenario is in many ways similar to the second scenario. It involves two devices, one acting as server and the other acting as client, and it leads to the same requirement of the discovery traffic not disclosing the identity of either the client or the server. The main difference is that the devices are managed by a single owner, which can lead to different methods for establishing secure relations between the devices. There is also an added emphasis on hiding the type of devices that the person wears.

In addition to tracking the identity of the owner of the devices, the adversary is interested in the characteristics of the devices, such as type, brand, and model. Identifying the type of device can lead to further attacks, from theft to device-specific hacking. The combination of devices worn by the same person will also provide a "fingerprint" of the person, risking identification.

This scenario also represents the general case of bringing private Internet-of-Things (IoT) devices into public places. A wearable IoT device might act as a DNS-SD/mDNS client, which allows attackers to infer information about devices' owners. While the attacker might be a person, as in the example figure, this could also be abused for large-scale data collection installing stationary IoT-device-tracking servers in frequented public places.

The issues described in Section 3.1.1, such as identifying people or using the information for targeted attacks, apply here too.

DNS-SD Privacy Considerations

While the discovery process illustrated in the scenarios in Section 3.1 most likely would be based on RFC6762 as a means for making service information available, this document considers all kinds of means for making DNS-SD resource records available. These means comprise of but are not limited to mDNS RFC6762, DNS servers (RFC1033, RFC1034, and RFC1035), the use of Service Registration Protocol (SRP) [SRP], and multi-link RFC7558 networks.

The discovery scenarios in Section 3.1 illustrate three separate abstract privacy requirements that vary based on the use case. These are not limited to mDNS.

1. Client identity privacy: Client identities are not leaked during

   service discovery or use.

2. Multi-entity, mutual client and server identity privacy: Neither

   client nor server identities are leaked during service discovery
   or use.

3. Single-entity, mutual client and server identity privacy:

   Identities of clients and servers owned and managed by the same
   legal person are not leaked during service discovery or use.

In this section, we describe aspects of DNS-SD that make these requirements difficult to achieve in practice. While it is intended to be thorough, it is not possible to be exhaustive.

Client identity privacy, if not addressed properly, can be thwarted by a passive attacker (see Section 2). The type of passive attacker necessary depends on the means of making service information available. Information conveyed via multicast messages can be obtained by an on-link attacker. Unicast messages are harder to access, but if the transmission is not encrypted they could still be accessed by an attacker with access to network routers or bridges. Using multi-link service discovery solutions RFC7558, external attackers have to be taken into consideration as well, e.g., when relaying multicast messages to other links.

Server identity privacy can be thwarted by a passive attacker in the same way as client identity privacy. Additionally, active attackers querying for information have to be taken into consideration as well. This is mainly relevant for unicast-based discovery, where listening to discovery traffic requires a MITM attacker; however, an external active attacker might be able to learn the server identity by just querying for service information, e.g., via DNS.

Information Made Available Via DNS-SD Resource Records

DNS-Based Service Discovery (DNS-SD) is defined in RFC6763. It allows nodes to publish the availability of an instance of a service by inserting specific records in the DNS (RFC1033, RFC1034, and RFC1035) or by publishing these records locally using multicast DNS (mDNS) RFC6762. Available services are described using three types of records:

PTR Record

  Associates a service type in the domain with an "instance" name of
  this service type.

SRV Record

  Provides the node name, port number, priority and weight
  associated with the service instance, in conformance with
  RFC2782.

TXT Record

  Provides a set of attribute-value pairs describing specific
  properties of the service instance.

Privacy Implication of Publishing Service Instance Names

In the first phase of discovery, clients obtain all PTR records associated with a service type in a given naming domain. Each PTR record contains a Service Instance Name defined in Section 4 of RFC6763:

 Service Instance Name = <Instance> . <Service> . <Domain>

The <Instance> portion of the Service Instance Name is meant to convey enough information for users of discovery clients to easily select the desired service instance. Nodes that use DNS-SD over mDNS RFC6762 in a mobile environment will rely on the specificity of the instance name to identify the desired service instance. In our example of users wanting to upload pictures to a laptop in an Internet cafe, the list of available service instances may look like:

Alice's Images . _imageStore._tcp . local Alice's Mobile Phone . _presence._tcp . local Alice's Notebook . _presence._tcp . local Bob's Notebook . _presence._tcp . local Carol's Notebook . _presence._tcp . local

Alice will see the list on her phone and understand intuitively that she should pick the first item. The discovery will "just work". (Note that our examples of service names conform to the specification in Section 4.1 of RFC6763 but may require some character escaping when entered in conventional DNS software.)

However, DNS-SD/mDNS will reveal to anybody that Alice is currently visiting the Internet cafe. It further discloses the fact that she uses two devices, shares an image store, and uses a chat application supporting the _presence protocol on both of her devices. She might currently chat with Bob or Carol, as they are also using a _presence supporting chat application. This information is not just available to devices actively browsing for and offering services but to anybody passively listening to the network traffic, i.e., a passive on-link attacker.

There is, of course, also no authentication requirement to claim a particular instance name, so an active attacker can provide resources that claim to be Alice's but are not.

Privacy Implication of Publishing Node Names

The SRV records contain the DNS name of the node publishing the service. Typical implementations construct this DNS name by concatenating the "hostname" of the node with the name of the local domain. The privacy implications of this practice are reviewed in RFC8117. Depending on naming practices, the hostname is either a strong identifier of the device or, at a minimum, a partial identifier. It enables tracking of both the device and, by extension, the device's owner.

Privacy Implication of Publishing Service Attributes

The TXT record's attribute-value pairs contain information on the characteristics of the corresponding service instance. This in turn reveals information about the devices that publish services. The amount of information varies widely with the particular service and its implementation:

  • Some attributes, such as the paper size available in a printer,
  are the same on many devices and thus only provide limited
  information to a tracker.
  • Attributes that have free-form values, such as the name of a
  directory, may reveal much more information.

Combinations of individual attributes have more information power than specific attributes and can potentially be used for "fingerprinting" a specific device.

Information contained in TXT records not only breaches privacy by making devices trackable but might directly contain private information about the user. For instance, the _presence service reveals the "chat status" to everyone in the same network. Users might not be aware of that.

Further, TXT records often contain version information about services, allowing potential attackers to identify devices running exploit-prone versions of a certain service.

Device Fingerprinting

The combination of information published in DNS-SD has the potential to provide a "fingerprint" of a specific device. Such information includes:

  • A list of services published by the device, which can be retrieved
  because the SRV records will point to the same hostname.
  • Specific attributes describing these services.
  • Port numbers used by the services.
  • Priority and weight attributes in the SRV records.

This combination of services and attributes will often be sufficient to identify the version of the software running on a device. If a device publishes many services with rich sets of attributes, the combination may be sufficient to identify the specific device and track its owner.

An argument is sometimes made that devices providing services can be identified by observing the local traffic and that trying to hide the presence of the service is futile. However, there are good reasons for the discovery service layer to avoid unnecessary exposure:

1. Providing privacy at the discovery layer is of the essence for

   enabling automatically configured privacy-preserving network
   applications.  Application layer protocols are not forced to
   leverage the offered privacy, but if device tracking is not
   prevented at the deeper layers, including the service discovery
   layer, obfuscating a certain service's protocol at the
   application layer is futile.

2. Further, in the case of mDNS-based discovery, even if the

   application layer does not protect privacy, services are
   typically provided via unicast, which requires a MITM attacker,
   whereas identifying services based on multicast discovery
   messages just requires an on-link attacker.

The same argument can be extended to say that the pattern of services offered by a device allows for fingerprinting the device. This may or may not be true, since we can expect that services will be designed or updated to avoid leaking fingerprints. In any case, the design of the discovery service should avoid making a bad situation worse and should, as much as possible, avoid providing new fingerprinting information.

Privacy Implication of Discovering Services

The consumers of services engage in discovery and in doing so reveal some information, such as the list of services they are interested in and the domains in which they are looking for the services. When the clients select specific instances of services, they reveal their preference for these instances. This can be benign if the service type is very common, but it could be more problematic for sensitive services, such as some private messaging services.

One way to protect clients would be to somehow encrypt the requested service types. Of course, just as we noted in Section 3.2.5, traffic analysis can often reveal the service.

Security Considerations

For each of the operations described above, we must also consider security threats we are concerned about.

Authenticity, Integrity, and Freshness

Can devices (both servers and clients) trust the information they receive? Has it been modified in flight by an adversary? Can devices trust the source of the information? Is the source of information fresh, i.e., not replayed? Freshness may or may not be required depending on whether the discovery process is meant to be online. In some cases, publishing discovery information to a shared directory or registry, rather than to each online recipient through a broadcast channel, may suffice.

Confidentiality

Confidentiality is about restricting information access to only authorized individuals. Ideally, this should only be the appropriate trusted parties, though it can be challenging to define who are "the appropriate trusted parties." In some use cases, this may mean that only mutually authenticated and trusting clients and servers can read messages sent for one another. The process of service discovery in particular is often used to discover new entities that the device did not previously know about. It may be tricky to work out how a device can have an established trust relationship with a new entity it has never previously communicated with.

Resistance to Dictionary Attacks

It can be tempting to use (publicly computable) hash functions to obscure sensitive identifiers. This transforms a sensitive unique identifier, such as an email address, into a "scrambled" but still unique identifier. Unfortunately, simple solutions may be vulnerable to offline dictionary attacks.

Resistance to Denial-of-Service Attacks

In any protocol where the receiver of messages has to perform cryptographic operations on those messages, there is a risk of a brute-force flooding attack causing the receiver to expend excessive amounts of CPU time and, where applicable, battery power just processing and discarding those messages.

Also, amplification attacks have to be taken into consideration. Messages with larger payloads should only be sent as an answer to a query sent by a verified client.

Resistance to Sender Impersonation

Sender impersonation is an attack wherein messages, such as service offers, are forged by entities who do not possess the corresponding secret key material. These attacks may be used to learn the identity of a communicating party, actively or passively.

Sender Deniability

Deniability of sender activity, e.g., of broadcasting a discovery request, may be desirable or necessary in some use cases. This property ensures that eavesdroppers cannot prove senders issued a specific message destined for one or more peers.

Operational Considerations

Power Management

Many modern devices, especially battery-powered devices, use power management techniques to conserve energy. One such technique is for a device to transfer information about itself to a proxy, which will act on behalf of the device for some functions while the device itself goes to sleep to reduce power consumption. When the proxy determines that some action is required, which only the device itself can perform, the proxy may have some way to wake the device, as described for example in [SLEEP-PROXY].

In many cases, the device may not trust the network proxy sufficiently to share all its confidential key material with the proxy. This poses challenges for combining private discovery that relies on per-query cryptographic operations with energy-saving techniques that rely on having (somewhat untrusted) network proxies answer queries on behalf of sleeping devices.

Protocol Efficiency

Creating a discovery protocol that has the desired security properties may result in a design that is not efficient. To perform the necessary operations, the protocol may need to send and receive a large number of network packets or require an inordinate amount of multicast transmissions. This may consume an unreasonable amount of network capacity, particularly problematic when it is a shared wireless spectrum. Further, it may cause an unnecessary level of power consumption, which is particularly problematic on battery devices and may result in the discovery process being slow.

It is a difficult challenge to design a discovery protocol that has the property of obscuring the details of what it is doing from unauthorized observers while also managing to perform efficiently.

Secure Initialization and Trust Models

One of the challenges implicit in the preceding discussions is that whenever we discuss "trusted entities" versus "untrusted entities", there needs to be some way that trust is initially established to convert an "untrusted entity" into a "trusted entity".

The purpose of this document is not to define the specific way in which trust can be established. Protocol designers may rely on a number of existing technologies, including PKI, Trust On First Use (TOFU), or the use of a short passphrase or PIN with cryptographic algorithms, such as Secure Remote Password (SRP) RFC5054 or a Password-Authenticated Key Exchange like J-PAKE RFC8236 using a Schnorr Non-interactive Zero-Knowledge Proof RFC8235.

Protocol designers should consider a specific usability pitfall when trust is established immediately prior to performing discovery. Users will have a tendency to "click OK" in order to achieve their task. This implicit vulnerability is avoided if the trust establishment requires more significant participation of the user, such as entering a password or PIN.

External Dependencies

Trust establishment may depend on external parties. Optionally, this might involve synchronous communication. Systems that have such a dependency may be attacked by interfering with communication to external dependencies. Where possible, such dependencies should be minimized. Local trust models are best for secure initialization in the presence of active attackers.

Requirements for a DNS-SD Privacy Extension

Given the considerations discussed in the previous sections, we state requirements for privacy preserving DNS-SD in the following subsections.

Defining a solution according to these requirements is intended to lead to a solution that does not transmit privacy-violating DNS-SD messages and further does not open pathways to new attacks against the operation of DNS-SD.

However, while this document gives advice on which privacy protecting mechanisms should be used on deeper-layer network protocols and on how to actually connect to services in a privacy-preserving way, stating corresponding requirements is out of the scope of this document. To mitigate attacks against privacy on lower layers, both servers and clients must use privacy options available at lower layers and, for example, avoid publishing static IPv4 or IPv6 addresses or static IEEE 802 Media Access Control (MAC) addresses. For services advertised on a single network link, link-local IP addresses should be used; see RFC3927 and RFC4291 for IPv4 and IPv6, respectively. Static servers advertising services globally via DNS can hide their IP addresses from unauthorized clients using the split mode topology shown in Encrypted Server Name Indication [ESNI]. Hiding static MAC addresses can be achieved via MAC address randomization (see RFC7844).

Private Client Requirements

For all three scenarios described in Section 3.1, client privacy requires DNS-SD messages to:

1. Avoid disclosure of the client's identity, either directly or via

   inference, to nodes other than select servers.

2. Avoid exposure of linkable identifiers that allow tracing client

   devices.

3. Avoid disclosure of the client's interest in specific service

   instances or service types to nodes other than select servers.

When listing and resolving services via current DNS-SD deployments, clients typically disclose their interest in specific services types and specific instances of these types, respectively.

In addition to the exposure and disclosure risks noted above, protocols and implementations will have to consider fingerprinting attacks (see Section 3.2.5) that could retrieve similar information.

Private Server Requirements

Servers like the "printer" discussed in Section 3.1.1 are public, but the servers discussed in Sections 3.1.2 and 3.1.3 are, by essence, private. Server privacy requires DNS-SD messages to:

1. Avoid disclosure of the server's identity, either directly or via

   inference, to nodes other than authorized clients.  In
   particular, servers must avoid publishing static identifiers,
   such as hostnames or service names.  When those fields are
   required by the protocol, servers should publish randomized
   values.  (See RFC8117 for a discussion of hostnames.)

2. Avoid exposure of linkable identifiers that allow tracing

   servers.

3. Avoid disclosure to unauthorized clients of Service Instance

   Names or service types of offered services.

4. Avoid disclosure to unauthorized clients of information about the

   services they offer.

5. Avoid disclosure of static IPv4 or IPv6 addresses.

When offering services via current DNS-SD deployments, servers typically disclose their hostnames (SRV, A/AAAA), instance names of offered services (PTR, SRV), and information about services (TXT). Heeding these requirements protects a server's privacy on the DNS-SD level.

The current DNS-SD user interfaces present the list of discovered service names to the users and let them pick a service from the list. Using random identifiers for service names renders that UI flow unusable. Privacy-respecting discovery protocols will have to solve this issue, for example, by presenting authenticated or decrypted service names instead of the randomized values.

Security and Operation

In order to be secure and feasible, a DNS-SD privacy extension needs to consider security and operational requirements including:

1. Avoiding significant CPU overhead on nodes or significantly

   higher network load.  Such overhead or load would make nodes
   vulnerable to denial-of-service attacks.  Further, it would
   increase power consumption, which is damaging for IoT devices.

2. Avoiding designs in which a small message can trigger a large

   amount of traffic towards an unverified address, as this could be
   exploited in amplification attacks.

IANA Considerations

This document has no IANA actions.

References

Normative References

RFC6762 Cheshire, S. and M. Krochmal, "Multicast DNS", RFC 6762,

          DOI 10.17487/RFC6762, February 2013,
          <https://www.rfc-editor.org/info/rfc6762>.

RFC6763 Cheshire, S. and M. Krochmal, "DNS-Based Service

          Discovery", RFC 6763, DOI 10.17487/RFC6763, February 2013,
          <https://www.rfc-editor.org/info/rfc6763>.

Informative References

[ESNI] Rescorla, E., Oku, K., Sullivan, N., and C. A. Wood, "TLS

          Encrypted Client Hello", Work in Progress, Internet-Draft,
          draft-ietf-tls-esni-07, June 1, 2020,
          <https://tools.ietf.org/html/draft-ietf-tls-esni-07>.

[K17] Kaiser, D., "Efficient Privacy-Preserving

          Configurationless Service Discovery Supporting Multi-Link
          Networks", August 2017,
          <https://nbn-resolving.de/urn:nbn:de:bsz:352-0-422757>.

[KW14a] Kaiser, D. and M. Waldvogel, "Adding Privacy to Multicast

          DNS Service Discovery", DOI 10.1109/TrustCom.2014.107,
          September 2014, <https://ieeexplore.ieee.org/xpl/
          articleDetails.jsp?arnumber=7011331>.

[KW14b] Kaiser, D. and M. Waldvogel, "Efficient Privacy Preserving

          Multicast DNS Service Discovery",
          DOI 10.1109/HPCC.2014.141, August 2014,
          <https://ieeexplore.ieee.org/xpl/
          articleDetails.jsp?arnumber=7056899>.

RFC1033 Lottor, M., "Domain Administrators Operations Guide",

          RFC 1033, DOI 10.17487/RFC1033, November 1987,
          <https://www.rfc-editor.org/info/rfc1033>.

RFC1034 Mockapetris, P., "Domain names - concepts and facilities",

          STD 13, RFC 1034, DOI 10.17487/RFC1034, November 1987,
          <https://www.rfc-editor.org/info/rfc1034>.

RFC1035 Mockapetris, P., "Domain names - implementation and

          specification", STD 13, RFC 1035, DOI 10.17487/RFC1035,
          November 1987, <https://www.rfc-editor.org/info/rfc1035>.

RFC2782 Gulbrandsen, A., Vixie, P., and L. Esibov, "A DNS RR for

          specifying the location of services (DNS SRV)", RFC 2782,
          DOI 10.17487/RFC2782, February 2000,
          <https://www.rfc-editor.org/info/rfc2782>.

RFC3927 Cheshire, S., Aboba, B., and E. Guttman, "Dynamic

          Configuration of IPv4 Link-Local Addresses", RFC 3927,
          DOI 10.17487/RFC3927, May 2005,
          <https://www.rfc-editor.org/info/rfc3927>.

RFC4291 Hinden, R. and S. Deering, "IP Version 6 Addressing

          Architecture", RFC 4291, DOI 10.17487/RFC4291, February
          2006, <https://www.rfc-editor.org/info/rfc4291>.

RFC5054 Taylor, D., Wu, T., Mavrogiannopoulos, N., and T. Perrin,

          "Using the Secure Remote Password (SRP) Protocol for TLS
          Authentication", RFC 5054, DOI 10.17487/RFC5054, November
          2007, <https://www.rfc-editor.org/info/rfc5054>.

RFC7558 Lynn, K., Cheshire, S., Blanchet, M., and D. Migault,

          "Requirements for Scalable DNS-Based Service Discovery
          (DNS-SD) / Multicast DNS (mDNS) Extensions", RFC 7558,
          DOI 10.17487/RFC7558, July 2015,
          <https://www.rfc-editor.org/info/rfc7558>.

RFC7844 Huitema, C., Mrugalski, T., and S. Krishnan, "Anonymity

          Profiles for DHCP Clients", RFC 7844,
          DOI 10.17487/RFC7844, May 2016,
          <https://www.rfc-editor.org/info/rfc7844>.

RFC8117 Huitema, C., Thaler, D., and R. Winter, "Current Hostname

          Practice Considered Harmful", RFC 8117,
          DOI 10.17487/RFC8117, March 2017,
          <https://www.rfc-editor.org/info/rfc8117>.

RFC8235 Hao, F., Ed., "Schnorr Non-interactive Zero-Knowledge

          Proof", RFC 8235, DOI 10.17487/RFC8235, September 2017,
          <https://www.rfc-editor.org/info/rfc8235>.

RFC8236 Hao, F., Ed., "J-PAKE: Password-Authenticated Key Exchange

          by Juggling", RFC 8236, DOI 10.17487/RFC8236, September
          2017, <https://www.rfc-editor.org/info/rfc8236>.

[SLEEP-PROXY]

          Cheshire, S., "Understanding Sleep Proxy Service",
          December 2009,
          <http://stuartcheshire.org/SleepProxy/index.html>.

[SRP] Lemon, T. and S. Cheshire, "Service Registration Protocol

          for DNS-Based Service Discovery", Work in Progress,
          Internet-Draft, draft-ietf-dnssd-srp-04, July 13, 2020,
          <https://tools.ietf.org/html/draft-ietf-dnssd-srp-04>.

Acknowledgments

This document incorporates many contributions from Stuart Cheshire and Chris Wood. Thanks to Florian Adamsky for extensive review and suggestions on the organization of the threat model. Thanks to Barry Leiba for an extensive review. Thanks to Roman Danyliw, Ben Kaduk, Adam Roach, and Alissa Cooper for their comments during IESG review.

Authors' Addresses

Christian Huitema Private Octopus Inc. Friday Harbor, WA 98250 United States of America

Email: [email protected] URI: http://privateoctopus.com/

Daniel Kaiser University of Luxembourg 6, avenue de la Fonte L-4364 Esch-sur-Alzette Luxembourg

Email: [email protected] URI: https://secan-lab.uni.lu/