Skip to contentSkip to conversation

A _good_ and valid use for TPM

DISCUSSION Alex Besogonov 10 participants 56 messages Feb 19, 2009 – Feb 27, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

First of all your system is still totally vulnerable to emanation and power analysis or hw tampering.

Yes, but that's way too hard.

Quoted 4 lines

By reflashing bios one can bypass all
tpm protections (don't say it's difficult because it's closed source and so on. Look at all closed source obfuscations/pseudo-protections that get cracked every day)

That's possible, but again I consider this not critical. BIOS itself is checksummed and checked by the root of trust.

Quoted 2 lines

Personally if tpm support is merged into mainline grub2 I'll stop using it.

Why?

Quoted 6 lines

However what you request doesn't need tpm. Authenticity of modules, configuration files and so on can be verified by one of 4 methods:
1) internal signatures
2) file in signed gpg container
3) detached signatures
4) signed hash file

Won't work.

For example, attacker can run everything inside a hypervisor and then just dump memory and extract decryption keys. You have no reliable ways to detect hypervisor from inside the running OS. You can pile layers upon layers of integrity checks, but they are useless if hardware itself is not trusted. TPM allows me to establish this trust.

Actually, I can probably even formally prove this assumption.

Quoted 1 line

First advantage is that you can override it manually supplying grub password

Administrator can manually override TPM by supplying the decryption key directly instead of fetching them from my key server.

[skipped because this scheme just won't work]

Quoted 2 lines

I personally would be interested in implementing security features in grub2 as long as tpm stays away

Then that's a religion, not engineering.

PS: please, can you CC me when you answer my posts?

#1 lore raw
Quoted 3 lines · Alex Besogonov
Quoted 2 lines

First of all your system is still totally vulnerable to emanation and power analysis or hw tampering.

Yes, but that's way too hard.

Sure? There was a demonstration when rsa key was recovered just by plotting variations on powerline of usb port And what about cache attack?

Quoted 6 lines
Quoted 4 lines

By reflashing bios one can bypass all
tpm protections (don't say it's difficult because it's closed source and so on. Look at all closed source obfuscations/pseudo-protections that get cracked every day)

That's possible, but again I consider this not critical. BIOS itself is checksummed and checked by the root of trust.

Isn't bios (or part of it) the root of "trust"

Quoted 4 lines
Quoted 3 lines

Personally if tpm support is merged into mainline grub2 I'll stop using it.

Why?

Because I don't want support this technology. TPM=obfuscation=unsecurity. And as an opensource and open security fan I can't claim to have solved an impossible problem. But if you want to use obfuscation schemes it's your right

Quoted 8 lines

Won't work.

For example, attacker can run everything inside a hypervisor and then just dump memory and extract decryption keys. You have no reliable ways to detect hypervisor from inside the running OS. You can pile layers upon layers of integrity checks, but they are useless if hardware itself is not trusted. TPM allows me to establish this trust.

You assume that noone will develop hypervisor able to fool tpm bios. One could powercut the tpm chip (similar to how a resistor is remove to avoid burning efuses in xbox) then power would be reestablished to it and bios would be executed on hypervisor which will retrieve the keys. Actually you can trust tpm only as much as you trust in obfuscation power of bios. Only obfuscation prevents attacker from disconnecting tpm and reading keys from it. And there are only few types of tpm. Sooner or later someone will figure their interface. Then it can be read by special usb adapter

Quoted 3 lines

Actually, I can probably even formally prove this assumption.

I really don't see you point. With my proposition mbr still can be verified by tpm but grub2 needs to know nothing about tpm as long as it ensures it doesn't load any unsigned modules. This approach is more versatile. It can be used also for e.g. checking that debian install is really from debian. And having experience with manufacturers supplying buggy hw and sw tend to avoid solutions directly relying on hardware when another implementation is possible Which collaboration other than not loading anything unchecked does your scheme need from grub?
From readme of trustedgrub the only thing it does is checking integrity

Quoted 9 lines
Quoted 1 line

First advantage is that you can override it manually supplying grub password

Administrator can manually override TPM by supplying the decryption key directly instead of fetching them from my key server.

[skipped because this scheme just won't work]

Quoted 2 lines

I personally would be interested in implementing security features in grub2 as long as tpm stays away

Then that's a religion, not engineering.

Tell it what you want but I don't trust code that I can't verify. And tpm is root of obfuscation.

Quoted 2 lines

PS: please, can you CC me when you answer my posts?

Could you come to irc channel or meet me at jabber/gtalk? Regards
Vladimir 'phcoder' Serbinenko

#2 lore raw
Quoted 3 lines · phcoder
Quoted 1 line

Yes, but that's way too hard.

Sure? There was a demonstration when rsa key was recovered just by plotting variations on powerline of usb port

TPM performs encoding/decoding, and I consider it secure.

I don't think it's possible to recover the symmetric key used later during normal system operation.

Quoted 1 line

And what about cache attack?

You mean frozen memory chip attack?

Quoted 3 lines
Quoted 2 lines

That's possible, but again I consider this not critical. BIOS itself is checksummed and checked by the root of trust.

Isn't bios (or part of it) the root of "trust"

As far as I understand - no.

Quoted 2 lines
Quoted 1 line

Why?

Because I don't want support this technology. TPM=obfuscation=unsecurity.

No. TPM is just a secure way to store keys, nothing more. It can be used for good and bad.

Quoted 3 lines

And as an opensource and open security fan I can't claim to have solved an impossible problem. But if you want to use obfuscation schemes it's your right

I want a reasonably secure scheme that DOESN'T use obfuscation.

Quoted 4 lines

You assume that noone will develop hypervisor able to fool tpm bios. One could powercut the tpm chip (similar to how a resistor is remove to avoid burning efuses in xbox) then power would be reestablished to it and bios would be executed on hypervisor which will retrieve the keys.

Would not work. Or rather it'll require uber-precise timing, a lot of soldering and access to private data of the mainboard developer.

Quoted 5 lines

Actually you
can trust tpm only as much as you trust in obfuscation power of bios. Only obfuscation prevents attacker from disconnecting tpm and reading keys from it. And there are only few types of tpm. Sooner or later someone will figure their interface. Then it can be read by special usb adapter

TPMs are fairly well engineered, it requires several magnitudes more time to crack it than any pure software security system.

Quoted 4 lines
Quoted 1 line

Actually, I can probably even formally prove this assumption.

I really don't see you point. With my proposition mbr still can be verified by tpm but grub2 needs to know nothing about tpm as long as it ensures it doesn't load any unsigned modules.

First, I don't think it's possible to implement SHA-1 hashing in MBR - there's probably just not enough space left in 512-byte code segment for that.

Second, the only safe action non TPM-aware MBR can perform if it detects tampering is just shutting down hard. Everything else is dangerous.

Third, it would be nice to be able to measure (attest integrity) of other files, but that's just nice and not really necessary.

Quoted 5 lines

This approach is more versatile. It can
be used also for e.g. checking that debian install is really from debian. And having experience with manufacturers supplying buggy hw and sw tend to avoid solutions directly relying on hardware when another implementation is possible

TPM will be used in the most minimalistic way possible. I'll even add pure software signature checking support (which can be useful for another purposes like checking that kernel is not damaged, etc.).

Quoted 2 lines

Which collaboration other than not loading anything unchecked does your scheme need from grub?

Mainly, communicating with TPM in MBR to tell it that the next stage has passed checks.

Quoted 1 line

From readme of trustedgrub the only thing it does is checking integrity

Yes.

Quoted 2 lines
Quoted 1 line

PS: please, can you CC me when you answer my posts?

Could you come to irc channel or meet me at jabber/gtalk?

Feel free to contact me on Alex.Besogonov _atttttttt___ gmail.com in Jabber.

#3 lore raw

Hi!

Alright, lets try to make sure everyone is talking about the same things here.

First of all a TPM is not just some kind of secure memory only accessible from early BIOS, it basically is a small computer. You can only send it commands, and it can "decide" to reject them, e.g. if you try to read out the endorsement private key.
(Of course there is always the chance that the TPM has hidden commands to do that, or the manufacturer already has the keys anyway)

Next, we need to keep in mind, what kind of attack and attacker we're trying to defend against.
As I see it we have an attacker with relatively low-tech abilities (he cannot replace chips, break the TPM physically, or knows it's "dark secrets"), who gets physical access to the machine. So he is basically limited to flashing the BIOS,
replacing anything, that is written on a disk, controling the network, etc.
I excluded a higher grade attacker, because, if we have one of these, there is nothing we can do. Any solution, TPM or not, can be broken under these assumptions.

Now for, what the TPM can do and is SUPPOSED to do according to the specification. First there is nothing it can do actively, like interrupt or change anything in the system. It is pretty passive and only acts on request.
The TPM has a number of PCRs (Platform Configuration Registers), where it can store and concatenate hash values - this is what every stage of a trusted boot chain has to do.
Every stage has to get a hash of the next one, before it executes it. (The assumption here is, that the PCRs cannot be tampered with and the stages to it correctly)
So in the end (after boot) you have a bunch of PCR values, that represent all the code and data, that was used to boot the system. If you have this and are sure, that the current configuration is correct, you have a reference value of the expected system state, which you can use for the following:
- seal a key:
You can create a key with the TPM and "bind" it to specific values of the PCRs,
so it only en/decrypts with it, if these values match.
You can encrypt any kind of data with this, but the only useful thing for boot
is to encrypt a cryptographic key needed to further start the system.
- remote attestation:
The TPM can proof to another party, that the PCRs have certain values (of
course the communication needs to be established by normal software running on the machine)

The TPM has a few more functions, but I think they are not relevant here.

And now for the ongoing discussion:
(things I didn't comment on should have been answered above)

Quoted 8 lines · Alex Besogonov
Quoted 3 lines · phcoder
Quoted 1 line

Yes, but that's way too hard.

Sure? There was a demonstration when rsa key was recovered just by plotting variations on powerline of usb port

TPM performs encoding/decoding, and I consider it secure.

I don't think it's possible to recover the symmetric key used later during normal system operation.

It could possibly be done, but that is out of scope here. Regardless of what you use to establish your trust, if someone can extract the key for your disk encryption from the running system your screwed.

Quoted 2 lines
Quoted 1 line

And what about cache attack?

You mean frozen memory chip attack?

No, cache timing. (search for "aes cache timing")

Quoted 4 lines
Quoted 3 lines
Quoted 2 lines

That's possible, but again I consider this not critical. BIOS itself is checksummed and checked by the root of trust.

Isn't bios (or part of it) the root of "trust"

As far as I understand - no.

Actually - it is.
Check the "TCG PC Client Specific Implementation Specification for Conventional Bios" or "TCG PC Specific Implementation Specification" at
https://www.trustedcomputinggroup.org/specs/PCClient/
and look for CRTM (Core Root of Trust for Measurement)

Quoted 4 lines
Quoted 2 lines
Quoted 1 line

Why?

Because I don't want support this technology. TPM=obfuscation=unsecurity.

No. TPM is just a secure way to store keys, nothing more. It can be used for good and bad.

Well, it is a bit more, but it's definitely not just obfuscation. Actually it's pretty well documented what it's supposed to do (all the specification is available, there is an open-source emulation implementation of it). What you are referring to, is that you don't trust it to have ONLY this functionality, but you can make the same argument for every part of your PC! Are you sure, there is nothing in your network card, CPU or hard drive, that can be used against you?

Quoted 20 lines
Quoted 3 lines

And as an opensource and open security fan I can't claim to have solved an impossible problem. But if you want to use obfuscation schemes it's your right

I want a reasonably secure scheme that DOESN'T use obfuscation.

Quoted 4 lines

You assume that noone will develop hypervisor able to fool tpm bios. One could powercut the tpm chip (similar to how a resistor is remove to avoid burning efuses in xbox) then power would be reestablished to it and bios would be executed on hypervisor which will retrieve the keys.

Would not work. Or rather it'll require uber-precise timing, a lot of soldering and access to private data of the mainboard developer.

Quoted 5 lines

Actually you
can trust tpm only as much as you trust in obfuscation power of bios. Only obfuscation prevents attacker from disconnecting tpm and reading keys from it. And there are only few types of tpm. Sooner or later someone will figure their interface. Then it can be read by special usb adapter

TPMs are fairly well engineered, it requires several magnitudes more time to crack it than any pure software security system.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Actually, I can probably even formally prove this assumption.

I really don't see you point. With my proposition mbr still can be verified by tpm but grub2 needs to know nothing about tpm as long as it ensures it doesn't load any unsigned modules.

First, I don't think it's possible to implement SHA-1 hashing in MBR - there's probably just not enough space left in 512-byte code segment for that.

I am very sure of that.

Quoted 3 lines

Second, the only safe action non TPM-aware MBR can perform if it detects tampering is just shutting down hard. Everything else is dangerous.

Yeah, but an attacker could patch that out too.

Quoted 17 lines

Third, it would be nice to be able to measure (attest integrity) of other files, but that's just nice and not really necessary.

Quoted 5 lines

This approach is more versatile. It can
be used also for e.g. checking that debian install is really from debian. And having experience with manufacturers supplying buggy hw and sw tend to avoid solutions directly relying on hardware when another implementation is possible

TPM will be used in the most minimalistic way possible. I'll even add pure software signature checking support (which can be useful for another purposes like checking that kernel is not damaged, etc.).

Quoted 2 lines

Which collaboration other than not loading anything unchecked does your scheme need from grub?

Mainly, communicating with TPM in MBR to tell it that the next stage has passed checks.

Quoted 6 lines
Quoted 1 line

From readme of trustedgrub the only thing it does is checking integrity

Yes.

Quoted 2 lines
Quoted 1 line

PS: please, can you CC me when you answer my posts?

Could you come to irc channel or meet me at jabber/gtalk?

Feel free to contact me on Alex.Besogonov _atttttttt___ gmail.com in Jabber.

Greets,

Jan

#4 lore raw

On Fri, Feb 20, 2009 at 2:29 AM, Jan Alsenz <[email protected]> wrote:
[skip]

Quoted 3 lines

The TPM can proof to another party, that the PCRs have certain values (of
course the communication needs to be established by normal software running on the machine)

Yes, I'm trying to do remote attestation.

Quoted 6 lines
Quoted 2 lines · Alex Besogonov

I don't think it's possible to recover the symmetric key used later during normal system operation.

It could possibly be done, but that is out of scope here. Regardless of what you use to establish your trust, if someone can extract the key for your disk encryption from the running system your screwed.

Yes, of course.

Quoted 3 lines
Quoted 2 lines
Quoted 1 line

And what about cache attack?

You mean frozen memory chip attack?

No, cache timing. (search for "aes cache timing")

I don't think it's applicable here.

Quoted 6 lines
Quoted 1 line

As far as I understand - no.

Actually - it is.
Check the "TCG PC Client Specific Implementation Specification for Conventional Bios" or "TCG PC Specific Implementation Specification" at
https://www.trustedcomputinggroup.org/specs/PCClient/
and look for CRTM (Core Root of Trust for Measurement)

Yes, BIOS is a root of trust, but not the Core Root. BIOS itself is checked before execution (pages 20 and onwards in the "TCG PC Client Specific Implementation Specification for Conventional Bios" spec), even before dynamic memory is initialized.

Quoted 4 lines

What you are referring to, is that you don't trust it to have ONLY this functionality, but you can make the same argument for every part of your PC! Are you sure, there is nothing in your network card, CPU or hard drive, that can be used against you?

Frankly, I don't care. I'm not trying to protect data against NSA or other three-letter agencies. There should be a limit to paranoia, and my paranoia ends at the hardware level.

Quoted 4 lines
Quoted 3 lines

First, I don't think it's possible to implement SHA-1 hashing in MBR - there's probably just not enough space left in 512-byte code segment for that.

I am very sure of that.

Well, I spoke phcoder on Jabber - there might be a way to do this. He's going to investigate it.

Quoted 4 lines
Quoted 3 lines

Second, the only safe action non TPM-aware MBR can perform if it detects tampering is just shutting down hard. Everything else is dangerous.

Yeah, but an attacker could patch that out too.

Not if we first measure the MBR. It can be done without any TPM-specific code in the MBR if I'm not very mistaken.

PS: thanks for detailed explanation!

#5 lore raw

Alex Besogonov wrote:
[skip]

Quoted 10 lines
Quoted 6 lines
Quoted 1 line

As far as I understand - no.

Actually - it is.
Check the "TCG PC Client Specific Implementation Specification for Conventional Bios" or "TCG PC Specific Implementation Specification" at
https://www.trustedcomputinggroup.org/specs/PCClient/
and look for CRTM (Core Root of Trust for Measurement)

Yes, BIOS is a root of trust, but not the Core Root. BIOS itself is checked before execution (pages 20 and onwards in the "TCG PC Client Specific Implementation Specification for Conventional Bios" spec), even before dynamic memory is initialized.

Well on page 32 they list two options, how to implement the CRTM:
BIOS Boot Block or entire BIOS
Since the BIOS is usually updateable, it seems that most manufacturers opt for BIOS Boot Block, which I assume will be something like: "lets put the first sector of the BIOS in ROM"
(of course it might be something else completely, but I doubt it)

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

First, I don't think it's possible to implement SHA-1 hashing in MBR - there's probably just not enough space left in 512-byte code segment for that.

I am very sure of that.

Well, I spoke phcoder on Jabber - there might be a way to do this. He's going to investigate it.

Sounds interesting.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

Second, the only safe action non TPM-aware MBR can perform if it detects tampering is just shutting down hard. Everything else is dangerous.

Yeah, but an attacker could patch that out too.

Not if we first measure the MBR. It can be done without any TPM-specific code in the MBR if I'm not very mistaken.

Could you elaborate on that?
E.g. where do you measure the MBR from?

Quoted 1 line

PS: thanks for detailed explanation!

Sure, glad I could help!

Greets,

Jan

#6 lore raw
Quoted 5 lines · Jan Alsenz
Quoted 3 lines
Quoted 1 line

Yeah, but an attacker could patch that out too.

Not if we first measure the MBR. It can be done without any TPM-specific code in the MBR if I'm not very mistaken.

Could you elaborate on that?
E.g. where do you measure the MBR from?

MBR is automatically measured by the TPM module, it requires no intervention from GRUB.

Signature · 2 lines
With respect,
            Alex Besogonov ([email protected])
#7 lore raw
Quoted 8 lines · Alex Besogonov
Quoted 5 lines · Jan Alsenz
Quoted 3 lines
Quoted 1 line

Yeah, but an attacker could patch that out too.

Not if we first measure the MBR. It can be done without any TPM-specific code in the MBR if I'm not very mistaken.

Could you elaborate on that?
E.g. where do you measure the MBR from?

MBR is automatically measured by the TPM module, it requires no intervention from GRUB.

Well, that is true, but for GRUB to measure all of its own stages it gets quite complicated. Overall, from a technical POV it looks like a lousy approach. It makes a lot more sense to simply have the firmware load GRUB as an executable image and measure that IMO.

You can do that easily when you're in a legacy-free environment.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#8 lore raw
In reply to Alex Besogonov
Quoted 6 lines · Alex Besogonov

On Fri, Feb 20, 2009 at 2:29 AM, Jan Alsenz <[email protected]> wrote:
[skip]

Quoted 3 lines

The TPM can proof to another party, that the PCRs have certain values (of
course the communication needs to be established by normal software running on the machine)

Yes, I'm trying to do remote attestation.

You're confusing things. I think you simply want to ensure data integrity, and the TPM doesn't even do that: it simply puts the problem in hands of a third party.

"remote attestation" is only useful when you want to coerce others into running your (generaly proprietary) software. I hope this is not what you want to do.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

First, I don't think it's possible to implement SHA-1 hashing in MBR - there's probably just not enough space left in 512-byte code segment for that.

I am very sure of that.

Well, I spoke phcoder on Jabber - there might be a way to do this. He's going to investigate it.

This is unnecessary. Once GRUB supports crypto, it can simply load itself from an encrypted filesystem on disk. An image can be of arbitrary size.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#9 lore raw
Quoted 8 lines · Robert Millan
Quoted 6 lines · Alex Besogonov

On Fri, Feb 20, 2009 at 2:29 AM, Jan Alsenz <[email protected]> wrote:
[skip]

Quoted 3 lines

The TPM can proof to another party, that the PCRs have certain values (of
course the communication needs to be established by normal software running on the machine)

Yes, I'm trying to do remote attestation.

Quoted 7 lines

You're confusing things. I think you simply want to ensure data integrity, and the TPM doesn't even do that: it simply puts the problem in hands of a third party.

"remote attestation" is only useful when you want to coerce others into running your (generaly proprietary) software. I hope this is not what you want to do.

Yes, this is exactly what he tries do to: convince his keyserver, that the requesting server runs, what it's supposed to.

Which is exactly remote attestation, just in this case he controls both sides, which I think makes it an interesting use of the technology.

Quoted 10 lines
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

First, I don't think it's possible to implement SHA-1 hashing in MBR - there's probably just not enough space left in 512-byte code segment for that.

I am very sure of that.

Well, I spoke phcoder on Jabber - there might be a way to do this. He's going to investigate it.

This is unnecessary. Once GRUB supports crypto, it can simply load itself from an encrypted filesystem on disk. An image can be of arbitrary size.

Ok, but where does it get the key from?
And how can wherever the key comes from be sure that it's talking to GRUB?

Greets,

Jan

#10 lore raw
Quoted 9 lines · Jan Alsenz
Quoted 4 lines

"remote attestation" is only useful when you want to coerce others into running your (generaly proprietary) software. I hope this is not what you want to do.

Yes, this is exactly what he tries do to: convince his keyserver, that the requesting server runs, what it's supposed to.

Which is exactly remote attestation, just in this case he controls both sides, which I think makes it an interesting use of the technology.

That would be like trying to rob yourself by threatening yourself with a gun, instead of simply drawing money from your wallet.

If you just want to ensure noone is tampering your box, simply make your box tamper-proof. You don't need a protocol to allow third parties to check anything.

Quoted 4 lines
Quoted 3 lines

This is unnecessary. Once GRUB supports crypto, it can simply load itself from an encrypted filesystem on disk. An image can be of arbitrary size.

Ok, but where does it get the key from?

The public key (or just a hash) can be embedded in GRUB itself. In the instance of GRUB that goes to the flash chip, that is.

Quoted 1 line

And how can wherever the key comes from be sure that it's talking to GRUB?

Because you put it there, and made sure noone can overwrite it afterwards.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#11 lore raw
Quoted 4 lines · Robert Millan
Quoted 3 lines · Jan Alsenz
Quoted 3 lines

"remote attestation" is only useful when you want to coerce others into running your (generaly proprietary) software. I hope this is not what you want to do.

Quoted 8 lines
Quoted 5 lines

Yes, this is exactly what he tries do to: convince his keyserver, that the requesting server runs, what it's supposed to.

Which is exactly remote attestation, just in this case he controls both sides, which I think makes it an interesting use of the technology.

That would be like trying to rob yourself by threatening yourself with a gun, instead of simply drawing money from your wallet.

Sorry, I don't get that analogy...

Quoted 3 lines

If you just want to ensure noone is tampering your box, simply make your box tamper-proof. You don't need a protocol to allow third parties to check anything.

Ok, but if you have such a protocol, only use it for yourself and do trust the manufacturer, you only have to secure one of your boxes instead of them all, which is usually much easier.

Quoted 11 lines
Quoted 4 lines
Quoted 3 lines

This is unnecessary. Once GRUB supports crypto, it can simply load itself from an encrypted filesystem on disk. An image can be of arbitrary size.

Ok, but where does it get the key from?

The public key (or just a hash) can be embedded in GRUB itself. In the instance of GRUB that goes to the flash chip, that is.

Quoted 1 line

And how can wherever the key comes from be sure that it's talking to GRUB?

Because you put it there, and made sure noone can overwrite it afterwards.

Making sure, that noone can override it, can be awfully difficult, especially under a physical attacker. A hardware that is at least a bit designed to withstand such an attack can help a lot.

Greets,

Jan

#12 lore raw
Quoted 7 lines · Jan Alsenz
Quoted 3 lines

If you just want to ensure noone is tampering your box, simply make your box tamper-proof. You don't need a protocol to allow third parties to check anything.

Ok, but if you have such a protocol, only use it for yourself and do trust the manufacturer, you only have to secure one of your boxes instead of them all, which is usually much easier.

You only have to secure those boxes you need to be secure. The method you use to secure them is irrelevant to that.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

And how can wherever the key comes from be sure that it's talking to GRUB?

Because you put it there, and made sure noone can overwrite it afterwards.

Making sure, that noone can override it, can be awfully difficult, especially under a physical attacker. A hardware that is at least a bit designed to withstand such an attack can help a lot.

I'm not sure why is physical security so awfully difficult for you (can't you use locks, tamper-proof seals, cameras and alarms?), but most people who're in the bussiness of protecting physical goods manage to sort it out.

In any case, if your attacker is that much determined to archieve their goal, reverse engineering a small chip isn't going to stop them.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#13 lore raw
Quoted 6 lines · Robert Millan
Quoted 3 lines

Making sure, that noone can override it, can be awfully difficult, especially under a physical attacker. A hardware that is at least a bit designed to withstand such an attack can help a lot.

I'm not sure why is physical security so awfully difficult for you (can't you use locks, tamper-proof seals, cameras and alarms?), but most people who're in the bussiness of protecting physical goods manage to sort it out.

My devices will be installed at clients' locations. It's impossible to guarantee that all devices will be physically secure.

If you live in the USA then one day such device might contain your private data. Would you like it to be stolen?

I'm trying to design them so that data can't be stolen easily. Even by me, if someday I become insane because of flame-wars in mailing lists.

Quoted 2 lines

In any case, if your attacker is that much determined to archieve their goal, reverse engineering a small chip isn't going to stop them.

Reverse engineering the TPM chip is very costly. And I'm not going to try to protect data from NSA or CIA or another three-letter agency.

Signature · 2 lines
With respect,
            Alex Besogonov ([email protected])
#14 lore raw
Quoted 3 lines
Quoted 2 lines

In any case, if your attacker is that much determined to archieve their goal, reverse engineering a small chip isn't going to stop them.

Reverse engineering the TPM chip is very costly. And I'm not going to try to protect data from NSA or CIA or another three-letter agency.

On this you have to trust the manufacturer. Actually you can't know how difficult reverse-engineering is before you do. And it's only a matter of time before some crypto-hardware geek reverse-engineers it because he was bored or a crypto-student does it because it gives him an excellent diploma. This is quite possible because universities often have the necessary equipment and diploma works are supposed to be long and difficult. At this point reading a publication and using its results is trivial. And look at reverse-engineered opensource drivers. It's just a matter of obfuscation and we already know that it brings no security. If you want to protect your keys the only ways is to physically protect them like putting concrete around the flash chip Regards
Vladimir 'phcoder' Serbinenko

#15 lore raw
Quoted 8 lines · phcoder
Quoted 2 lines
Quoted 2 lines

In any case, if your attacker is that much determined to archieve their

goal,

Quoted 3 lines
Quoted 2 lines

reverse engineering a small chip isn't going to stop them.

Reverse engineering the TPM chip is very costly. And I'm not going to try

to protect data from NSA or CIA or another three-letter agency.

Quoted 1 line
Quoted 11 lines

On this you have to trust the manufacturer. Actually you can't know how
difficult reverse-engineering is before you do. And it's only a matter of time before some crypto-hardware geek reverse-engineers it because he was bored or a crypto-student does it because it gives him an excellent diploma. This is quite possible because universities often have the necessary equipment and diploma works are supposed to be long and difficult. At this point reading a publication and using its results is trivial. And look at reverse-engineered opensource drivers. It's just a matter of obfuscation and we already know that it brings no security. If you want to protect your keys the only ways is to physically protect them like putting concrete around the flash chip

Hmm, so let me collect the data from this discussion:

There is somebody who wants to lock his own computer in software so that his data is not easily accessible.

For some reason he wants to store the data encrypted in multiple locations rather than using a simple terminal to retreive the data over network which makes things needlessly hard.

He can have a custom solution developed for the purpose (like take an ALIX board and have the BIOS on it customized and have the flash chip covered with concrete ;-)

He can also use a ready made solution - a board with a TPM chip.

Now I am not sure how secure this solution is. You can usually remove the battery to reset BIOS password, reflash the BIOS, etc.

Since manufacturers claim (or used to) that you can pry the TPM chip off your board and it will still work the board is bootstrapped by the main CPU, not the TPM. This makes it possible to short some pins on the TPM chip so that is cannot be accessed during boot, boot a virtual machine, and have the BIOS initialize the chip inside that.

There's also the possibility to remove the RAM from a running computer given you find out what kind of RAM it uses and get a different compatible computer.

Generally this shifts the attack from the realm of plain vandalism to the realm of planned attack which is certainly a bonus.

Still I would rather rely on a custom solution because I would know exactly what it does. The manufacturers of PC mainboards tend to not release exact specifications and there are often serious problems.

Still finding the flaw in the particular mainboard would probably take some non-trivial effort.
If the attacker just wants to break something there would likely be easier targets. If you are specifically targeted you are doomed. Hire a security agency to guard your computers so that you can blame them when the data is stolen.

Now to the TPM support in GRUB.

It appears that if grub supports *any* integrity check of the loaded software, and the BIOS can make the TPM check GRUB you are set, the GRUB itself needs not talk to the TPM diractly, it's just a nice bonus.

And if somebody wanted to lock your computer from you they would ship it with software that does it, they would not have to rely on GRUB. Most likely GRUB would not be able to load their system anyway.

This makes the TPM support debate seem quite pointless.

Well, enjoy the flames ;-)

MS

#16 lore raw
Quoted 3 lines

For some reason he wants to store the data encrypted in multiple locations rather than using a simple terminal to retreive the data over network which makes things needlessly hard.

He perhaps needs important amount of computing power. And in his case "all in centre" may require too much bandwidth

Quoted 2 lines

Now I am not sure how secure this solution is. You can usually remove the battery to reset BIOS password, reflash the BIOS, etc.

Many boards save the data in flash memory so removing power won't reset password. Second flash chip if it's dedicated can be covered with concrete too and resetting pins can be removed. Besides with coreboot everything this can be well controlled - you can embed the config to flash.

Quoted 7 lines

Since manufacturers claim (or used to) that you can pry the TPM chip off your board and it will still work the board is bootstrapped by the main CPU, not the TPM. This makes it possible to short some pins on the TPM chip so that is cannot be accessed during boot, boot a virtual machine, and have the BIOS initialize the chip inside that.

It would require some modifications to virtual machine to skip some initilisation but is entirely possible and needs to be done only once to cover 99% of motherboards

Quoted 3 lines

There's also the possibility to remove the RAM from a running computer given you find out what kind of RAM it uses and get a different compatible computer.

concrete :)

Quoted 10 lines

Generally this shifts the attack from the realm of plain vandalism to the realm of planned attack which is certainly a bonus.

Still I would rather rely on a custom solution because I would know exactly what it does. The manufacturers of PC mainboards tend to not release exact specifications and there are often serious problems.

Still finding the flaw in the particular mainboard would probably take some non-trivial effort.

There are only few kinds of tpm chips so it's enough that someone cracks
the corresponding ship to make the attack trivial. As a matter of fact
few year from now it may be easier to get a universal reader for all tpm chips then a reader for a specific flash chip

Quoted 2 lines

If the attacker just wants to break something there would likely be easier targets. If you are specifically targeted you are doomed.

Yes. Once an attacker has the device he is able to retrieve all the data in. Only putting physical obstacles may slow the attacker down. And I doubt that a cost of such operation can be over $10000 no matter what protection you use.

Quoted 5 lines

Now to the TPM support in GRUB.

This makes the TPM support debate seem quite pointless.

It isn't. Supporing tpm may help it becoming widespread, commonplace and acceptable, exactly what we try to avoid

Regards
Vladimir 'phcoder' Serbinenko

#17 lore raw

This whole debate made read up a little bit on TPM, for example I checked http://www.osxbook.com/book/bonus/chapter10/tpm/
(osx book is a very nice resource for mac/os x system internals) regarding tpms on apple hardware.
Now contrary to what some outdated resources/rumours say, at least all newer intel mac don't include any tpm at all, the only thing that definitely did contain one were the developer boxes that were shipped to apple developer connection subscribers when the transition from ppc to intel started. Also, I can confirm this for my macbook air, neither the device tree inside os x or logic board photos from ifixit give any indication of a tpm chip, also all sources that don't rely on rumours confirm that apart from developer boxes intel macs don't contain one. You might say, now, how is that important? Well, I don't know about current i386/bios boards, for once because there are so many and because I don't intend to buy one in the near future, but how widespread is the use of tpm chips nowadays, especially considering the thing hardly counts as a new development any more? I think this is important to include in those ideologic discussions, especially cause if there is one company that I think would try to lock their hardware down as much as possible using something like a tpm, it's apple, but they don't. Also, all the annoying things like drm or this copy protection thing for displays (don't know what it's called atm, where all possible without a tpm.
So, how widespread are builtin tpms for normal pc boards? As for osx86, they have a really old wiki page about tpm, but a current comment I found said more or less to patch a current version of os x to run on normal hardware you just have to "patch out efi with 1-2 nops and hardocde the fsb with another 1-2 nops"
http://www.insanelymac.com/forum/index.php?showtopic=65786
Just found this interesting ...

Quoted 70 lines · phcoder
Quoted 3 lines

For some reason he wants to store the data encrypted in multiple locations rather than using a simple terminal to retreive the data over network which makes things needlessly hard.

He perhaps needs important amount of computing power. And in his case "all in centre" may require too much bandwidth

Quoted 3 lines

Now I am not sure how secure this solution is. You can usually remove the battery to reset BIOS password, reflash the BIOS, etc.

Many boards save the data in flash memory so removing power won't reset password. Second flash chip if it's dedicated can be covered with concrete too and resetting pins can be removed. Besides with coreboot everything this can be well controlled - you can embed the config to flash.

Quoted 7 lines

Since manufacturers claim (or used to) that you can pry the TPM chip off your board and it will still work the board is bootstrapped by the main CPU, not the TPM. This makes it possible to short some pins on the TPM chip so that is cannot be accessed during boot, boot a virtual machine, and have the BIOS initialize the chip inside that.

It would require some modifications to virtual machine to skip some initilisation but is entirely possible and needs to be done only once to cover 99% of motherboards

Quoted 4 lines

There's also the possibility to remove the RAM from a running computer given you find out what kind of RAM it uses and get a different compatible computer.

concrete :)

Quoted 10 lines

Generally this shifts the attack from the realm of plain vandalism to the realm of planned attack which is certainly a bonus.

Still I would rather rely on a custom solution because I would know exactly what it does. The manufacturers of PC mainboards tend to not release exact specifications and there are often serious problems.

Still finding the flaw in the particular mainboard would probably take some non-trivial effort.

There are only few kinds of tpm chips so it's enough that someone cracks the corresponding ship to make the attack trivial. As a matter of fact few year from now it may be easier to get a universal reader for all tpm chips then a reader for a specific flash chip

Quoted 3 lines

If the attacker just wants to break something there would likely be easier targets. If you are specifically targeted you are doomed.

Yes. Once an attacker has the device he is able to retrieve all the data in. Only putting physical obstacles may slow the attacker down. And I doubt that a cost of such operation can be over $10000 no matter what protection you use.

Quoted 5 lines

Now to the TPM support in GRUB.

This makes the TPM support debate seem quite pointless.

It isn't. Supporing tpm may help it becoming widespread, commonplace and acceptable, exactly what we try to avoid

Regards
Vladimir 'phcoder' Serbinenko

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

#18 lore raw

2009/2/23 step21 <[email protected]>:

Quoted 22 lines

This whole debate made read up a little bit on TPM, for example I checked http://www.osxbook.com/book/bonus/chapter10/tpm/
(osx book is a very nice resource for mac/os x system internals) regarding tpms on apple hardware.
Now contrary to what some outdated resources/rumours say, at least all newer intel mac don't include any tpm at all, the only thing that definitely did contain one were the developer boxes that were shipped to apple developer connection subscribers when the transition from ppc to intel started. Also, I can confirm this for my macbook air, neither the device tree inside os x or logic board photos from ifixit give any indication of a tpm chip, also all sources that don't rely on rumours confirm that apart from developer boxes intel macs don't contain one. You might say, now, how is that important? Well, I don't know about current i386/bios boards, for once because there are so many and because I don't intend to buy one in the near future, but how widespread is the use of tpm chips nowadays, especially considering the thing hardly counts as a new development any more? I think this is important to include in those ideologic discussions, especially cause if  there is one company that I think would try to lock their hardware down as much as possible using something like a tpm, it's apple, but they don't. Also, all the annoying things like drm or this copy protection thing for displays (don't know what it's called atm, where

Quoted 8 lines

all possible without a tpm.
So, how widespread are builtin tpms for normal pc boards? As for osx86, they have a really old wiki page about tpm, but a current comment I found said more or less to patch a current version of os x to run on normal hardware you just have to "patch out efi with 1-2 nops and hardocde the fsb with another 1-2 nops"
http://www.insanelymac.com/forum/index.php?showtopic=65786
Just found this interesting ...

For PC boards it's easy to find ones that do include the chip and ones that do not.

I cannot tell if the ratio is like 70:30 or 50:50 but both are common. It seems the TPMs are used more by system integrators that build complete PC systems than bulk part manufacturers (possibly because of budget limits and low demand for the chips).

Most PC notebooks include a fingerprint sensor that is tied to a TPM chip. At least the Windows drivers for the sensor usually require the TPM drivers installed although I guess the sensor could be used on its own. There are still many notebooks without a sensor but I have no idea how many of them do include a TPM chip.

I have no idea why boards with TPM chips are shipped at all or if anybody uses them for anything but the fingerprint readers.

Thanks

Michal

#19 lore raw
In reply to step21
Quoted 3 lines · On Mon, Feb 23, 2009 at 03:34:56AM +0100, step21 wrote:

if there is one company that I think would try to lock their hardware down as much as possible using something like a tpm, it's apple, but they don't.

You're looking at the wrong place. Check the iphone.

Anyway, it's nice to hear TPMs are disappearing from desktops. I hope it's true.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#20 lore raw
In reply to Alex Besogonov
Quoted 4 lines · Alex Besogonov
Quoted 3 lines · Robert Millan
Quoted 3 lines

Making sure, that noone can override it, can be awfully difficult, especially under a physical attacker. A hardware that is at least a bit designed to withstand such an attack can help a lot.

Quoted 8 lines
Quoted 3 lines

I'm not sure why is physical security so awfully difficult for you (can't you use locks, tamper-proof seals, cameras and alarms?), but most people who're in the bussiness of protecting physical goods manage to sort it out.

My devices will be installed at clients' locations. It's impossible to guarantee that all devices will be physically secure.

If you live in the USA then one day such device might contain your private data. Would you like it to be stolen?

My private data is safely stored. The stuff Google reads from my Gmail account is *not* private data.

If you send your private stuff elsewhere and trust noone can read it because a small chip that's not even under your control told you so, you're being naive...

Quoted 2 lines

Reverse engineering the TPM chip is very costly. And I'm not going to try to protect data from NSA or CIA or another three-letter agency.

...but thankfully, not as much as I thought.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#21 lore raw
In reply to Robert Millan
Quoted 4 lines · Robert Millan
Quoted 1 line

Yes, I'm trying to do remote attestation.

You're confusing things. I think you simply want to ensure data integrity, and the TPM doesn't even do that: it simply puts the problem in hands of a third party.

No, I'm not confusing anything.

Quoted 3 lines

"remote attestation" is only useful when you want to coerce others into running your (generaly proprietary) software. I hope this is not what you want to do.

It's exactly what I want to do (minus the 'coercing' part). I want to ensure that devices run only my unmodified software (which I consider secure) and only in this case provide decryption keys for sensitive data. Of course, it done not for DRM purposes, but rather to protect sensitive data from theft (real theft, not copyright infringement).

Quoted 5 lines
Quoted 2 lines

Well, I spoke phcoder on Jabber - there might be a way to do this. He's going to investigate it.

This is unnecessary. Once GRUB supports crypto, it can simply load itself from an encrypted filesystem on disk. An image can be of arbitrary size.

Nope. Still no way to test system integrity.

#22 lore raw

Well I don't understand you. When someone speaks about an attack on tpm you always consider it not-applicable in your environment. Most of them actually are. Like power analysis is able to recover keys in $1000 margin. With firewire attack you can do it with $10. You can't seriously assume an attacker which has less then $100 budget in any application. Reading directly from tpm in its current state is just a matter of time. However you consider any attack on the scheme coreboot+grub+boot or boot virus protection+sha-1+grub+boot with the encryption key in flash memory relevant. In both of these scenarios an attacker is unable to read the key without a hardware tampering level comparable to the one required to recover the key from tpm. TPM is dangerous and once we use it it's difficult to come back. If it could provide something over the two mentioned schemes then I would say that it's worth investigating. But as it isn't I say smash you tpm chip.

The only thing that tpm offers over other possibilities is a claim to achieve something that is theoretically impossible. Such claims are often the case in computer industry. I call it "marketing security". I suppose companies and engineers know that their claims are false still say it because their salaries depend on how well their product is sold Regards
Vladimir 'phcoder' Serbinenko

Quoted 28 lines · Alex Besogonov
Quoted 4 lines · Robert Millan
Quoted 1 line

Yes, I'm trying to do remote attestation.

You're confusing things. I think you simply want to ensure data integrity, and the TPM doesn't even do that: it simply puts the problem in hands of a third party.

No, I'm not confusing anything.

Quoted 3 lines

"remote attestation" is only useful when you want to coerce others into running your (generaly proprietary) software. I hope this is not what you want to do.

It's exactly what I want to do (minus the 'coercing' part). I want to ensure that devices run only my unmodified software (which I consider secure) and only in this case provide decryption keys for sensitive data. Of course, it done not for DRM purposes, but rather to protect sensitive data from theft (real theft, not copyright infringement).

Quoted 5 lines
Quoted 2 lines

Well, I spoke phcoder on Jabber - there might be a way to do this. He's going to investigate it.

This is unnecessary. Once GRUB supports crypto, it can simply load itself from an encrypted filesystem on disk. An image can be of arbitrary size.

Nope. Still no way to test system integrity.

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

#23 lore raw
Quoted 4 lines · phcoder

The only thing that tpm offers over other possibilities is a claim to achieve something that is theoretically impossible. Such claims are often the case in computer industry. I call it "marketing security".

And I have to admit, they got really good at it.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#24 lore raw
In reply to Alex Besogonov
Quoted 7 lines · Alex Besogonov
Quoted 4 lines · Robert Millan
Quoted 1 line

Yes, I'm trying to do remote attestation.

You're confusing things. I think you simply want to ensure data integrity, and the TPM doesn't even do that: it simply puts the problem in hands of a third party.

No, I'm not confusing anything.

Quoted 8 lines
Quoted 3 lines

"remote attestation" is only useful when you want to coerce others into running your (generaly proprietary) software. I hope this is not what you want to do.

It's exactly what I want to do (minus the 'coercing' part). I want to ensure that devices run only my unmodified software (which I consider secure) and only in this case provide decryption keys for sensitive data. Of course, it done not for DRM purposes, but rather to protect sensitive data from theft (real theft, not copyright infringement).

There's no fundamental difference between hardening a device and using that as your root of trust and using someone else's hardened device and using that as your root of trust. The only differences are:

- One more link in the trust chain (irrelevant).

- Because it's _someone else's_ computer (the TPM), you're irrationally assuming that its security is flawless.

- Because it's someone else's computer, this helps them get their foot in your door. Next time you notice, each PC will be verified by one of these, and then you can kiss all your freedom goodbye.

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

Well, I spoke phcoder on Jabber - there might be a way to do this. He's going to investigate it.

This is unnecessary. Once GRUB supports crypto, it can simply load itself from an encrypted filesystem on disk. An image can be of arbitrary size.

Nope. Still no way to test system integrity.

I was repliing to the idea of implementing sha-1 checks in the MBR. Please don't bring it out of context.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#25 lore raw
Quoted 8 lines · Robert Millan
Quoted 5 lines

It's exactly what I want to do (minus the 'coercing' part). I want to ensure that devices run only my unmodified software (which I consider secure) and only in this case provide decryption keys for sensitive data. Of course, it done not for DRM purposes, but rather to protect sensitive data from theft (real theft, not copyright infringement).

There's no fundamental difference between hardening a device and using that as your root of trust and using someone else's hardened device and using that as your root of trust.

There's a difference. It's impossible to create the root-of-trust without some hardware/firmware support.

Quoted 4 lines

The only differences are:
- One more link in the trust chain (irrelevant).
- Because it's _someone else's_ computer (the TPM), you're irrationally assuming that its security is flawless.

Security of TPM vendors is audited by a third party. For most practical purposes it can be considered quite adequate.

Quoted 3 lines

- Because it's someone else's computer, this helps them get their foot in your door. Next time you notice, each PC will be verified by one of these, and then you can kiss all your freedom goodbye.

And how does not supporting this functionality in GRUB affect this?

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

This is unnecessary. Once GRUB supports crypto, it can simply load itself from an encrypted filesystem on disk. An image can be of arbitrary size.

Nope. Still no way to test system integrity.

I was repliing to the idea of implementing sha-1 checks in the MBR. Please don't bring it out of context.

Sorry, I didn't mean to.

Signature · 2 lines
With respect,
            Alex Besogonov ([email protected])
#26 lore raw
Quoted 11 lines · Alex Besogonov
Quoted 8 lines · Robert Millan
Quoted 5 lines

It's exactly what I want to do (minus the 'coercing' part). I want to ensure that devices run only my unmodified software (which I consider secure) and only in this case provide decryption keys for sensitive data. Of course, it done not for DRM purposes, but rather to protect sensitive data from theft (real theft, not copyright infringement).

There's no fundamental difference between hardening a device and using that as your root of trust and using someone else's hardened device and using that as your root of trust.

There's a difference. It's impossible to create the root-of-trust without some hardware/firmware support.

I assume you mean a root of trust that's not vulnerable to physical attack. Sure, you need firmware support, but you don't need to blindly trust someone else's firmware when you can use coreboot with GRUB as your firmware.

Quoted 6 lines
Quoted 4 lines

The only differences are:
- One more link in the trust chain (irrelevant).
- Because it's _someone else's_ computer (the TPM), you're irrationally assuming that its security is flawless.

Security of TPM vendors is audited by a third party. For most practical purposes it can be considered quite adequate.

Adequate maybe, not flawless. And using your own concrete is still cheaper and more trustworthy than someone else's silicon :-)

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#27 lore raw
In reply to Jan Alsenz
Quoted 10 lines · On Friday 20 February 2009 02:29:50 Jan Alsenz wrote:

So in the end (after boot) you have a bunch of PCR values, that represent all the code and data, that was used to boot the system. If you have this and are sure, that the current configuration is correct, you have a reference value of the expected system state, which you can use for the following:
- seal a key:
You can create a key with the TPM and "bind" it to specific values of the
PCRs, so it only en/decrypts with it, if these values match.
You can encrypt any kind of data with this, but the only useful thing for
boot is to encrypt a cryptographic key needed to further start the system.

Last year I implemented support for encrypted partitions in GRUB2 [1], which means that it can load kernels and ramdisks off encrypted partitions. TPM support in GRUB2 would allow the key to be stored in the TPM and only provided to GRUB once the system has checked that GRUB hasn't been tampered with.

TPM can be used for good or for bad, but this is the case for everything involving cryptography. We don't refuse to use encryption algorithms because they could be used for DRM, so why should we refuse to use TPM? TPM has the potential to make Linux even more secure.

Regards
Michael

[1] My work is yet to be merged into GRUB2.

Signature · 3 lines
http://michael.gorven.za.net
PGP Key ID 6612FE85
S/MIME Key ID AAF09E0E
#28 lore raw

Free software is about freedom of choice. I think we should have possibility to have multiple authentication and key sources. Then one could e.g. not save password as md5 somewhere in configfile or embedded in module but check that this password opens luks. Or that it's a password of somebody in wheel group basing on /etc/passwd, /etc/shadow and /etc/group. In this case tpm-keyretrieve module may be developed outside of main trunk and if someone wants it he can download it Regards
Vladimir 'phcoder' Serbinenko

Quoted 29 lines · Michael Gorven
Quoted 10 lines · On Friday 20 February 2009 02:29:50 Jan Alsenz wrote:

So in the end (after boot) you have a bunch of PCR values, that represent all the code and data, that was used to boot the system. If you have this and are sure, that the current configuration is correct, you have a reference value of the expected system state, which you can use for the following:
- seal a key:
You can create a key with the TPM and "bind" it to specific values of the
PCRs, so it only en/decrypts with it, if these values match.
You can encrypt any kind of data with this, but the only useful thing for
boot is to encrypt a cryptographic key needed to further start the system.

Last year I implemented support for encrypted partitions in GRUB2 [1], which means that it can load kernels and ramdisks off encrypted partitions. TPM support in GRUB2 would allow the key to be stored in the TPM and only provided to GRUB once the system has checked that GRUB hasn't been tampered with.

TPM can be used for good or for bad, but this is the case for everything involving cryptography. We don't refuse to use encryption algorithms because they could be used for DRM, so why should we refuse to use TPM? TPM has the potential to make Linux even more secure.

Regards
Michael

[1] My work is yet to be merged into GRUB2.

------------------------------------------------------------------------

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

#29 lore raw
Quoted 7 lines · On Friday 20 February 2009 13:27:28 phcoder wrote:

Free software is about freedom of choice. I think we should have possibility to have multiple authentication and key sources. Then one could e.g. not save password as md5 somewhere in configfile or embedded in module but check that this password opens luks. Or that it's a password of somebody in wheel group basing on /etc/passwd, /etc/shadow and /etc/group. In this case tpm-keyretrieve module may be developed outside of main trunk and if someone wants it he can download it

Yes, I agree that there should be multiple methods, but I don't see why the TPM module shouldn't be in the main trunk. It wouldn't be forced on GRUB users in any way -- we would just be giving them the option to use it. They would have to explicitly enable and set it up. As Jan said, the TPM is a passive device which can be used in any way we wish, and I don't see why using some of its features to create a more secure system is wrong.

Regards
Michael

Signature · 3 lines
http://michael.gorven.za.net
PGP Key ID 6612FE85
S/MIME Key ID AAF09E0E
#30 lore raw

I agree too!

Multiple methods are interesting and everything that can be, should be placed in
modules.
But some parts of a trusted boot chain need to be in the MBR, etc. which is mainline code (regardless of how how you build it).

The way I have implemented my version of the MBR right now is with compile flags:
If you don't want/need TPM code it won't be on your system! If you compile it with TPM support, it won't boot if there is no TPM (I don't like silent failures).

Greets,

Jan

Quoted 18 lines · Michael Gorven
Quoted 7 lines · On Friday 20 February 2009 13:27:28 phcoder wrote:

Free software is about freedom of choice. I think we should have possibility to have multiple authentication and key sources. Then one could e.g. not save password as md5 somewhere in configfile or embedded in module but check that this password opens luks. Or that it's a password of somebody in wheel group basing on /etc/passwd, /etc/shadow and /etc/group. In this case tpm-keyretrieve module may be developed outside of main trunk and if someone wants it he can download it

Yes, I agree that there should be multiple methods, but I don't see why the TPM module shouldn't be in the main trunk. It wouldn't be forced on GRUB users in any way -- we would just be giving them the option to use it. They would have to explicitly enable and set it up. As Jan said, the TPM is a passive device which can be used in any way we wish, and I don't see why using some of its features to create a more secure system is wrong.

Regards
Michael

#31 lore raw
Quoted 10 lines · Jan Alsenz

I agree too!

Multiple methods are interesting and everything that can be, should be placed in
modules.
But some parts of a trusted boot chain need to be in the MBR, etc. which is mainline code (regardless of how how you build it).

The way I have implemented my version of the MBR right now is with compile flags:
If you don't want/need TPM code it won't be on your system! If you compile it with TPM support, it won't boot if there is no TPM (I don't like silent failures).

In case it will get some day in. I would propose that you make own MBR code like that gets compiled to own img file like tpmboot.img (512 bytes). Then you can just provide img file for tool chain. You are probably throwing code away anyway from normal mbr boot code.

#32 lore raw
Quoted 4 lines · Vesa Jääskeläinen

In case it will get some day in. I would propose that you make own MBR code like that gets compiled to own img file like tpmboot.img (512 bytes). Then you can just provide img file for tool chain. You are probably throwing code away anyway from normal mbr boot code.

That should be possible I guess.

And I have multiple versions, using different TPM commands. One of the versions keeps all the existing functionality!
I had to squeeze the existing code a bit though. It should still work as expected, but I didn't have the time to test it yet. (If someone wants to volunteer, I could send the code).

Greets,

Jan

#33 lore raw
In reply to Michael Gorven
Quoted 4 lines · Michael Gorven

Yes, I agree that there should be multiple methods, but I don't see why the TPM module shouldn't be in the main trunk. It wouldn't be forced on GRUB users in any way -- we would just be giving them the option to use it.

GRUB is free software. You can do anything you want with it. We can't really force our users to either use TPMs or not to use them.

However, we can choose not to endorse a feature if we think it's ill-intended. We can also try to raise awareness of the problem, which is what I'm doing right now.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#34 lore raw
In reply to Michael Gorven
Quoted 4 lines · Michael Gorven

TPM can be used for good or for bad, but this is the case for everything involving cryptography. We don't refuse to use encryption algorithms because they could be used for DRM, so why should we refuse to use TPM?

I don't agree with this analogy. Unlike cryptography, TPMs have been designed from the ground up to serve an evil purpose. They *could* have designed them with good intent, for example either of these could apply:

- Buyer gets a printed copy of the TPM's private key when they buy a board.

- An override button that's physically accessible from the chip can be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods (e.g. locks).

But they didn't.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#35 lore raw
Quoted 12 lines · On Saturday 21 February 2009 15:51:42 Robert Millan wrote:
Quoted 3 lines · Michael Gorven

TPM can be used for good or for bad, but this is the case for everything involving cryptography. We don't refuse to use encryption algorithms because they could be used for DRM, so why should we refuse to use TPM?

I don't agree with this analogy. Unlike cryptography, TPMs have been designed from the ground up to serve an evil purpose. They *could* have designed them with good intent, for example either of these could apply:

- Buyer gets a printed copy of the TPM's private key when they buy a
board.

Quoted 6 lines

- An override button that's physically accessible from the chip can be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods
(e.g. locks).

But they didn't.

Just to clarify, are you objecting to the use of TPM on principle and because you don't want to encourage use of it, or because you think this specific use (trusted boot path) is dangerous?

Michael

Signature · 3 lines
http://michael.gorven.za.net
PGP Key ID 6612FE85
S/MIME Key ID AAF09E0E
#36 lore raw
Quoted 18 lines · Michael Gorven
Quoted 17 lines · On Saturday 21 February 2009 15:51:42 Robert Millan wrote:
Quoted 3 lines · Michael Gorven

TPM can be used for good or for bad, but this is the case for everything involving cryptography. We don't refuse to use encryption algorithms because they could be used for DRM, so why should we refuse to use TPM?

I don't agree with this analogy. Unlike cryptography, TPMs have been designed from the ground up to serve an evil purpose. They *could* have designed them with good intent, for example either of these could apply:

- Buyer gets a printed copy of the TPM's private key when they buy a
board.

- An override button that's physically accessible from the chip can be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods
(e.g. locks).

Quoted 5 lines
Quoted 1 line

But they didn't.

Just to clarify, are you objecting to the use of TPM on principle and because you don't want to encourage use of it, or because you think this specific use (trusted boot path) is dangerous?

I can't reply to this question, because it's not just a specific use, it's part of the design, of its purpose. One of the design goals is remote attestation, which is a threat to our freedom and is unethical.

If there was a device that behaves like a TPM except remote attestation is not possible (e.g. by one of the means described above), I wouldn't object to it, and I think the GNU project wouldn't either, but then referring to that as "TPM" is misleading.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#37 lore raw
Quoted 27 lines · On Saturday 21 February 2009 22:31:36 Robert Millan wrote:
Quoted 20 lines · Michael Gorven
Quoted 19 lines · On Saturday 21 February 2009 15:51:42 Robert Millan wrote:
Quoted 4 lines · Michael Gorven

TPM can be used for good or for bad, but this is the case for everything involving cryptography. We don't refuse to use encryption algorithms because they could be used for DRM, so why should we refuse to use TPM?

I don't agree with this analogy. Unlike cryptography, TPMs have been designed from the ground up to serve an evil purpose. They *could* have designed them with good intent, for example either of these could apply:

- Buyer gets a printed copy of the TPM's private key when they buy a
board.

- An override button that's physically accessible from the chip can
be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods (e.g. locks).

Quoted 5 lines
Quoted 1 line

But they didn't.

Just to clarify, are you objecting to the use of TPM on principle and because you don't want to encourage use of it, or because you think this specific use (trusted boot path) is dangerous?

Quoted 8 lines

I can't reply to this question, because it's not just a specific use, it's part of the design, of its purpose. One of the design goals is remote attestation, which is a threat to our freedom and is unethical.

If there was a device that behaves like a TPM except remote attestation is not possible (e.g. by one of the means described above), I wouldn't object to it, and I think the GNU project wouldn't either, but then referring to that as "TPM" is misleading.

I wasn't actually referring to the remote attestation. Just using the TPM to store a disk encryption key sealed with PCR registers, so that it would only be provided once it's been verified that GRUB hasn't been changed. (Personally I wouldn't want to use remote attestation at all.)

Michael

Signature · 3 lines
http://michael.gorven.za.net
PGP Key ID 6612FE85
S/MIME Key ID AAF09E0E
#38 lore raw
Quoted 13 lines · Michael Gorven
Quoted 4 lines
Quoted 3 lines

Just to clarify, are you objecting to the use of TPM on principle and because you don't want to encourage use of it, or because you think this specific use (trusted boot path) is dangerous?

Quoted 8 lines

I can't reply to this question, because it's not just a specific use, it's part of the design, of its purpose. One of the design goals is remote attestation, which is a threat to our freedom and is unethical.

If there was a device that behaves like a TPM except remote attestation is not possible (e.g. by one of the means described above), I wouldn't object to it, and I think the GNU project wouldn't either, but then referring to that as "TPM" is misleading.

Quoted 4 lines

I wasn't actually referring to the remote attestation. Just using the TPM to store a disk encryption key sealed with PCR registers, so that it would only be provided once it's been verified that GRUB hasn't been changed. (Personally I wouldn't want to use remote attestation at all.)

First of all, I think it's a poor approach, because there's no way to garantee the TPM is doing what it's supposed to (can you read its source code? how do you know for sure there are no backdoors?).

But the important here is not whether there's something wrong with the use case you described or not. The important is that this use case is lumped together with something seriously nasty, and that its promoters are acting irresponsibly by not allowing us to make the distinction.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#39 lore raw
Quoted 12 lines · Robert Millan
Quoted 11 lines · Michael Gorven
Quoted 11 lines
Quoted 3 lines

Just to clarify, are you objecting to the use of TPM on principle and because you don't want to encourage use of it, or because you think this specific use (trusted boot path) is dangerous?

I can't reply to this question, because it's not just a specific use, it's part of the design, of its purpose. One of the design goals is remote attestation, which is a threat to our freedom and is unethical.

If there was a device that behaves like a TPM except remote attestation is not possible (e.g. by one of the means described above), I wouldn't object to it, and I think the GNU project wouldn't either, but then referring to that as "TPM" is misleading.

Quoted 8 lines
Quoted 4 lines

I wasn't actually referring to the remote attestation. Just using the TPM to store a disk encryption key sealed with PCR registers, so that it would only be provided once it's been verified that GRUB hasn't been changed. (Personally I wouldn't want to use remote attestation at all.)

First of all, I think it's a poor approach, because there's no way to garantee the TPM is doing what it's supposed to (can you read its source code? how do you know for sure there are no backdoors?).

As I said before: you can make the very same argument for every single part of your PC.
Why do you trust Intel or AMD with your CPU? They are also involved in the TCG!

Greets,

Jan

#40 lore raw
Quoted 4 lines

As I said before: you can make the very same argument for every single part of your PC.
Why do you trust Intel or AMD with your CPU? They are also involved in the TCG!

We can't verify that it doesn't do such things. Unfortunately we also don't have resources to build alternative chips. However it doesn't mean we should support any anti-freedom devices

#41 lore raw
In reply to Jan Alsenz
Quoted 8 lines · Jan Alsenz
Quoted 4 lines

First of all, I think it's a poor approach, because there's no way to garantee the TPM is doing what it's supposed to (can you read its source code? how do you know for sure there are no backdoors?).

As I said before: you can make the very same argument for every single part of your PC.
Why do you trust Intel or AMD with your CPU? They are also involved in the TCG!

You took the least relevant part of my argument, and assumed this is the reason I object to TPMs. Please check the rest of my previous mail.

Anyway, it's obvious that I trust my CPU because I have no other choice. The context in which I said this, is different: there are better choices there.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#42 lore raw
Quoted 10 lines · Robert Millan
Quoted 6 lines · Jan Alsenz
Quoted 3 lines

First of all, I think it's a poor approach, because there's no way to garantee the TPM is doing what it's supposed to (can you read its source code? how do you know for sure there are no backdoors?).

As I said before: you can make the very same argument for every single part of your PC.
Why do you trust Intel or AMD with your CPU? They are also involved in the TCG!

You took the least relevant part of my argument, and assumed this is the reason I object to TPMs. Please check the rest of my previous mail.

I didn't assume that. And I picked this argument because it is the only one I object!
Because I think it is not an argument...

Quoted 2 lines

Anyway, it's obvious that I trust my CPU because I have no other choice. The context in which I said this, is different: there are better choices there.

... and since you seem to agree, please don't use it.

You seem to assume, that I really like the idea of a TPM, or something like that. I can assure you, that this is not the case. My only goal is to keep the discussion based on facts and reason. Which way too often get lost in this kind of discussion (and I want to stress that this is not an accusation to anyone here).

Greets,

Jan

#43 lore raw
Quoted 11 lines · Jan Alsenz
Quoted 3 lines

You took the least relevant part of my argument, and assumed this is the reason I object to TPMs. Please check the rest of my previous mail.

I didn't assume that. And I picked this argument because it is the only one I object!
Because I think it is not an argument...

Quoted 2 lines

Anyway, it's obvious that I trust my CPU because I have no other choice. The context in which I said this, is different: there are better choices there.

Quoted 7 lines

... and since you seem to agree, please don't use it.

You seem to assume, that I really like the idea of a TPM, or something like that. I can assure you, that this is not the case. My only goal is to keep the discussion based on facts and reason. Which way too often get lost in this kind of discussion (and I want to stress that this is not an accusation to anyone here).

Thanks for clarifiing, I appreciate your response.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#44 lore raw
In reply to Robert Millan

Hi!

I don't want to be picky here, but you know that remote attestation is simply sending signed hash values?
The important thing is that the receiver has trust in the protection of the private key.

So if you build me a coreboot/GRUB version with a trusted boot chain I can happily implement a remote attestation scheme with it and ship it to my customers.

Greets,

Jan

Quoted 32 lines · Robert Millan
Quoted 17 lines · Michael Gorven
Quoted 16 lines · On Saturday 21 February 2009 15:51:42 Robert Millan wrote:
Quoted 3 lines · Michael Gorven

TPM can be used for good or for bad, but this is the case for everything involving cryptography. We don't refuse to use encryption algorithms because they could be used for DRM, so why should we refuse to use TPM?

I don't agree with this analogy. Unlike cryptography, TPMs have been designed from the ground up to serve an evil purpose. They *could* have designed them with good intent, for example either of these could apply:

- Buyer gets a printed copy of the TPM's private key when they buy a
board.

- An override button that's physically accessible from the chip can be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods
(e.g. locks).

Quoted 4 lines
Quoted 1 line

But they didn't.

Just to clarify, are you objecting to the use of TPM on principle and because you don't want to encourage use of it, or because you think this specific use (trusted boot path) is dangerous?

I can't reply to this question, because it's not just a specific use, it's part of the design, of its purpose. One of the design goals is remote attestation, which is a threat to our freedom and is unethical.

If there was a device that behaves like a TPM except remote attestation is not possible (e.g. by one of the means described above), I wouldn't object to it, and I think the GNU project wouldn't either, but then referring to that as "TPM" is misleading.

#45 lore raw
Quoted 4 lines · Jan Alsenz

Hi!

I don't want to be picky here, but you know that remote attestation is simply sending signed hash values?

Sure. The tricky part is that your computer generates those, but you're not really in control of them. You need to ask your TPM to obtain them, like a beggar.

Quoted 2 lines

So if you build me a coreboot/GRUB version with a trusted boot chain I can happily implement a remote attestation scheme with it and ship it to my customers.

That's the beauty of free software; you can do anything you like with it, even nasty things. Just don't expect us to help you get there.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#46 lore raw
In reply to Robert Millan
Quoted 27 lines · Robert Millan
Quoted 20 lines · Michael Gorven
Quoted 19 lines · On Saturday 21 February 2009 15:51:42 Robert Millan wrote:
Quoted 4 lines · Michael Gorven

TPM can be used for good or for bad, but this is the case for everything involving cryptography. We don't refuse to use encryption algorithms because they could be used for DRM, so why should we refuse to use TPM?

I don't agree with this analogy. Unlike cryptography, TPMs have been designed from the ground up to serve an evil purpose. They *could* have designed them with good intent, for example either of these could apply:

- Buyer gets a printed copy of the TPM's private key when they buy a
board.

- An override button that's physically accessible from the chip can
be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods (e.g. locks).

Quoted 5 lines
Quoted 1 line

But they didn't.

Just to clarify, are you objecting to the use of TPM on principle and because you don't want to encourage use of it, or because you think this specific use (trusted boot path) is dangerous?

Quoted 8 lines

I can't reply to this question, because it's not just a specific use, it's part of the design, of its purpose. One of the design goals is remote attestation, which is a threat to our freedom and is unethical.

If there was a device that behaves like a TPM except remote attestation is not possible (e.g. by one of the means described above), I wouldn't object to it, and I think the GNU project wouldn't either, but then referring to that as "TPM" is misleading.

(warning, I accidentally wrote a long essay exploring when these TPM-like things are evil)

Okay, suppose we use this means to make them not-so-evil: "Buyer gets a printed copy of the TPM's private key when they buy a board." I'll call them "(pseudo)TPMs" when they meet GNU demands. (They could be built with Free software, openly specified hardware designs, etc... why not throw in a bonus :-))

Alex Besogonov's use case is still possible. Which should make us suspicious of whether our moral problem is solved. Here's how it's possible:

Assume he has access to computer A, which is physically secured.

He buys computer B, which he wants to be able to wander around in the world without much effort put into physical security. He accepts that the hard drive contents can be tampered with, but he's willing to pay for a smaller cryptographic unit that guards its secrets jealously -- the (pseudo)TPM -- in order to "prove" to computer A that computer B hasn't been changed. Alex is the buyer, so he received the printed copy of the private key, and (for example) stashes it where computer A is, or burns it.

How does that make computer B free? Computer A and its buddies (if any) will still refuse to communicate with B if B runs different software than what Alex had put on it. Unless there are laws in place, Alex can go on to sell (or lease) computer B to someone else, without giving *them* the printed private key. Or in the case of the "override button" and securing the (pseudo)TPM with physical locks, Alex could secure it with a lock, and then sell computer B without giving the lock's key to person who buys the computer from him.

This look at (pseudo)TPM makes them look to me as a weak way of asserting at- a-distance your legal/political ownership of a computer. Even if manufacturers cooperate with GNU demands, resulting (pseudo)TPMs are only useful for a purpose that is arguably evil... although the political arguments might be different between an end-user, a small non-computer-focused corporation, a large one, and a computer-manufacturer, asserting ownership. And it depends on whether they share such information (with police, public internets or other networks) in an attempt to detect fugitive computers.

I think, in the U.S. we can make laws that coerce corporations pretty effectively, and individuals don't have much power (most people buy their computing devices from mass marketers, large corporations, not people on the streets), so -- if we chose -- we could make laws that ensured that (pseudo)TPM technology was not used for its most serious moral transgressions. (I'm not sure though, because the Internet is so strange.) Also because most software is made by big corporations that can be sued (e.g. Microsoft, Apple), and most Free non-corporate software isn't evil. But I suspect that in a part of the world where people know their immediate oppressors more intimately, where the mass market (the "free market"?) isn't trusted as much, the TPM (well, like any other piece of software or hardware, only worse) could be abused to control people. I could spin that argument one way to say that U.S. capitalism is to be desired (at least once we can make the legislators do what we want, rather than what big rich corporations want).

I think my question is: how essential is it that individual people should (always? usually?) have an easy time taking apart their computers, putting them back together, and changing them, and having them behave as "black boxes" to the outside world. How much is physical security acceptable, when you have a thing you can lock up and yet still use (until the object decides to stop cooperating with you)? Cryptography simply makes clear that any one piece of hardware can be uncooperative (not share everything it knows) and this has big consequences. The big manufacturers have a lot of control here...

Back to Alex's circumstance, you can just make the computer hardware and software make it more difficult to (without the right password) install different software. The BIOS could be unwilling to boot unrecognized software -- and since the BIOS is harder to remove/replace, therefore an attacker can't flash the BIOS if they don't have the password, either. The BIOS could store the secret key we use to identify ourselves to third parties (or that we use to encrypt the disk -- not stored on-disk because hard disks are usually too easy to remove and read), but the BIOS will reveal it happily to a running system. And we've already determined that (in Alex's case) we're not trying to protect against people who can spy on our RAM or install other treacherous hardware (in a non-TPM sense, simply that it does something not quite equivalent to its normal expected function), because that already compromises everything.

FSF argument is that in our specific political circumstance, end-user can be defined legally and has a history of being used effectively to protect consumers, and TPM specifically is an attempt by manufacturers (and whoever pressures them) to take some control without putting out the expense, lack of modularity/interoperability/etc. to make their hardware actually hard to modify and put free software on. Actually it's also an attempt to be deceptive because they're not banning end-user software freedom outright, so people and governments don't look as askance at the monopolies that could soon be imposed on the end-users, perhaps?

I think that we can understand these issues better when we actually have access to Free software (including BIOS) that implements a crypto stack to lock down a computer, on relatively Free hardware designed with some physical security (which is obviously possible, just as the mini-computers called TPMs are designed with some physical security). Whole computer becomes analogous to TPM in its ability to hide keys etc. -- except that it can be unlocked. Then the issues go back to ones we've been dealing with for centuries, such as whether you should hide a spare key under the doormat in case something happens to the one you normally carry. Ugh, alright, at least we're back in the physical.

-Isaac

#47 lore raw
Quoted 4 lines · Isaac Dupree

(warning, I accidentally wrote a long essay exploring when these TPM-like things are evil)

Quoted 8 lines

Okay, suppose we use this means to make them not-so-evil: "Buyer gets a printed copy of the TPM's private key when they buy a board." I'll call them "(pseudo)TPMs" when they meet GNU demands. (They could be built with Free software, openly specified hardware designs, etc... why not throw in a bonus :-))

Alex Besogonov's use case is still possible. Which should make us suspicious of whether our moral problem is solved.

I don't think there's anything morally wrong with Alex' use case, although it's not technically unreplaceable either.

Quoted 4 lines

I think my question is: how essential is it that individual people should (always? usually?) have an easy time taking apart their computers, putting them back together, and changing them, and having them behave as "black boxes" to the outside world.

Note that our concern is software, not hardware. Your microwave oven is probably a computer too, and it's not a serious problem that it's locked down and you can't change its software (that would be really dangerous!).

However, if your free programs, which you run on unlocked hardware, suddenly stop working because they have to interact with third parties (e.g. a web server) who now demand you use the "Trusted" version, you lose the ability to modify them, which is one of your basic freedoms.

Quoted 10 lines

I think that we can understand these issues better when we actually have access to Free software (including BIOS) that implements a crypto stack to lock down a computer, on relatively Free hardware designed with some physical security (which is obviously possible, just as the mini-computers called TPMs are designed with some physical security). Whole computer becomes analogous to TPM in its ability to hide keys etc. -- except that it can be unlocked. Then the issues go back to ones we've been dealing with for centuries, such as whether you should hide a spare key under the doormat in case something happens to the one you normally carry. Ugh, alright, at least we're back in the physical.

Another interesting example are crypto cards. They are designed to hide keys, but they don't do any more than that. They serve their purpose of authenticating you to a third party, but can't spy on your memory, and can't coerce you into running a certain program.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#48 lore raw
In reply to Robert Millan
Quoted 4 lines · Robert Millan

I don't agree with this analogy. Unlike cryptography, TPMs have been designed from the ground up to serve an evil purpose. They *could* have designed them with good intent, for example either of these could apply:
- Buyer gets a printed copy of the TPM's private key when they buy a board.

Private part of the endorsement key _never_ leaves the device (if manufacturer uses the recommended TPM_CreateEndorsementKeyPair method). Even device manufacturer doesn't know it. Public key is then signed by manufacturer's certificate. This ensures that the private key can't be compromised. Besides, you can _disable_ endorsement key (TPM_DisablePubekRead) to protect your privacy.

TPM also has a notion of "ownership", and it supports ownership change (which requires physical presence of operator).

Quoted 4 lines

- An override button that's physically accessible from the chip can be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods (e.g. locks).

That's not a very good idea.

#49 lore raw
Quoted 8 lines · Alex Besogonov
Quoted 4 lines · Robert Millan

I don't agree with this analogy. Unlike cryptography, TPMs have been designed from the ground up to serve an evil purpose. They *could* have designed them with good intent, for example either of these could apply:
- Buyer gets a printed copy of the TPM's private key when they buy a board.

Private part of the endorsement key _never_ leaves the device (if manufacturer uses the recommended TPM_CreateEndorsementKeyPair method). Even device manufacturer doesn't know it.

Even if that is true (which I doubt), it's merely incidental, because...

Quoted 3 lines

Public key is then
signed by manufacturer's certificate. This ensures that the private key can't be compromised.

...this ensures that $evil_bob can challenge you to prove you're running his proprietary anti-user software.

Quoted 2 lines

Besides, you can _disable_ endorsement key
(TPM_DisablePubekRead) to protect your privacy.

Of course. And if you're serious about privacy, you can even trash your computer or unplug it from the internet.

The question is, will it be practical for you to do disable the TPM a few years from now?

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#50 lore raw
Quoted 4 lines · Robert Millan
Quoted 3 lines

Private part of the endorsement key _never_ leaves the device (if manufacturer uses the recommended TPM_CreateEndorsementKeyPair method). Even device manufacturer doesn't know it.

Even if that is true (which I doubt), it's merely incidental, because...

It's not really incidental. TCG was initially started as a group to develop trusted computing platform. MS later tried to hijack it to realize their wet dream of locked-down computer.

Quoted 5 lines
Quoted 3 lines

Public key is then
signed by manufacturer's certificate. This ensures that the private key can't be compromised.

...this ensures that $evil_bob can challenge you to prove you're running his proprietary anti-user software.

So I won't be able to answer $evil_bob challenge in any case, since I'm mostly running Linux now.

Quoted 2 lines

The question is, will it be practical for you to do disable the TPM a few years from now?

(I think yes, but that's not the point)

Signature · 2 lines
With respect,
            Alex Besogonov ([email protected])
#51 lore raw
Quoted 8 lines · Alex Besogonov
Quoted 4 lines · Robert Millan
Quoted 3 lines

Private part of the endorsement key _never_ leaves the device (if manufacturer uses the recommended TPM_CreateEndorsementKeyPair method). Even device manufacturer doesn't know it.

Even if that is true (which I doubt), it's merely incidental, because...

It's not really incidental. TCG was initially started as a group to develop trusted computing platform. MS later tried to hijack it to realize their wet dream of locked-down computer.

Well, sounds like either the hijack was succesful, or the wet dream was shared.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Public key is then
signed by manufacturer's certificate. This ensures that the private key can't be compromised.

...this ensures that $evil_bob can challenge you to prove you're running his proprietary anti-user software.

So I won't be able to answer $evil_bob challenge in any case, since I'm mostly running Linux now.

That depends on what he considers trusted. The capabilities are there and got merged in Linux tree. And who's scared of Vista anyways? ;-)

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#52 lore raw
In reply to Robert Millan
Quoted 5 lines · Robert Millan

- An override button that's physically accessible from the chip can be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods (e.g. locks).
But they didn't.

And actually, they did.
================================
New flexibility in EKs. In the 1.1b specification, endorsement keys were fixed in the
chip at manufacture. This allowed a certificate to be provided by the manufacturer for the
key. However, some privacy advocates are worried about the EK becoming a nonchangeable
identifier (in spite of all the privacy controls around it, which would make doing
this very difficult). ***As a result, the specification allows a manufacturer to allow the key to
be removed by the end user and regenerated.*** Of course the certificate at that point would
become worthless, and it could be very expensive for the end user to get a new certificate.
================================
https://www.trustedcomputinggroup.org/specs/TSS/TSS_1_2_Errata_A-final.pdf

#53 lore raw

First of all you can write anything in specifications. Real chips don't necessary follow specifications. It's even said that it's "optional". Secondly this certificate makes regenerating worthless. Companies coercing you into using they software may challenge you to use signed public key. Then you still have a choice to regenerate your key but it's simply equivalent to "but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all.". It's
equivalent to just smashing your tpm.
Regards
Vladimir 'phcoder' Serbinenko

Quoted 30 lines · Alex Besogonov
Quoted 5 lines · Robert Millan

- An override button that's physically accessible from the chip can be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods (e.g. locks).
But they didn't.

And actually, they did.
================================
New flexibility in EKs. In the 1.1b specification, endorsement keys were fixed in the
chip at manufacture. This allowed a certificate to be provided by the manufacturer for the
key. However, some privacy advocates are worried about the EK becoming a nonchangeable
identifier (in spite of all the privacy controls around it, which would make doing
this very difficult). ***As a result, the specification allows a manufacturer to allow the key to
be removed by the end user and regenerated.*** Of course the certificate at that point would
become worthless, and it could be very expensive for the end user to get a new certificate.
================================
https://www.trustedcomputinggroup.org/specs/TSS/TSS_1_2_Errata_A-final.pdf

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

#54 lore raw
In reply to Alex Besogonov
Quoted 16 lines · Alex Besogonov
Quoted 5 lines · Robert Millan

- An override button that's physically accessible from the chip can be used to disable "hostile mode" and make the TPM sign everything. From that point physical access can be managed with traditional methods (e.g. locks).
But they didn't.

And actually, they did.
================================
New flexibility in EKs. In the 1.1b specification, endorsement keys were fixed in the
chip at manufacture. This allowed a certificate to be provided by the manufacturer for the
key. However, some privacy advocates are worried about the EK becoming a nonchangeable
identifier (in spite of all the privacy controls around it, which would make doing

Quoted 8 lines

this very difficult). ***As a result, the specification allows a manufacturer to allow the key to
be removed by the end user and regenerated.*** Of course the certificate at that point would
become worthless, and it could be very expensive for the end user to get a new certificate.
================================
https://www.trustedcomputinggroup.org/specs/TSS/TSS_1_2_Errata_A-final.pdf

I would have to study this in detail, but I don't see the text saying that remote attestation is no longer supported.

What this probably amounts to is that the coercion process can now be made anonymously, which I already knew:

http://en.wikipedia.org/wiki/Direct_anonymous_attestation

and which is not the core of the problem.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#55 lore raw
In reply to Jan Alsenz
Quoted 2 lines · Jan Alsenz

First of all a TPM is not just some kind of secure memory only accessible from early BIOS, it basically is a small computer.

The thing is, we have many of these "small computers" in any standard PC. Many of them are technically capable of performing crypto checks and validating your memory.

What makes the TPM different is not what it is, but what is _designed for_.

When you get one, it comes with an hostile setup. If this computer was a crypto card, this would be no trouble, since the crypto card can't coerce you into using proprietary software. However, the TPM device is capable of deciding for you when your computer is "clean" and when it isn't. This empowers third parties to figure out if you're "clean" or not.

To get the picture, imagine this situation:

- Youtube demands you run approved version of Adobe Flash.

- You don't want to use Adobe's proprietary program, you'd rather use Gnash instead.

- Youtube can challenge you to use your TPM to prove you're running Flash.

Then you're forced into either bowing to your TPM or not watching any videos.

Such kind of submission to a small piece of silicon is not acceptable.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."