Podcast
Root Causes 333: Intel Side Channel Attack Steals Private Keys
Hosted by
Jason Soroko
Fellow
Original broadcast date
September 21, 2023
A newly revealed side channel attack can capture AES encryption keys from Intel chips. We explain this significant and powerful attack.
Podcast transcript
Lightly edited for flow and brevity.
TCTim CallanToday we want to talk about an August 2023 attack called Downfall. So tell us about Downfall.
TCTim CallanOr the sound that the chip makes.
So Intel has posted on this if you want to look at it. Really, you’re talking about registers within the affected chips that are really, a lot of thought has gone into how to not leak information within these chips and so things like Intel SGX, right, hardware based memory encryption technology, these are all things that we've heard about. I don't know if we talked about that much on this podcast, but it really is ways to try to protect from side channel attacks, a way from protecting from leakages. But the problem is that it looks like registers within these chips are giving up and what I mean by that, they are literally leaking characters, bits from these registers that allow attackers to actually determine from the leaked memory essentially AES 128 bit and 256 encryption keys.
There were demonstrations of this by the researcher, Daniel Moghimi, I believe. Forgive me if I pronounced that wrong. But, it was demonstrated that AES encryption keys were actually lifted from the chip by looking at these registers, which are giving up information and one of the reasons why they're giving up that information is because of Intel, of course, wanting to be very, very efficient in its usage and spec, you might have heard about things like speculative computing within these chips, so that the chips are actually super-duper optimized for how memory handling is happening. And unfortunately, because of this optimization within the chip, there seems to be some data leakage at the register level, allowing for this kind of an attack. And what's scary, Tim, just to put the final thought on it is, that's a lot of chips over a significant number of years and, that's why people have called it out earlier on August. And that's why we want to talk about it here.
TCTim CallanOnce that the key is leaked, we talk about a lot of these side channel attacks, and you're trying to figure out various things that the chip is doing. But once you use the side channel attack to get that key leaked, then of course, you don't even depend on that chip and that side channel attack anymore. Like once you know that, you can just plain decrypt.
TCTim CallanLike the power, just the expansiveness and the persistence of that harm is really vast. If I can use the side channel attack under specialized circumstances, and I can get that key and now I know that key, great. Now anytime, until such a time as the attacked entity realizes that this key has been stolen, which maybe they won't, then that key can continue to be used. You can come back tomorrow or in a week, or in six months, and potentially still unlock somebody's secrets.
If you want to read more about this, apparently, I wasn't at BlackHat this year, Tim, but apparently, so at the USENIX Security Symposium, August 11, and BlackHat August 9. Obviously, there's a presentation on this floating around. Intel has talked about ideas for how to mitigate. The problem is mitigating this might actually really degrade the performance of your chip. It's such a significant problem. That is why we're calling it out here on the podcast for people who are using that particular generation of chips within their computing systems, you just, you're gonna have to be aware of this.
TCTim CallanThere's nothing I can do. If I'm using one of these chips, I can't take action to protect myself from this particular attack.
TCTim CallanThis is a dynamic story for sure.
TCTim CallanGotcha. That would be the hope, right? Would be exactly that the, the, the deep thinkers at the tech vendor come up with a patch, they give it to you, and you put it on, and you can rely on the fact that they did it correctly. This isn't that simple.
TCTim CallanNow, I think there was a similar attack against AMD, Called Inception. I remember reading about this. It wasn't getting your cryptographic keys, but it was getting real sensitive information. I think they could use it to get a root password for instance. Iit sounds to me like it's a very similar attack. Is that right?
TCTim CallanSure. There you go.
TCTim CallanSure. Absolutely. And the lifted key got our attention. We were like, hey, we have to talk about this. Someone stealing your keys through a side channel attack. But if I can sit in key log, I can perhaps do all the same damage.
TCTim CallanJust if I log all of your keystrokes, I can learn all kinds of things very directly. I can learn the content that you're typing into your computer. That might be what I need to know. Yes, absolutely.
Side channel attacks, I feel like we're hearing about them more and more. Do you think this is an attack vector that's on the rise?
Side channel attacks, I feel like we're hearing about them more and more. Do you think this is an attack vector that's on the rise?
TCTim CallanPeople are seeing the work that other people are doing. So somebody says, wow, that was some good work by my peer over at this institution. I bet you I can take those ideas, and I can look into this thing and that thing.
TCTim CallanThat's what we want. That's how the white hat community should operate. That's what we want academic researchers to do. All of these things are correct functioning of the systems we have in place. That makes sense. I get that.
We're talking 6th to 11th Generation Intel Core CPUs. We are talking about probably chips counting in the billions. So not even the hundreds of millions. We’re talking billions of processors that apply to that. And that these chips are going to be used in both personal computers, enterprise computers, as well as. Tim, and here's a softball you can knock out of the park for me. It also went into a whole lot of cloud computers as well. Think about that for a moment. The problem with if this vulnerability is up in the cloud, then what happens if you're on a shared computer resource?
TCTim CallanSure. Absolutely. Then they're all like, your attack surface, just multiplied dramatically in terms of your targets. Let's call it your target surface. Everybody who is touching that processor is a potential target. Is vulnerable. And the other thing in these cloud environments is they’re also very dynamic. It’s not like machines on racks on your floor. They’re being used by one target. Part of the whole point of cloud services is that they are agile and that means that the actual footprint of clusters that I operate on changes and might change a lot. And if there's a machine sitting there and it's compromised, anybody who passes through that machine is potentially compromised.
TCTim CallanYou also don't have visibility. You don't know. Like, if you're off using a cloud service, you don't know what hardware you're on.
TCTim CallanIf someone comes to you as the CISO, and says, hey, are we subjected to this vulnerability? If you've got anything running in public cloud, or anything running in a large hosted environment. Your answer has to be I don't know.
TCTim CallanSo can I cycle out? Can I cycle out my keys? Does that help?
TCTim CallanShorten them. Absolutely. You're right. Short, short, short. I mean this could still happen, because these chips could still be in use, but at least you're reducing the time for your vulnerability. So that's a great reason to shorten your certificate lifecycles right there.
TCTim CallanWell, sure. And once upon a time, we had this concept of a green zone, right? We had a hardened perimeter and inside the perimeter, we were all safe and we've learned that we can't think that way.
TCTim CallanAnd to a degree, what you're saying feels like just the extension of that lesson to the next level.
TCTim CallanAbsolutely. And if anything, the need for them and to apply those principles and ideas rigorously, the need for that seems to be just only going up.
TCTim CallanYep. Treat everything as a potential target. Treat every environment as potentially hostile. Keep your key lifespans short. Ok. There you are.
TCTim CallanAgain, this caught our attention because a key was being stolen in particular but all of these other points we're talking about are great points. So I appreciate it, Jason.