Re: [v6ops] SLAAC security concerns

Vasilenko Eduard <vasilenko.eduard@huawei.com> Wed, 05 August 2020 06:23 UTC

Return-Path: <vasilenko.eduard@huawei.com>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D49EF3A128B; Tue, 4 Aug 2020 23:23:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] 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 9spCyQOsRxnA; Tue, 4 Aug 2020 23:23:32 -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 A15433A11F1; Tue, 4 Aug 2020 23:23:31 -0700 (PDT)
Received: from lhreml708-chm.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id CC231199803675D33EA0; Wed, 5 Aug 2020 07:23:29 +0100 (IST)
Received: from msceml701-chm.china.huawei.com (10.219.141.159) by lhreml708-chm.china.huawei.com (10.201.108.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Wed, 5 Aug 2020 07:23:29 +0100
Received: from msceml703-chm.china.huawei.com (10.219.141.161) by msceml701-chm.china.huawei.com (10.219.141.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 5 Aug 2020 09:23:28 +0300
Received: from msceml703-chm.china.huawei.com ([10.219.141.161]) by msceml703-chm.china.huawei.com ([10.219.141.161]) with mapi id 15.01.1913.007; Wed, 5 Aug 2020 09:23:28 +0300
From: Vasilenko Eduard <vasilenko.eduard@huawei.com>
To: "Templin (US), Fred L" <Fred.L.Templin@boeing.com>, Mark Smith <markzzzsmith@gmail.com>
CC: "Pascal Thubert (pthubert)" <pthubert@cisco.com>, Michael Richardson <mcr+ietf@sandelman.ca>, v6ops list <v6ops@ietf.org>, 6man <ipv6@ietf.org>
Thread-Topic: SLAAC security concerns
Thread-Index: AdZqh2IDVN0JAX5fTSutty/fgHiG3AAD1KRwABaVVuA=
Date: Wed, 05 Aug 2020 06:23:28 +0000
Message-ID: <04e6b9ee0ea54eb49ed8f75711a4f68f@huawei.com>
References: <f52c4463862f44b5ba2a9d41db86d231@huawei.com> <317f10e39b1f476bbde050be9498036c@boeing.com>
In-Reply-To: <317f10e39b1f476bbde050be9498036c@boeing.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.47.204.128]
Content-Type: multipart/alternative; boundary="_000_04e6b9ee0ea54eb49ed8f75711a4f68fhuaweicom_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/YIk17Hse4WiuOsjixfvHmg31jUc>
Subject: Re: [v6ops] SLAAC security concerns
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/v6ops/>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Aug 2020 06:23:35 -0000

Hi Fred,
I am not sure I fully understand your comment.
SLAAC currently heavily relay on Multicast. What additionally would be done with multicast – it would not increase multicast dependency.
Eduard
From: Templin (US), Fred L [mailto:Fred.L.Templin@boeing.com]
Sent: 4 августа 2020 г. 22:39
To: Vasilenko Eduard <vasilenko.eduard@huawei.com>; Mark Smith <markzzzsmith@gmail.com>
Cc: Pascal Thubert (pthubert) <pthubert@cisco.com>; Michael Richardson <mcr+ietf@sandelman.ca>; v6ops list <v6ops@ietf.org>; 6man <ipv6@ietf.org>
Subject: RE: SLAAC security concerns

Eduard, NBMA allows for multicasts to reach only a bounded and well-managed set
of recipients instead of flooding the entire link. It is the method used by AERO/OMNI.

Fred

From: Vasilenko Eduard [mailto:vasilenko.eduard@huawei.com]
Sent: Tuesday, August 04, 2020 11:01 AM
To: Mark Smith <markzzzsmith@gmail.com<mailto:markzzzsmith@gmail.com>>
Cc: Pascal Thubert (pthubert) <pthubert@cisco.com<mailto:pthubert@cisco.com>>; Michael Richardson <mcr+ietf@sandelman.ca<mailto:mcr+ietf@sandelman.ca>>; Templin (US), Fred L <Fred.L.Templin@boeing.com<mailto:Fred.L.Templin@boeing.com>>; v6ops list <v6ops@ietf.org<mailto:v6ops@ietf.org>>; 6man <ipv6@ietf.org<mailto:ipv6@ietf.org>>
Subject: [EXTERNAL] SLAAC security concerns


This message was sent from outside of Boeing. Please do not click links or open attachments unless you recognize the sender and know that the content is safe.




Hi Mark,
I believe that Multicast is so basic function of SLAAC that it does not make sense to delete it.
On contrary, I believe Multicast should help against information leakage.

I believe that trade-off of “Local DoS” against “Information Leakage” is possible:
if somebody would hijack your address - change your address (release it), despite you were the 1st to book it.
And ask others (especially router) to block this address for some time (for anybody), router would have to drop all packets that are in transit to this address (on the path from internet).
Collision should have the penalty for both parties. Unsolicited NA should be multicast-only. It has very low probability to happen unintentionally (1/2^64).
Let it would be “Local DoS” instead of “Information Leakage”.

Eduard
From: Mark Smith [mailto:markzzzsmith@gmail.com]
Sent: 4 августа 2020 г. 20:19
To: Vasilenko Eduard <vasilenko.eduard@huawei.com<mailto:vasilenko.eduard@huawei.com>>
Cc: Pascal Thubert (pthubert) <pthubert@cisco.com<mailto:pthubert@cisco.com>>; Michael Richardson <mcr+ietf@sandelman.ca<mailto:mcr+ietf@sandelman.ca>>; Templin (US), Fred L <Fred.L.Templin@boeing.com<mailto:Fred.L.Templin@boeing.com>>; v6ops list <v6ops@ietf.org<mailto:v6ops@ietf.org>>; 6man <ipv6@ietf.org<mailto:ipv6@ietf.org>>
Subject: Re: [v6ops] I-D Action: draft-ietf-6man-grand-01 - additional security concerns


On Wed, 5 Aug 2020, 02:06 Vasilenko Eduard, <vasilenko.eduard@huawei.com<mailto:vasilenko.eduard@huawei.com>> wrote:
Hi Pascal,
My priority here is coincide with many governments priorities: leakage of information is strictly mandatory to prevent (privacy protection).


So when you've modified SLAAC and somehow deployed it to not use multicasts, are you going to move on to DHCPv6? Then Multicast DNS? OSPF? Spanning Tree? RIPv2?


Modifying existing and widely deployed protocols not to use multicasts is a far harder way of solving the problem of unauthorised nodes receiving those multicasts.

Using also existing and widely deployed layer 2 security or isolation methods to limit the reach of multicasts to only authorised nodes is the easiest and quickest solution.


Regards,
Mark.








DoS is the second priority. You are right that remote DoS is more dangerous, because for local DoS intruder should initially break-through into subnet (exploit other vulnerability to gain root access on 1 host).

I agree that Full ND cache on router is the good basement for protection against Remote DoS.

Thanks for good example of classification! "Centralized/Distributed Address Allocation", "Reactive/Proactive cache management".
Could I add to classification "Ownership protection for Interface ID"? Because I could not imagine how to protect against DoS attack from inside subnet without proper trust anchor. The last would probably not happen for many years to come.

Yes, I have made comment below that if Address Allocation would be changed to Centralized, then it is probably not SLAAC anymore. Then it is better to adopt DHCPv6.

But why you said that DHCPv6 is only about "Proactive cache management"? DHCP has attribute of "Centralized Address Allocation" too.

I have read your https://datatracker.ietf.org/doc/draft-ietf-6lo-backbone-router
Proxy is not universal solution and should not be mainstream. It is complicated: IP subnet is split for many broadcast domains, proxy stitch it back.

Eduard
-----Original Message-----
From: Pascal Thubert (pthubert) [mailto:pthubert@cisco.com<mailto:pthubert@cisco.com>]
Sent: 4 августа 2020 г. 13:01
To: Vasilenko Eduard <vasilenko.eduard@huawei.com<mailto:vasilenko.eduard@huawei.com>>; Michael Richardson <mcr+ietf@sandelman.ca<mailto:mcr%2Bietf@sandelman.ca>>; Templin (US), Fred L <Fred.L.Templin@boeing.com<mailto:Fred.L.Templin@boeing.com>>
Cc: v6ops list <v6ops@ietf.org<mailto:v6ops@ietf.org>>; 6man <ipv6@ietf.org<mailto:ipv6@ietf.org>>
Subject: RE: [v6ops] I-D Action: draft-ietf-6man-grand-01 - additional security concerns

Hello Eduard

You need to qualify what you mean by dangerous. In my book an attack that is easy to trigger remotely and anonymously is more "dangerous" than the same attack if it has to be done from within the local network. Reactive (cache and lookup) ND enables a remote DoS attack on the ND cache by scanning 2^64 addresses with pings. Proactive (Stateful) ND avoids that attack but can be more sensitive to local attacks.

SLAAC has 2 main properties, the Distributed Address Allocation and the Reactive ND Binding Cache management. Those properties are orthogonal: DHCPv6 today uses the latter but not the former. RFC 8505 allows former but does not use the latter. => I guess that by SLAAC you mean that you 'prefer' the Reactive Binding Cache management and are not talking about the Address Allocation piece since that piece is not at stake here. "Preference" is another thing that you'll have to specify (vs. operational requirements).

The current situation is (to my best knowledge):
1) DHCPv6 allocation is not available in some stacks (Android).
2) SLAAC is globally available in hosts and routers but it happens to be barred by some enterprise policies
3) In many modern environments the switches and routers need to maintain the full tables of the attached nodes (e.g., fabrics like eVPN, proxy ND for Wi-Fi APs). Today they do it by snooping the protocols so we get the worst of both worlds.
4) RFC 8505 is not limited to IoT devices. It is very generic. It allows to build a network where the remote ND cache DOS becomes inefficient.
5) It is possible to build a network that uses both stateful and stateless, see https://datatracker.ietf.org/doc/draft-ietf-6lo-backbone-router/. This looks a lot like what you seems to be asking, Proactive at the WiFi edge and Stateless on the wire. If you mix, the remote DOS is still possible, but there are more ways to alleviate it.

All the best

Pascal

> -----Original Message-----
> From: Vasilenko Eduard <vasilenko.eduard@huawei.com<mailto:vasilenko.eduard@huawei.com>>
> Sent: mardi 4 août 2020 11:08
> To: Michael Richardson <mcr+ietf@sandelman.ca<mailto:mcr%2Bietf@sandelman.ca>>; Templin (US), Fred L
> <Fred.L.Templin@boeing.com<mailto:Fred.L.Templin@boeing.com>>
> Cc: Pascal Thubert (pthubert) <pthubert@cisco.com<mailto:pthubert@cisco.com>>; v6ops list
> <v6ops@ietf.org<mailto:v6ops@ietf.org>>; 6man <ipv6@ietf.org<mailto:ipv6@ietf.org>>
> Subject: RE: [v6ops] I-D Action: draft-ietf-6man-grand-01 - additional
> security concerns
>
> Hi Michael,
> It is strange that most dangerous attack (unsolicited NA - leading to
> leakage of
> information) was not mentioned in RFC 3756.
>
> >We need a for nodes to reserve resources on the router.
> Then router would be stateful (in respect of ND) - it is a very big
> architecture change. The industry has the big inertia - I do not
> believe that it is possible to return IPv6 address management to
> stateful model (except government intrusion - see below).
> By the way, stateful DHCPv6 exist. Switch could easily snoop all
> messages and assist to IPv6 in security (like it is done for IPv4).
> I propose do not push SLAAC in stateful direction - anyone who would
> like - could use DHCPv6 or 6lo (stateful on router too).
> I propose to think how to save SLAAC - keeping it with distributed
> address management.
>
> > Many of us would prefer that we avoid making it stateful, but in
> > wifi
> networks, are already allocate crypto state, and we should just leverage that.
> Our days big campuses are deployed without CAT5/6 cabling - everything
> is WiFi.
> SLAAC for WiFi looks like not the best technology. State repository
> (AP) is mandatory anyway. But anyone could use 6lo - it is developed
> specifically for such environment (not effective multicast, frame loss).
> IMHO: It does not make sense to reinvent the wheel. RFC 6775 and 8505
> do have good stateful solution for WiFi.
> SLAAC has been left with the small niche for the future - if it would
> have fixes for biggest security problems (personal data protection).
>
> Looking to all these "data privacy protection legislation" world-wide
> (in many
> countries): SLAAC could be banned by some government at any movement.
> Experts would easily point to alternative: (1) stateful DHCPv6
> (natural IPv4 prolong); (2) 6lo (it is optimized for wireless).
> Probably DHCPv6 would win, because it is easy to understand for IT&IP
> professionals.
> If any government would push - switchover to DHCPv6 would be fast.
> Then fixing SLAAC would be too late. It would be the time for deprecation RFC.
>
> Eduard
> -----Original Message-----
> From: ipv6 [mailto:ipv6-bounces@ietf.org<mailto:ipv6-bounces@ietf.org>] On Behalf Of Michael
> Richardson
> Sent: 4 августа 2020 г. 2:57
> To: Templin (US), Fred L <Fred.L.Templin@boeing.com<mailto:Fred.L.Templin@boeing.com>>
> Cc: Pascal Thubert (pthubert) <pthubert=40cisco.com@dmarc.ietf.org<mailto:40cisco.com@dmarc.ietf.org>>;
> v6ops list <v6ops@ietf.org<mailto:v6ops@ietf.org>>; 6man <ipv6@ietf.org<mailto:ipv6@ietf.org>>
> Subject: Re: [v6ops] I-D Action: draft-ietf-6man-grand-01 - additional
> security concerns
>
>
> Templin (US), Fred L <Fred.L.Templin@boeing.com<mailto:Fred.L.Templin@boeing.com>> wrote:
>     > I wish this group could open its eyes. ND as defined in the last
>     > century is not suited for modern fabrics, virtual machines and
>     > wireless. It is a pain for silicon-based forwarding. Time to upgrade is
>     > overdue.
>
> You are right!
>
> We either need SEND (RFC3971), or some technology that addresses the
> same use case (RFC3756).
> We need a for nodes to reserve resources on the router.
>
> Many of us would prefer that we avoid making it stateful, but in wifi
> networks, are already allocate crypto state, and we should just
> leverage that. (ND is just wasted effort on encrypted wifi in my
> opinion)
>
>     > There is nothing broken with IPv6 ND that needs changing; it
> just needs a new option.
>     > We have seen how that is possible through publications like RFC8801.
>
> Also RFC8505.
> I think, it's really really time to stop pretending everything is
> big-blue coaxial ethernet.
>
>     > BTW, IPv6 itself is a last-century technology but the architects
> had the wisdom to allow
>     > for future extensions without needing to modify the core architecture..
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca<mailto:mcr%2BIETF@sandelman.ca>>, Sandelman Software Works
> - = IPv6 IoT consulting =-
>
>

_______________________________________________
v6ops mailing list
v6ops@ietf.org<mailto:v6ops@ietf.org>
https://www.ietf.org/mailman/listinfo/v6ops