Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vj0ZY-0003rX-W3 for mharc-grub-devel@gnu.org; Wed, 20 Nov 2013 00:43:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj0ZR-0003qi-5b for grub-devel@gnu.org; Wed, 20 Nov 2013 00:43:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vj0ZL-0000Fk-7P for grub-devel@gnu.org; Wed, 20 Nov 2013 00:43:25 -0500 Received: from mail-bk0-f44.google.com ([209.85.214.44]:54950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj0ZL-0000Fg-0q for grub-devel@gnu.org; Wed, 20 Nov 2013 00:43:19 -0500 Received: by mail-bk0-f44.google.com with SMTP id d7so3375853bkh.3 for ; Tue, 19 Nov 2013 21:43:18 -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:content-transfer-encoding; bh=HFhfEm1izL0PZOGcSpMFdOS7RG4cd1QOXKAzgKQJmBU=; b=XgUAKlADwb+aCETU2Mu7iJOEZtZj4BLq+utOvSMXFwVcoh7W2kGM62KOCkpK1vkZNY CSng7nAjr2+xS0rPcXWmDdYsebIZNcKgt1N0nZs87nZuF7nxygprOBqCrB3J621N+0ap BCjsmMtitgNw96Io+Zzp5nNPDDUEEhkRWEbjf8GwneCNGCu6n6Dfqq0sUtbVaqqmXrHv ug18EfK6f8YbYhONifvUtR2wExVKsJWRQKlWf4oH1RmcCTnduJYOqtWLBOeSQlWy7r2X 4glzhw87BNXW2l7dqzGxfoRxs04DyKlegP6B1mERmw9Xp4EwCjcbwJ9Iv0LPNQGbhOnP cV7w== X-Gm-Message-State: ALoCoQnyuEphWcly57o9z9d5b3zJL6H7YHdM5McLb870K0Alr6jGFZAFa8VIwL8qCbe24MxcFFve X-Received: by 10.204.242.68 with SMTP id lh4mr19062098bkb.19.1384926197726; Tue, 19 Nov 2013 21:43:17 -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 no2sm23194198bkb.15.2013.11.19.21.43.16 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 19 Nov 2013 21:43:17 -0800 (PST) Date: Tue, 19 Nov 2013 23:43:12 -0600 From: Glenn Washburn To: grub-devel@gnu.org Subject: Re: Keyfile Support for GRUBs LUKS Message-ID: <20131119234312.3e95e55e@crass-Ideapad-Z570> In-Reply-To: <20131120015540.GA35248@scollay.m5p.com> References: <528BF7A9.8010702@ramses-pyramidenbau.de> <20131119193135.7b3b5d2f@crass-Ideapad-Z570> <20131120015540.GA35248@scollay.m5p.com> X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.214.44 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 05:43:31 -0000 On Tue, 19 Nov 2013 17:55:40 -0800 Elliott Mitchell wrote: > On Tue, Nov 19, 2013 at 07:31:35PM -0600, Glenn Washburn wrote: > > I've had this setup ever since grub had LUKS support, except for the > > signature checking. I don't really see the point of checking > > signatures if the kernel and initrd are encrypted. > > You're setting yourself up for a *lot* of pain then. In places where > security is important, *always* check signatures. Utilizing > encryption without checking signatures leaves you *wide-open* to > attacks! In a case like this, by observing whether the system > continues or halts the attacker will be able to figuring out how the > incoming stream was handled. While this may not allow them to figure > out what the keys are, it will allow them to easily break in. > > Not checking signatures has repeatedly killed zillions of security > products. If you worry about security, signatures are non-optional! I'm not exactly following you. Checking signatures is a way to verify that certain data is what you expect it to be. Can you provide an example of what you mean by "observing whether the system continues or halts the attacker will be able to figuring out how the incoming stream was handled"? I'm not saying that signatures aren't useful for security. They are an essential part of trusted computing. Would you care to elaborate how in this specific instance signatures would make the system more secure? Let me be clear, my comment was based on the assumption (as stated by the OP) that the USB stick was "trusted" and the threat model is of an "evil maid" attack. Since the USB is trusted it needs no verification. What other data do we have then? A LUKS encrypted device. Assuming that the attacker does not have a way to unlock the drive, she can only do cipher text modification or mess with the LUKS header. Assuming no bugs in the LUKS header parsing of the grub on the USB, modifying the header will only potentially cause the unlocking of the device to fail (nothing signatures would prevent). 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. I assumed by signatures, the OP was referring to signatures for the kernel and initrd, which residing inside the encrypted volume would make signatures pointless (for this threat model). Now verifying signatures of the code on the USB would certainly be worthwhile if you didn't trust it. But again, they won't prevent a determined attacker if the signature verification code is unencrypted on the USB. Obviously untrusted code can't verify the trustworthiness of other code/data. Thus, I previously stated "I'm not sure it'll buy you much unless you're using it in combo with hardware/firmware". Looking forward to your response, Glenn