Re: [Ntp] Details of the fragmentation attacks against NTP and port randomization

Danny Mayer <mayer@ntp.org> Wed, 05 June 2019 23:13 UTC

Return-Path: <mayer@ntp.org>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B7C27120094 for <ntp@ietfa.amsl.com>; Wed, 5 Jun 2019 16:13:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.889
X-Spam-Level:
X-Spam-Status: No, score=-1.889 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_SPF_PERMERROR=0.01, 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 8YovUdA0J2BP for <ntp@ietfa.amsl.com>; Wed, 5 Jun 2019 16:13:10 -0700 (PDT)
Received: from chessie.everett.org (chessie.everett.org [IPv6:2001:470:1:205::234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9F4A4120025 for <ntp@ietf.org>; Wed, 5 Jun 2019 16:13:10 -0700 (PDT)
Received: from L34097OUS.fios-router.home (pool-108-26-201-164.bstnma.fios.verizon.net [108.26.201.164]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 45K4Mm3d26zL7N; Wed, 5 Jun 2019 23:13:08 +0000 (UTC)
To: Hal Murray <hmurray@megapathdsl.net>
Cc: NTP WG <ntp@ietf.org>
References: <20190605215710.7A5DB40605C@ip-64-139-1-69.sjc.megapath.net>
From: Danny Mayer <mayer@ntp.org>
Message-ID: <63435fce-afa1-d570-d428-cf1e235de90d@ntp.org>
Date: Wed, 05 Jun 2019 19:13:07 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.7.0
MIME-Version: 1.0
In-Reply-To: <20190605215710.7A5DB40605C@ip-64-139-1-69.sjc.megapath.net>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/XsNfTRbiDp8Ope2iwL_zQnWy6U0>
Subject: Re: [Ntp] Details of the fragmentation attacks against NTP and port randomization
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Jun 2019 23:13:12 -0000

On 6/5/19 5:57 PM, Hal Murray wrote:
> mayer@pdmconsulting.net said:
>> The opposition is due to the fact that randomizing the ports doesn't solve
>> the underlying security issue. If I'm an attacker off-path and can get to the
>> target system, I can just run nmap and find out all of the open ports leaving
>> just a few ports to check. Randomizing ports by itself solves nothing here. 
> There is an important idea that isn't specified in "randomization".  When does 
> the randomization happen?
>
> Case A: When a client decides to use IP Address a.b.c.d as a server, open a 
> socket.
>
> Case B: When a client decides to send a packet to IP Address a.b.c.d, open a 
> socket.  When the response arrives (or timeout) close the socket.
>
> nmap will find Case A type systems.  It has a small chance of finding systems 
> using Case B.
>
>
Yes, if you are smart you would want case B. Thar's what I am
advocating. I think I put that in my message.

Danny