Re: [openpgp] Mining protection in fingerprint schemes

Bryan Ford <brynosaurus@gmail.com> Fri, 08 April 2016 01:12 UTC

Return-Path: <brynosaurus@gmail.com>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 423C812D0EE for <openpgp@ietfa.amsl.com>; Thu, 7 Apr 2016 18:12:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) 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 i25Bd_Tiun2p for <openpgp@ietfa.amsl.com>; Thu, 7 Apr 2016 18:12:14 -0700 (PDT)
Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BDC8012D0BE for <openpgp@ietf.org>; Thu, 7 Apr 2016 18:12:13 -0700 (PDT)
Received: by mail-qg0-x229.google.com with SMTP id j35so79123172qge.0 for <openpgp@ietf.org>; Thu, 07 Apr 2016 18:12:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=2NWB7WTRCLCFrGLp6eSxlDSEXA9lU9wBWevTQi2Wt58=; b=qhp2WPb64XsA8uYWDrbhceoNlIH0dSxy40O2kkstkftOPpDl9CtpL8bpSHqdQHobt7 IxrB+SQU/soHwu75p8V5/UexyGuYJqB4yR8rvyG4OMFQboVDWuxxPaybNm6K2WxetqNk umybhrLRb6+ELMsDcaOD3JVx+rYl3HvATU9ToOVtm1rjb9EmPAbZtXWWnjviogzYeVod ltwLXIsGwgjlF07rG3c079qecfRXePKm71Vuh6swD2pJ27MVRJl6W09qRUq/iya1Qk5s d/uBk1z8nHuekQpTIMH5Cvr5AgIVTHuJ8Rc/2D/cocj30FJZ8nHTWMJPjPHFzgvvMmT/ n8aQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=2NWB7WTRCLCFrGLp6eSxlDSEXA9lU9wBWevTQi2Wt58=; b=eGpKsIw/iSYwHAypmnLHV1tJ7hz36f11h+qwalS+aEzZ5l3tOfuXl6IIe4euBpHCHQ 28yX4KS0odb+0Fq7fsFTKYYF499E/Nw+gVcTwJFAQ/mVpuU7F4pQ3IgtFGWE+a/HqG3D XWOpis/Pzv0xxTwWfn6DbTxWpqHVKsxgSAGS+bJC2KGIcfr1xivBbfpBDvXQHi281XWz VJ/UxZ9NUCO3eUVOoxt2EKd3JEzrY6OCLpPdcdFtLIxt/2hJfLkqoL3ES+za+suf35TR T32+7S0zgOlTpfbIIA+ZioMQs9izK+ht+MmiCgJP0WTk2UYWOhtuJ1HZKy4ucEKIOBkw 8U6w==
X-Gm-Message-State: AD7BkJK8vb0Zk0ePIlbuV1Y1ZyEg+JKuqoJf+uN5q0tS04IoU7AbvG7o+PriaCozcN2jzQ==
X-Received: by 10.140.91.34 with SMTP id y31mr7975771qgd.84.1460077932852; Thu, 07 Apr 2016 18:12:12 -0700 (PDT)
Received: from [172.16.2.17] ([190.111.246.13]) by smtp.gmail.com with ESMTPSA id x6sm4596815qka.16.2016.04.07.18.12.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Apr 2016 18:12:10 -0700 (PDT)
Content-Type: multipart/signed; boundary="Apple-Mail=_AD6E8404-182B-4550-ADE9-DF55684BC164"; protocol="application/pkcs7-signature"; micalg="sha1"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Bryan Ford <brynosaurus@gmail.com>
In-Reply-To: <6E221A61-7AB2-4E0B-B64D-60F210A0131F@callas.org>
Date: Thu, 07 Apr 2016 22:12:06 -0300
Message-Id: <E9A5B4B3-0EEC-4E86-8CEC-6680A24BE44F@gmail.com>
References: <4C08CDDD-4C06-41AD-9797-7DD6F08ECD06@gmail.com> <2AA5B912-0AE6-4722-8BC7-66E37559C0B1@callas.org> <D17B23A3-633F-4E4E-BC14-69ED6060F357@gmail.com> <6E221A61-7AB2-4E0B-B64D-60F210A0131F@callas.org>
To: Jon Callas <jon@callas.org>
X-Mailer: Apple Mail (2.3124)
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/V_79j7dYsR4k6LbY2hyTRBYt6C4>
Cc: openpgp@ietf.org
Subject: Re: [openpgp] Mining protection in fingerprint schemes
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Apr 2016 01:12:16 -0000

> On Apr 7, 2016, at 8:36 PM, Jon Callas <jon@callas.org> wrote:
>> On Apr 7, 2016, at 7:55 AM, Bryan Ford <brynosaurus@gmail.com <mailto:brynosaurus@gmail.com>> wrote:
>> The whole idea of providing some form of “mining-resistance” in a fingerprint scheme is to enable the key-owner to invest some effort at key-creation time, to ensure that any attacker who wants to try to mine for a key with a similar-looking fingerprint will have to invest a *lot* more time and effort, not just a little.
>> 
>> Does this make sense?
> 
> I believe I understand you.
> 
> You're complexifying key creation for a hypothetical, movie-plot attack.

This attitude, that IETF-standardized protocols should not attempt to address known or foreseeable weaknesses unless there are documented cases of those specific attacks happening in the wild *right now*, is one key reason Internet security is in such a horrific state.  When protocol designs only ever attempt to address attacks that have already been documented in the wild - and calling all other attacks “movie-plot” scenarios - by definition you’re always playing catch-up and attackers will always be ahead.  The pervasiveness of this attitude, while understandable, makes me sad.

In the case of fingerprint-mining, we actually do have documented evidence of that occurring, the most obvious and well-known being Facebook’s vanity .onion address.  The fact that Facebook was not maliciously attacking anyone else - in effect they were only “attacking” their own brand-name by mining for a public-key whose .onion address would look like it - does not change the fact that their action demonstrated that both the capability and the incentives exist in the real-world to mine for fingerprints that look similar to something-or-other.  If it so happened that the “real” Facebook was mounting this attack against its own brand, the next time it might be a fake Facebook imposter mounting the same attack against Facebook by creating a similar-looking vanity name and hoping users will fall for it.  The issue is not who or what the fingerprint-miner is trying to make their mined fingerprint look like; the issue is that such attacks are clearly practical.

Documented fingerprint-mining attacks have occurred in other domains too: for example, not too long ago I remember that it was found that the Ripple ledger was vulnerable to “Transaction ID” fingerprint-mining attacks that were actually being exploited, in which an attacker mined for low-numbered transaction IDs which would cause their transactions to get processed first and provide arbitrage opportunities.  Obviously the fingerprint-mining was for a fairly different purpose in this case, but still it’s another documented example of the same general class of weakness: i.e., an attacker mining for a hash-based fingerprint that looks kinda like something that will help him get what he wants in some way.

Bryan