From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5zmw-0005gM-Jz for qemu-devel@nongnu.org; Wed, 22 Jan 2014 10:32:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5zmq-0006JM-Fy for qemu-devel@nongnu.org; Wed, 22 Jan 2014 10:32:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5zmq-0006J3-8y for qemu-devel@nongnu.org; Wed, 22 Jan 2014 10:32:16 -0500 From: Markus Armbruster References: <1390393704-16067-1-git-send-email-berrange@redhat.com> Date: Wed, 22 Jan 2014 16:32:11 +0100 In-Reply-To: <1390393704-16067-1-git-send-email-berrange@redhat.com> (Daniel P. Berrange's message of "Wed, 22 Jan 2014 12:28:24 +0000") Message-ID: <8761pcxcas.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2] Describe flaws in qcow/qcow2 encryption in the docs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Kevin Wolf , Paolo Bonzini , qemu-devel@nongnu.org, Stefan Hajnoczi , Peter Maydell "Daniel P. Berrange" writes: > The qemu-img.texi / qemu-doc.texi files currently describe the > qcow2/qcow2 encryption thus > > "Encryption uses the AES format which is very secure (128 bit > keys). Use a long password (16 characters) to get maximum > protection." > > While AES is indeed a strong encryption system, the way that > QCow/QCow2 use it results in a poor/weak encryption system. > Due to the use of predictable IVs Sector number zero-extended to 128 bits. > it is vulnerable to chosen > plaintext attacks which can reveal the existance of encrypted > data. > > The direct use of the user passphrase as the encryption key > also leads to an inability to change the passphrase of an > image. If passphrase is ever compromised the image data will > all be vulnerable, since it cannot be re-encrypted. The admin > has to clone the image files with a new passphrase and then > use a program like shred to secure erase all the old files. > > Recommend against any use of QCow/QCow2 encryption, directing > users to dm-crypt / LUKS which can meet modern cryptography > best practices. > > Signed-off-by: Daniel P. Berrange Amateur crypto. Reviewed-by: Markus Armbruster