← 资料库索引 ← 官方文档 原始链接 ↗ 🔍
官方文档

RFC 7721:IPv6 地址生成机制的安全与隐私考量 原文标题:

发表时间:2016-03采集时间:2026-10-09 10:58:27来源:www.rfc-editor.org原文语言:en状态:完整

内容概要总结

IETF 信息性文档 RFC 7721(2016 年 3 月,Cooper、Gont、Thaler 著),系统评估多种 IPv6 地址生成机制(标准化与非标准化)的隐私与安全属性。文档首先归纳基于 IEEE 标识符的 IID 的四大弱点:活动随时间关联(可长达设备寿命即数年)、位置跟踪(IID 跨链路恒定,攻击者可主动探测)、地址扫描(24 位 OUI 与固定值 0xff/0xfe 缩小搜索空间)、针对设备的漏洞利用(泄露网卡厂商乃至操作系统信息)。随后用一张对照表比较 IEEE 标识符、静态手工配置、恒定语义不透明、CGA、稳定语义不透明(RFC 7217)、临时(RFC 4941/8981)、DHCPv6 七类机制对这四种攻击的抵御情况,并逐一分析。结论:仅使用临时地址、或「配置但不使用」稳定/恒定语义不透明地址可缓解全部四类威胁;CGA 可防位置跟踪与扫描;过渡/共存技术(Teredo、ISATAP、MAP 等)因内嵌 IPv4 地址/端口而继承其隐私弱点。文档还讨论网络运营复杂度、合规测试套件与知识产权等杂项问题,并建议放宽合规套件以允许更利于隐私的地址生成。

翻译内容

原文内容(English)

⚠ 说明:原引用链接为 datatracker.ietf.org/doc/html/rfc7721(直连 403),改用同标准(RFC 7721)的正式文本入口 rfc-editor.org/rfc/rfc7721.html。RFC 全文(英文)已完整中译;第 7 节参考文献条目按规范保留原文著录信息,未中译。

RFC 7721

IPv6 地址生成机制的安全与隐私考量(Security and Privacy Considerations for IPv6 Address Generation Mechanisms)

类别:Informational(信息性)
ISSN: 2070-1721

A. Cooper(Cisco)
F. Gont(Huawei Technologies)
D. Thaler(Microsoft)
2016 年 3 月

摘要

本文档讨论若干 IPv6 地址生成机制(既包括已标准化的,也包括未标准化的)的隐私与安全考量。它评估不同机制如何缓解不同威胁,以及实现者、开发者和用户在选用不同地址或地址生成机制时面临的权衡。

本文档状态(Status of This Memo)

本文档不是 Internet Standards Track 规范;它出于信息性目的发布。

本文档是 Internet Engineering Task Force (IETF) 的产物。它代表 IETF 社区的共识。它已经过公开审查,并已获 Internet Engineering Steering Group (IESG) 批准发布。并非所有经 IESG 批准的文档都是任何级别 Internet Standard 的候选;见 RFC 5741 第 2 节。

关于本文档当前状态、任何勘误以及如何提供反馈的信息,可从 http://www.rfc-editor.org/info/rfc7721 获取。

版权声明(Copyright Notice)

Copyright (c) 2016 IETF Trust 及被标识为本文档作者的人员。保留所有权利。

本文档受 BCP 78 以及本文档发布之日生效的 IETF Trust《与 IETF 文档相关的法律条款》(http://trustee.ietf.org/license-info)约束。请仔细阅读这些文档,因为它们描述了您对本文档的权利和限制。从本文档中提取的代码组件必须包含《Trust 法律条款》第 4.e 节所述的精简 BSD 许可证文本,并按精简 BSD 许可证所述不提供任何担保。

目录

  1. 引言
  2. 术语
  3. 基于 IEEE 标识符的 IID 的弱点 3.1. 活动随时间关联 3.2. 位置跟踪 3.3. 地址扫描 3.4. 针对设备的漏洞利用
  4. 地址生成机制的隐私与安全属性 4.1. 基于 IEEE 标识符的 IID 4.2. 静态、手工配置的 IID 4.3. 恒定、语义不透明的 IID 4.4. 密码学生成的 IID 4.5. 稳定、语义不透明的 IID 4.6. 临时 IID 4.7. DHCPv6 生成 IID 4.8. 过渡与共存技术
  5. IPv6 寻址的杂项问题 5.1. 网络运营 5.2. 合规 5.3. 知识产权(IPR)
  6. 安全考量
  7. 参考文献 7.1. 规范性引用 7.2. 参考性引用

致谢
作者地址

1. 引言

IPv6 的设计旨在许多方面优于 IPv4,地址分配机制就是这样一个改进领域。除了静态地址分配和 DHCP 之外,无状态自动配置(stateless autoconfiguration)被开发为一种负担较轻、命运共享(fate-shared)的地址分配方式。在无状态自动配置下,路由器通告链路上(on-link)前缀,主机生成自己的接口标识符(IID)以补全其地址。[RFC7136] 澄清了 IID 应被视为一个不透明值,而 [RFC7421] 提供了对 IPv6 寻址中 64 位边界的分析(例如 IID 长度对安全与隐私的影响)。多年来,人们定义了许多 IID 生成技术,既有标准化的也有非标准化的:

  • 手工配置 [RFC7707]
    • IPv4 地址
    • 服务端口
    • 冗长(Wordy)
    • 低字节(Low-byte)
  • 无状态地址自动配置(SLAAC)
    • IEEE 802 48 位媒体访问控制(MAC)或 IEEE 64 位扩展唯一标识符(EUI-64)[RFC2464]
    • 密码学生成 [RFC3972]
    • 临时(又称"隐私地址")[RFC4941]
    • 恒定、语义不透明(又称"随机")[Microsoft]
    • 稳定、语义不透明 [RFC7217]
  • 基于 DHCPv6 [RFC3315]
  • 由过渡/共存技术规定
    • 从 IPv4 地址派生(例如 [RFC5214]、[RFC6052])
    • 从 IPv4 地址和端口集 ID(port set ID)派生(例如 [RFC7596]、[RFC7597]、[RFC7599])
    • 从 IPv4 地址和端口派生(例如 [RFC4380])

从全局唯一的 IEEE 标识符派生 IID [RFC2464] [RFC4862] 是最早开发的机制之一(最初在 [RFC1971] 和 [RFC1972] 中规定)。在其标准化之后,人们发现了许多与基于 IEEE 标识符派生的 IID 相关的隐私和安全问题,随后开发的许多机制旨在缓解这些弱点中的部分或全部。本文档识别了四类针对基于 IEEE 标识符的 IID 的攻击,并讨论其他现有 IID 生成技术是否缓解了这些攻击。

2. 术语

本节澄清全文使用的术语。

  • 公共地址(Public address):已发布在目录或其他公共位置的地址,例如 DNS、SIP 代理 [RFC3261]、应用程序特定的分布式哈希表(DHT),或公开可用的 URI。主机的公共地址意在可被第三方发现。
  • 稳定地址(Stable address):在同一 IPv6 链路内不随时间变化的地址。注意 [RFC4941] 将其称为 "public" 地址,但此处使用 "stable" 一词,原因见第 4 节。
  • 临时地址(Temporary address):在同一 IPv6 链路内随时间变化的地址。
  • 恒定 IID(Constant IID):全局稳定的 IPv6 接口标识符。也就是说,即使节点从一条 IPv6 链路移动到另一条,该 Interface ID 也将保持恒定。
  • 稳定 IID(Stable IID):在某个指定上下文内稳定的 IPv6 接口标识符。例如,一个 Interface ID 可以是全局稳定的(恒定),也可以是每条 IPv6 链路稳定的(意味着只要节点停留在同一条 IPv6 链路上,该 Interface ID 就保持不变,但当节点从一条 IPv6 链路移动到另一条时可能改变)。
  • 临时 IID(Temporary IID):随时间变化的 IPv6 接口标识符。

本文档中的关键词 "MUST"、"MUST NOT"、"REQUIRED"、"SHALL"、"SHALL NOT"、"SHOULD"、"SHOULD NOT"、"RECOMMENDED"、"NOT RECOMMENDED"、"MAY" 和 "OPTIONAL" 应按 [RFC2119] 所述进行解释。这些词仅当以全大写形式出现时才具有其规范性含义。

3. 基于 IEEE 标识符的 IID 的弱点

对于使用基于 IEEE 标识符的 IID 的主机,存在许多隐私与安全影响。本节讨论四种通用攻击类型:活动随时间关联、位置跟踪、地址扫描、以及针对设备的漏洞利用。前三类依赖于攻击者首先获知目标主机的 IID。这可以由多种不同主体实现:主机所连接服务器的运营者,例如 Web 服务器或对等(peer-to-peer)服务器;与目标连接到同一条 IPv6 链路的实体(例如会议网络或任何公共网络);对主机所广播流量的被动观察者;或位于主机所通信目的地路径上的实体,例如网络运营者。

3.1. 活动随时间关联

与其他标识符一样,IPv6 地址可以用来关联主机的活动,时间至少与地址的生存期一样长。基于 IEEE 标识符的 IID 所促成的关联尤其令人担忧,因为它们大致会持续设备网络接口的整个寿命,使得关联时间可达数年之久。

如 [RFC4941] 所解释:

使用一个不变的接口标识符来构成地址,是"在较长时间段内、在多个独立活动中重复使用一个恒定标识符"这一更一般情况的一个具体实例。任何时候只要同一标识符在多个上下文中被使用,就可能利用该标识符来关联看似无关的活动。……在地址内使用恒定标识符尤其令人担忧,因为地址是通信的一项基本要求,无法轻易对窃听者和其他方隐藏。即使更高层加密了其载荷,数据包头中的地址仍以明文出现。

IP 地址只是可用于随时间关联活动的信息的一个例子。DNS 名称、cookie [RFC6265]、浏览器指纹 [Panopticlick] 和应用层用户名,都可以用来把主机的活动关联在一起。尽管基于 IEEE 标识符的 IID 很可能至少与这些其他标识符持续一样久或更久,但以其他方式生成的 IID 的生存期可能比这些标识符更短或更长,取决于它们如何生成。因此,主机活动可被关联的程度取决于主机是否把多个标识符一起使用,以及所有这些标识符的生存期。如果攻击者能够获取某一主机的其他更长效的标识符,那么频繁刷新 IPv6 地址可能无法缓解关联。这是本文档讨论关联时需牢记的一个重要限定。关于关联的进一步讨论,见 [RFC6973] 第 5.2.1 节。

如 [RFC4941] 所指出的,在某些情况下,对于使用 IPv4 地址的主机,与对于在其 IPv6 地址中使用 IEEE 标识符生成 IID 的主机,关联的可行性是一样的。使用静态 IPv4 寻址、或通过 DHCPv4 被持续分配同一地址的主机,可以如上所述被跟踪。然而,与 IPv6 中的 IEEE 标识符情况相比,NAT 和那些在租约到期时给同一主机分配不同地址的 DHCPv4 实现的广泛使用,缓解了 IPv4 情况下的这一威胁。

3.2. 位置跟踪

由于 IPv6 地址结构分为拓扑部分和接口标识符部分,一个在主机连接到不同 IPv6 链路时保持恒定的接口标识符(如基于 IEEE 标识符的 IID 那样)为观察者提供了一种跟踪该主机移动的方式。在对移动主机的被动攻击中,一个随时间接收来自同一主机连接的服务器,能够随其前缀变化而确定该主机的移动。

主动攻击也是可能的。攻击者若首先通过连接到同一条 IPv6 链路、运行主机所连接的服务器、或位于主机通信路径上而获知主机的接口标识符,随后就可以通过发送探测数据包(例如 ICMPv6 Echo Request,或任何其他探测数据包)来探测其他网络是否存在同一接口标识符。即使主机不响应,当主机不在时第一跳路由器通常会以 ICMP Destination Unreachable/Address Unreachable(类型 1,代码 3)响应,而当主机存在时保持沉默。

在 IPv4 中,基于 IP 地址的位置跟踪通常不可能,因为主机在更换网络时会被分配全新的地址。

3.3. 地址扫描

用于地址生成的基于 IEEE 标识符的结构,可被攻击者利用以缩小目标搜索空间 [RFC7707]。MAC 地址的 24 位组织唯一标识符(OUI),连同用于构成修改版 EUI-64 接口标识符的固定值(0xff, 0xfe),极大地帮助缩小了搜索空间,使攻击者更容易使用广为人知的流行 OUI 来扫描单个地址。这抹去了与 IPv4 相比、更大的 IPv6 地址空间本可提供的对地址扫描的大部分防护。

3.4. 针对设备的漏洞利用

内嵌 IEEE 标识符的 IPv6 地址会泄露关于设备的信息(例如网卡厂商,甚至操作系统和/或软件类型),了解设备或软件特定漏洞的攻击者可利用这些信息快速找到可能的目标。攻击者可以利用其此前已获取 IID 的主机的漏洞,或扫描某个地址空间以找到潜在目标。

4. 地址生成机制的隐私与安全属性

对某一主机在多大程度上受到第 3 节所述攻击防护的分析,取决于主机每个地址是如何生成和使用的。在某些场景中,主机配置单个全局地址并将其用于所有通信。在另一些场景中,主机使用不同机制配置多个地址,并可能使用其中任意一个或全部。

[RFC3041](后来被 [RFC4941] 废止)试图通过为出站连接定义"临时地址"来解决第 3 节所述的部分问题。临时地址意在补充设备可能使用的其他地址,而非取代它们。它们使用随机生成、默认每天变化的 IID。其想法是:将临时地址用于出站连接(例如网页浏览),同时在需要更高地址稳定性时(例如发布在 DNS 中的 IPv6 地址)保持使用稳定地址的能力。

[RFC3484] 最初规定:出站连接应使用稳定地址,除非应用程序明确偏好临时地址。将稳定地址设为默认偏好,是为了避免应用程序因临时地址生存期短、或可能发生反向查找失败或错误而潜在失败。然而,[RFC3484] 允许"那些隐私考量重于这些应用程序兼容性考量的实现可以反转这条规则的方向",转而默认偏好临时地址而非稳定地址。事实上,大多数实现(尤其包括 Windows)选择对出站连接默认使用临时地址,因为隐私被认为更重要(而且当时支持 IPv6 的应用程序很少,因此应用程序兼容性关切很小)。[RFC6724] 随后废止了 [RFC3484],并将默认值改为与实现实际所做的一致。

[RFC3484] 所设想的"地址稳定性与其在'公共'中的使用"之间的关系,在进行隐私分析时可能具有误导性。地址的稳定性与其可链接到某个其他公共标识符的程度是相互独立的。例如,没有什么能阻止主机在公共位置(如 DNS)发布一个临时地址。同时把一个稳定地址和一个临时地址发布在 DNS 或其他可被某公共标识符链接在一起的地方,会使主机在使用任一地址时的活动可被相互关联。

此外,由于临时地址被设计用来补充主机生成的其他地址,主机即使只打算把临时地址(作为源地址)用于到链外目的地的通信,仍可能配置一个更稳定的地址。攻击者可以探测该稳定地址,即使它从未被用作这样的源地址、或从未在链路之外(例如 DNS 或 SIP 中)被通告。

本节比较各种 IID 生成机制及其可能的使用场景的隐私与安全属性,包括"使用单一机制生成主机所有 IID"的场景,以及"临时地址与使用不同 IID 生成机制生成的地址一起使用"的场景。对每种 IID 类型受关联暴露程度的分析,假设 IPv6 前缀由相当多的节点共享。如 [RFC4941] 所指出的,如果极少数节点(比如只有一台)长时间使用某个特定前缀,那么无论 IID 如何生成,前缀本身就可被用来关联主机的活动。例如,[RFC3314] 建议,在通用分组无线服务(GPRS)中使用 IPv6 的场合,前缀应唯一分配给移动手持设备。在遵循此建议、且前缀长时间持续(或在那些手持设备每次重新连接到同一网络路由器时被重新分配给同一批手持设备)的情况下,主机活动可被关联的时间可能比下文分析所暗示的更长。

下表提供了整个分析的总结。"No"(否)条目表示该攻击被阻止不能基于 IID 实施,但主机仍可能因其使用其他协议的方式而脆弱。

表 1:IID 生成机制的隐私与安全属性

机制关联(Correlation)位置跟踪(Location tracking)地址扫描(Address scanning)设备漏洞利用(Device exploits)
IEEE 标识符持续设备寿命持续设备寿命可能可能
静态手工配置持续地址寿命持续地址寿命取决于生成机制取决于生成机制
恒定、语义不透明持续地址寿命持续地址寿命否否
CGA持续(修饰符块 + 公钥)的寿命否否否
稳定、语义不透明单条 IPv6 链路内否否否
临时持续临时地址寿命否否否
DHCPv6持续租约寿命否取决于生成机制否

4.1. 基于 IEEE 标识符的 IID

如第 3 节所讨论,使用基于 IEEE 标识符的 IID 的地址对全部四类攻击都脆弱。它们允许在设备寿命内进行关联和位置跟踪,因为 IEEE 标识符会持续那么久,且其结构使地址扫描和设备漏洞利用成为可能。

4.2. 静态、手工配置的 IID

由于静态、手工配置的 IID 是稳定的,关联和位置跟踪在地址整个寿命内都是可能的。位置跟踪能成功执行的程度,在某种程度上取决于所采用 IID 的唯一性。例如,人们会预期 "low byte"(低字节)IID 比诸如"整个 64 位遵循某个特定组织独有模式"的 IID 被更广泛地重复使用。被广泛重复使用的 IID 通常会在执行位置跟踪时导致误报。手工配置的地址是否对地址扫描和设备漏洞利用脆弱,取决于 IID 如何生成的具体细节。

4.3. 恒定、语义不透明的 IID

尽管生成恒定、语义不透明 IID 的机制尚未标准化,它已在至少一个平台(Windows)上广泛使用了多年。Windows 使用 [RFC4941] 所述随机生成机制,来替代生成基于 IEEE 标识符的 IID。这缓解了针对设备的漏洞利用和地址扫描攻击,但仍然允许关联和位置跟踪,因为该 IID 跨 IPv6 链路和时间是恒定的。

4.4. 密码学生成的 IID

密码学生成地址(CGA)[RFC3972] 在安全邻居发现(SEND)协议 [RFC3971] 中把主机公钥的哈希绑定到一个 IPv6 地址。CGA 可以为每个子网前缀重新生成,但由于其生成在计算上代价高昂,这并非必需。使用 CGA 的主机可在"公钥与所选修饰符块(modifier block)组合"的寿命内被关联,因为可以在不生成新公钥的情况下轮换修饰符块。由于主机公钥的密码学哈希以子网前缀作为输入,即使主机在移动到不同 IPv6 链路时不生成新公钥或修饰符块,其位置也无法通过 IID 被跟踪。CGA 不允许针对设备的漏洞利用或地址扫描攻击。

4.5. 稳定、语义不透明的 IID

[RFC7217] 规定了一种算法,为每个网络接口、每条 IPv6 链路生成一个唯一的随机 IID。上述算法不仅用于全局单播地址,还用于唯一本地单播地址和链路本地单播地址,因为这些地址可能通过应用协议泄露出去(例如内嵌在电子邮件头中的 IPv6 地址)。

因此,一直连接到同一条 IPv6 链路的主机可能被长期跟踪,而移动主机的活动只能在每次网络连接期间被关联。使用这些地址不可能进行位置跟踪。它们也不允许针对设备的漏洞利用或地址扫描攻击。

4.6. 临时 IID

只使用临时地址的主机缓解了全部四类威胁。其活动只能在单个临时地址的寿命内被关联。

同时配置基于 IEEE 标识符的 IID 和临时地址的主机,会使主机像未使用临时地址时一样对同样的攻击脆弱,尽管其中一些攻击的可行性取决于主机如何使用每个地址。攻击者可以关联主机使用其基于 IEEE 标识符的 IID 的所有活动。一旦攻击者获取了基于 IEEE 标识符的 IID,即使主机在其他 IPv6 链路上只使用临时地址,位置跟踪也会在其他 IPv6 链路上变得可能;攻击者可以主动探测其他 IPv6 链路是否存在该基于 IEEE 标识符的 IID。针对设备的漏洞仍可被利用。地址扫描也仍然可能,因为可以探测该基于 IEEE 标识符的地址。

如果主机转而生成一个恒定、语义不透明的 IID,用于类似服务器连接的稳定地址,同时为出站连接使用临时地址(如 Windows 的默认做法),则相比上一场景有所改善。地址扫描攻击和针对设备的漏洞利用攻击不再可能,因为 OUI 不再内嵌于主机的任何地址中。然而,部分活动跨时间的关联和位置跟踪仍然可能,因为该语义不透明 IID 是恒定的。而且一旦攻击者获取了主机的语义不透明 IID,就可以通过探测该 IID 在任何网络上进行位置跟踪,即使主机在这些网络上只使用临时地址。然而,如果主机生成但从不使用恒定、语义不透明的 IID,它就缓解了全部四类威胁。

当与临时地址一起使用时,稳定、语义不透明的 IID 生成机制 [RFC7217] 通过把关联的可能性限制在稳定地址的寿命内(对于非移动主机而言这可能仍然很长),并消除位置跟踪的可能性(因为为每个子网前缀生成不同的 IID),对上一场景有所改进。与上一场景一样,配置但不使用稳定、语义不透明地址的主机缓解了全部四类威胁。

4.7. DHCPv6 生成 IID

基于 DHCPv6 的地址的安全与隐私影响通常取决于客户端请求的是 IA_NA(Identity Association for Non-temporary Addresses,非临时地址的身份关联)还是 IA_TA(Identity Association for Temporary Addresses,临时地址的身份关联)[RFC3315],以及所采用的具体 DHCPv6 服务器软件。

DHCPv6 临时地址与 SLAAC 临时地址具有相同的属性(见第 4.6 节)。另一方面,DHCPv6 非临时地址的属性通常取决于所采用的具体 DHCPv6 服务器软件。大多数流行 DHCPv6 服务器软件的近期版本通常租用随机地址,租期与 IPv4 的类似。因此,这些地址可以被认为是"稳定、语义不透明的"。[DHCPv6-IID] 规定了一种可被 DHCPv6 服务器采用以生成"稳定、语义不透明"地址的算法。

另一方面,一些 DHCPv6 软件租用顺序地址(通常是低字节地址)。这些地址可以被认为是稳定地址。与"稳定、语义不透明"地址相比,这种地址生成方案的缺点是:由于它们遵循特定模式,会使得 IPv6 地址扫描成为可能。

4.8. 过渡与共存技术

基于在 IPv6 地址内嵌入 IPv4 地址的过渡或共存技术所规定的地址,未列入表 1,因为它们的隐私与安全属性继承自所嵌入的地址。例如,Teredo [RFC4380] 规定了一种从底层 IPv4 地址和端口生成 IPv6 地址的方式,使许多其他位保持为零。这使攻击者相对容易地通过猜测 Teredo 客户端的 IPv4 地址和端口来扫描 IPv6 地址(对于许多 NAT 而言,该端口并非随机化)。因此,流行实现(例如 Windows)开始偏离标准,以 12 个随机位取代零位。这一修改后来在 [RFC5991] 中被标准化。

一些其他过渡技术(例如 [RFC5214]、[RFC6052])规定了从底层 IPv4 地址、不带端口生成 IPv6 地址的方式。此类机制因此使攻击者进行地址扫描比那些还需要找到端口号的机制容易得多。

最后,还有一些其他机制(例如 [RFC7596]、[RFC7597]、[RFC7599])介于两者之间,使用一个 IPv4 地址和一个端口集 ID(对于许多 NAT 而言,该端口集 ID 并非随机化)。一般而言,此类机制通常就像上述 Teredo 例子中没有 12 位缓解措施时一样容易被扫描。

5. IPv6 寻址的杂项问题

5.1. 网络运营

人们普遍认为,在特定 IPv6 链路中随时间变化的 IPv6 地址往往会增加事件日志记录、故障排查、访问控制和服务质量的执行等方面的复杂性。因此,一些组织禁用了临时地址 [RFC4941] 的使用,即使以降低隐私为代价 [Broersma]。

5.2. 合规

一些 IPv6 合规测试套件曾要求(并且可能仍然要求)实现支持基于 IEEE 标识符的 IID,才能被批准为合规。本文档建议放宽合规测试套件,以允许其他更有利于隐私的地址生成形式。

5.3. 知识产权(IPRs)

一些 IPv6 寻址技术可能受知识产权覆盖,这可能限制它们在不同操作系统中的实现。[CGA-IPR] 和 [KAME-CGA] 讨论了 CGA 上的知识产权。

6. 安全考量

本文档全篇都涉及不同 IPv6 地址生成机制的隐私与安全属性。

7. 参考文献

(按规范,本节参考文献条目保留原文著录信息,不做中译。)

7.1. 规范性引用(Normative References)

7.2. 参考性引用(Informative References)

致谢(Acknowledgements)

作者要感谢 Bernard Aboba、Brian Carpenter、Tim Chown、Lorenzo Colitti、Rich Draves、Robert Hinden、Robert Moskowitz、Erik Nordmark、Mark Smith、Ole Troan 和 James Woodyatt 对本文档早期草案版本提供的宝贵意见。

作者地址(Authors' Addresses)

Alissa Cooper
Cisco
707 Tasman Drive
Milpitas, CA 95035
United States
Phone: +1-408-902-3950
Email: alcoop@cisco.com
URI: https://www.cisco.com/

Fernando Gont
Huawei Technologies
Evaristo Carriego 2644
Haedo, Provincia de Buenos Aires 1706
Argentina
Phone: +54 11 4650 8472
Email: fgont@si6networks.com
URI: http://www.si6networks.com

Dave Thaler
Microsoft
One Microsoft Way
Redmond, WA 98052
United States
Phone: +1 425 703 8835
Email: dthaler@microsoft.com

Internet Engineering Task Force (IETF) A. Cooper
Request for Comments: 7721 Cisco
Category: Informational F. Gont
ISSN: 2070-1721 Huawei Technologies
 D. Thaler
 Microsoft
 March 2016
 Security and Privacy Considerations for
 IPv6 Address Generation Mechanisms
Abstract
 This document discusses privacy and security considerations for
 several IPv6 address generation mechanisms, both standardized and
 non-standardized. It evaluates how different mechanisms mitigate
 different threats and the trade-offs that implementors, developers,
 and users face in choosing different addresses or address generation
 mechanisms.
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 a candidate for any level of Internet
 Standard; see [Section 2 of RFC 5741](https://www.rfc-editor.org/rfc/rfc5741#section-2).
 Information about the current status of this document, any errata,
 and how to provide feedback on it may be obtained at
 [http://www.rfc-editor.org/info/rfc7721](http://www.rfc-editor.org/info/rfc7721).
Cooper, et al. Informational [Page 1]
[RFC 7721](https://www.rfc-editor.org/rfc/rfc7721) IPv6 Address Generation Privacy March 2016
Copyright Notice
 Copyright (c) 2016 IETF Trust and the persons identified as the
 document authors. All rights reserved.
 This document is subject to [BCP 78](https://www.rfc-editor.org/bcp/bcp78) and the IETF Trust's Legal
 Provisions Relating to IETF Documents
 ([http://trustee.ietf.org/license-info](http://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.
Table of Contents
 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4
 3. Weaknesses in IEEE-Identifier-Based IIDs . . . . . . . . . . 5
 3.1. Correlation of Activities over Time . . . . . . . . . . . 5
 3.2. Location Tracking . . . . . . . . . . . . . . . . . . . . 6
 3.3. Address Scanning . . . . . . . . . . . . . . . . . . . . 7
 3.4. Device-Specific Vulnerability Exploitation . . . . . . . 7
 4. Privacy and Security Properties of Address Generation
 Mechanisms . . . . . . . . . . . . . . . . . . . . . . . . . 7
 4.1. IEEE-Identifier-Based IIDs . . . . . . . . . . . . . . . 10
 4.2. Static, Manually Configured IIDs . . . . . . . . . . . . 10
 4.3. Constant, Semantically Opaque IIDs . . . . . . . . . . . 10
 4.4. Cryptographically Generated IIDs . . . . . . . . . . . . 10
 4.5. Stable, Semantically Opaque IIDs . . . . . . . . . . . . 11
 4.6. Temporary IIDs . . . . . . . . . . . . . . . . . . . . . 11
 4.7. DHCPv6 Generation of IIDs . . . . . . . . . . . . . . . . 12
 4.8. Transition and Coexistence Technologies . . . . . . . . . 12
 5. Miscellaneous Issues with IPv6 Addressing . . . . . . . . . . 13
 5.1. Network Operation . . . . . . . . . . . . . . . . . . . . 13
 5.2. Compliance . . . . . . . . . . . . . . . . . . . . . . . 13
 5.3. Intellectual Property Rights (IPRs) . . . . . . . . . . . 13
 6. Security Considerations . . . . . . . . . . . . . . . . . . . 13
 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 14
 7.1. Normative References . . . . . . . . . . . . . . . . . . 14
 7.2. Informative References . . . . . . . . . . . . . . . . . 15
 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 18
 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 18
Cooper, et al. Informational [Page 2]
RFC 7721 IPv6 Address Generation Privacy March 2016
1. Introduction
 IPv6 was designed to improve upon IPv4 in many respects, and
 mechanisms for address assignment were one such area for improvement.
 In addition to static address assignment and DHCP, stateless
 autoconfiguration was developed as a less intensive, fate-shared
 means of performing address assignment. With stateless
 autoconfiguration, routers advertise on-link prefixes and hosts
 generate their own Interface Identifiers (IIDs) to complete their
 addresses. [[RFC7136](https://www.rfc-editor.org/rfc/rfc7136)] clarifies that the IID should be treated as an
 opaque value, while [[RFC7421](https://www.rfc-editor.org/rfc/rfc7421)] provides an analysis of the 64-bit
 boundary in IPv6 addressing (e.g., the implications of the IID length
 on security and privacy). Over the years, many IID generation
 techniques have been defined, both standardized and non-standardized:
 o Manual configuration [[RFC7707](https://www.rfc-editor.org/rfc/rfc7707)]
 * IPv4 address
 * Service port
 * Wordy
 * Low-byte
 o Stateless Address Autoconfiguration (SLAAC)
 * IEEE 802 48-bit Media Access Control (MAC) or IEEE 64-bit
 Extended Unique Identifier (EUI-64) [[RFC2464](https://www.rfc-editor.org/rfc/rfc2464)]
 * Cryptographically generated [[RFC3972](https://www.rfc-editor.org/rfc/rfc3972)]
 * Temporary (also known as "privacy addresses") [[RFC4941](https://www.rfc-editor.org/rfc/rfc4941)]
 * Constant, semantically opaque (also known as "random")
 [Microsoft]
 * Stable, semantically opaque [[RFC7217](https://www.rfc-editor.org/rfc/rfc7217)]
 o DHCPv6 based [[RFC3315](https://www.rfc-editor.org/rfc/rfc3315)]
 o Specified by transition/co-existence technologies
 * Derived from an IPv4 address (e.g., [[RFC5214](https://www.rfc-editor.org/rfc/rfc5214)], [[RFC6052](https://www.rfc-editor.org/rfc/rfc6052)])
 * Derived from an IPv4 address and port set ID (e.g., [[RFC7596](https://www.rfc-editor.org/rfc/rfc7596)],
 [[RFC7597](https://www.rfc-editor.org/rfc/rfc7597)], [[RFC7599](https://www.rfc-editor.org/rfc/rfc7599)])
Cooper, et al. Informational [Page 3]
RFC 7721 IPv6 Address Generation Privacy March 2016
 * Derived from an IPv4 address and port (e.g., [[RFC4380](https://www.rfc-editor.org/rfc/rfc4380)])
 Deriving the IID from a globally unique IEEE identifier [RFC2464]
 [[RFC4862](https://www.rfc-editor.org/rfc/rfc4862)] was one of the earliest mechanisms developed (and
 originally specified in [[RFC1971](https://www.rfc-editor.org/rfc/rfc1971)] and [[RFC1972](https://www.rfc-editor.org/rfc/rfc1972)]). A number of
 privacy and security issues related to the IIDs derived from IEEE
 identifiers were discovered after their standardization, and many of
 the mechanisms developed later aimed to mitigate some or all of these
 weaknesses. This document identifies four types of attacks against
 IEEE-identifier-based IIDs and discusses how other existing
 techniques for generating IIDs do or do not mitigate those attacks.
2. Terminology
 This section clarifies the terminology used throughout this document.
 Public address:
 An address that has been published in a directory or other public
 location, such as the DNS, a SIP proxy [[RFC3261](https://www.rfc-editor.org/rfc/rfc3261)], an application-
 specific Distributed Hash Table (DHT), or a publicly available
 URI. A host's public addresses are intended to be discoverable by
 third parties.
 Stable address:
 An address that does not vary over time within the same IPv6 link.
 Note that [RFC4941] refers to these as "public" addresses, but
 "stable" is used here for reasons explained in Section 4.
 Temporary address:
 An address that varies over time within the same IPv6 link.
 Constant IID:
 An IPv6 interface identifier that is globally stable. That is,
 the Interface ID will remain constant even if the node moves from
 one IPv6 link to another.
 Stable IID:
 An IPv6 interface identifier that is stable within some specified
 context. For example, an Interface ID can be globally stable
 (constant) or could be stable per IPv6 link (meaning that the
 Interface ID will remain unchanged as long as the node stays on
 the same IPv6 link but may change when the node moves from one
 IPv6 link to another).
 Temporary IID:
 An IPv6 interface identifier that varies over time.
Cooper, et al. Informational [Page 4]
RFC 7721 IPv6 Address Generation Privacy March 2016
 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
 "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
 "OPTIONAL" in this document are to be interpreted as described in
 [[RFC2119](https://www.rfc-editor.org/rfc/rfc2119)]. These words take their normative meanings only when they
 are presented in ALL UPPERCASE.
3. Weaknesses in IEEE-Identifier-Based IIDs
 There are a number of privacy and security implications that exist
 for hosts that use IEEE-identifier-based IIDs. This section
 discusses four generic attack types: correlation of activities over
 time, location tracking, address scanning, and device-specific
 vulnerability exploitation. The first three of these rely on the
 attacker first gaining knowledge of the IID of the target host. This
 could be achieved by a number of different entities: the operator of
 a server to which the host connects, such as a web server or a peer-
 to-peer server; an entity that connects to the same IPv6 link as the
 target (such as a conference network or any public network); a
 passive observer of traffic that the host broadcasts; or an entity
 that is on path to the destinations with which the host communicates,
 such as a network operator.
3.1. Correlation of Activities over Time
 As with other identifiers, an IPv6 address can be used to correlate
 the activities of a host for at least as long as the lifetime of the
 address. The correlation made possible by IEEE-identifier-based IIDs
 is of particular concern since they last roughly for the lifetime of
 a device's network interface, allowing correlation on the order of
 years.
 As [RFC4941] explains,
 [t]he use of a non-changing interface identifier to form addresses
 is a specific instance of the more general case where a constant
 identifier is reused over an extended period of time and in
 multiple independent activities. Anytime the same identifier is
 used in multiple contexts, it becomes possible for that identifier
 to be used to correlate seemingly unrelated activity. ... The use
 of a constant identifier within an address is of special concern
 because addresses are a fundamental requirement of communication
 and cannot easily be hidden from eavesdroppers and other parties.
 Even when higher layers encrypt their payloads, addresses in
 packet headers appear in the clear.
 IP addresses are just one example of information that can be used to
 correlate activities over time. DNS names, cookies [[RFC6265](https://www.rfc-editor.org/rfc/rfc6265)],
 browser fingerprints [Panopticlick], and application-layer usernames
Cooper, et al. Informational [Page 5]
RFC 7721 IPv6 Address Generation Privacy March 2016
 can all be used to link a host's activities together. Although IEEE-
 identifier-based IIDs are likely to last at least as long or longer
 than these other identifiers, IIDs generated in other ways may have
 shorter or longer lifetimes than these identifiers depending on how
 they are generated. Therefore, the extent to which a host's
 activities can be correlated depends on whether the host uses
 multiple identifiers together and the lifetimes of all of those
 identifiers. Frequently refreshing an IPv6 address may not mitigate
 correlation if an attacker has access to other longer-lived
 identifiers for a particular host. This is an important caveat to
 keep in mind throughout the discussion of correlation in this
 document. For further discussion of correlation, see Section 5.2.1
 of [RFC6973].
 As noted in [RFC4941], in some cases correlation is just as feasible
 for a host using an IPv4 address as for a host using an IEEE
 identifier to generate its IID in its IPv6 address. Hosts that use
 static IPv4 addressing or who are consistently allocated the same
 address via DHCPv4 can be tracked as described above. However, the
 widespread use of both NAT and DHCPv4 implementations that assign the
 same host a different address upon lease expiration mitigates this
 threat in the IPv4 case as compared to the IEEE identifier case in
 IPv6.
3.2. Location Tracking
 Because the IPv6 address structure is divided between a topological
 portion and an interface identifier portion, an interface identifier
 that remains constant when a host connects to different IPv6 links
 (as an IEEE-identifier-based IID does) provides a way for observers
 to track the movements of that host. In a passive attack on a mobile
 host, a server that receives connections from the same host over time
 would be able to determine the host's movements as its prefix
 changes.
 Active attacks are also possible. An attacker that first learns the
 host's interface identifier by being connected to the same IPv6 link,
 running a server that the host connects to, or being on path to the
 host's communications could subsequently probe other networks for the
 presence of the same interface identifier by sending a probe packet
 (e.g., ICMPv6 Echo Request, or any other probe packet). Even if the
 host does not respond, the first-hop router will usually respond with
 an ICMP Destination Unreachable/Address Unreachable (type 1, code 3)
 when the host is not present and be silent when the host is present.
 Location tracking based on IP address is generally not possible in
 IPv4 since hosts get assigned wholly new addresses when they change
 networks.
Cooper, et al. Informational [Page 6]
RFC 7721 IPv6 Address Generation Privacy March 2016
3.3. Address Scanning
 The structure of IEEE-based identifiers used for address generation
 can be leveraged by an attacker to reduce the target search space
 [RFC7707]. The 24-bit Organizationally Unique Identifier (OUI) of
 MAC addresses, together with the fixed value (0xff, 0xfe) used to
 form a Modified EUI-64 interface identifier, greatly help to reduce
 the search space, making it easier for an attacker to scan for
 individual addresses using widely known popular OUIs. This erases
 much of the protection against address scanning that the larger IPv6
 address space could provide as compared to IPv4.
3.4. Device-Specific Vulnerability Exploitation
 IPv6 addresses that embed IEEE identifiers leak information about the
 device (e.g., Network Interface Card vendor, or even Operating System
 and/or software type), which could be leveraged by an attacker with
 knowledge of device- or software-specific vulnerabilities to quickly
 find possible targets. Attackers can exploit vulnerabilities in
 hosts whose IIDs they have previously obtained or scan an address
 space to find potential targets.
4. Privacy and Security Properties of Address Generation Mechanisms
 Analysis of the extent to which a particular host is protected
 against the attacks described in Section 3 depends on how each of a
 host's addresses is generated and used. In some scenarios, a host
 configures a single global address and uses it for all
 communications. In other scenarios, a host configures multiple
 addresses using different mechanisms and may use any or all of them.
 [RFC3041] (later obsoleted by [RFC4941]) sought to address some of
 the problems described in Section 3 by defining "temporary addresses"
 for outbound connections. Temporary addresses are meant to
 supplement the other addresses that a device might use, not to
 replace them. They use IIDs that are randomly generated and change
 daily by default. The idea was for temporary addresses to be used
 for outgoing connections (e.g., web browsing) while maintaining the
 ability to use a stable address when more address stability is
 desired (e.g., for IPv6 addresses published in the DNS).
 [[RFC3484](https://www.rfc-editor.org/rfc/rfc3484)] originally specified that stable addresses be used for
 outbound connections unless an application explicitly prefers
 temporary addresses. The default preference for stable addresses was
 established to avoid applications potentially failing due to the
 short lifetime of temporary addresses or the possibility of a reverse
 look-up failure or error. However, [RFC3484] allowed that
 "implementations for which privacy considerations outweigh these
Cooper, et al. Informational [Page 7]
RFC 7721 IPv6 Address Generation Privacy March 2016
 application-compatibility concerns MAY reverse the sense of this
 rule" and instead prefer by default temporary addresses rather than
 stable addresses. Indeed, most implementations (notably including
 Windows) chose to default to temporary addresses for outbound
 connections since privacy was considered more important (and few
 applications supported IPv6 at the time, so application compatibility
 concerns were minimal). [[RFC6724](https://www.rfc-editor.org/rfc/rfc6724)] then obsoleted [RFC3484] and
 changed the default to match what implementations actually did.
 The envisioned relationship in [RFC3484] between stability of an
 address and its use in "public" can be misleading when conducting
 privacy analysis. The stability of an address and the extent to
 which it is linkable to some other public identifier are independent
 of one another. For example, there is nothing that prevents a host
 from publishing a temporary address in a public place, such as the
 DNS. Publishing both a stable address and a temporary address in the
 DNS or elsewhere where they can be linked together by a public
 identifier allows the host's activities when using either address to
 be correlated together.
 Moreover, because temporary addresses were designed to supplement
 other addresses generated by a host, the host may still configure a
 more stable address even if it only ever intentionally uses temporary
 addresses (as source addresses) for communication to off-link
 destinations. An attacker can probe for the stable address even if
 it is never used as such a source address or advertised outside the
 link (e.g., in DNS or SIP).
 This section compares the privacy and security properties of a
 variety of IID generation mechanisms and their possible usage
 scenarios, including scenarios in which a single mechanism is used to
 generate all of a host's IIDs and those in which temporary addresses
 are used together with addresses generated using a different IID
 generation mechanism. The analysis of the exposure of each IID type
 to correlation assumes that IPv6 prefixes are shared by a reasonably
 large number of nodes. As [RFC4941] notes, if a very small number of
 nodes (say, only one) use a particular prefix for an extended period
 of time, the prefix itself can be used to correlate the host's
 activities regardless of how the IID is generated. For example,
 [[RFC3314](https://www.rfc-editor.org/rfc/rfc3314)] recommends that prefixes be uniquely assigned to mobile
 handsets where IPv6 is used within General Packet Radio Service
 (GPRS). In cases where this advice is followed and prefixes persist
 for extended periods of time (or get reassigned to the same handsets
 whenever those handsets reconnect to the same network router), hosts'
 activities could be correlatable for longer periods than the analysis
 below would suggest.
Cooper, et al. Informational [Page 8]
RFC 7721 IPv6 Address Generation Privacy March 2016
 The table below provides a summary of the whole analysis. A "No"
 entry indicates that the attack is prevented from being carried out
 on the basis of the IID, but the host may still be vulnerable
 depending on how it employs other protocols.
 +--------------+-------------+----------+-------------+-------------+
 | Mechanism(s) | Correlation | Location | Address | Device |
 | | | tracking | scanning | exploits |
 +--------------+-------------+----------+-------------+-------------+
 | IEEE | For device | For | Possible | Possible |
 | identifier | lifetime | device | | |
 | | | lifetime | | |
 | | | | | |
 | Static | For address | For | Depends on | Depends on |
 | manual | lifetime | address | generation | generation |
 | | | lifetime | mechanism | mechanism |
 | | | | | |
 | Constant, | For address | For | No | No |
 | semantically | lifetime | address | | |
 | opaque | | lifetime | | |
 | | | | | |
 | CGA | For | No | No | No |
 | | lifetime of | | | |
 | | (modifier | | | |
 | | block + | | | |
 | | public key) | | | |
 | | | | | |
 | Stable, | Within | No | No | No |
 | semantically | single IPv6 | | | |
 | opaque | link | | | |
 | | | | | |
 | Temporary | For temp | No | No | No |
 | | address | | | |
 | | lifetime | | | |
 | | | | | |
 | DHCPv6 | For lease | No | Depends on | No |
 | | lifetime | | generation | |
 | | | | mechanism | |
 +--------------+-------------+----------+-------------+-------------+
 Table 1: Privacy and Security Properties of IID Generation Mechanisms
Cooper, et al. Informational [Page 9]
RFC 7721 IPv6 Address Generation Privacy March 2016
4.1. IEEE-Identifier-Based IIDs
 As discussed in Section 3, addresses that use IIDs based on IEEE
 identifiers are vulnerable to all four attacks. They allow
 correlation and location tracking for the lifetime of the device
 since IEEE identifiers last that long and their structure makes
 address scanning and device exploits possible.
4.2. Static, Manually Configured IIDs
 Because static, manually configured IIDs are stable, both correlation
 and location tracking are possible for the life of the address.
 The extent to which location tracking can be successfully performed
 depends, to some extent, on the uniqueness of the employed IID. For
 example, one would expect "low byte" IIDs to be more widely reused
 than, for example, IIDs where the whole 64 bits follow some pattern
 that is unique to a specific organization. Widely reused IIDs will
 typically lead to false positives when performing location tracking.
 Whether manually configured addresses are vulnerable to address
 scanning and device exploits depends on the specifics of how the IIDs
 are generated.
4.3. Constant, Semantically Opaque IIDs
 Although a mechanism to generate a constant, semantically opaque IID
 has not been standardized, it has been in wide use for many years on
 at least one platform (Windows). Windows uses the random generation
 mechanism described in [RFC4941] in lieu of generating an IEEE-
 identifier-based IID. This mitigates the device-specific
 exploitation and address-scanning attacks but still allows
 correlation and location tracking because the IID is constant across
 IPv6 links and time.
4.4. Cryptographically Generated IIDs
 Cryptographically Generated Addresses (CGAs) [RFC3972] bind a hash of
 the host's public key to an IPv6 address in the SEcure Neighbor
 Discovery (SEND) protocol [[RFC3971](https://www.rfc-editor.org/rfc/rfc3971)]. CGAs may be regenerated for
 each subnet prefix, but this is not required given that they are
 computationally expensive to generate. A host using a CGA can be
 correlated for as long as the lifetime of the combination of the
 public key and the chosen modifier block since it is possible to
 rotate modifier blocks without generating new public keys. Because
 the cryptographic hash of the host's public key uses the subnet
 prefix as an input, even if the host does not generate a new public
 key or modifier block when it moves to a different IPv6 link, its
Cooper, et al. Informational [Page 10]
RFC 7721 IPv6 Address Generation Privacy March 2016
 location cannot be tracked via the IID. CGAs do not allow device-
 specific exploitation or address-scanning attacks.
4.5. Stable, Semantically Opaque IIDs
 [RFC7217] specifies an algorithm that generates, for each network
 interface, a unique random IID per IPv6 link. The aforementioned
 algorithm is employed not only for global unicast addresses, but also
 for unique local unicast addresses and link-local unicast addresses
 since these addresses may leak out via application protocols (e.g.,
 IPv6 addresses embedded in email headers).
 A host that stays connected to the same IPv6 link could therefore be
 tracked at length, whereas a mobile host's activities could only be
 correlated for the duration of each network connection. Location
 tracking is not possible with these addresses. They also do not
 allow device-specific exploitation or address-scanning attacks.
4.6. Temporary IIDs
 A host that uses only a temporary address mitigates all four threats.
 Its activities may only be correlated for the lifetime of a single
 temporary address.
 A host that configures both an IEEE-identifier-based IID and
 temporary addresses makes the host vulnerable to the same attacks as
 if temporary addresses were not in use, although the viability of
 some of them depends on how the host uses each address. An attacker
 can correlate all of the host's activities for which it uses its
 IEEE-identifier-based IID. Once an attacker has obtained the IEEE-
 identifier-based IID, location tracking becomes possible on other
 IPv6 links even if the host only makes use of temporary addresses on
 those other IPv6 links; the attacker can actively probe the other
 IPv6 links for the presence of the IEEE-identifier-based IID.
 Device-specific vulnerabilities can still be exploited. Address
 scanning is also still possible because the IEEE-identifier-based
 address can be probed.
 If the host instead generates a constant, semantically opaque IID to
 use in a stable address for server-like connections together with
 temporary addresses for outbound connections (as is the default in
 Windows), it sees some improvements over the previous scenario. The
 address-scanning attacks and device-specific exploitation attacks are
 no longer possible because the OUI is no longer embedded in any of
 the host's addresses. However, correlation of some activities across
 time and location tracking are both still possible because the
 semantically opaque IID is constant. And once an attacker has
 obtained the host's semantically opaque IID, location tracking is
Cooper, et al. Informational [Page 11]
RFC 7721 IPv6 Address Generation Privacy March 2016
 possible on any network by probing for that IID, even if the host
 only uses temporary addresses on those networks. However, if the
 host generates but never uses a constant, semantically opaque IID, it
 mitigates all four threats.
 When used together with temporary addresses, the stable, semantically
 opaque IID generation mechanism [RFC7217] improves upon the previous
 scenario by limiting the potential for correlation to the lifetime of
 the stable address (which may still be lengthy for hosts that are not
 mobile) and by eliminating the possibility for location tracking
 (since a different IID is generated for each subnet prefix). As in
 the previous scenario, a host that configures but does not use a
 stable, semantically opaque address mitigates all four threats.
4.7. DHCPv6 Generation of IIDs
 The security and privacy implications of DHCPv6-based addresses will
 typically depend on whether the client requests an IA_NA (Identity
 Association for Non-temporary Addresses) or an IA_TA (Identity
 Association for Temporary Addresses) [RFC3315] and the specific
 DHCPv6 server software being employed.
 DHCPv6 temporary addresses have the same properties as SLAAC
 temporary addresses (see Section 4.6). On the other hand, the
 properties of DHCPv6 non-temporary addresses typically depend on the
 specific DHCPv6 server software being employed. Recent releases of
 most popular DHCPv6 server software typically lease random addresses
 with a similar lease time as that of IPv4. Thus, these addresses can
 be considered to be "stable, semantically opaque". [DHCPv6-IID]
 specifies an algorithm that can be employed by DHCPv6 servers to
 generate "stable, semantically opaque" addresses.
 On the other hand, some DHCPv6 software leases sequential addresses
 (typically low-byte addresses). These addresses can be considered to
 be stable addresses. The drawback of this address generation scheme
 compared to "stable, semantically opaque" addresses is that, since
 they follow specific patterns, they enable IPv6 address scans.
4.8. Transition and Coexistence Technologies
 Addresses specified based on transition or coexistence technologies
 that embed an IPv4 address within an IPv6 address are not included in
 Table 1 because their privacy and security properties are inherited
 from the embedded address. For example, Teredo [RFC4380] specifies a
 means to generate an IPv6 address from the underlying IPv4 address
 and port, leaving many other bits set to zero. This makes it
 relatively easy for an attacker to scan for IPv6 addresses by
 guessing the Teredo client's IPv4 address and port (which for many
Cooper, et al. Informational [Page 12]
RFC 7721 IPv6 Address Generation Privacy March 2016
 NATs is not randomized). For this reason, popular implementations
 (e.g., Windows) began deviating from the standard by including 12
 random bits in place of zero bits. This modification was later
 standardized in [[RFC5991](https://www.rfc-editor.org/rfc/rfc5991)].
 Some other transition technologies (e.g., [RFC5214], [RFC6052])
 specify means to generate an IPv6 address from an underlying IPv4
 address without a port. Such mechanisms thus make it much easier for
 an attacker to conduct an address scan than for mechanisms that
 require finding a port number as well.
 Finally, still other mechanisms (e.g., [RFC7596], [RFC7597],
 [RFC7599]) are somewhere in between, using an IPv4 address and a port
 set ID (which for many NATs is not randomized). In general, such
 mechanisms are thus typically as easy to scan as in the Teredo
 example above without the 12-bit mitigation.
5. Miscellaneous Issues with IPv6 Addressing
5.1. Network Operation
 It is generally agreed that IPv6 addresses that vary over time in a
 specific IPv6 link tend to increase the complexity of event logging,
 trouble-shooting, enforcement of access controls and quality of
 service, etc. As a result, some organizations disable the use of
 temporary addresses [RFC4941] even at the expense of reduced privacy
 [Broersma].
5.2. Compliance
 Some IPv6 compliance testing suites required (and might still
 require) implementations to support IEEE-identifier-based IIDs in
 order to be approved as compliant. This document recommends that
 compliance testing suites be relaxed to allow other forms of address
 generation that are more amenable to privacy.
5.3. Intellectual Property Rights (IPRs)
 Some IPv6 addressing techniques might be covered by Intellectual
 Property rights, which might limit their implementation in different
 operating systems. [CGA-IPR] and [KAME-CGA] discuss the IPRs on
 CGAs.
6. Security Considerations
 This whole document concerns the privacy and security properties of
 different IPv6 address generation mechanisms.
Cooper, et al. Informational [Page 13]
RFC 7721 IPv6 Address Generation Privacy March 2016
7. References
7.1. Normative References
 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
 Requirement Levels", [BCP 14](https://www.rfc-editor.org/bcp/bcp14), [RFC 2119](https://www.rfc-editor.org/rfc/rfc2119),
 DOI 10.17487/RFC2119, March 1997,
 <[http://www.rfc-editor.org/info/rfc2119](http://www.rfc-editor.org/info/rfc2119)>.
 [RFC2464] Crawford, M., "Transmission of IPv6 Packets over Ethernet
 Networks", [RFC 2464](https://www.rfc-editor.org/rfc/rfc2464), DOI 10.17487/RFC2464, December 1998,
 <[http://www.rfc-editor.org/info/rfc2464](http://www.rfc-editor.org/info/rfc2464)>.
 [RFC3315] Droms, R., Ed., Bound, J., Volz, B., Lemon, T., Perkins,
 C., and M. Carney, "Dynamic Host Configuration Protocol
 for IPv6 (DHCPv6)", [RFC 3315](https://www.rfc-editor.org/rfc/rfc3315), DOI 10.17487/RFC3315, July
 2003, <[http://www.rfc-editor.org/info/rfc3315](http://www.rfc-editor.org/info/rfc3315)>.
 [RFC3971] Arkko, J., Ed., Kempf, J., Zill, B., and P. Nikander,
 "SEcure Neighbor Discovery (SEND)", [RFC 3971](https://www.rfc-editor.org/rfc/rfc3971),
 DOI 10.17487/RFC3971, March 2005,
 <[http://www.rfc-editor.org/info/rfc3971](http://www.rfc-editor.org/info/rfc3971)>.
 [RFC3972] Aura, T., "Cryptographically Generated Addresses (CGA)",
 [RFC 3972](https://www.rfc-editor.org/rfc/rfc3972), DOI 10.17487/RFC3972, March 2005,
 <[http://www.rfc-editor.org/info/rfc3972](http://www.rfc-editor.org/info/rfc3972)>.
 [RFC4380] Huitema, C., "Teredo: Tunneling IPv6 over UDP through
 Network Address Translations (NATs)", [RFC 4380](https://www.rfc-editor.org/rfc/rfc4380),
 DOI 10.17487/RFC4380, February 2006,
 <[http://www.rfc-editor.org/info/rfc4380](http://www.rfc-editor.org/info/rfc4380)>.
 [RFC4862] Thomson, S., Narten, T., and T. Jinmei, "IPv6 Stateless
 Address Autoconfiguration", [RFC 4862](https://www.rfc-editor.org/rfc/rfc4862),
 DOI 10.17487/RFC4862, September 2007,
 <[http://www.rfc-editor.org/info/rfc4862](http://www.rfc-editor.org/info/rfc4862)>.
 [RFC4941] Narten, T., Draves, R., and S. Krishnan, "Privacy
 Extensions for Stateless Address Autoconfiguration in
 IPv6", [RFC 4941](https://www.rfc-editor.org/rfc/rfc4941), DOI 10.17487/RFC4941, September 2007,
 <[http://www.rfc-editor.org/info/rfc4941](http://www.rfc-editor.org/info/rfc4941)>.
 [RFC5991] Thaler, D., Krishnan, S., and J. Hoagland, "Teredo
 Security Updates", [RFC 5991](https://www.rfc-editor.org/rfc/rfc5991), DOI 10.17487/RFC5991,
 September 2010, <[http://www.rfc-editor.org/info/rfc5991](http://www.rfc-editor.org/info/rfc5991)>.
Cooper, et al. Informational [Page 14]
RFC 7721 IPv6 Address Generation Privacy March 2016
 [RFC6724] Thaler, D., Ed., Draves, R., Matsumoto, A., and T. Chown,
 "Default Address Selection for Internet Protocol Version 6
 (IPv6)", [RFC 6724](https://www.rfc-editor.org/rfc/rfc6724), DOI 10.17487/RFC6724, September 2012,
 <[http://www.rfc-editor.org/info/rfc6724](http://www.rfc-editor.org/info/rfc6724)>.
 [RFC7136] Carpenter, B. and S. Jiang, "Significance of IPv6
 Interface Identifiers", [RFC 7136](https://www.rfc-editor.org/rfc/rfc7136), DOI 10.17487/RFC7136,
 February 2014, <[http://www.rfc-editor.org/info/rfc7136](http://www.rfc-editor.org/info/rfc7136)>.
 [RFC7217] Gont, F., "A Method for Generating Semantically Opaque
 Interface Identifiers with IPv6 Stateless Address
 Autoconfiguration (SLAAC)", [RFC 7217](https://www.rfc-editor.org/rfc/rfc7217),
 DOI 10.17487/RFC7217, April 2014,
 <[http://www.rfc-editor.org/info/rfc7217](http://www.rfc-editor.org/info/rfc7217)>.
7.2. Informative References
 [Broersma] Broersma, R., "IPv6 Everywhere: Living with a Fully
 IPv6-enabled environment", Australian IPv6 Summit 2010,
 Melbourne, VIC Australia, October 2010,
 <[http://www.ipv6.org.au/10ipv6summit/talks/](http://www.ipv6.org.au/10ipv6summit/talks/Ron_Broersma.pdf)
 [Ron_Broersma.pdf](http://www.ipv6.org.au/10ipv6summit/talks/Ron_Broersma.pdf)>.
 [CGA-IPR] IETF, "IPR Details: Microsoft's Statement about IPR
 claimed in RFC 3972", November 2005,
 <[https://datatracker.ietf.org/ipr/676/](https://datatracker.ietf.org/ipr/676/)>.
 [DHCPv6-IID]
 Gont, F. and W. Liu, "A Method for Generating Semantically
 Opaque Interface Identifiers with Dynamic Host
 Configuration Protocol for IPv6 (DHCPv6)", Work in
 Progress, [draft-ietf-dhc-stable-privacy-addresses-02](https://www.rfc-editor.org/rfc/draft-ietf-dhc-stable-privacy-addresses-02),
 April 2015.
 [KAME-CGA] The KAME Project, "The KAME IPR policy and concerns of
 some technologies which have IPR claims", November 2005,
 <[http://www.kame.net/newsletter/20040525/](http://www.kame.net/newsletter/20040525/)>.
 [Microsoft]
 Microsoft, "IPv6 interface identifiers", 2013,
 <[http://www.microsoft.com/resources/documentation/](http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_ip_v6_imp_addr7.mspx?mfr=true)
 [windows/xp/all/proddocs/en-us/](http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_ip_v6_imp_addr7.mspx?mfr=true)
 [sag_ip_v6_imp_addr7.mspx?mfr=true](http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_ip_v6_imp_addr7.mspx?mfr=true)>.
 [Panopticlick]
 Electronic Frontier Foundation, "Panopticlick", 2011,
 <[http://panopticlick.eff.org](http://panopticlick.eff.org)>.
Cooper, et al. Informational [Page 15]
RFC 7721 IPv6 Address Generation Privacy March 2016
 [RFC1971] Thomson, S. and T. Narten, "IPv6 Stateless Address
 Autoconfiguration", [RFC 1971](https://www.rfc-editor.org/rfc/rfc1971), DOI 10.17487/RFC1971, August
 1996, <[http://www.rfc-editor.org/info/rfc1971](http://www.rfc-editor.org/info/rfc1971)>.
 [RFC1972] Crawford, M., "A Method for the Transmission of IPv6
 Packets over Ethernet Networks", [RFC 1972](https://www.rfc-editor.org/rfc/rfc1972),
 DOI 10.17487/RFC1972, August 1996,
 <[http://www.rfc-editor.org/info/rfc1972](http://www.rfc-editor.org/info/rfc1972)>.
 [RFC3041] Narten, T. and R. Draves, "Privacy Extensions for
 Stateless Address Autoconfiguration in IPv6", [RFC 3041](https://www.rfc-editor.org/rfc/rfc3041),
 DOI 10.17487/RFC3041, January 2001,
 <[http://www.rfc-editor.org/info/rfc3041](http://www.rfc-editor.org/info/rfc3041)>.
 [RFC3261] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
 A., Peterson, J., Sparks, R., Handley, M., and E.
 Schooler, "SIP: Session Initiation Protocol", [RFC 3261](https://www.rfc-editor.org/rfc/rfc3261),
 DOI 10.17487/RFC3261, June 2002,
 <[http://www.rfc-editor.org/info/rfc3261](http://www.rfc-editor.org/info/rfc3261)>.
 [RFC3314] Wasserman, M., Ed., "Recommendations for IPv6 in Third
 Generation Partnership Project (3GPP) Standards",
 [RFC 3314](https://www.rfc-editor.org/rfc/rfc3314), DOI 10.17487/RFC3314, September 2002,
 <[http://www.rfc-editor.org/info/rfc3314](http://www.rfc-editor.org/info/rfc3314)>.
 [RFC3484] Draves, R., "Default Address Selection for Internet
 Protocol version 6 (IPv6)", [RFC 3484](https://www.rfc-editor.org/rfc/rfc3484),
 DOI 10.17487/RFC3484, February 2003,
 <[http://www.rfc-editor.org/info/rfc3484](http://www.rfc-editor.org/info/rfc3484)>.
 [RFC5214] Templin, F., Gleeson, T., and D. Thaler, "Intra-Site
 Automatic Tunnel Addressing Protocol (ISATAP)", [RFC 5214](https://www.rfc-editor.org/rfc/rfc5214),
 DOI 10.17487/RFC5214, March 2008,
 <[http://www.rfc-editor.org/info/rfc5214](http://www.rfc-editor.org/info/rfc5214)>.
 [RFC6052] Bao, C., Huitema, C., Bagnulo, M., Boucadair, M., and X.
 Li, "IPv6 Addressing of IPv4/IPv6 Translators", [RFC 6052](https://www.rfc-editor.org/rfc/rfc6052),
 DOI 10.17487/RFC6052, October 2010,
 <[http://www.rfc-editor.org/info/rfc6052](http://www.rfc-editor.org/info/rfc6052)>.
 [RFC6265] Barth, A., "HTTP State Management Mechanism", [RFC 6265](https://www.rfc-editor.org/rfc/rfc6265),
 DOI 10.17487/RFC6265, April 2011,
 <[http://www.rfc-editor.org/info/rfc6265](http://www.rfc-editor.org/info/rfc6265)>.
Cooper, et al. Informational [Page 16]
RFC 7721 IPv6 Address Generation Privacy March 2016
 [RFC6973] Cooper, A., Tschofenig, H., Aboba, B., Peterson, J.,
 Morris, J., Hansen, M., and R. Smith, "Privacy
 Considerations for Internet Protocols", [RFC 6973](https://www.rfc-editor.org/rfc/rfc6973),
 DOI 10.17487/RFC6973, July 2013,
 <[http://www.rfc-editor.org/info/rfc6973](http://www.rfc-editor.org/info/rfc6973)>.
 [RFC7421] Carpenter, B., Ed., Chown, T., Gont, F., Jiang, S.,
 Petrescu, A., and A. Yourtchenko, "Analysis of the 64-bit
 Boundary in IPv6 Addressing", [RFC 7421](https://www.rfc-editor.org/rfc/rfc7421),
 DOI 10.17487/RFC7421, January 2015,
 <[http://www.rfc-editor.org/info/rfc7421](http://www.rfc-editor.org/info/rfc7421)>.
 [RFC7596] Cui, Y., Sun, Q., Boucadair, M., Tsou, T., Lee, Y., and I.
 Farrer, "Lightweight 4over6: An Extension to the Dual-
 Stack Lite Architecture", [RFC 7596](https://www.rfc-editor.org/rfc/rfc7596), DOI 10.17487/RFC7596,
 July 2015, <[http://www.rfc-editor.org/info/rfc7596](http://www.rfc-editor.org/info/rfc7596)>.
 [RFC7597] Troan, O., Ed., Dec, W., Li, X., Bao, C., Matsushima, S.,
 Murakami, T., and T. Taylor, Ed., "Mapping of Address and
 Port with Encapsulation (MAP-E)", [RFC 7597](https://www.rfc-editor.org/rfc/rfc7597),
 DOI 10.17487/RFC7597, July 2015,
 <[http://www.rfc-editor.org/info/rfc7597](http://www.rfc-editor.org/info/rfc7597)>.
 [RFC7599] Li, X., Bao, C., Dec, W., Ed., Troan, O., Matsushima, S.,
 and T. Murakami, "Mapping of Address and Port using
 Translation (MAP-T)", [RFC 7599](https://www.rfc-editor.org/rfc/rfc7599), DOI 10.17487/RFC7599, July
 2015, <[http://www.rfc-editor.org/info/rfc7599](http://www.rfc-editor.org/info/rfc7599)>.
 [RFC7707] Gont, F. and T. Chown, "Network Reconnaissance in IPv6
 Networks", [RFC 7707](https://www.rfc-editor.org/rfc/rfc7707), DOI 10.17487/RFC7707, March 2016,
 <[http://www.rfc-editor.org/info/rfc7707](http://www.rfc-editor.org/info/rfc7707)>.
Cooper, et al. Informational [Page 17]
RFC 7721 IPv6 Address Generation Privacy March 2016
Acknowledgements
 The authors would like to thank Bernard Aboba, Brian Carpenter, Tim
 Chown, Lorenzo Colitti, Rich Draves, Robert Hinden, Robert Moskowitz,
 Erik Nordmark, Mark Smith, Ole Troan, and James Woodyatt for
 providing valuable comments on earlier draft versions of this
 document.
Authors' Addresses
 Alissa Cooper
 Cisco
 707 Tasman Drive
 Milpitas, CA 95035
 United States
 Phone: +1-408-902-3950
 Email: alcoop@cisco.com
 URI: [https://www.cisco.com/](https://www.cisco.com/)
 Fernando Gont
 Huawei Technologies
 Evaristo Carriego 2644
 Haedo, Provincia de Buenos Aires 1706
 Argentina
 Phone: +54 11 4650 8472
 Email: fgont@si6networks.com
 URI: [http://www.si6networks.com](http://www.si6networks.com)
 Dave Thaler
 Microsoft
 One Microsoft Way
 Redmond, WA 98052
 United States
 Phone: +1 425 703 8835
 Email: dthaler@microsoft.com
Cooper, et al. Informational [Page 18]