Return-Path: Received: from maude.comedia.it (mail.comedia.it [77.93.254.181]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Mon, 28 Dec 2009 22:20:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by maude.comedia.it (Postfix) with ESMTP id C2BE086F56 for ; Mon, 28 Dec 2009 22:20:38 +0100 (CET) Received: from maude.comedia.it ([127.0.0.1]) by localhost (maude.comedia.it [127.0.0.1]) (amavisd-new, port 10025) with LMTP id dvKTyf1Q5Ckx for ; Mon, 28 Dec 2009 22:20:38 +0100 (CET) Date: Mon, 28 Dec 2009 22:20:38 +0100 From: Luca Berra Message-ID: <20091228212038.GB2224@maude.comedia.it> References: <4B3914FB.7060008@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline In-Reply-To: <4B3914FB.7060008@gmail.com> Subject: Re: [dm-crypt] encrypted root: prevent / detect tampering with kernel / initrd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Mon, Dec 28, 2009 at 09:28:43PM +0100, Olivier Sessink wrote: > Hi all, > > I was wondering if there are some 'common' ways to prevent tampering with > the unencrypted kernel and initrd in the case of an encrypted root > filesystem? If somebody has access to your computer they could change the > initrd and kernel and make your encryption useless (e.g. store the password > in /boot, or send it over the network, etc. etc.). It shouldn't be too hard > to make this at least very difficult. I'm sorry if anyone has physical access to the machine, you lose. there is nothing you can do to prevent it. If your laptop is stolen and later found, i would not trust typing my password again booting from that disk. I would boot from a rescue media or install the disk in another machine and recover the data. What you suggest only creates a false sense of security and should be avoided. L. -- Luca Berra -- bluca@comedia.it Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \