Re: [Isis-wg] Question regarding draft-chunduri-isis-extended-sequence-no-tlv-00

Naiming Shen <naiming@cisco.com> Thu, 27 October 2011 22:12 UTC

Return-Path: <naiming@cisco.com>
X-Original-To: isis-wg@ietfa.amsl.com
Delivered-To: isis-wg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3ECD51F0C4E for <isis-wg@ietfa.amsl.com>; Thu, 27 Oct 2011 15:12:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.999
X-Spam-Level:
X-Spam-Status: No, score=-5.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_31=0.6, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x4vEOWxLAs2j for <isis-wg@ietfa.amsl.com>; Thu, 27 Oct 2011 15:12:52 -0700 (PDT)
Received: from mtv-iport-1.cisco.com (mtv-iport-1.cisco.com [173.36.130.12]) by ietfa.amsl.com (Postfix) with ESMTP id 3BF441F0C3D for <isis-wg@ietf.org>; Thu, 27 Oct 2011 15:12:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=naiming@cisco.com; l=8164; q=dns/txt; s=iport; t=1319753572; x=1320963172; h=subject:mime-version:from:in-reply-to:date:cc: content-transfer-encoding:message-id:references:to; bh=2hHN5hyecDaeHuaGP4mmJDJKmESLMJNR9vr2dIxT2l4=; b=D0aEvL8WrsyafjM+jpYOJpTJ7q54zKSRLS1GhFM0Ri7bRJXec0of5Kbx iRrDryovwapIlqE9lLByUltwFtG3hlwFm2FXUa7s3nwbB/DnLClo5Udjd g+e8I4srtRpfzCXTR79TkxPvgDfM3Ldy9pDjhsV2WJPFRZDeVtrfadks0 4=;
X-IronPort-AV: E=Sophos;i="4.69,415,1315180800"; d="scan'208";a="9790964"
Received: from mtv-core-2.cisco.com ([171.68.58.7]) by mtv-iport-1.cisco.com with ESMTP; 27 Oct 2011 22:12:52 +0000
Received: from [10.155.35.22] ([10.155.35.22]) by mtv-core-2.cisco.com (8.14.3/8.14.3) with ESMTP id p9RMCqBY011272; Thu, 27 Oct 2011 22:12:52 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Naiming Shen <naiming@cisco.com>
In-Reply-To: <4EA9D09A.6070206@googlemail.com>
Date: Thu, 27 Oct 2011 15:12:51 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <E7F32C60-DE04-400A-BBE9-419FA11EF96D@cisco.com>
References: <AE36820147909644AD2A7CA014B1FB520FB85CA7@xmb-sjc-222.amer.cisco.com> <4F31FB49-B9B2-492E-BC9E-A32986E4BCF0@cisco.com> <AE36820147909644AD2A7CA014B1FB520FB85E04@xmb-sjc-222.amer.cisco.com> <A68AF4AA-EF26-4298-BAD2-1F58890D3E5A@cisco.com> <AE36820147909644AD2A7CA014B1FB520FB85E13@xmb-sjc-222.amer.cisco.com> <F6B7DD15-9B50-46EF-9CEC-C6C46E245A7F@cisco.com> <4EA9D09A.6070206@googlemail.com>
To: Mike Shand <imc.shand@googlemail.com>
X-Mailer: Apple Mail (2.1084)
Cc: isis-wg@ietf.org
Subject: Re: [Isis-wg] Question regarding draft-chunduri-isis-extended-sequence-no-tlv-00
X-BeenThere: isis-wg@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF IS-IS working group <isis-wg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/isis-wg>, <mailto:isis-wg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/isis-wg>
List-Post: <mailto:isis-wg@ietf.org>
List-Help: <mailto:isis-wg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/isis-wg>, <mailto:isis-wg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Oct 2011 22:12:53 -0000

Hi Mike,

You are correct of course. I was just saying this 30 seconds the hacker does not have
to follow this 300ms timing, and he/she can set this as a 30 seconds fixed interval to release the
next attack packet. Also the network routers have hold down timers for SPFs and they may
not react to changes immediately. Even if they do, we will see the network traffic disrupted
for every 30 seconds briefly for 2 days in this example.

We can change the parameters also, instead of capturing for 3 months, he/she can do for years.
Or the hacker can cause some link change events to force your router to generate LSPs
more frequently, etc. And instead of cause major disruption for 2 days, the hacker might only need
to cause trouble for 10 minutes on the net (that amount of disruption could be a WSJ frontline story).

We sure can do lots of things to minimize the impact, but the point is that the security
hole is certainly there.

thanks.
- Naiming

On Oct 27, 2011, at 2:43 PM, Mike Shand wrote:

> Hi Naiming,
> 
> I don't understand the assumption of 30 seconds per round. 300mS per round would be slow. Yes, by delaying each round by 30 seconds you could spread out the disruption, but the disruption would only last for a few 100 mS each time around, and would only affect routers between (for some value of between) you and the target router, since the target router would respond with its real LSP as soon as it saw your fake one.
> 
> But what you say is correct, in that you can store up a lot of LSPs. if you have 5000 LSPs you have around 2500 opportunities to exert some disruption, each of which will last for a few hundred mS.
> 
> Remember that for this to happen the target router has not only to have died and reset its seq number, but it has to have remained dead for at least the maximum lifetime, which in many networks these days is set to the maximum of
> 18 hours or so. If it comes back to life before then, the sequence number will get reset to the current max value of the LSPs still extant in the network, and the attacker will have no real opportunity to use his stored LSPs.
> 
>    Mike
> 
> On 27/10/2011 19:48, Naiming Shen wrote:
>> Your example is too modest. as I mentioned in the previous email, here again:
>> 
>> Let's assume the hacker was able to capture all of your LSPs in the past months,
>> and got seq# from #50 to #5000 (in 3 months assume 15 minutes each) on one of
>> your routers. This week the hacker noticed this router had reset the LSP seq#.
>> The most recent new the router sent out being lsp seq#20.
>> 
>> The hacker releases the cached/old LSP seq#50 which has very different content from
>> your current seq#20's lsp:
>> 
>> your router responds to regen seq# 51 (new)
>> hacker then replays seq# 52 (cached/old)
>> your router responds to regen seq#53 (new)
>> hacker then replays seq# 54 (cached/old)
>> ....
>> 
>> this can go on and on until the hacker runs out its seq#5000. Assume each round
>> takes 30 seconds, this disruption will last for almost 2 days in your network,
>> regardless you have authentication or not.
>> 
>> - Naiming
>> 
>> On Oct 26, 2011, at 10:56 PM, Les Ginsberg (ginsberg) wrote:
>> 
>>> 
>>>> -----Original Message-----
>>>> From: Naiming Shen (naiming)
>>>> Sent: Wednesday, October 26, 2011 10:41 PM
>>>> To: Les Ginsberg (ginsberg)
>>>> Cc: uma.chunduri@ericsson.com; wenhu.lu@ericsson.com;
>>>> albert.tian@ericsson.com; isis mailing list
>>>> Subject: Re: Question regarding draft-chunduri-isis-extended-sequence-
>>>> no-tlv-00
>>>> 
>>>> 
>>>> On Oct 26, 2011, at 10:27 PM, Les Ginsberg (ginsberg) wrote:
>>>> 
>>>>> 
>>>>>> -----Original Message-----
>>>>>> From: Naiming Shen (naiming)
>>>>>> Sent: Wednesday, October 26, 2011 10:21 PM
>>>>>> To: Les Ginsberg (ginsberg)
>>>>>> Cc: uma.chunduri@ericsson.com; wenhu.lu@ericsson.com;
>>>>>> albert.tian@ericsson.com; isis mailing list
>>>>>> Subject: Re: Question regarding draft-chunduri-isis-extended-
>>>> sequence-
>>>>>> no-tlv-00
>>>>>> 
>>>>>> 
>>>>>> Les,
>>>>>> 
>>>>>> Even a 'very short disruption' is a disruption I would think.
>>>>>> 
>>>>>> But in your example, if I have a way to capture and replay your
>>>> seq#X,
>>>>>> then I may
>>>>>> also have a way to capture your seq#X+2, and seq#X+4, etc.
>>>>>> If you were going to update the LSP to seq#X+1, which does cause a
>>>>>> brief disruption,
>>>>>> then I would release the seq#X+2. and this can go on and on and
>>>> cause
>>>>>> a major disruption.
>>>>> In order to cause disruption you have to change the content of the
>>>> LSP
>>>>> (merely resending an identical LSP does no harm - other than
>>>>> unnecessarily consuming some CPU time). Once you do that you MUST
>>>> have
>>>>> the key in order to recalculate the correct message digest -
>>>> otherwise
>>>>> the bogus LSP fails authentication. So the problemtic scenario is
>>>>> limited to the transitory (and rare) case I mentioned - it is not an
>>>>> ongoing disruption.
>>>> But since this is your previous life's LSP, let's say last months,
>>>> there may be
>>>> some changes during the months in operation. and you can also re-
>>>> shifting
>>>> your content in different LSPs. so there is no guarantee that the same
>>>> LSP
>>>> last year will have the same content of this year.
>>> So, last week I sent LSP #0 with Seq # 100 and a certain set of TLVs
>>> (call this OLD-TLVs).
>>> I get shutdown for a week and restarted (cold start) and I send LSP #0
>>> with Seq #1 with a new set of TLVs (call this NEW-TLVs).
>>> 
>>> You as the evil attacker now send LSP #0 Seq #100 OLD-TLVs. As it has
>>> valid authentication it is accepted by routers who receive it and some
>>> disruption occurs. However once I receive it I recognize it as not
>>> matching my local copy and I immediately generate and flood LSP #0 Seq
>>> #101 NEW-TLVS. This corrects the problem.
>>> 
>>> Now you (evil attacker) have only the following options:
>>> 
>>> 1)You can send saved copies of LSP #0 w Seq #<= 100 OLD-TLVS. These
>>> will have valid authentication - but will be discarded by all routers as
>>> being older than the latest version (Seq #101) that I have previously
>>> sent.
>>> 
>>> 2)You can resend LSP #0 w Seq #101 w content unchanged (NEW-TLVs). Again
>>> this will have valid authentication but as the content is unchanged it
>>> causes no disruption.
>>> 
>>> 3)You can send LSP #0 w Seq #>  101 OLD-TLVs, but since you don't have
>>> the key authentication will fail on these LSPs and they will be
>>> discarded.
>>> 
>>> So you get one - and only one - chance to cause disruption - and this
>>> lasts only briefly and your opportunity only arises in cases where a
>>> router has cold started after being shutdown long enough for the LSPs
>>> sent by the old incarnation to be aged out from the network.
>>> 
>>>   Les
>>> 
>>>> - Naiming
>>>> 
>>>>>  Les
>>>>> 
>>>>>> thanks.
>>>>>> - Naiming
>>>>>> 
>>>>>>> 
>>>>>>> It is conceivable that if a router had generated an LSP with seq
>>> #X
>>>>>> and
>>>>>>> then shutdown for a time and then restarted sending LSP w seq#1,
>>>>> that
>>>>>>> the adversary could replay the LSP w seq #X and it would (in the
>>>>>> absence
>>>>>>> of a key change) look valid. However this would create only a very
>>>>>> short
>>>>>>> disruption - basically the time it took for the restarted router
>>> to
>>>>>>> generate and flood seq #X+1 - and thereafter attempts by the
>>>>>> adversary
>>>>>>> to generate valid looking newer versions would again fail.
>> _______________________________________________
>> Isis-wg mailing list
>> Isis-wg@ietf.org
>> https://www.ietf.org/mailman/listinfo/isis-wg
> 
> _______________________________________________
> Isis-wg mailing list
> Isis-wg@ietf.org
> https://www.ietf.org/mailman/listinfo/isis-wg