Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MeE42-00057M-S2 for mharc-grub-devel@gnu.org; Thu, 20 Aug 2009 16:16:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeE3z-00050E-W7 for grub-devel@gnu.org; Thu, 20 Aug 2009 16:16:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeE3u-0004ox-R2 for grub-devel@gnu.org; Thu, 20 Aug 2009 16:16:46 -0400 Received: from [199.232.76.173] (port=57076 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeE3u-0004ob-JV for grub-devel@gnu.org; Thu, 20 Aug 2009 16:16:42 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:43185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeE3t-0007gv-RC for grub-devel@gnu.org; Thu, 20 Aug 2009 16:16:42 -0400 Received: by bwz22 with SMTP id 22so154757bwz.42 for ; Thu, 20 Aug 2009 13:16:40 -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=juwaCKvkOaRBIUcANT7IvDkbUPkN+TkdmbjpcyL1gj8=; b=F4w+LkESliJL9uhvQMg8LxzYb4ffPL2T2eGPynJbAB4l5x7IyjxLIxjOLQsh4zR5hQ 2RgBHZrjcacN/Iix3ZI/YQnHvuA8TmX7kiVIa0H+3F8nwYLJWJ1SddDtW/93FuUXH16O sH9icqgLAPHPzkN2fvqMrho+7D9adRjxpw52A= 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=EU5U/AL4+l6rUz4vJ3o35fZFFfgbOJZVBNYa8h2HLcXU2bOidnv1VLoFbKVMbe7Xx5 FoeBrhQjUy8sBMg9dNM1h+itiWzhUxbGnaDVtRETauF8MUvGUgCHjzWQPUUDaAV0rOzQ BgunJ6tlgLtRLMJq6UdFkkmcNwzTnN8y6zJTk= MIME-Version: 1.0 Received: by 10.204.7.220 with SMTP id e28mr156223bke.210.1250799400571; Thu, 20 Aug 2009 13:16:40 -0700 (PDT) In-Reply-To: <4A8D7A47.90704@duboucher.eu> References: <4A8BDB5B.5000407@labri.fr> <200908201008.01687.michael@gorven.za.net> <200908201033.21202.michael@gorven.za.net> <4A8D7A47.90704@duboucher.eu> Date: Thu, 20 Aug 2009 22:16:40 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 20 Aug 2009 20:16:48 -0000 > > 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). You have to secure something physically. What we consider here are targetted attacks, not script kiddies. To deflect script kiddies anything is enough. For targetted attack you can't assume attacker can't mess with any chip > >>>>>>>> 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. > > =A0 =A0 =A0 =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. > =A0 =A0 =A0 =A0These steps contribute in creating what is called a "trust= ed 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". > =A0 =A0 =A0 =A0The easiest known attack on TPM is intercepting data on th= e 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. ;) > =A0 =A0 =A0 =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). > Thanks for detailing technical details but they don't invalidate my point. An attacker will just mess with another part. Can't mess with LPC? Let's mess with PCI. Or RAM. Or CPU. There is a known attack of filling the memory with jumps to your code and putting CPU into hazardous environment (like microwave in my kitchen) and waiting till CPU jumps to your code. But these measures are enough to make people not consider Free Software at all. Even now when you can't provide XYZ feature users say free software is a crap. And making users require to put their CPU in microwave to read .docs would effectively mean the death of free software. Additionally TPM possesses technical and non-technical properties which make it suitable to lock-out. If TPM came blank (no keys whatsoever) and key was generate by calling a special function then I would be ok with it. And it will be appropriate for every legitimate use you mention. But as is we can't and will never support TPM. You can argue that GRUB will never implement a lockout (and GPLv3+ explicitly forbids it) but you need to think broadly. If even GNU silently approves TPM it would be like watching senator Pallpatin taking powers and applause. If we[1] raise public awareness around TPM but use it in software it both makes our statements hipocritic and our software useless in a free world which s our goal. For these reasons we won't support TPM until it meets one of the conditions that will make it ok [1] I feel myself like a part of GNU and allowed myself to speak in its name but I'm not an official GNU person myself and my opinion isn't necessarily this of GNU but I hope maintainers agree with what I say > * a TPM proves that your medium can be trusted Trusted by whom? We have the problem that beyond the key there is the signature but it makes for manufacturer possible tocoerce most of users to transfer trust to him. It's like buying a lock without a key. You don't own such lock.Similarly you don't completely own a general-purpose computer and it may boil down you owning just the metal and computer being owned by someone else's even if you bought a computer. > =A0 =A0 =A0 =A0The only thing it does is proving that you can "trust" you= r system > (because when you initialized your TPM, your system may already be > untrustworthy). And then it can hold _shared_ secrets that you may use > (for disk encryption for instance). The result is that if your system > was altered in any way, the shared secret remains hidden. DRM producers trust the system even more since for them targetted attacks by skilled geeks knowing to manipulate soldering iron aren't a problem --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git