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

Hal Murray <hmurray@megapathdsl.net> Wed, 05 June 2019 21:57 UTC

Return-Path: <hmurray@megapathdsl.net>
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 3596A120155 for <ntp@ietfa.amsl.com>; Wed, 5 Jun 2019 14:57:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.036
X-Spam-Level: *
X-Spam-Status: No, score=1.036 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_DYNAMIC_IPADDR=1.951, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=no 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 t8jEVbZRpbx8 for <ntp@ietfa.amsl.com>; Wed, 5 Jun 2019 14:57:11 -0700 (PDT)
Received: from ip-64-139-1-69.sjc.megapath.net (ip-64-139-1-69.sjc.megapath.net [64.139.1.69]) by ietfa.amsl.com (Postfix) with ESMTP id BCDD8120091 for <ntp@ietf.org>; Wed, 5 Jun 2019 14:57:11 -0700 (PDT)
Received: from shuksan (localhost [127.0.0.1]) by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 7A5DB40605C; Wed, 5 Jun 2019 14:57:10 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Danny Mayer <mayer@pdmconsulting.net>
cc: NTP WG <ntp@ietf.org>, hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Danny Mayer <mayer@pdmconsulting.net> of "Wed, 05 Jun 2019 14:35:42 EDT." <8e3f7027-ea04-3e33-274f-0c65f499af7d@pdmconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 05 Jun 2019 14:57:10 -0700
Message-Id: <20190605215710.7A5DB40605C@ip-64-139-1-69.sjc.megapath.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/bWLlrz_GQuo379iaPnPV8KZL_SA>
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 21:57:13 -0000

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.


-- 
These are my opinions.  I hate spam.