RE: Preventing BGP Route leak (Hijack) for Management Channel BGP session

Linda Dunbar <linda.dunbar@huawei.com> Thu, 16 August 2018 22:59 UTC

Return-Path: <linda.dunbar@huawei.com>
X-Original-To: rtgwg@ietfa.amsl.com
Delivered-To: rtgwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 18567130E23; Thu, 16 Aug 2018 15:59:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.099
X-Spam-Level:
X-Spam-Status: No, score=0.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=1.989, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=no
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 swjCGjieqxFO; Thu, 16 Aug 2018 15:59:29 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DE4C0130E11; Thu, 16 Aug 2018 15:59:28 -0700 (PDT)
Received: from lhreml702-cah.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 558F4302BDC31; Thu, 16 Aug 2018 23:59:25 +0100 (IST)
Received: from SJCEML702-CHM.china.huawei.com (10.208.112.38) by lhreml702-cah.china.huawei.com (10.201.108.43) with Microsoft SMTP Server (TLS) id 14.3.399.0; Thu, 16 Aug 2018 23:59:26 +0100
Received: from SJCEML521-MBX.china.huawei.com ([169.254.1.107]) by SJCEML702-CHM.china.huawei.com ([169.254.4.45]) with mapi id 14.03.0399.000; Thu, 16 Aug 2018 15:59:24 -0700
From: Linda Dunbar <linda.dunbar@huawei.com>
To: Eric C Rosen <erosen@juniper.net>, "shares@ndzh.com" <shares@ndzh.com>, "idr@ietf.org" <idr@ietf.org>, Jeff Tantsura <jefftant.ietf@gmail.com>, RTGWG <rtgwg@ietf.org>
Subject: RE: Preventing BGP Route leak (Hijack) for Management Channel BGP session
Thread-Topic: Preventing BGP Route leak (Hijack) for Management Channel BGP session
Thread-Index: AdQzO4r0PzSwhpZvSCmMNMmO/EiBoACmr3EAAAjTVEA=
Date: Thu, 16 Aug 2018 22:59:24 +0000
Message-ID: <4A95BA014132FF49AE685FAB4B9F17F66B0DC48F@sjceml521-mbx.china.huawei.com>
References: <4A95BA014132FF49AE685FAB4B9F17F66B0DAE87@sjceml521-mbx.china.huawei.com> <d6d522ea-f555-9344-0dee-732bb9983ef9@juniper.net>
In-Reply-To: <d6d522ea-f555-9344-0dee-732bb9983ef9@juniper.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.192.11.118]
Content-Type: multipart/alternative; boundary="_000_4A95BA014132FF49AE685FAB4B9F17F66B0DC48Fsjceml521mbxchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtgwg/aCo9YsM-7Ew-4MFYHNIeLYtbbzo>
X-BeenThere: rtgwg@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Routing Area Working Group <rtgwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtgwg/>
List-Post: <mailto:rtgwg@ietf.org>
List-Help: <mailto:rtgwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Aug 2018 22:59:32 -0000

Eric,

Thank you very much for the detailed explanation.

I meant to ask about using BGP UPDATEs of a unique AFI/SAFI to distribute the "Public Keys" and individual "Nonce" to all the CPEs. Just like IKE (where peers exchange public key over internet), now the Public keys are exchanged between peers via RR (Controller). With this approach, the CPEs can offload the Peer Authentication job to Controller.

IPsec's  Diffie-Hellman algorithm use "Public Key" and CPE's Private Key to compute the actual Security Association.

In your draft-rosen-bess-secure-l3vpn-01, you have BLACK BGP session and RED BGP session, and emphasized on how BLACK BGP not leaking routes to RED BGP. I want to know if we can do the same for Management BGP session, i.e. requiring Data Plan BGP session to be completely separate from the Management Plane BGP session, is it Okay?

Thanks, Linda Dunbar



From: Eric C Rosen [mailto:erosen@juniper.net]
Sent: Thursday, August 16, 2018 2:59 PM
To: Linda Dunbar <linda.dunbar@huawei.com>; shares@ndzh.com; idr@ietf.org; Jeff Tantsura <jefftant.ietf@gmail.com>; RTGWG <rtgwg@ietf.org>
Subject: Re: Preventing BGP Route leak (Hijack) for Management Channel BGP session

On 8/13/2018 3:26 PM, Linda Dunbar wrote:

One of the comments to https://datatracker.ietf.org/doc/draft-dm-net2cloud-gap-analysis/<https://urldefense.proofpoint.com/v2/url?u=https-3A__datatracker.ietf.org_doc_draft-2Ddm-2Dnet2cloud-2Dgap-2Danalysis_&d=DwMFAg&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=-DXB84eU9m4cIlq2OOcCJCQQAwJXQQswyu3F0kG0VNo&m=RToh0UhV7F8cp3q2ud1LmU6GZtypPTJdboL4dgpRzr0&s=9xbKYj5fP6Jv93coe5g-lfzpp0L0bK0GyrlB91Ry3Sw&e=> the In RTGwg session of IETF102 is that using BGP session to pass configuration keys for IPsec can be risky even if the path between RR & node is secure (say via TLS) due to BGP route leak (Hijack).
But the BGP session to carry IPsec configurations is via BGP management session, which is completely isolated form the dataplane BGP sessions.

I'm not sure I have the whole context, but the question seems to be whether it could ever be safe to use BGP to distribute secret keys.

Presumably:

- The keys would be carried in an attribute that can only be attached by UPDATEs of a specified AFI/SAFI, where the specified AFI/SAFI is only used to carry management/configuration information.

- UPDATEs of that AFI/SAFI would only be sent on BGP sessions that are adequately secured so as to provide privacy, integrity and authentication.

- The UPDATEs would carry the NO_ADVERTISE community (to make sure they are not propagated further).

- None of the BGP systems involved would allow any sort of "BGP monitoring" that might expose the unencrypted contents of the UPDATEs.

In this scenario, I don't think it matters whether the secure BGP session also carries other AFI/SAFIs.

The privacy properties of this scenario are pretty good, in theory, but I don't think they are really good enough for distributing secret keys.

- Once you're using BGP to distribute information, it is inevitable that someone will decide to remove the "NO_ADVERTISE" and allow the information to be propagated through intermediate nodes (RRs or ASBRs) to the actual target node.  After all, one of the main values of using BGP to distribute stuff is that you get a big distribution system.  Even if all the intermediate nodes are trusted and all the intermediate BGP sessions have adequate privacy/integrity/authentication, you still wouldn't want to expose the secret keys to those nodes.  You might trust those nodes to see all the routing information, and even to see most of the management information, but you probably don't want them to see all the secret keys.  And you probably don't want the secret keys stored in the clear on those intermediate nodes.

- I would worry about BGP monitoring procedures creating a backdoor through which the secret keys would be exposed.

- No matter how careful you are, when you use BGP you can be pretty sure that your UPDATEs will end up somewhere they're not supposed to go.  It's just too easy to make mistakes.
So I don't think I'd try to do dynamic keying by attaching the actual keys to BGP UPDATEs.  At most I'd use BGP to distribute parameters that could then be used by something like IKEv2 to actually fetch the secret keys.