Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WLBGK-0003Ol-LT for bitcoin-development@lists.sourceforge.net; Wed, 05 Mar 2014 12:49:28 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.214.174 as permitted sender) client-ip=209.85.214.174; envelope-from=mh.in.england@gmail.com; helo=mail-ob0-f174.google.com; Received: from mail-ob0-f174.google.com ([209.85.214.174]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1WLBGJ-0003cj-Lq for bitcoin-development@lists.sourceforge.net; Wed, 05 Mar 2014 12:49:28 +0000 Received: by mail-ob0-f174.google.com with SMTP id wo20so937393obc.5 for ; Wed, 05 Mar 2014 04:49:22 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.182.81.197 with SMTP id c5mr4646588oby.40.1394023762327; Wed, 05 Mar 2014 04:49:22 -0800 (PST) Sender: mh.in.england@gmail.com Received: by 10.76.71.231 with HTTP; Wed, 5 Mar 2014 04:49:22 -0800 (PST) Date: Wed, 5 Mar 2014 13:49:22 +0100 X-Google-Sender-Auth: gfQuQaALxT3kqYeMk61lAQPi47U Message-ID: From: Mike Hearn To: Bitcoin Dev Content-Type: multipart/alternative; boundary=047d7b2e4d58297edb04f3db7340 X-Spam-Score: -0.5 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mh.in.england[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1WLBGJ-0003cj-Lq Subject: [Bitcoin-development] New side channel attack that can recover Bitcoin keys X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 12:49:28 -0000 --047d7b2e4d58297edb04f3db7340 Content-Type: text/plain; charset=UTF-8 A new practical technique has been published that can recover secp256k1 private keys after observing OpenSSL calculate as little as 200 signatures: http://eprint.iacr.org/2014/161.pdf This attack is based on the FLUSH+RELOAD technique published last year. It works by observing L3 CPU cache timings and forcing cache line flushes using the clflush opcode. As a result, it is applicable to any x86 environment where an attacker may be able to run on the same hardware i.e. virtualised hosting environments where keys are being reused. I am not currently aware of any efforts to make OpenSSL's secp256k1 implementation completely side channel free in all aspects. Also, unfortunately many people have reimplemented ECDSA themselves and even if OpenSSL gets fixed, the custom implementations probably won't. So, IMHO this is a sign for hot wallet users to start walking (but not running) towards the exits of these shared cloud services: it doesn't feel safe to sign transactions on these platforms, so hot wallets should be managed by dedicated hardware. Of course other parts of the service, like the website, are less sensitive and can still run in the cloud. I doubt the researchers will release their code to do the side channel attack and it's rather complex to reimplement, so this gives some time for mitigation. Unfortunately the huge sums being held in some "bitbank" style hot wallets mean that attackers are well motivated to pull off even quite complex attacks. --047d7b2e4d58297edb04f3db7340 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
A new practical technique has been published that can reco= ver secp256k1 private keys after observing OpenSSL calculate as little as 2= 00 signatures:


This attack is based on the FLUSH+RELOAD techniqu= e published last year. It works by observing L3 CPU cache timings and forci= ng cache line flushes using the clflush opcode. As a result, it is applicab= le to any x86 environment where an attacker may be able to run on the same = hardware i.e. virtualised hosting environments where keys are being reused.=

I am not currently aware of any efforts to make OpenSSL= 's secp256k1 implementation completely side channel free in all aspects= . Also, unfortunately many people have reimplemented ECDSA themselves and e= ven if OpenSSL gets fixed, the custom implementations probably won't.= =C2=A0

So, IMHO this is a sign for hot wallet users to start w= alking (but not running) towards the exits of these shared cloud services: = =C2=A0it doesn't feel safe to sign transactions on these platforms, so = hot wallets should be managed by dedicated hardware. Of course other parts = of the service, like the website, are less sensitive and can still run in t= he cloud. I doubt the researchers will release their code to do the side ch= annel attack and it's rather complex to reimplement, so this gives some= time for mitigation. Unfortunately the huge sums being held in some "= bitbank" style hot wallets mean that attackers are well motivated to p= ull off even quite complex attacks.
--047d7b2e4d58297edb04f3db7340--