Re: [Int-area] Secdir last call review of draft-ietf-intarea-provisioning-domains-04

"Eric Vyncke (evyncke)" <evyncke@cisco.com> Sat, 25 May 2019 21:31 UTC

Return-Path: <evyncke@cisco.com>
X-Original-To: int-area@ietfa.amsl.com
Delivered-To: int-area@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4D15912003E; Sat, 25 May 2019 14:31:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=DVFZQjSy; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=ekyCbaWV
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 yXIl8H7fGm0O; Sat, 25 May 2019 14:31:33 -0700 (PDT)
Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E85691200F3; Sat, 25 May 2019 14:31:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=15198; q=dns/txt; s=iport; t=1558819893; x=1560029493; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=BJQqUhRGHBgvxuXHeGmmunEIY/aCUVJXv26ni29qZWw=; b=DVFZQjSyO3Co+vnw8GNt5qrroyyxpS+5tyul110wIP0Rk4FHDL5KQQY1 S9rd8v469UwH4ozdjP3tkMGgUujUaEoRjnOk6LTAVhcT1H7DD4ca7RZKg Ez21HjfQSmGYzn1Czg9u72a5cTKbpKlq734MQDLo6EIxtutErBOQT09T3 M=;
IronPort-PHdr: 9a23:8K6DPxV9s12Xx8OY9pMA+bo3OE3V8LGuZFwc94YnhrRSc6+q45XlOgnF6O5wiEPSA92J8OpK3uzRta2oGXcN55qMqjgjSNRNTFdE7KdehAk8GIiAAEz/IuTtank3AtVEX1xo13q6KkNSXs35Yg6arw==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DmAQCAs+lc/5FdJa1lEwEBCAEBBQEHBQGBVAUBCwGBPSQFJwNpVSAECyiEE4NHA454mgKBQoEQA1QJAQEBDAEBGA8GAgEBhEACF4IoIzcGDgEDAQEEAQECAQRtHAyFSwIBAQIBARAREQwBASwLAQ8CAQgaAhEVAgICJQsVEAIEAQ0FGweDAAGBagMdAQIMm0oCgTiIEBo1cYEvgnkBAQWBMgGDRhiCDwmBDCgBiQmBK4EeF4FAP4ERJx+BTi4iLj6CYQEBAQKBGS8JJCiCSzKCJogzgwsggi6FA4F3kmhpCQKCDYY0hEiDaFGDYBuCH2eFf4lcg2iMbocCjnYCBAIEBQIOAQEFgWUigUMMCHAVOyoBgkEJggYMBRIUbgEOgjwzhCY7hT9yAQuBHYpuglABAQ
X-IronPort-AV: E=Sophos;i="5.60,512,1549929600"; d="scan'208";a="278278112"
Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 25 May 2019 21:31:31 +0000
Received: from XCH-RCD-005.cisco.com (xch-rcd-005.cisco.com [173.37.102.15]) by rcdn-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id x4PLVVTg012182 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Sat, 25 May 2019 21:31:31 GMT
Received: from xhs-aln-001.cisco.com (173.37.135.118) by XCH-RCD-005.cisco.com (173.37.102.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 25 May 2019 16:31:30 -0500
Received: from xhs-rcd-003.cisco.com (173.37.227.248) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 25 May 2019 16:31:29 -0500
Received: from NAM05-DM3-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sat, 25 May 2019 16:31:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BJQqUhRGHBgvxuXHeGmmunEIY/aCUVJXv26ni29qZWw=; b=ekyCbaWVzejoIBNYpB+JD9FJpghnlUddCvP/O7HsNdmni/4q1t/wlljWNzB2KU+9+NgKrIzfMzb8dadeMZvm53G2lmzkryZU642Ixv2811K+iJkyhWCZ8R94vrO6uLGZ6Yu0g9jcHbG+6qpASSCCSv8LS/eX3wQZDmXuATYJJts=
Received: from MN2PR11MB4144.namprd11.prod.outlook.com (20.179.150.210) by MN2PR11MB3806.namprd11.prod.outlook.com (20.178.254.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.22; Sat, 25 May 2019 21:31:28 +0000
Received: from MN2PR11MB4144.namprd11.prod.outlook.com ([fe80::1990:d953:1387:d1a7]) by MN2PR11MB4144.namprd11.prod.outlook.com ([fe80::1990:d953:1387:d1a7%7]) with mapi id 15.20.1922.021; Sat, 25 May 2019 21:31:28 +0000
From: "Eric Vyncke (evyncke)" <evyncke@cisco.com>
To: Phillip Hallam-Baker <hallam@gmail.com>, "secdir@ietf.org" <secdir@ietf.org>
CC: "draft-ietf-intarea-provisioning-domains.all@ietf.org" <draft-ietf-intarea-provisioning-domains.all@ietf.org>, "int-area@ietf.org" <int-area@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>
Thread-Topic: [Int-area] Secdir last call review of draft-ietf-intarea-provisioning-domains-04
Thread-Index: AQHVEXxLxUEEXxckO0a1Rc8tTtbo4qZ8gPmA
Date: Sat, 25 May 2019 21:31:27 +0000
Message-ID: <69466C63-63D5-4A2E-8AF4-F496EAAC841F@cisco.com>
References: <155862531425.17228.10846494091656668654@ietfa.amsl.com>
In-Reply-To: <155862531425.17228.10846494091656668654@ietfa.amsl.com>
Accept-Language: fr-BE, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.19.0.190512
authentication-results: spf=none (sender IP is ) smtp.mailfrom=evyncke@cisco.com;
x-originating-ip: [2001:420:c0c1:36:bd9b:765:bb4b:f69]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 91b283c0-da5e-4025-d37d-08d6e15858a6
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:MN2PR11MB3806;
x-ms-traffictypediagnostic: MN2PR11MB3806:
x-ms-exchange-purlcount: 3
x-microsoft-antispam-prvs: <MN2PR11MB380669E38182B50F2748F8DAA9030@MN2PR11MB3806.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0048BCF4DA
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(396003)(366004)(136003)(346002)(199004)(189003)(446003)(11346002)(561944003)(46003)(966005)(6436002)(6306002)(6486002)(486006)(186003)(36756003)(476003)(71190400001)(53936002)(256004)(14444005)(6512007)(81166006)(478600001)(2616005)(2501003)(14454004)(229853002)(86362001)(71200400001)(54906003)(110136005)(58126008)(8936002)(316002)(83716004)(81156014)(8676002)(7736002)(66946007)(66574012)(4326008)(25786009)(102836004)(76176011)(6246003)(305945005)(99286004)(30864003)(6506007)(5660300002)(6116002)(82746002)(76116006)(2906002)(73956011)(91956017)(66556008)(66446008)(33656002)(68736007)(64756008)(66476007); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB3806; H:MN2PR11MB4144.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: 42Zld+0afA6Nk0RrySLjljpt+8QxV1gUhhS7F/CtjenKtd1jBZQF2rZYK3EeBxZUsKS/mgR30cImfAcUrcoHZGnf9eCbg/lov9OesKbyyGZ+KNWNjfFi4qjup1P+DViKqEC70fH8xs29x/rdkw1G/C/TCujJWAjbovXZXwaUCx34pggsNHaRiQokZR99mxMvnL18O9VYrdqo9aMDyvePZN30D3pK0u8gnj6y7+O2moKQseZ/8ri5H650E2Y+5AgA+fC+BYqiOECdkwJPfYvOPtZBKbSp1GvF4lySNbdAz1KyFAEfrVe9aGmWmcW03whX5ORd8bGDh2HtdOaFy9VlUmk/UnPo0a9LSiWG6J5ycL6GHPAjpU7oOr6N4l0u4Dg//YW0H05d7hGXeuTFu1KmTdDAzyV7cVedDFf4avF10OY=
Content-Type: text/plain; charset="utf-8"
Content-ID: <8A676D1200813741865CC9C864E6583C@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 91b283c0-da5e-4025-d37d-08d6e15858a6
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2019 21:31:27.8444 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: evyncke@cisco.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3806
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.15, xch-rcd-005.cisco.com
X-Outbound-Node: rcdn-core-9.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/int-area/P_BzF6nEWxYj3voPEwqQzEfQzK8>
Subject: Re: [Int-area] Secdir last call review of draft-ietf-intarea-provisioning-domains-04
X-BeenThere: int-area@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Internet Area Mailing List <int-area.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/int-area>, <mailto:int-area-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/int-area/>
List-Post: <mailto:int-area@ietf.org>
List-Help: <mailto:int-area-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/int-area>, <mailto:int-area-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 25 May 2019 21:31:36 -0000

Philip,

Thank you again for the time spent on reviewing our draft. After some discussion with the authors, please see below our comments, look for EV>.

Also, expect a next revision in the coming days taking in to account a couple of your comments.

Regards

-éric for the authors

On 23/05/2019, 17:29, "Int-area on behalf of Phillip Hallam-Baker via Datatracker" <int-area-bounces@ietf.org on behalf of noreply@ietf.org> wrote:

    Reviewer: Phillip Hallam-Baker
    Review result: Serious Issues
    
    This draft gives some long overdue attention to an issue that has become
    increasingly problematic in real world contexts. Since this is an early review,
    I am focusing on the types of issues that need to be addressed during
    development.
    
    One issue that had me somewhat confused at first is the initial sentence. "An
    increasing number of hosts access the Internet via multiple interfaces".
    Reading the draft, there appears to be an implicit assumption that the access
    is sequential (mobile device going from one coffee shop to another) even though
    the referenced document is very much focused on parallel.
    
    It would be helpful if there was some grounding context early on in the
    document to provide this context, something like:
 
EV> this is indeed a use case that we have in mind, all the work is based on the multiple interface defunct MIF WG. We may want to add more descriptive text to our I-D. Not to mention that there are case when a single W/LAN has upstream connectivity via multiple provider.

EV> our next rev will include  a use case section.
    
    If Alice has a mobile phone provider and a broadband provider in her home, her
    devices should be capable of seamlessly transitioning from one to the other. So
    that if the broadband fails, the Internet service can gracefully failover to
    the mobile and vice versa for upgrades. This draft isn't going to solve that
    problem but providing the basic information necessary to make this choice
    intelligently is going to be crucial to any solution. There are similar
    concerns for IPSEC VPN.

EV> IPsec VPNs are already considered Explicit PvDs in RFC7556. You are perfectly correct about multiple interfaces including pseudo VPN ones. And, indeed the scope of this document does not include re-routing traffic based on upstream availability but when selecting a new upstream, the PvD allows for a consistent set of information (recursive DNS server, IPv6 prefix, ...) to be used.
    
    This particular proposal is situated at a very low level in the stack but is
    making use of application level protocols to achieve its effect. I think this
    is a perfectly valid approach but does mean that the issue of recursive
    dependencies have to be considered and in particular in the security
    considerations.
    
    At present, the draft is structured to describe an IP packet format and then
    the data that can be accessed. I suggest reversing these and presenting the PvD
    schema first and then the IP packet as one choice of binding, we are likely to
    want to add more. If I am provisioning an IPSEC VPN configuration to a client,
    it would be logical to either include the PvD in the IPSEC connection
    description or vice versa. This is particularly the case if we end up signing
    the data (see later). 

EV> We do not mind either way, our flow was more focused on the chronology of operations (bottom-up). Our original intent is that we emphasize that the key point of the draft is fleshing out the requirements for explicit PvD discovery via local router mechanisms, as predicted by RFC 7556, it becomes more clear. Except if other reviewers want to change the order, then we prefer to keep it the way it is. If majority of reviewers want the order reverse, then for clarity we will change the text order. 
    
    Turning to the security concerns, it is usually helpful to consider these in
    terms of Confidentiality, Integrity and Availability and the network layer at
    which the protocol operates.
    
    In this case, the proposal appears to be link layer since it is providing
    information to a host connecting to a network. But the information provided
    includes (potentially) DNS services and so it is going to affect the whole
    stack from the link up to the application layer.

EV> pretty much like the RDNSS option in the IPv6 RA as specified by RFC 8106
    
    Since this is link layer, there is a certain degree of implicit integrity
    achieved because the host has either a direct physical connection or at least
    proximity to the network. It is probably prudent to distinguish the cases of
    hosts connecting wirelessly and physically since a physical connection provides
    a higher degree of implicit integrity than wireless.

EV> there is indeed some integrity and trust within the access (esp when using WiFI & WPA2) but the draft does not rely too much on this level of integrity when checking for the additional information (the JSON file)
    
    Taking the most important consideration first, what is the potential for
    (ab)using this approach to perform a service attack? Here we should consider
    the possibility of an attack on the host itself and the use of the mechanism to
    relay attacks onto other hosts.
    
    I have not thought of any attacks of this type yet but this is the area that
    gives me the most concern.
    
    Integrity presents two considerations, first there is the question of whether
    the data has been modified, the second is where it came from in the first
    place. The use of TLS does not necessarily provide a strong binding to the
    domain. At the very least, data would have to be retrieved from a URL in some
    portion of the address space that is reserved for administrative use. While
    ..well-known is often used for this purpose, it is not always valid. Another
    issue with TLS is that we start off with a fairly strong implicit integrity
    from the link and discard that for a repudiable authentication via TLS. I would
    prefer to keep both if we can.

EV> The extended information does not replace any locally provisioned information, and does not supersede it.

EV> Beside the .well-known path which is well-known and does not present any security issue, I am unsure whether I am following you.

EV> When receiving a RA containing the the PvD ID example.net, then TLS is used to fetch https://example.net/.well-known/pvd.json and NOT any other URL. So, at least the client node can check that the server is the correct one (and transitively that the JSON file is correct). Of course, if hacker.net is sending PvD pretending to be example.net PvD while on hacker.net, the TLS session will work to example.net and the JSON will be downloaded but will NOT be used by the PvD client because the JSON includes a set of covering IPv6 prefix under the key 'prefixes' and obviously the prefix used by hacket.net will not be covered. Even if hacket.net uses NPTv6 or NAT66 (she/he is evil after all!), then it is up to the example.net web server to refuse connections from an unauthorized prefix outside of example.net prefixes.

EV> Quite a long explanation, but, please have a look to https://download.ernw-insight.de/troopers/tr18/slides/TR18_NGI_IPv6_Security-and-Privacy-Multi-Prefix.pdf (at the end in the 'Rogue PvD' section) for a better explanation.

EV> in all case, we never state that this approach is 'secure' or more secure than plain 'RA' (with RA guard of course). It is merely slightly improving the security but more important provided information to the application; it is the sole objective.
    
    Rather than relying on TLS, a shorter distance between the two points would be
    to sign the PvD specification with JOSE. This need not be too onerous. A client
    that wants to rely on just the TLS integrity can simply Base64 decode and trust
    the data as being implicitly authentic because of the  means of retrieval.
    
    The bigger payoff from signing the PvD is that we no longer need to worry about
    how it is retrieved. The killer app for DNSSEC is turning out to be the ability
    to divorce DNS data from DNS transport. There are certain situations in which
    the fact that the PvD is delivered over a particular link is significant but
    there are other situations in which it might not.

EV> We though about JOSE and signature as well but then we cannot 'defeat' easily the attack of hacker.net announced example.net prefixes, doing NAT66, with a cached JSON.

EV> JOSE was attractive as well because PvD additional information could be cached without sharing the web server keys; but, in authors' opinion is that there are many more TLS implementation than JOSE. Moreover, with TLS there is a distribution & caching infrastructure 'for free' while with JOSE there is a need to build this infrastructure to distribute the JOSE blobs.
    
    For example, I have 12 smoke alarms in my ceilings, one of which I can only
    (safely) reach by erecting scaffolding. These smoke alarms are all connected to
    a WiFi router that failed and the only option the manufacturer (which I won't
    name but rhymes with sproogle) gives for updating the SSID is to reconfigure
    each one in turn. It would be really nice if I could program multiple SSIDs
    into the devices to provide failover. Contrawise, this capability could be
    extended to facilitate the initial connection of the devices to my network.
    While this is not a feature the WG is likely interested in right now, it is one
    that I am working on for the Mathematical Mesh and it is obviously a good idea
    if we have as much commonality between the top down and bottom up configs.
    
    Confidentiality is not generally a direct concern at the link layer but
    corruption of the data (i.e. an integrity attack) might allow a disclosure
    breach. But this should be stated explicitly.
 
EV> I agree integrity and availability are more important in this context. Confidentiality is mostly impossible to achieve in our proposal as any host in the example.net network with the right prefix can access the TLS server and its information.
   
    Finally, as a gen-art issue, the use of x-options is generally deprecated as it
    at best ends up with a situation where every client has to accept headers in
    both the prefixed and unprefixed form. An IANA registry with first-come,
    first-served registration fulfills the goal of preventing accidental collisions
    more effectively.
 
EV> indeed, we got the same comment from Erik Kline and the next rev will replace the HTTP header X-* but a more standard mechanism.
   
Thank you again for the extensive review

-éric     
    _______________________________________________
    Int-area mailing list
    Int-area@ietf.org
    https://www.ietf.org/mailman/listinfo/int-area