Skip to contentSkip to conversation

TPM support with SATA drives

DISCUSSION Laurent Dufréchou 5 participants 14 messages Apr 18, 2008 – May 6, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

I’m trying to use a TPM chip on a motherboard. I’ve seen trusted-grub project but the problem is that it can’t work because my motherboard supports only SATA drive.

=== 2.6 Known Bugs ===

* SATA and Floppy support is currently not included due to the limitation of stage1.

Now, I’ve just discovered Grub2.

I’m wondering if there is some patch to add support for TPM chip and measurement of files on system, thus on sata drive.

If you’ve got any other idea to help me on using measurement with sata on grub, I will be really happy too.

Regards,

Laurent Dufréchou

#1 lore raw
Quoted 13 lines · Laurent Dufréchou

Hello,

I’m trying to use a TPM chip on a motherboard. I’ve seen trusted-grub project but the problem is that it can’t work because my motherboard supports only SATA drive.

=== 2.6 Known Bugs ===

* SATA and Floppy support is currently not included due to the limitation of stage1.

Quoted 7 lines

Now, I’ve just discovered Grub2.

I’m wondering if there is some patch to add support for TPM chip and measurement of files on system, thus on sata drive.

If you’ve got any other idea to help me on using measurement with sata on grub, I will be really happy too.

Hi Laurent,

The problem with these TPM chips is that they have the hidden purpose of restricting you as user. Despite that you paid for the hardware and are its owner, the chip will never give you its master key.

The idea behind this is that you can be coerced into accepting that someone else can spy on your computer (they call it "remote attestation"). When enough users accept this form of blackmail, it will become impossible to resist to it in practice.

For these reasons, I'd like to encourage you to consider the ethical implications of using and supporting this technology, and look for alternatives that would satisfy whatever needs you had in it (I'd welcome some discussion about that, to see how GRUB can help).

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#2 lore raw
Quoted 5 lines · Robert Millan

Hi Laurent,

The problem with these TPM chips is that they have the hidden purpose of restricting you as user. Despite that you paid for the hardware and are its owner, the chip will never give you its master key.

Sorry, but this message is confusing me. Having the TPM in my machine act as a cryptographic proxy on my behalf is the entire point of the
TPM: if the software stack has access to the SRK then attackers would prefer to attack dead swap space or temp files rather than the TPM itself.

Quoted 4 lines

The idea behind this is that you can be coerced into accepting that someone else can spy on your computer (they call it "remote attestation"). When enough users accept this form of blackmail, it will become impossible to resist to it in practice.

And this is the really confusing part. How can someone else spy on my computer because of my TPM? I can *voluntarily* enter into a remote attestation system, but to do that I would need to tell my peers the public key I will be using to sign the attestations; if I was so inclined, I could choose any key that I like for this purpose, and instruct the software on my machine to get the unencrypted PCRs from my TPM, modify their values as I saw fit, and sign that configuration instead.

Even if the software that runs the remote attestation is honest (say, because I'm running some Windows-based scheme that I can't easily change), I can still elect to boot into Linux, authenticate to the TPM with the owner password, and ask it to perform whatever operations I want with whatever PCR configuration I want.

Quoted 4 lines

For these reasons, I'd like to encourage you to consider the ethical implications of using and supporting this technology, and look for alternatives that would satisfy whatever needs you had in it (I'd welcome some discussion about that, to see how GRUB can help).

Signature · 5 lines
-Julian Blake Kongslie
<[email protected]>

If this is a mailing list, please CC me on replies.
vim: set ft=text :
#3 lore raw

So, will grub2 will one day support TPM ? ;)

-----Message d'origine-----
De : [email protected] [mailto:[email protected]] De la part de Julian Blake Kongslie
Envoyé : vendredi 18 avril 2008 20:21
À : The development of GRUB 2
Objet : Re: TPM support with SATA drives

Quoted 4 lines · Robert Millan

Hi Laurent,

The problem with these TPM chips is that they have the hidden purpose of restricting you as user. Despite that you paid for the hardware and are

its

Quoted 1 line

owner, the chip will never give you its master key.

Sorry, but this message is confusing me. Having the TPM in my machine act as a cryptographic proxy on my behalf is the entire point of the
TPM: if the software stack has access to the SRK then attackers would prefer to attack dead swap space or temp files rather than the TPM itself.

Quoted 1 line

The idea behind this is that you can be coerced into accepting that

someone

Quoted 3 lines

else can spy on your computer (they call it "remote attestation"). When enough users accept this form of blackmail, it will become impossible to resist to it in practice.

And this is the really confusing part. How can someone else spy on my computer because of my TPM? I can *voluntarily* enter into a remote attestation system, but to do that I would need to tell my peers the public key I will be using to sign the attestations; if I was so inclined, I could choose any key that I like for this purpose, and instruct the software on my machine to get the unencrypted PCRs from my TPM, modify their values as I saw fit, and sign that configuration instead.

Even if the software that runs the remote attestation is honest (say, because I'm running some Windows-based scheme that I can't easily change), I can still elect to boot into Linux, authenticate to the TPM with the owner password, and ask it to perform whatever operations I want with whatever PCR configuration I want.

Quoted 4 lines

For these reasons, I'd like to encourage you to consider the ethical implications of using and supporting this technology, and look for alternatives that would satisfy whatever needs you had in it (I'd welcome some discussion about that, to see how GRUB can help).

Signature · 12 lines
-Julian Blake Kongslie
<[email protected]>

If this is a mailing list, please CC me on replies.
vim: set ft=text :



_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
#4 lore raw
Quoted 1 line · Laurent Dufréchou

So, will grub2 will one day support TPM ? ;)

It doesn't really matter. GRUB 2 is free software, so if it doesn't support TPM, someone else will provide a modified version.

We can't stop the evil by refusing to implement it, but at least we can speak out about it, and let people know that TPMs are inherently designed to restrict against the legitimate owner of a device.

I once came across this comment on slashdot, which summarises the problem very well IMHO:

http://it.slashdot.org/comments.pl?sid=221046&cid=17934808

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#5 lore raw
In reply to Julian Blake Kongslie
Quoted 4 lines · Julian Blake Kongslie

Sorry, but this message is confusing me. Having the TPM in my machine act as a cryptographic proxy on my behalf is the entire point of the TPM:

It's part of the point, but there's more to it. You can see evidence of that in two facts:

- The TPM has a master key that the owner never gets a copy of. Not even if she requests it to the vendor.
- The TPM refuses to sign things with its master key when it doesn't feel like it. So if you want to use the TPM to emmit a certificate that proves you're running Microsoft Windows, but you're not, the TPM will refuse to help you.

Quoted 3 lines

if the software stack has access to the SRK then attackers would prefer to attack dead swap space or temp files rather than the TPM itself.

Of course. But we're talking about the *owner* having control. The software stack is not the only way the owner can control her own hardware. For example, she could get a printed copy of the master key. Or there could be a jumper/button in the TPM that overrides the restrictions I explained above (So-called "owner override", which was proposed and rejected because "it was against the purpose of providing TPMs" -- draw conclussions from what that means).

Quoted 14 lines
Quoted 4 lines

The idea behind this is that you can be coerced into accepting that someone else can spy on your computer (they call it "remote attestation"). When enough users accept this form of blackmail, it will become impossible to resist to it in practice.

And this is the really confusing part. How can someone else spy on my computer because of my TPM? I can *voluntarily* enter into a remote attestation system, but to do that I would need to tell my peers the public key I will be using to sign the attestations; if I was so inclined, I could choose any key that I like for this purpose, and instruct the software on my machine to get the unencrypted PCRs from my TPM, modify their values as I saw fit, and sign that configuration instead.

Quoted 5 lines

Even if the software that runs the remote attestation is honest (say, because I'm running some Windows-based scheme that I can't easily change), I can still elect to boot into Linux, authenticate to the TPM with the owner password, and ask it to perform whatever operations I want with whatever PCR configuration I want.

You think remote attestation is voluntary, but by its nature it cannot be made voluntary. Voluntary means I can refuse to participate without giving the challenger any information about my system. However, my refusal to participate *IS* already information. In fact, if you add to it another piece of information -- namely, the (future) fact that everyone has a complete Treacherous stack --, what do you get? Right! You get the ability to distinguish who is running your CrapWare 2000[tm] DRM program and who isn't.

Which means that in the future (unless computer users reject it outright), DRM proponents will have a very powerful tool in order to coerce everyone into using the anti-features they put in their programs (which obviously nobody *wants* to have, that's why they have to make it so confusing).

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#6 lore raw
Quoted 9 lines · Robert Millan

You think remote attestation is voluntary, but by its nature it cannot be made voluntary. Voluntary means I can refuse to participate without giving the challenger any information about my system. However, my refusal to participate *IS* already information. In fact, if you add to it another piece of information -- namely, the (future) fact that everyone has a complete Treacherous stack --, what do you get? Right! You get the ability to distinguish who is running your CrapWare 2000[tm] DRM program and who isn't.

Quoted 4 lines

Which means that in the future (unless computer users reject it outright), DRM proponents will have a very powerful tool in order to coerce everyone into using the anti-features they put in their programs (which obviously nobody *wants* to have, that's why they have to make it so confusing).

I think you're right about TPM, Robert. :-/

I recently acquired a laptop that came with a TPM chip; thankfully I was
aware of what TPM was indended to be used for and had read warnings on the matter from privacy advocates. The laptop came with Vista preloaded, which asked a vague [and perhaps intentionally misleading] question, something along the lines of: "This device has a TPM chip which has not yet been activated, would you like to activate it now? It will help security if you do." [To which I answered NO.]

And in the BIOS settings, sure enough there are some TPM feature settings
that are very clearly not to the benefit of the user/owner:

Security Reporting Options: (each below has enable/disable option)
BIOS ROM String Reporting
ESCD Reporting
CMOS Reporting
NVRAM Reporting
SMBIOS Reporting
Clear Security Chip (enable/disable)
Note says: "It will not be possible to access already-encrypted data
after these keys are cleared"

I think it's pretty clear that the intent is to report the above
information to the OS manufacturer rather than to the user or owner.

-- Chris

Signature · 2 lines
Chris Knadle
[email protected]
#7 lore raw
Quoted 24 lines · Chris Knadle

I think you're right about TPM, Robert. :-/

I recently acquired a laptop that came with a TPM chip; thankfully I was
aware of what TPM was indended to be used for and had read warnings on the matter from privacy advocates. The laptop came with Vista preloaded, which asked a vague [and perhaps intentionally misleading] question, something along the lines of: "This device has a TPM chip which has not yet been activated, would you like to activate it now? It will help security if you do." [To which I answered NO.]

And in the BIOS settings, sure enough there are some TPM feature settings
that are very clearly not to the benefit of the user/owner:

Security Reporting Options: (each below has enable/disable option)
BIOS ROM String Reporting
ESCD Reporting
CMOS Reporting
NVRAM Reporting
SMBIOS Reporting
Clear Security Chip (enable/disable)
Note says: "It will not be possible to access already-encrypted data
after these keys are cleared"

Quoted 2 lines

I think it's pretty clear that the intent is to report the above
information to the OS manufacturer rather than to the user or owner.

I'm not sure if this is what you found. Maybe it's too early, but it's certainly something that I expect seeing in the near future. When EFI starts being deployed out there, new firmware implementations will have the capability to spy on you all by themselves, since they can trap all memory accesses and come with a networking stack they can use to call home.

Really scary...

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#8 lore raw
In reply to Laurent Dufréchou
Quoted 5 lines · Laurent Dufréchou

Now, I’ve just discovered Grub2.

I’m wondering if there is some patch to add support for TPM chip and measurement of files on system, thus on sata drive.

Just in case my last message was a bit too confusing, measurement is something that I think would be nice to have. It just happens that we don't need a TPM at all to implement it (TPM is not about measuring but _being_ measured, and by an hostile party).

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#9 lore raw

Yeah I see what you mean., and I agree a lot. I got a TPM chip in my computer that I could use to encrypt my hard dsk but I will never use it as I don't have access to all the thing.
In fact what i'm askig is for a special use case.
My use case is that I provide an embedded computer running linux operating system, and I want to be sure that the all system that I can't remotly manage isn't corrupted to its task.
In this case I'm in the case of the "Hostile party Bad Guy wanting to measure you" ;).
I think TPM chip can only be used for that. Not for like they claim to give to classical user a trusted computer.
I want to use it to trust MY computer used by another guy (that can be an attacker). (industry market, not consumer one)
I think in this use case it is ehicaly correct as I try to measure and ensure my system is not corrupted. (Must be the only case where TPM chip are good at :) )

Laurent

2008/4/18, Robert Millan <[email protected]>:

Quoted 27 lines · Laurent Dufréchou
Quoted 6 lines

Now, I've just discovered Grub2.

I'm wondering if there is some patch to add support for TPM chip and measurement of files on system, thus on sata drive.

Just in case my last message was a bit too confusing, measurement is something
that I think would be nice to have. It just happens that we don't need a TPM
at all to implement it (TPM is not about measuring but _being_ measured, and
by an hostile party).

--
Robert Millan

<GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.)

#10 lore raw
Quoted 8 lines · Laurent Dufréchou

Yeah I see what you mean., and I agree a lot. I got a TPM chip in my computer that I could use to encrypt my hard dsk but I will never use it as I don't have access to all the thing.
In fact what i'm askig is for a special use case.
My use case is that I provide an embedded computer running linux operating system, and I want to be sure that the all system that I can't remotly manage isn't corrupted to its task.
In this case I'm in the case of the "Hostile party Bad Guy wanting to

Quoted 8 lines

measure you" ;).
I think TPM chip can only be used for that. Not for like they claim to give to classical user a trusted computer.
I want to use it to trust MY computer used by another guy (that can be an attacker). (industry market, not consumer one)
I think in this use case it is ehicaly correct as I try to measure and ensure my system is not corrupted. (Must be the only case where TPM chip are good at :) )

I believe you can accomplish that by booting the system from USB. Just point your /boot partition to a USB stick, then encrypt the hard drive. Then use the stick as a "key" that is never left to untrusted hands (or, at most, is only copied from a master, known-untampered key).

This would allow you to have security without making yourself dependant on such kind of nasty technology.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#11 lore raw
In reply to Robert Millan

2008/4/18, Robert Millan <[email protected]>:

Quoted 33 lines · Laurent Dufréchou
Quoted 6 lines

Now, I've just discovered Grub2.

I'm wondering if there is some patch to add support for TPM chip and measurement of files on system, thus on sata drive.

Just in case my last message was a bit too confusing, measurement is something
that I think would be nice to have. It just happens that we don't need a TPM
at all to implement it (TPM is not about measuring but _being_ measured, and
by an hostile party).

--
Robert Millan

<GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.)

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#12 lore raw
In reply to Robert Millan

Hope the mail will reach you this time...

Yeah I see what you mean., and I agree a lot. I got a TPM chip in my computer that I could use to encrypt my hard dsk but I will never use it as I don't have access to all the thing.
In fact what i'm askig is for a special use case.
My use case is that I provide an embedded computer running linux operating system, and I want to be sure that the all system that I can't remotly manage isn't corrupted to its task.
In this case I'm in the case of the "Hostile party Bad Guy wanting to measure you" ;).
I think TPM chip can only be used for that. Not for like they claim to give to classical user a trusted computer.
I want to use it to trust MY computer used by another guy (that can be an attacker). (industry market, not consumer one)
I think in this use case it is ehicaly correct as I try to measure and ensure my system is not corrupted. (Must be the only case where TPM chip are good at :) )

Laurent

2008/4/18, Robert Millan <[email protected]>:

Quoted 33 lines · Laurent Dufréchou
Quoted 6 lines

Now, I've just discovered Grub2.

I'm wondering if there is some patch to add support for TPM chip and measurement of files on system, thus on sata drive.

Just in case my last message was a bit too confusing, measurement is something
that I think would be nice to have. It just happens that we don't need a TPM
at all to implement it (TPM is not about measuring but _being_ measured, and
by an hostile party).

--
Robert Millan

<GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.)

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 9 lines
Laurent Dufrechou
Hardware Engineering

Marport
16 Blv Abbé Louis LE CAM
56100 Lorient

Tél  : +33(0)635028304
Fax : +33(0)297884812
#13 lore raw
Quoted 3 lines · Laurent Dufrechou

I think in this use case it is ehicaly correct as I try to measure and ensure my system is not corrupted. (Must be the only case where TPM chip are good at :) )

This is true in fact. What happens here is that Treacherous Computing proponents realize they would have no case for marketing their crap if they just advertized it as "when you surrender your freedom to someone else, this device allows you to prove you have surrendered it, so that those who don't can be challenged and wiped out".

So they coupled their technology with other use cases, such as making systems you own tamper-proof against illegitimate attackers. There's nothing ethically wrong with protecting yourself! But if you use their technology to do it, in a way you're supporting them. Next time you buy a motherboard, you'll demand a TPM in it; and help make sure every motherboard has a TPM in it. Then, when everyone has a TPM around, and uses a TPM-capable software stack, remote attestation can be implemented in a breeze.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)