Re: [Cfrg] tcp-md5 "strength"

Greg Rose <> Thu, 29 September 2016 14:05 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id C89D012B554 for <>; Thu, 29 Sep 2016 07:05:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id c-mBdEUPz0GQ for <>; Thu, 29 Sep 2016 07:05:03 -0700 (PDT)
Received: from ( []) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 8D6B112B54F for <>; Thu, 29 Sep 2016 07:05:03 -0700 (PDT)
Received: from (localhost []) by (Postfix) with ESMTP id 07CC6300061; Thu, 29 Sep 2016 07:05:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed;; h= content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to;; bh=yEpYFZ7HTdMUHR9Mh pafZYC4ORE=; b=cSjgWgah8l8GPgxNJqKuq0wnxCmJirXs1G+8JDIEY+90oCuik MOp3XfYUQsx4jYKfUjVbLztphjrfNOc5Yjhi5JS817eU5YIXsJnHTx7jZllaZgsG umAX8HorNjaCjwHRo5IZyVTWfwS2Xxdcr2l6i/ClfU8JRdEZ767q6b36Eg=
Received: from [] ( []) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: by (Postfix) with ESMTPSA id DE678300074; Thu, 29 Sep 2016 07:05:02 -0700 (PDT)
Content-Type: multipart/signed; boundary="Apple-Mail=_75002D38-33CF-45C1-A188-B9C08323BB88"; protocol="application/pkcs7-signature"; micalg=sha1
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Greg Rose <>
In-Reply-To: <>
Date: Thu, 29 Sep 2016 07:05:02 -0700
Message-Id: <>
References: <>
To: Stephen Farrell <>
X-Mailer: Apple Mail (2.3124)
Archived-At: <>
Cc: "" <>
Subject: Re: [Cfrg] tcp-md5 "strength"
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Crypto Forum Research Group <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 29 Sep 2016 14:05:07 -0000

> On Sep 29, 2016, at 5:14 , Stephen Farrell <> wrote:
> I was just asked for an estimate for how much effort
> it might be to break tcp-md5 [1] and whether (and for
> whom:-) that might be practical, for any interesting
> kind of break.
> If anyone has answers or estimates handy, that'd be
> appreciated.
> Cheers,
> S.
> PS: Yes, I know tcp-md5 is pretty to very crappy,
> sadly, it's still used and hard to displace :-(
> [1]

Appending the shared key to the end of the data to be hashed, as a message digest, is not considered to be safe with any hash function. That's why HMAC was developed. In the face of MD5 being not target collision resistant, I'd say this is a large security vulnerability. Practically speaking, the effort might depend on the length of the messages being transmitted, and their internal format, and I don't know enough about BGP to say for sure. If the messages are multiple blocks, with fairly flexible content in them, there's software out there that can produce messages with the same validation data in seconds.

I do understand that designing a replacement, particularly one without downgrade attacks applicable, is hard, and deploying it will be even harder, but wow, this is BGP! It's a bit important to the functioning of the Interwebs.


Phone:  +1 619 890 8236 
GPG/PGP:  1081A37C  232B EC8F 44C6 C853 D68F  E107 E6BF CD2F 1081 A37C