Re: [ntpwg] Parsing NTP packets regarding MACs and EXTs.

Daniel Franke <dfoxfranke@gmail.com> Wed, 22 June 2016 15:20 UTC

Return-Path: <ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org>
X-Original-To: ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com
Delivered-To: ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6DFBF12DE6C for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Wed, 22 Jun 2016 08:20:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.015
X-Spam-Level:
X-Spam-Status: No, score=-8.015 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.198, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.426, T_DKIM_INVALID=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com
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 Yk4Gy_oF7k27 for <ietfarch-ntp-archives-ahFae6za@ietfa.amsl.com>; Wed, 22 Jun 2016 08:20:00 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [149.20.68.7]) by ietfa.amsl.com (Postfix) with ESMTP id 333EC12D9E6 for <ntp-archives-ahFae6za@lists.ietf.org>; Wed, 22 Jun 2016 08:07:47 -0700 (PDT)
Received: from lists.ntp.org (lists.ntp.org [149.20.68.7]) by lists.ntp.org (Postfix) with ESMTP id 1F37586DAE5 for <ntp-archives-ahFae6za@lists.ietf.org>; Wed, 22 Jun 2016 15:07:47 +0000 (UTC)
X-Original-To: ntpwg@lists.ntp.org
Delivered-To: ntpwg@lists.ntp.org
Received: from mail1.ntp.org (mail1.ntp.org [IPv6:2001:4f8:fff7:1::5]) by lists.ntp.org (Postfix) with ESMTP id A9E0386D48C for <ntpwg@lists.ntp.org>; Wed, 22 Jun 2016 15:07:26 +0000 (UTC)
Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]) by mail1.ntp.org with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from <dfoxfranke@gmail.com>) id 1bFjkP-000Ibz-GL for ntpwg@lists.ntp.org; Wed, 22 Jun 2016 15:07:25 +0000
Received: by mail-oi0-x231.google.com with SMTP id s66so26303343oif.1 for <ntpwg@lists.ntp.org>; Wed, 22 Jun 2016 08:07:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BtYuDkBHvajdGH9bnU+FTvbQhfIoLeDmJoZC07hgdTk=; b=eXOAXur9NCNqZq7PbFWsfJldTq5Cy4jiaYTJXzI+zB4RkoEn4dVaLlS4+CQHieuldW KZsrh9uv/m7ALMZ2R5WrKzeveqaZVxBqF4x7nYN/xhf76Y8SWgjAEjMmjSCGxWuOUTa+ Rd1/gg02nQ6j57U6MxZ2B16ztW24uQG3aYCPZCJ6uEbj4vrsot9NFuqCQBrN7ec2BVUs 6o7LOa5Kalg+BJHloB3jUxEvC1JjytONoPrU0pkLMsWaNHyuGDFuFyiDqCviZ5BifkHX vwjG5QlB4yCbiIcz9WyAIl36NJ0ogXrTDojjBXm9NbREGZllMGddq29/KcnsVHYHjV8h LuDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BtYuDkBHvajdGH9bnU+FTvbQhfIoLeDmJoZC07hgdTk=; b=daMrFF8mf+ouu/gE2fDH+MciGiTTW/B87Sab39zdKXoD3ez6/oVMVrMjSnCdeLE1WX PHF7q7e9k5NROtkKWLAnNf6eqB64ZhWuRf759JK1QyOH+kO6bQypFBcfJnoTuQbdvNgy 5d5a1YjLuvCm5qxm+FX7IRJSjnr7cY3+FqQHgptSEu0FsaoiH2o1cDarTi3YA7pySg2s hpx8tXEnskOlF6TBYKh69VDG3n6oDkHyY8ArOh2U9ZHObaqwCNS2OjKvlpAaNSxlzwwa wAK57itdzKf9g0UiilaCzvtLJ0C2tBSAnVgqryyBLC3OXODeUv1UOt5lZCmERp+ODfqA NahQ==
X-Gm-Message-State: ALyK8tIKdjGcKM+cChfRFkEzE+7xRq/vXH2mOClYOZ6f+/PwE8YwXHUqUhTCC9HQdQ8sqjIOEUCoVXmhFVrmZA==
X-Received: by 10.202.236.143 with SMTP id k137mr1961722oih.77.1466608040396; Wed, 22 Jun 2016 08:07:20 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.224.234 with HTTP; Wed, 22 Jun 2016 08:07:19 -0700 (PDT)
In-Reply-To: <70060988e192497caf2402dec106e8b2@usma1ex-dag1mb1.msg.corp.akamai.com>
References: <stenn@ntp.org> <E1bFCJh-000G0C-Bf@stenn.ntp.org> <20160621093932.BD9A7406057@ip-64-139-1-69.sjc.megapath.net> <f4f6f8f969ac49ff819ccae06ec2e3db@usma1ex-dag1mb1.msg.corp.akamai.com> <E1bFURY-000H2p-G8@stenn.ntp.org> <70060988e192497caf2402dec106e8b2@usma1ex-dag1mb1.msg.corp.akamai.com>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Wed, 22 Jun 2016 11:07:19 -0400
Message-ID: <CAJm83bALASspCE3CTE7G_AnP0JoX_MsqSg+T+CB=1Oc5OgHADg@mail.gmail.com>
To: "Salz, Rich" <rsalz@akamai.com>
X-SA-Exim-Connect-IP: 2607:f8b0:4003:c06::231
X-SA-Exim-Rcpt-To: ntpwg@lists.ntp.org
X-SA-Exim-Mail-From: dfoxfranke@gmail.com
X-SA-Exim-Version: 4.2
X-SA-Exim-Scanned: Yes (on mail1.ntp.org)
Subject: Re: [ntpwg] Parsing NTP packets regarding MACs and EXTs.
X-BeenThere: ntpwg@lists.ntp.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: IETF Working Group for Network Time Protocol <ntpwg.lists.ntp.org>
List-Unsubscribe: <http://lists.ntp.org/options/ntpwg>, <mailto:ntpwg-request@lists.ntp.org?subject=unsubscribe>
List-Archive: <http://lists.ntp.org/pipermail/ntpwg/>
List-Post: <mailto:ntpwg@lists.ntp.org>
List-Help: <mailto:ntpwg-request@lists.ntp.org?subject=help>
List-Subscribe: <http://lists.ntp.org/listinfo/ntpwg>, <mailto:ntpwg-request@lists.ntp.org?subject=subscribe>
Cc: "ntpwg@lists.ntp.org" <ntpwg@lists.ntp.org>, Hal Murray <hmurray@megapathdsl.net>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org
Sender: ntpwg <ntpwg-bounces+ntp-archives-ahfae6za=lists.ietf.org@lists.ntp.org>

On 6/22/16, Salz, Rich <rsalz@akamai.com> wrote:
>
>> But again, how thoroughly do you want to "protect" this 48-byte message?
>
> The size of the message is not relevant; the importance of it is what
> counts.
>
> I want to protect network-based time synchronization with best-practice
> security.

To expand on Rich's point: MD5 is broken and SHA-1 is weak, for
reasons that mostly have *nothing to do* with their digest length.
MD5's digest length is 128 bits. That's not enough these days for
collision resistance, but for a MAC it's plenty; the problem is
elsewhere! As I've already pointed out earlier in this thread, MACs
may be truncated. HMAC-SHA-256 with its output truncated to 128 bits
is just fine.
_______________________________________________
ntpwg mailing list
ntpwg@lists.ntp.org
http://lists.ntp.org/listinfo/ntpwg