Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MdkV5-0002EP-0p for mharc-grub-devel@gnu.org; Wed, 19 Aug 2009 08:42:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdkV2-0002AI-Eb for grub-devel@gnu.org; Wed, 19 Aug 2009 08:42:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdkUx-00024B-4j for grub-devel@gnu.org; Wed, 19 Aug 2009 08:42:43 -0400 Received: from [199.232.76.173] (port=49760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdkUw-000248-Vj for grub-devel@gnu.org; Wed, 19 Aug 2009 08:42:39 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:45239) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdkUw-0004bz-Bq for grub-devel@gnu.org; Wed, 19 Aug 2009 08:42:38 -0400 Received: by bwz22 with SMTP id 22so3955325bwz.42 for ; Wed, 19 Aug 2009 05:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Bi8gJil4UshHnOziNKAvhC4NyQN0NakpUxI/O/WPXLw=; b=VQqlsZS+oVI++IQHy225uMYpkYtPeosTYoOTYt/N3AQfrGQMo8HP/V9hCj1bK0EVFs FgBUt6sC9jRx3BhUNL2IYctd1CqKzIiQLNTacSzYeWA7T3w2g4AIzEv+nrFVeYiqL+vw W7c8FuNgqwmCXxct4xhj8l10SrwdNxqVu/Hzc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=nGla30bhZkxSszeddUTaHx5wnnFG5JIlp1UGHP2QwxoXbpcbydRGAa9QT7F+OqlD9B d3D+b0YoUVC5x3iUxSGuoYS15bfE4YjEP08DoP8LySBha4hVlMVJbovdPGtE+OPD1RAy SdoNFgSNTVIwu+rQBQllebi93j/pFh0UHDF40= MIME-Version: 1.0 Received: by 10.204.3.10 with SMTP id 10mr4852465bkl.196.1250685757430; Wed, 19 Aug 2009 05:42:37 -0700 (PDT) In-Reply-To: <200908191425.29202.michael@gorven.za.net> References: <4A8BDB5B.5000407@labri.fr> <200908191425.29202.michael@gorven.za.net> Date: Wed, 19 Aug 2009 14:42:37 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: TPM support status ? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2009 12:42:44 -0000 On Wed, Aug 19, 2009 at 2:25 PM, Michael Gorven wrote: > On Wednesday 19 August 2009 13:51:34 Vladimir 'phcoder' Serbinenko wrote: >> 1) Making use of TPM you become dependent on good will of TPM >> manufacturer. You can never know if or when the TPM manufacturer or >> someone connected with them will ask you to use remote attestation to >> prove them that you use only the software they signed and that they >> effectively control your computer. > > How are you dependent? If they ask you to use remote attestation then just say > no -- what would you gain? You're probably not using any of their software > anyway. They can't stop your system from working. Even if they can't stop from working at all they can make it effectively useless by e.g. not allowing you to see online videos, buy online or even just send an e-mail (saying it's "spam control") if you aren't TPM-checked > >> 2) The similar features can be implemented without resorting to TPM by >> using coreboot and make every stage verify the signature of every next >> stage. > > Trust has to start somewhere, and the more difficult it is to compromise that > the better. > flash rom with cut write wire is impossible to compromise without physical access. >> 3) TPM manufacturers claim to achieve the goals like being >> tamperproof. This is simply not possible. Everything is tamperable. >> It's just the question of effort. > > Correct, but making hardware the root of trust is more secure than a flashable > BIOS or the harddrive contents. > Cut write wire? >> Even without such equipment it's just a >> question of time before a fatal flow in TPM is discovered and >> published. After that point TPM wouldn't be very different from WEP. > > Yes, but we used WEP because it was the best available security at the time. > And then we moved on to WPA. You can't argue that one shouldn't use something > because it will surely have flaws because otherwise we wouldn't use anything > at all. But TPM isn't the "best available security" now. > >> > 2) Extend the PCR register (TPM_SHA1CompleteExtend command) with the >> > SHA-1 digest. >> >> Why would we need a chip to check if SHA-1 matches if we can use >> signatures? > > Because the BIOS or bootloader can be replaced to remove the check. > And you can mess with PCI to fool TPM. >> > 3) Read the PCR (TPM_PCRRead command) and compare it to a recorded value >> > of a previous (safe) boot. We assume that the previous link of the chain >> > of trust (BIOS?) has already checked that GRUB hasn't been tampered >> > before starting it. >> >> You propose to check that our checksum in PCR is ok but you already >> assume GRUB wasn't tampered. If you assume grub wasn't tampered no >> need to checksum. If you don't it's useless to checksum. > > That isn't assumed -- the BIOS checks that GRUB isn't tampered with before > moving control to it. > Coreboot can make this too. And firmware doesn't need TPM to do such checks. >> > A full support of TPM means that GRUB should also be able to ask to a >> > remote authority if the content of the PCR is still ok... >> >> Why do I as user need someone else to check my computer? > > Because you don't always own or completely control the computer. > Then someone is already holding you hostage. We won't help them to restrict your freedom further. >> > Now, the question whether one shouldn't support a technology because it >> > may lead to evil usage is something that should be solved inside the >> > GRUB team (and I believe that the GRUB team has already solved this >> > question out). >> >> It's not like just "can lead". Remote attestation is a part of TPM >> spec. It's like saying nuclear bombs aren't a problem just because >> "they can explode". > > It is, but that doesn't mean it has to be implemented. > > I see TPM as a very useful security measure, and support in GRUB can help make > *nix systems much more secure. How? Respond to questions I asked (the 4 crypto questions). During your whole discussion you assumed that attacker already has root access and argued how to prevent him from changing the kernel. But what's the use if he already has root access (or in other words already has the security on the knees and can do whatever he wants). > > The only valid argument I see against TPM is the > supporting-possibly-harmful-technology one. But then we shouldn't use crypto > at all because it can be used for DRM... It's not just "possibly harmful", it's "designed with harm in the mind". > > Michael > > -- > http://michael.gorven.za.net > PGP Key ID 1E016BE8 > S/MIME Key ID AAF09E0E > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git