[secdir] Secdir early review of draft-ietf-tsvwg-transport-encrypt-03

Christopher Wood <christopherwood07@gmail.com> Thu, 27 December 2018 01:02 UTC

Return-Path: <christopherwood07@gmail.com>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 70E14127B4C; Wed, 26 Dec 2018 17:02:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level:
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zx1cNEkEd4Us; Wed, 26 Dec 2018 17:02:18 -0800 (PST)
Received: from mail-it1-x135.google.com (mail-it1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 957971286D9; Wed, 26 Dec 2018 17:02:15 -0800 (PST)
Received: by mail-it1-x135.google.com with SMTP id w18so22841305ite.1; Wed, 26 Dec 2018 17:02:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=M7s2xNaisXIzDaosLkRaiAcILKloixThoY4/ck4cRI0=; b=u3z703XPwfk+AZZPKj4/7zOQ6UOVzZq3LUCWE/QGK8ssNY3mf1+TMI0rNHim2idxtO Q3Vc0b4Wtoe/0XVxTd6fbLoY2e1swmjG5BHpIrxbEWa+Hwhgb66siEiZ7zZyosnG8lXX lhNiAh83LOpaonbkcTnz+p1HCgI+Ltx08r2Wi53769NFxUcUmJScnRk1EHejaDhcbJw7 aMqMUoOOwCO0t5yxlHn4yHOnwgxPDAvxa9ieK3/5phzJo8CfPnmpupgJwwXoGaEpS97Y JMe+BGbaxkrA5VsjNwN8Zm4Fw3L64ZmlbYFIGiVwgCe2MdmQK3Vx6FDBu8tCRJzSFajd +y6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=M7s2xNaisXIzDaosLkRaiAcILKloixThoY4/ck4cRI0=; b=cif/g642hEF5pEiLePkBkyb15UqmyocAh10tmKuo80esYiUUbHPC3G8T22pjvCnDhL OR3E9r3U4sgqmIPKvgzgwZeq5XdzOBNgFjFvKYHGV1Xv3GwAtJ3n1icwQCyuJmXO+eOZ cKSCp+kIlp9dKdEDStVEvvTjFeL8V3/3OoR7yqCx9PK389kgrH31RJWHQif8kKwf9NAv o3kuLx8JlxcwyW2Rch1iLaN34NBWDQl1M7sOPmCpRVz/6e+ZERrv5qjMpmV5mvTfQN76 QtuLBa2CHjCzQKNuu9cdpe0IJEecEIYEWZo3qSUyv37jYiz2DPYKxW/1Si1YoKO/yrD8 vSnQ==
X-Gm-Message-State: AA+aEWa7ELdD5AIzfLAMgV/+VTJ5MmCMk9MsvhfhEOxkyU7dxInoPH+v eLESV5ujKJ2dsjBt/UzbC02I5lgcHjIR82oVgMxF9n5W
X-Google-Smtp-Source: AFSGD/XzkDDooDbFC2NyxzwG2oUHwlqcl3w8zKEa0SLiVlCsJAns9RoKfBvKvDNLFvUJwaWdGrrKG6ilhrToXWuvKTs=
X-Received: by 2002:a02:9d27:: with SMTP id n36mr13371058jak.30.1545872534075; Wed, 26 Dec 2018 17:02:14 -0800 (PST)
MIME-Version: 1.0
From: Christopher Wood <christopherwood07@gmail.com>
Date: Wed, 26 Dec 2018 17:02:02 -0800
Message-ID: <CAO8oSXk5cZmKiqSGbURj3QZ-wGRpsg10HthREioaRrZtZmP8DQ@mail.gmail.com>
To: secdir@ietf.org, tsvwg@ietf.org, draft-ietf-tsvwg-transport-encrypt.all@ietf.org, The IESG <iesg@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/secdir/Mj79JXfwo9CjhHpwxy8A8fuAwj4>
Subject: [secdir] Secdir early review of draft-ietf-tsvwg-transport-encrypt-03
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/secdir/>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Dec 2018 01:02:22 -0000

Reviewer: Christopher Wood
Review result: Has issues

Review of draft-ietf-tsvwg-transport-encrypt-03

I have reviewed this document as part of the security directorate's
ongoing effort to review all IETF documents being processed by the
IESG.  These comments were written primarily for the benefit of the
security area directors.  Document editors and WG chairs should treat
these comments just like any other last call comments.

  The summary of my review is: Has issues

This document lays out a comprehensive assessment of the impact of
transport (header) encryption on network users and operators.
Motivation for and dependencies on cleartext transport information is
clear. Yet, while this information is all useful, I observe a couple
issues with the document in its current state that might be worth
addressing. For brevity, I’ve enumerated them below.

1. While the document states that discouraging encryption is not a
goal, several sections seem to encourage or otherwise promote various
workarounds for transport encryption that seem in conflict with the
goal of encryption. For example, in Section 3.1.3, encouraged use of
IPv6 Network Flow Labels as a way of marking transport flows seems in
conflict with QUIC’s use of rotating connection identifiers (as a
means of helping unlinkability). Security and privacy motivated QUIC’s
aggressive use of encryption, and it seems that this privacy
perspective is not given enough attention. Are any transport protocol
implementations setting this information at the network layer? As
another example, consider Section 6.1, wherein the document discusses
privacy implications of sharing data. It states that protocols which
“expose the state information used by the transport protocol in their
header information ... provide an incentive for the sending endpoint
to provide correct information.” I’m not sure this is accurate given
the outcome of the QUIC Privacy Design Team and follow up work from
the spin bit folks. Recall that one aspect studied by the Design Team
was whether or not knowledge of RTT information was sufficient to
geolocate a client. The analysis from Brian and Mirja [1] shows that
this is a difficult, though possibly feasible, task, which seems
contrary to the point that endpoints would have incentives to make it
available. Moreover, several entities showed interest in greasing the
spin bit to prevent ossification and, as a result, promote endpoint
privacy. Regardless of the motives, it seems that clients do not have
incentives to send accurate signaling information in all cases.
2. Parts of the document seem seemingly suggest that changes in
network operator tooling is prohibitively costly and could possibly be
considered a blocking factor when deciding which transport headers (if
any) to encrypt. In particular, the Conclusion states that if the
“currently deployed tools and methods are no longer relevant, then it
may no longer be possible to correctly measure performance.” Perhaps
the document should also state that an alternative outcome is that
mechanisms, policies, and tooling change to adapt to transport
encryption. While the needs of network operators may be real, they do
not seem to trump security and privacy concerns of endpoints.
Relatedly, is it worth encouraging research and development into
techniques that allow endpoints to voluntarily share this information?
As an extreme example, it could be possible to apply differential
privacy techniques to diagnostic traceroute packet traces as a way of
helping operators debug network issues. (The proposed IRTF PEARG
indicated some interest in this direction.)
3. A seemingly large missed opportunity in this document is the
discussion of TLS 1.3 deployment obstacles [2] and their impact on
QUIC’s design decisions [3, Section 3.3]. There are many places where
discussion of the TLS ossification problems would be appropriate,
e.g., in Section 2 fourth paragraph describing shortcomings of
integrity-only protections, Section 2 seventh paragraph describing
greasing, and Section
4, first bullet. Increased encryption should help prevent invariant
violation, which caused great pain when deploying TLS 1.3. Perhaps a
clear statement of protocol invariants would have mitigated the
deployment problems, though it happened nevertheless. That said, as
stated in the document, encryption as a mitigation may not prevent
ossification entirely, as network operators may come to rely on
traffic patterns or other heuristics. (Related to TLS 1.3, it might be
worth including TLS over TCP as a first class citizen in the document
given its increase in use.)
4. The document focuses on transport header encryption and its impact
on network operators. Perhaps it might be worth generalizing this to
focus the impact of exposing explicit signals to the network, with
encryption as one way of hiding such explicit signals. Implicit
signals include those one can glean from connection metadata, e.g.,
traffic patterns, size, and timing information.
5. There’s a lot of redundant content spread across the document. A
significant amount of information could be removed without loss of
material, clarity, or continuity, and doing so would likely benefit
the reader. Specifically, Sections 3.2.2, 3.2.3, 3.3, parts of 3.2.4
(first couple paragraphs), 5 (first two paragraphs), 6.3 (second
paragraph), and 6.4 (most content) all contain redundant text that's
worth trimming or removing altogether.

I also have the following more specific comments about the document:

- Section 2, eighth paragraph: encryption does not always prevent
on-path devices from gaining knowledge of the header field. In
particular, since QUIC Initial keys are public, it is possible for an
on-path device to decrypt them for inspection.
- Section 2, Network Operations and Research bullet: Perhaps state
that observable headers permit *reliable* measurements, since methods
based on implicit traffic signals exist and can be used for
measurements. Also, regarding the statement that “concealing the
transport protocol header information ... leads to the deployment of
alternative methods to collect or infer that data,” is it possible to
cite relevant examples? In the following paragraph, it states that
payload confidentiality and header integrity can provide the
“majority” of privacy and security benefits. What is this majority? I
think being specific with concrete examples is important here.
- Section 2: Network Troubleshooting and Diagnostics bullet: Should
the document recent work on QUIC trace collections [4]? This tool was
developed as a way to help Google debug (encrypted) QUIC connections
in production, and seems relevant to this specific bullet.
- Section 3.1.2: Is the itemized list supposed to capture metrics that
can be derived from header information without encryption? If so,
stating this explicitly would be useful.
- Section 3.1.2, Variation bullet: This paragraph does not indicate
why measuring delay variation is important for operators. Is it not
true that only endpoints and applications are concerned with this
metric? If not, perhaps describing why operators benefit from this
information is useful.
- Section 3.3, fourth paragraph: Is traffic injection possible with
encrypted flows like TLS and QUIC?
- Section 3.3, fifth paragraph: Might it be worth discussing the QUIC
over satellite results from the IETF 103 MAPRG meeting [5]? Since
encryption prevents traffic splitting, performance-enhancing proxies
aimed at helping connections with such link diversity seem
inapplicable.

Nits:

There are various spelling and grammatical errors in the document,
though I’m sure they will be fixed in the final version.

[1] https://link.springer.com/chapter/10.1007/978-3-319-76481-8_6
[2] https://tools.ietf.org/html/rfc8446#appendix-D.4
[3] https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/46403.pdf
[4] https://github.com/google/quic-trace
[5] https://datatracker.ietf.org/doc/slides-103-maprg-quic-and-satcom-nicolas-kuhn/