Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MeSW3-0003So-0L for mharc-grub-devel@gnu.org; Fri, 21 Aug 2009 07:42:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeSW0-0003Pm-6Y for grub-devel@gnu.org; Fri, 21 Aug 2009 07:42:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeSVz-0003OT-4q for grub-devel@gnu.org; Fri, 21 Aug 2009 07:42:39 -0400 Received: from [199.232.76.173] (port=49885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeSVy-0003OE-Sg for grub-devel@gnu.org; Fri, 21 Aug 2009 07:42:38 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:27398) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeSVy-000361-03 for grub-devel@gnu.org; Fri, 21 Aug 2009 07:42:38 -0400 Received: by fg-out-1718.google.com with SMTP id l27so155247fgb.7 for ; Fri, 21 Aug 2009 04:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=XY/nw0Dgepu+o/Zejusd8UTFDuvgS/zFugsrPD2n/AE=; b=gi3QD9ytWErLkH0L06DpILf2/4kIzVzf17B5Vh9AE8Ew0i1YHW7YII3UAQrC4aYff8 alr0Q4vKdxp1sOhuFEo25CeWjPUn4kItxTGeexUe4Ir32JZwKeJDxRDtG3LfIfVkEcIf CokcbhccEvaertfhZ3df6c9p9zakq+97y690A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=WakAPB+YXUqO9umL81wlDf2TbNUXxBx54WnJCFwcR8hZ52qPOuxLj4NEVubysLI5M8 jwwEitNcSMwVKoJZzbj6wkrAsjMn1TjI45Q6UIpvy+BqDtMzkl56YHnXxFIgDnR0Qg+d Rdagmy3xLhqXH80aLmFoVQYHgskhct/UkLrKo= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.226.32 with SMTP id y32mr766549fgg.77.1250854957014; Fri, 21 Aug 2009 04:42:37 -0700 (PDT) In-Reply-To: <4A8D8CED.3050402@duboucher.eu> References: <4A8BDB5B.5000407@labri.fr> <200908201008.01687.michael@gorven.za.net> <200908201033.21202.michael@gorven.za.net> <4A8D8CED.3050402@duboucher.eu> Date: Fri, 21 Aug 2009 13:42:36 +0200 X-Google-Sender-Auth: 7ad61bddb52ae906 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Fri, 21 Aug 2009 11:42:40 -0000 2009/8/20 Duboucher Thomas : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Seems that my smtp was down :| > > Michal Suchanek a =C3=A9crit : >> 2009/8/20 Michael Gorven : >>> On Thursday 20 August 2009 10:20:02 Michal Suchanek wrote: >>>> 2009/8/20 Michael Gorven : >>>>> On Thursday 20 August 2009 09:59:42 Michal Suchanek wrote: >>>>>> 2009/8/20 Michael Gorven : >>>>>>> On Thursday 20 August 2009 09:49:06 Michal Suchanek wrote: >>>>>>>> 2009/8/20 Michael Gorven : >>>>>>>>> On Wednesday 19 August 2009 21:21:28 Michal Suchanek wrote: >>>>>>>>>> Tell me one technical benefit of TPM over coreboot. >>>>>>>>> Coreboot doesn't provide protected storage of secrets (e.g. >>>>>>>>> harddrive decryption keys). > > It could emulate what a TPM does, however since it starts its job later > in the boot process, it is far, far less secure (I personnaly would > consider it useless in this case). > >>>>>>>> TPM does not either at the time the BIOS is loaded. Remember, it's >>>>>>>> the CPU what's running the BIOS, not the TPM chip. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Just to make some precisions about TPM and its= uses (or at least, as > far as I understood how they works). The TPM chip is soldered on the LPC > bus, that is, the same bus where the SuperIO (keyboard controller) and > the BIOS ROM are located, under the SouthBridge. During a BootUp phase > (G2 -> G0), the Core Root of Trusted Measurement, also located on the > LPC bus, wake up and initialize the TPM. It measures itself (firmware, > configuration, ...), then it measures the BIOS ROM. When these > operations are completed, the BIOS is then executed by the processor and > the system boots up. Other elements being measured later are the > CPU/NB/SB/SuperIO microcode/configuration and the BIOS configuration. I > don't have a lot more details on these stages since I haven't acess to > the whole specifications, nor I am a PC guru. You can check this if you > have a TPM enabled computer by dumping the content of > /sys/kernel/security/tpmX/ on your securityfs. > =C2=A0 =C2=A0 =C2=A0 =C2=A0These steps contribute in creating what is cal= led a "trusted platform" > composed of "trusted elements" within "trust boundary" (yep, that's a > lot of trust). This means that when the first IPL is loaded, you can > check wether the system has been tampered or not, the TPM state being > the "image" of the system (or as close as it can be). > Because trust is transitive, you end up with a complete system that you > can "trust", because the TPM can be considered as being a "trusted third > party". > =C2=A0 =C2=A0 =C2=A0 =C2=A0The easiest known attack on TPM is interceptin= g data on the LPC bus. > Because it can't be trusted (the bus), you could put some controller > (like FPGAs) between the TPM and the bus (with some dirty work). Then > using an altered boot loader (i.e. Stoned), making the system boot > normaly, except that you would intercept the measure of the malicious > boot loader and replace it by the measure of the old boot loader. You > can keep the original series of measure to make the TPM believe the > system hasn't been tampered and you'll end up discovering the shared > secret the TPM was holding without the user being able to notice the > system integrity was compromised. Well, that require a lot of dirty work > and wires, but it works. ;) > =C2=A0 =C2=A0 =C2=A0 =C2=A0However, later chips, like Intel's iTPM tries = to integrate the BIOS ROM > and the TPM within the SouthBridge, removing the LPC bus, the untrusted > part. Also, TPM are watching closely the LPC bus (such as trying to > detect clock variations). > Ok, thanks for clarifying this. On platforms that integrate a TPM chip properly it should be started before the BIOS and thus it can check the integrity of the BIOS which is something coreboot cannot do. The manufacturers could include any decent crypto solution in the platform but they included a crippled chip designed for DRM schemes so that's what we have. Thanks Michal