Re: [mpls] LDP Security

"Scharf, Michael (Nokia - DE/Stuttgart)" <michael.scharf@nokia.com> Fri, 10 November 2017 16:21 UTC

Return-Path: <michael.scharf@nokia.com>
X-Original-To: mpls@ietfa.amsl.com
Delivered-To: mpls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5820F126DC2; Fri, 10 Nov 2017 08:21:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.7
X-Spam-Level:
X-Spam-Status: No, score=-4.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 hKvHVpeVimss; Fri, 10 Nov 2017 08:21:56 -0800 (PST)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0115.outbound.protection.outlook.com [104.47.1.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D1AE8126BF6; Fri, 10 Nov 2017 08:21:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=L2pQwvL60GcFyj55A+aqGBkhBHlz5fgc6ICjPQ9fO5o=; b=izW+KfPlTudb7DeCIF79n4+7QQoFZaBT33yy9NlIuiBmfVHpkIyNJTE/HZaCzCPUUlzIynscACg88Nep/rKRurzlUQZd19NfRCa1rGKJgcEQgROkHSL+lOl3KSyIvRxzBSsnz8pibIgkG4fqGsjbrHbaykGQeyM8YljMn6JRflc=
Received: from AM5PR0701MB2547.eurprd07.prod.outlook.com (10.173.92.15) by AM5PR0701MB2546.eurprd07.prod.outlook.com (10.173.92.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.6; Fri, 10 Nov 2017 16:21:53 +0000
Received: from AM5PR0701MB2547.eurprd07.prod.outlook.com ([fe80::14d8:6acd:f568:98f]) by AM5PR0701MB2547.eurprd07.prod.outlook.com ([fe80::14d8:6acd:f568:98f%17]) with mapi id 15.20.0218.005; Fri, 10 Nov 2017 16:21:53 +0000
From: "Scharf, Michael (Nokia - DE/Stuttgart)" <michael.scharf@nokia.com>
To: Eric Rescorla <ekr@rtfm.com>, Stewart Bryant <stewart.bryant@gmail.com>, "tcpm@ietf.org" <tcpm@ietf.org>
CC: "mpls@ietf.org" <mpls@ietf.org>, "pals-chairs@tools.ietf.org" <pals-chairs@tools.ietf.org>, "<rtg-ads@ietf.org>" <rtg-ads@ietf.org>, "mpls-chairs@ietf.org" <mpls-chairs@ietf.org>, "pals@ietf.org" <pals@ietf.org>, "<sec-ads@ietf.org>" <sec-ads@ietf.org>
Thread-Topic: [mpls] LDP Security
Thread-Index: AQHTWLboye/68uxiMkCt9OCmRHsgC6MKxUkAgAMG5/A=
Date: Fri, 10 Nov 2017 16:21:52 +0000
Message-ID: <AM5PR0701MB25472EFBB94C1C98EA2606B393540@AM5PR0701MB2547.eurprd07.prod.outlook.com>
References: <2da71163-cf29-cba6-df61-d75a2cfc9c43@gmail.com> <d3b28075-d8c0-c677-1f4b-6ad5ee5539ca@gmail.com> <CAA=duU2PzZLymVZk-PR9B94Pj1WMsHe+TTv51Ukef2MaSg-DbA@mail.gmail.com> <5994f353-5306-0fa8-2d2d-024ebdbb10df@gmail.com> <CAA=duU2YLjSg8Q5PDT+u9cxn9u2xsiPu-imBJrnyL3bfkQFW7A@mail.gmail.com> <7ee4fd77-7d8d-0db2-527e-9cf91d87e634@gmail.com> <CAA=duU3nJsS86udidgkH9jhB9ZD+xaRa2A4MniAVL1BpGE78ZQ@mail.gmail.com> <cf0cb5a4-cc21-97e1-1c26-38974bf9c0be@pi.nu> <51b9e5b4-0a44-1449-a4df-91e4f9df5d6b@pi.nu> <CAA=duU2R9kBMWnRdwPPO49LF1Jc1tyrxvwkyTgaE6SC6jsVruw@mail.gmail.com> <02a50f02-779e-bc39-505c-5a51d066b3f0@pi.nu> <CAA=duU1qV-LiU5pR7VtLLVGtb-8nZHrnUqVyOKpST3-6Dr-Xgw@mail.gmail.com> <ce2c75b6-156d-da80-91d7-b7e6ba2059a0@gmail.com> <CAA=duU1xvV0genbR0CBx2rmpOWUkFmRJX3qrMEp21gTd1HOVww@mail.gmail.com> <f0d553da-0ac4-e794-5cd5-d9cc95063dc6@pi.nu> <15335748-e900-280d-554f-24c55c0f3ba5@gmail.com> <CABcZeBOr5x=98nXeBCT8O-wjk90ga1F3EVk2ktMYoAj9Q8tRkg@mail.gmail.com>
In-Reply-To: <CABcZeBOr5x=98nXeBCT8O-wjk90ga1F3EVk2ktMYoAj9Q8tRkg@mail.gmail.com>
Accept-Language: en-US, de-DE
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=michael.scharf@nokia.com;
x-originating-ip: [103.5.19.85]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM5PR0701MB2546; 6:i+w4zy713X67zZdcuWu+PLJCbkUtejoaaN1YoPoYnzJjUlwfg0SY66aLYJgkLGUPHj+n4k3V+5iJ7UW6KP/KnuUrUhPv+2Ir1xhtF6+0td+uRD9MCCe7D0rb8U2wAdQ+UuMn7OGLw5bJG5mKD3ArOiKgkph3cFv4orvgbrBpHq3YMJTCYM9pq4SQfEqZtyM9AK+l5Da0nc9CpDMtnz+W2Fidmg09iQ+wXz/awGgYex+YCgB/2z+/pPyOaHiCzTNo61MWyVyFfWplXSAV3C1FuPht2ABGSh7Gd2zfZZugXvj+UV1aBUmPRKTi5P14LsaEnXIoFVsCNU2IdLJ/z7s9BAUtO9zTCfblBoEa3etQuCs=; 5:MzOgw4uVXZd/HaDnsQ2Pz75w6TL+d3f+zhUgyf6LTDlY8737U0jKGCl1Pw0QXCUZ+Pmp62wIY6ExqZIaGBj6sw6tJNKXA4EXzFFtjMq+ssMwgo+0HaTBVd5Ml5w3NiSZIANtrUDsWM4c+oISl8IMqt78ehpL0CC7CWszM8H7W70=; 24:mYxnvYbDtfvGWLCwEiF4pKp5J3HzWc62JsYZk6iMNlhBGpOBR3/Hjwo8WaqyTkGwo3/Ot81OVJGe+D+50MUY5agcCrjv1Kpe+D66olp1soI=; 7:rE7Ljr31pvROSaHL0EWCXOCCE9lWW0yn4qdAG4vI4vouBf+ju7Vzeupp7Lj2BMwYS6ox9dWzILjIvM4m9O4xej+UCt5+M3hwOo3w3bfU8tFj/wZ/AfuSj3JAkEhuCd/rmqXsNIW94Rgk3ECf67K5M/Q5NAd5WN6WcbV6UXTyA3uJg+3n3anj2Y28hucUudHLELKrmwSlWuN99MC1MAAtQWvU8Q9nTeiTW7s1XYslZJ5C4D1avROVlucy86HxiR+D
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: 20920c15-d52a-4ae0-2563-08d528572764
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:AM5PR0701MB2546;
x-ms-traffictypediagnostic: AM5PR0701MB2546:
x-exchange-antispam-report-test: UriScan:(192374486261705)(21748063052155);
x-microsoft-antispam-prvs: <AM5PR0701MB25463582C1A48F4C8468909993540@AM5PR0701MB2546.eurprd07.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3231021)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0701MB2546; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0701MB2546;
x-forefront-prvs: 0487C0DB7E
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(346002)(376002)(24454002)(189002)(199003)(93886005)(5250100002)(10710500007)(14454004)(2900100001)(3660700001)(25786009)(3280700002)(4326008)(8936002)(110136005)(2420400007)(15650500001)(54906003)(790700001)(229853002)(3846002)(54356999)(6116002)(76176999)(2906002)(101416001)(6506006)(6436002)(2950100002)(33656002)(50986999)(478600001)(106356001)(97736004)(105586002)(102836003)(2501003)(68736007)(7736002)(53936002)(236005)(6246003)(7696004)(316002)(86362001)(55016002)(74316002)(5660300001)(54896002)(9686003)(6306002)(66066001)(53546010)(8676002)(81166006)(81156014)(99286004)(39060400002)(189998001)(7110500001); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0701MB2546; H:AM5PR0701MB2547.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_AM5PR0701MB25472EFBB94C1C98EA2606B393540AM5PR0701MB2547_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 20920c15-d52a-4ae0-2563-08d528572764
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2017 16:21:52.9839 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0701MB2546
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/Zf-EfLDB8TNkUc1R4Evcgq0u1cY>
Subject: Re: [mpls] LDP Security
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls/>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Nov 2017 16:21:59 -0000

+TCPM



Please free to discuss changes to TCP-AO on the TCPM list, or speak up at the upcoming TCPM meeting.



The addition of SHA-256 has been discussed in TCPM already (see draft-nayak-tcp-sha2-02), but so far there was not much energy and no interest from potential TCP-AO implementers or users.



Michael

(TCPM co-chair)



From: mpls [mailto:mpls-bounces@ietf.org] On Behalf Of Eric Rescorla
Sent: Wednesday, November 08, 2017 7:00 PM
To: Stewart Bryant <stewart.bryant@gmail.com>
Cc: mpls@ietf.org; pals-chairs@tools.ietf.org; <rtg-ads@ietf.org> <rtg-ads@ietf.org>; mpls-chairs@ietf.org; pals@ietf.org; <sec-ads@ietf.org> <sec-ads@ietf.org>
Subject: Re: [mpls] LDP Security

Hi Stewart

Thanks for your note.

My overall sense of the state of play is, I think much like yours.

TCP-MD5 is inadequate in two major respects:
- It uses weak algorithms
- It has a bad negotiation/setuop story (manual key management)

TCP-AO is intended to be a drop-in replacement for TCP-MD5 and so remedies the algorithm
issue but not the key management issue [0]. We haven't made much progress on the key
management story, and that seems to be a major impediment to deploying either of these
technologies (which I am given to understand don't see a lot of use). We should probably
talk in Singapore about that, but that's not going to get better any time soon.

In the interim, I think the text you have is OK, and "TBD" should read "SHA-256", with
the fallback being SHA-256 -> SHA-1 -> MD5.

-Ekr


[0] Technically It has better support for rollover, but this is not a huge improvement.
[1] tcpcrypt is kind of orthogonal here as it's unauthenticated but opportunistic.  That said,
it would provide defense against attackers who gain access to the link after connection
setup and doesn't require configuration.

On Wed, Nov 8, 2017 at 9:27 AM, Stewart Bryant <stewart.bryant@gmail.com<mailto:stewart.bryant@gmail.com>> wrote:
To the SEC and RTG ADs,

I am sending the following message on behalf of the MPLS and the
PALS WG Chairs.

There is a concern shared among the security community and the working groups that develop the LDP protocol that LDP is no longer adequately secured. LDP currently relies on MD5 for cryptographic security of its messages, but MD5 is a hash function that is no longer considered to meet current security requirements.

In RFC5036 (published 2007) Section 5.1 (Spoofing) , List element 2. Session communication carried by TCP the following statements is made:

"LDP specifies use of the TCP MD5 Signature Option to provide for the authenticity and integrity of session messages.

"[RFC2385] asserts that MD5 authentication is now considered by some to be too weak for this application.  It also points out that a similar TCP option with a stronger hashing algorithm (it cites SHA-1 as an example) could be deployed.  To our knowledge, no such TCP option has been defined and deployed.  However, we note that LDP can use whatever TCP message digest techniques are available, and when one stronger than MD5 is specified and implemented, upgrading LDP to use it would be relatively straightforward."

We note that BGP has already been through this process, and replaced MD5 with TCP-AO in RFC 7454. I would be logical to follow the same approach to secure LDP. However, as far as we are able to ascertain, there is currently no recommended, mandatory to implement, cryptographic function specified. We are concerned that without such a mandatory function, implementations will simply fall back to MD5 and we will be no further forward

We think that the best way forward is to publish a draft similar to RFC 7454 that contains the following requirement:

"Implementations conforming to this RFC MUST implement TCP-AO to secure the TCP sessions carrying LDP in addition to the currently required TCP MD5 Signature Option. Furthermore, the TBD cryptographic mechanism must be implemented and provided to TCP-AO to secure LDP messages. The TBD mechanism is the preferred option, and MD5 is only to be used when TBD is unavailable."

We are not an experts on this part of the stack, but it seems that TCP security negotiation is still work in progress. If we are wrong, then we need to include a requirement that such negotiation is also required. In the absence of a negotiation protocol, however, we need to leave this as a configuration process until such time as the negotiation protocol work is complete. On completion of a suitable negotiation protocol we need to issue a further update requiring its use.

Additionally we should note that no cryptographic mechanism has an indefinite lifetime, and that implementation should note the IETF anticipates updating the default cryptographic mechanism over time.

The TBD default security function will need to be chosen such that it can reasonably be implemented on a typical router route processor, and which will provide adequate security without significantly degrading the convergence time of an LSR. Without a function that does not significantly impact router convergence we simply close one vulnerability and open another.

As experts on the LDP protocol, but not on security mechanisms, we  need to ask the security area for a review of our proposed approach, and help correcting any misunderstanding of the security issues or our misunderstanding of the existing security mechanisms. We also need the recommendations of a suitable security function (TBD in the above text).

Best regards

The MPLS WG Chairs
The PALS WG Chairs