Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vj1of-0002Av-L7 for mharc-grub-devel@gnu.org; Wed, 20 Nov 2013 02:03:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj1oX-00028L-2t for grub-devel@gnu.org; Wed, 20 Nov 2013 02:03:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vj1oO-0003gt-6j for grub-devel@gnu.org; Wed, 20 Nov 2013 02:03:05 -0500 Received: from mail-bk0-f53.google.com ([209.85.214.53]:40224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj1oN-0003gp-Vp for grub-devel@gnu.org; Wed, 20 Nov 2013 02:02:56 -0500 Received: by mail-bk0-f53.google.com with SMTP id na10so3295177bkb.40 for ; Tue, 19 Nov 2013 23:02:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type; bh=UvIqWZMNHaTy5jII1XzIPs5JfSscOwry2DAaZ526B3k=; b=Md/H/ig/c+FOuKdRHU9lUlPxYY7PUeJu74RT5IN6xmLiV2pQbJiasrf6tJKWfFO7lo OFmln9QwBqQAiZqC0Az7TMVOkExEK5aDSsbLlorrUJX5iiOmasx+Ux6rLHnHl9mJcTmY F7sTFH58XEuIK8PIBH1Cn5bsJ6SqM/K39Gsdiuz+Q7HHS+3IbhlYG6dK7UgMwVIqYUUJ uI7bCjcGQpVnZu6l4F15WuplAcJ1xqrIwC8swSe2KhMfJ20SX9ASm841b3F3KfYosAUJ lCNhwhZU0QmqpdBoHVQ7VxURYvocHQ6DJk0eiE5mvn9HcGL69FXv7OFW9l8di6TeNvFu 4KPg== X-Gm-Message-State: ALoCoQklZAG9Sz6RZsmmTTXSv2vT2FXqAqJlPhL/LHdonCwOr/ulcF33jDfbeP9PXKkB7awtjwSd X-Received: by 10.204.68.142 with SMTP id v14mr19233423bki.18.1384930974764; Tue, 19 Nov 2013 23:02:54 -0800 (PST) Received: from crass-Ideapad-Z570 (cpe-70-113-30-216.austin.res.rr.com. [70.113.30.216]) by mx.google.com with ESMTPSA id pn6sm23432390bkb.14.2013.11.19.23.02.53 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 19 Nov 2013 23:02:54 -0800 (PST) Date: Wed, 20 Nov 2013 01:02:44 -0600 From: Glenn Washburn To: grub-devel@gnu.org Subject: Re: Keyfile Support for GRUBs LUKS Message-ID: <20131120010244.24adbfa1@crass-Ideapad-Z570> In-Reply-To: <528C4D38.7050607@gmail.com> References: <528BF7A9.8010702@ramses-pyramidenbau.de> <20131119193135.7b3b5d2f@crass-Ideapad-Z570> <20131120015540.GA35248@scollay.m5p.com> <20131119234312.3e95e55e@crass-Ideapad-Z570> <528C4D38.7050607@gmail.com> X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/LCJ1rFCNwkUqARJc9gIMQ1/"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.214.53 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Nov 2013 07:03:12 -0000 --Sig_/LCJ1rFCNwkUqARJc9gIMQ1/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 20 Nov 2013 06:48:40 +0100 Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > On 20.11.2013 06:43, Glenn Washburn wrote: > > Modifying the cipher text just > > manifests as random data corruption of the plain text device, again > > not a security issue and nothing that signatures would prevent. > It's a security threat. Imagine you have somewhere a routine which > verifies SSH-key when connecting by network. Replace it with random > data. With some significant probability this decodes to valid opcodes > but which do no check. Now everyone can use your SSH. > encryption provides secrecy. Signatures provide verification. Using > one to achieve the other will always fail. >=20 Let me see if I understand you. Suppose an attacker can modify the LUKS containers cipher text and happens to know the exact block which contains the routine for verifying the ssh key. The attacker then writes some data to that block, which will then manifest as random bytes once unencrypted. You're claiming that there's a more than insignificant probability that this could cause the verification to not happen? And thus for anyone to be able to log into the system via ssh? I hope you're not suggesting that because it would be ludicrously improbable (try executing data from /dev/random and see how far you get). If you'd like more of an analysis I can provide reasons why, but I think its fairly obvious. If I've misunderstood you (highly probable), could you explain in more detail. In the above scenario, signatures must cover those specific bytes in order to verify that you're running the correct ssh key verification code. Then, to extrapolate, you need to have signatures for all code and some data on your system. While I would agree that signatures for everything is ideal, all other things being equal, I don't think that's what the OP had in mind. Also, if this kind of threat were worth considering, why doesn't LUKS address this? It would seem fairly easy (add some HMACs in the blocks). Did they just fail to address some huge security concern? --Sig_/LCJ1rFCNwkUqARJc9gIMQ1/ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQEcBAEBAgAGBQJSjF6UAAoJEEPj94mUXoYsTeEH/3KZux/msbpZS9f6db0smmqA ZTcaF3ln4qqejGuH2DjzkzV+/SHC5RsKaB4iiWT9L+r6g2s+zMxKYpXVW7m1n/mY B+3OHVYOADdKpBgdm5WVspA8qur0zkIS9R4uUsWhnhz5dVqXFHOgs7cJGLglDSwE XasU+CfAytCHPpXqMFtuuCdcYr2et0uySac0x4QD/JRNif+E7iE0SODguuTodElu txu2VSvOEKw4OGwEcFTF55F2Kcs9tFgDg/1A3cCJAc5bACXawURLfPGFDKypy/wa COTW9X1BziUoatYdHYHNK6GUpPesPIFt3Ke7x0VbqxveNZBtb+oucVBMo7iebg0= =M6p1 -----END PGP SIGNATURE----- --Sig_/LCJ1rFCNwkUqARJc9gIMQ1/--