He can Hack a CPU With a Blowtorch?
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
I saw a presentation that you did where you were taking a blow torch to a CPU. I mean, what is that [laughter] about? >> Yeah, so that was a that was a fun one. So, I was looking at kind of a different way of exploiting CPUs where they have these things called machine check exceptions and it's like when something really really bad happens on the CPU, it'll stop everything else that it's doing and start handling a kind of an emergency handler. >> Yeah. >> And there's lots of different ways to trigger those. One way is to overheat the CPU, make it think it's about to catch on fire cuz cuz it is and then it'll start executing this code it almost never normally executes.
And it turns out there's lots of security properties of this special like privileged code in that machine check handler. >> So, in other words, you can basically hack it by like heating it up kind of thing, right? >> Exactly. You can make something unexpected happen. Maybe you can cause a bit flip in in DRAM or you can cause it to overheat or cause some sort of other catastrophic failure. And if you do that just right, if you do it very very carefully, you can cause that exception to occur right when it shouldn't occur and you can hack the CPU that way. >> That's crazy. I know you're presenting here as well today at the time of this recording and it's also very interesting concept. It's something about and you can correct me and take us on the journey. It's good to write secure code, right? I should spend the time securing my code, writing good code, but you've got this I think the point you're making is that when it goes through a compiler, a lot of that's stripped out and the actual end result is not secure even though I did all this work. Is that right?
>> Yeah, that's that's exactly right. And it's it's a little bit complicated why that why that is and it's it's sort of unsettling, right? We're we're used to looking at the source code and we think, well, if I wrote secure source code, I'm in good shape. But at the end of the day, the source code is not really what runs on the CPU, right? It's the binary produced by something else.





