4 ms·
This isn't a trivial task (attaching probes to chip legs, or board connectors), and it's a good write-up, but sniffing seems like a poor word choice. This isn'
by gnabgib 5y ago
This isn't a trivial task (attaching probes to chip legs, or board connectors), and it's a good write-up, but sniffing seems like a poor word choice. This isn't picking up the data via covertly via existing attached components, or through some kind of software exploit - this is literally reading traveling messages which is nigh impossible to defend against aka "Reading data from the TPM"
Short of a physically sealed path from the chip to all components that benefit from its knowledge (impossible on a desktop?), that can only be destructively accessed (triggering an alarm; like case-open switches) - I don't see how this can be defended against.
- opencl 5y agoTPM 2.0 allows communications over the bus to be encrypted specifically to prevent this attack, though Windows apparently does not actually use this feature[0]. Newer CPUs (since about 5 years ago) have the TPM embedded in the CPU. Intel calls this PTT and AMD calls it fTPM. [0] https://pulsesecurity.co.nz/articles/TPM-sniffing https://pulsesecurity.co.nz/articles/TPM-sniffing
- mjg59 5y agoThe main problem is that you don't have a strong way of establishing that you're talking to the real TPM. It does raise the bar from passive interception to hardware MITM, but it doesn't absolutely solve the problem
- brokenmachine 5y agoIt would if both the TPM and the chip talking to it use keys signed by the manufacturer. Then they could both verify the public signatures.
- cryptonector 5y agoA public key for a fixedTPM+fixedParent primary on the TPM could be stored "securely" (i.e., read-only) on the host side, and then you can do key exchange with the TPM using RSA key transport or ECDH. You can also use a shared secret, but storing a secret on the host side is even harder than storing a write-once (at factory), read-only PK.
- tinus_hn 5y agoWhere does the key come from if the communication is encrypted?
- brokenmachine 5y agoThis is complete speculation, but it could be like TLS. That would make it much harder as you'd have to MITM the communication, not just sniff it. Maybe impossible to decrypt if both the TPM and the chip it's communicating with use keys signed by the manufacturer.
- cryptonector 5y agoI might ask "why speculate when you can go find out?", but in this case finding out is non-trivial. See above for an explanation though.
- brokenmachine 5y agoYour comment wasn't there when I speculated. Sounds pretty similar to TLS to me, in my non-expert opinion.
- tinus_hn 5y agoI think the difference with TLS is that, in the attacks the TPM should protect you from, the attacker controls the client and the network. I don’t really see how it is possible to defend against that. But I don’t quite understand how the TPM checks what the CPU is doing either.
- brokenmachine 5y agoDisclaimer: I'm not an expert. At all. I don't think it checks what the CPU is doing at all. It just makes software able to check if the platform is signed by the manufacturer. The way I understand it is that the keys are burned into the TPM at time of manufacture, and there is no way to extract those keys, software can only ask the TPM to encrypt/decrypt/sign/verify certain data using the keys. The TPM can then be used to verify certain operations, eg to retrieve the key for an encrypted hard drive. But it's all a trojan horse because the manufacturer is the one who controls the keys, not the user. It's "trusted" in the sense that the platform is "trusted" by the manufacturer, not the user.
- Avery3R 5y agoOn intel systems at least the "firmware" tpm is really implemented in the PCH. It'd probably still be possible to sniff the i/o lines between the cpu & pch but still way more complex than between the tpm and cpu.
- cryptonector 5y agoIt's not Windows that's the problem. It's the BMCs and BIOSes. They don't use encrypted sessions. They should.
- stefan_ 5y agoYou can combine it all in a chip like the Apple T2 and then you would have to somehow probe the silicon, which is of course impossible. (Until you discover that the chip has some critical, unfixable software vulnerability like the T2) You can also pair the chip and the CPU at the factory or on initial powerup and have them communicate encrypted from thereon. This is a bit like the iPhone 13 display having some FaceID chip on it where a replacement with a wholly new display will leave FaceID non-functioning.
- dev_tty01 5y agoIt is difficult to probe but not at all impossible. However, you can sometimes extract keys by monitoring the chip power supply current over a large number of crypto operations. Much easier than probing the chip internals. https://scholar.google.com/scholar?as_q=%22Differential+Power+Analysis%2C%22&as_occt=title&hl=en&as_sdt=0%2C31 https://scholar.google.com/scholar?as_q=%22Differential+Powe...
- XMPPwocky 5y agoprobing silicon is just hard and expensive, not impossible! - though those might be similar enough for most purposes
- R0b0t1 5y agoMachines cost tens of millions or more, renting time on them at least hundreds of thousands.