Okay. I'm going to get started here in a second. Surprise. I know most of you don't know there's going to be a talk going on. So if anybody in the room is interested in analog malicious hardware, then there are plenty of seats up here. Come up here and make friends. Come learn something new potentially. Yeah. Malicious hardware. So and analog. So I should be taking a lot of people's low level buttons. So come on. Let's have a talk. It's better than waiting in line. Okay. So today I'm going to be talking about some actual research that we've done at the University of Michigan. My name is Matthew Hicks. And this research was on a team with Kaiyun Yang, Ching Dong, Todd Austin, and Dennis Sylvester. And we're going to tell you how to actually take the power of analog circuits and analog behavior and use them as a very stealthy and small attack. In digital hardware. So before we get started, some background, right? So foundations are important, right? You can see from the building here, whatever you build on a weak foundation, even if it's the strongest building in the world, is also weak. Every computing system, even our badges that we touch at the foundation of that computing system is hardware, right? So even if you say I do cloud, security, cyber, whatever, you have to trust and rely on hardware. And almost everybody here, people that aren't listening, exactly, they implicitly trust hardware. But surprise, hardware itself has bugs. And in past work I showed you how those bugs could represent security vulnerabilities themselves. And if you have somebody you don't trust that adds bugs to hardware, those bugs are very powerful because they infect the entire hardware stack. So even if you have the perfect crypto on top of this, you know, you can't do that. So you have to trust OpenSSL is made robust against everything. If you have a vulnerability in your hardware it represents a vulnerability in your software or network. And the added benefit or drawback of hardware is it's not very easy to patch. So you generally need to get FedEx on the phone and go to the hardware hacking village and take out the soldering iron because that's how you generally patch hardware. It's not as easy as software. And so I sense that I know most people probably outside of here are security centric. You've all done a great job in building fences. And I know we're going to explore how robust those fences are with the hackers in the crowd. But generally, you know, software security community has done a great job building defenses. But attackers still are motivated. Maybe it gets out script kiddies, but a large set of attackers are still motivated to attack you. They're just not going to give up, right? They need to make money themselves. So what do they do? They try to go to the hardware and go below your defenses. If your defenses are perfect, the only way to combat that is to try to rule out, to violate some of your assumptions. And software people make a lot of assumptions based upon nothing about the hardware. So we've already seen this in reality. If you can kind of squint your eyes, you can see it says root kits. You then see go down lower to malicious hypervisors, boot kits. And in the last few years, we've seen this spread of malicious hardware. So kind of in the atmosphere, we've seen this spread of malicious hardware. So kind of in the academic space, we've seen two types of attacks. So and they're all based upon how am I going to prevent my attack from being noticed? Well, one of them says, hey, listen, I know you're going to run some sort of functional verification, some testing. And I don't want my attack to actually influence behavior. So I need to hide it. How do you hide your attack? Well, you use this thing called a trigger, which is basically just a very complex state machine to basically put your, nest your attack in the dark recesses of the state space of the processor. So you can do a lot of things with this. So you have like imagine a bunch of if statements in software or something like that that makes the condition to trigger the attack very, very unlikely to be accidentally or even intentionally bumped into. So on the other hand, we see saying, well, yeah, there's some drawbacks to having this big complex trigger because it takes lots of hardware to implement it. That's a large perturbation of hardware. Well, what if my attack was always on? That would be really small and it would be stealthy against a certain set of defenses. So you have to have a lot of defenses. So before, you know, our work, which is called A2, you've seen this kind of yin and yang of hardware attacks where you're either stealthy and small but always on or you're stealthy against testing but you have this large trigger to kind of hide you. So researchers notice this and they say, hey, we're going to divide the space, too, and we're going to try to conquer each thing separately. So the defenses you see here are to visual inspection and side channeling. So you see a lot of this stuff now. Maybe not visual inspection here because you've really got a lot of stuff. We can't, you know, pump photons or ions into chips here. We don't have that kind of circuitry. But you definitely have side channel analysis. And there's some talks that I'll be attending talking about side channel analysis. Well, what do those types of defenses work well against? If you have a large perturbation in hardware, then it's going to have a large dynamic signature, like it's going to change power when it switches. Or you can even what's called de-layer the chip or fit the chip and actually see the malicious hardware. And you can only do that if you have this large perturbation in the hardware. So you're going to have a large machine, this large state machine, that's trying to hide from the other defense, which is dynamic and static analysis or verification. So dynamic and static analysis, what they do is they say, if you are always on or if it's easy to trigger your attack, I want to find the test case in a practical amount of time that triggers that malicious behavior so I can identify it and say, for whatever reason, I don't trust this chip. And so you've kind of seen this dichotomy of just divide and conquer of the space. And really what we started asking when we started this project is, is this real? Is this assumption real? That you can really just divide the space and there is no in-between? Or is there a space in the middle where you can implement an attack that is both stealthy from visual inspection and side channel analysis and doesn't require a lot of gates and hardware? So it's, you know, I mean, sorry, because it doesn't require lots of gates and hardware and it actually encodes a very complex state machine so you won't accidentally have to go through a lot of stuff to actually bump into it or a defender won't be able to find it. And so kind of a pictograph of this challenge is here you can see a state machine. This just represents an abstraction of hardware, complexity, the gates it would take to make a complex state machine. And over here, this is the ideal. This is a cell, which is kind of the primitive. When you build actually what's called ASICs, you do full custom VLSI, you're kind of playing around with transistors and the basic building block that you deal with is something called a cell. So if we can have all this expressibility, this functionality, which hides from static and dynamic analysis and express it down into something that's just as small as the most functional unit, the basic unit, basic primitive with which you build digital hardware, then we have created that something that's in that gray space that hides from visual inspection and side channel analysis and hides from dynamic and static analysis. And, you know, going even higher level, look, this is a game of where's Waldo. So we have kind of a die shot of a processor and it's pretty easy to, you know, see Waldo. And Waldo's our attack. But if you can go down to the most primitive unit, when you fit a chip, it's going to become a game of where's Waldo, where everything looks like Waldo. So everything, because your attack is expressed in the most basic unit of digital hardware, everything looks, could be an attack circuit and you have to not trust anything. So that's really the goal that we're trying to meet. All this functionality to hide our attack from dynamic and static, all this functionality to hide our attack from dynamic and static analysis in the most primitive unit of hardware, a cell. So before I get into it, some of you may not know the kind of design process of hardware. It's kind of similar to software before fabrication. So you have, you have your specification stage where you have some text of the specification in an English language or whatever language. Then you implement this specification. HDL, which is a hardware description language, the same thing like a software description language. You take a software description language, you take a hardware description language, you take that and then you want to formally slash functionally verify it. You can't formally verify everything because that's an intractable problem. And in fact, hardware complexity is drastically outpacing the complexity that formal verification tolerates. It's even getting worse. So stuff you can't formally verify, you want to functionally verify. You know, automatic test pattern generation. You kind of want to run test cases through it. So once you get this done, you say I have something which I'm confident is a correct implementation of the specification. So you pass it off and now we go into the different stages. So this is all like software. And you can see you have a binary which is similar to a netlist. But the problem is a binary you can run in every computer. A netlist, you actually need to be able to hand somebody a physical chip. So that requires some more steps. So I hand somebody this netlist and I say, hey, I don't have the skills to do this or some of these steps. I need you to actually create hardware for me. So the first thing you do is you take that hardware netlist, which is all the, all the basic blocks. You lay them out. You connect them together using metal. And you make sure everything runs time, passes timing. This is, you create a GDS2 file, which we'll see in a second, which is basically a bunch of polygons which represent metal that are wires connected together. And you go to fabricators. So TSMC is a great example. Say, okay, I actually need you to build me this. Let's say you have $100,000. Most of us can't afford to build our own. But in university we can. We hand them the GDS2 file and $100,000 and say, hey, build me a hundred of these. And they do that. And they do their own testing to make sure they didn't make mistakes. Because unlike software, when you build hardware there are variations that occur that make each hardware unique. And we'll come back to that later on. Then when the founder gets done, TSMC mails you back some chips. And you go through this kind of layers of you do your own in-house testing to try to detect faults that TSMC missed. You do your own system integration, adding this hardware to other pieces of hardware. You can do that at the hardware hacking village. And you have this other supply chain. Eventually leading to a FedEx truck and an end user getting a complete system. So this is kind of the high-level space. And we're going to focus on not the design stage, which is above the first dash line. We're going to focus on threats in this stage right here, which is the start of the supply chain or just fabrication time attacks. So let's see what you get. So you can either this is what a net list looks like. It's still just a text file. It's less human readable. But in the end, it's just a text file. So you can see what it is. And an important point is it does have meaningful names. If you go down a little lower, if you were actually to build it, place and route your design yourself, you could hand TSMC this kind of like art-looking thing here, which is just a visual representation of polygons that represent wires connected together. This is called a GDS2 file. This could be fabricated directly. And we're going to focus on this. All the attacks work in either space. We're going to focus on, well, what can this person at this stage do? And this is, without loss of generality, more complex because these are the same except for this has meaningful names. And this is literally polygons with X and Y and Z coordinates. So this is called a semantic gap. You have less information to attack the surrogate than you do here. Like, where's my privilege bit? Where is this thing I want to attack? So here comes the kind of main point of the talk. So most people in here probably haven't built malicious hardware, although it's very likely. That's done here than in the other talks I've given so far. If you do, this is kind of what it looks like. So this block of code is pseudocode for what we call a counter-based trigger. And basically the attack works like the longer I execute my processor, the more likely it is that the attack will be deployed. And so it's very simple to implement this with a counter that looks for this threshold value, one, two, three, four, five. If I'm below this threshold value or not at it, I add one to my counter. And then if, when I do that, I'm going to have a counter that's going to look like this. And then whenever I hit this value, it says do the attack. And this kind of code is run every time this RBACE signal, this is a wire and hardware, every time this toggles. And RBACE stands for rare, meaning that if I run my benchmark or defense program on here, it doesn't trigger, it doesn't call this signal to toggle. So it doesn't activate this code a lot. But the attacker can load stealthy code on the system once it's deployed that artificially creates an increased toggle rate. So that's what rare but attacker controllable event means. And we'll call this our, because it's hard to say rare but attacker controllable all the time, we just call that our victim wire. So really we're going to want to implement something that replaces this, that gives you the effect of a counter-based trigger when you attach it to some victim wire. But this takes a lot of logic. You have at least 32 bits to hold a count. You have a mux to decide. You have a counter-based trigger. You have a counter-based trigger. You have a mux to decide whether you need to add one or not and then to unleash the attack. So because it has lots of logic, it makes it more susceptible to visual inspection or side channel analysis. So what we have is this very simple operation. I mean observation that a capacitor acts as a charge accumulator or as a counter of charge. So as you see here, the red represents charge on the capacitor. There's kind of an orange dashed line in the capacitor. That's the threshold. In the area of the red line, there's a red line. That's the threshold. In the area of the green line, there's a red line. So in the analog domain, the capacitor, its voltage increases as you increase the charge on the capacitor, just like a counter. But if you take this output of this, the voltage on this capacitor, and you try to read it as a digital value, digital values only have 0 and 1. They don't have 2.7 volts. So that orange line represents where the output of the capacitor gets interpreted as a 0, then to a 1 in the digital domain. So really we operate in the analog domain, but eventually it has some digital circuit influence. So we need to convert that analog value to a digital value, and that orange line represents our threshold. So you can see here, these are almost analogous, except for the capacitor is actually more complex, because capacitors, they leak. So if you have a capacitor, you charge it up, and you don't connect it to anything, eventually it'll come back to it, and it'll have 0 volts on it. It'll lose all of its charge. Well, that's kind of a leaky bucket counter, which has a great impact for us, because that means you can get what they call spurious activity. So that's kind of a leaky bucket counter, which has a great impact for us, because that means you can get everything back into Eagle So you can get fully electric energy out of your hands. What this is actually level observations, so you put some use on your alterations. So you'll put some charge on there accidentally, and it will forget about that the longer in time you go.That's a high level observation, capacitor acts like an accumulator. So the rest of it is just how we do actually implement that to get the effect that we want. And so this is the effect that we want. We are at the top of the slide, this is kind of a black box diagram. So we have that victim wire red on that, RHAIRBUTT, ATTACKER CONTROLLE instruments, and that's in the digital space. And that wire will to toggle. And what we want to have is this black box trigger behavior, which you see here. And that works in the analog space. And then eventually it produces an output, which is analog, but will be interpreted as a digital value, which will basically deploy our attack or not. So this victim wire has some toggling here. We'll go through the steps in a second. This is our capacitor voltage. And notice there's a red line dash line here at the top, which is whenever the voltage on the capacitor goes above that line, that means our output of our trigger circuit is interpreted as a one, do attack. If it's below that line, we'll see in a second, it's generally zero, don't attack. There's a harder to see green dash line right below it. And that's actually where if you are attacking, if you say do attack, you don't actually turn off until you get the voltage on the capacitor below this line. That's called hysteresis, but it's real functionality at high levels. It gives you an attack window. So I as an attacker can run software which says, you know, pump up the charge, accumulate charge in this capacitor. And then once I know it's above that level, I don't have to keep running that code anymore. I need to run other code to give you a permanent attack. So there you can read Linux's memory, read your process structure and make modifications, you know, actually weaponizing the attack and giving it kind of higher software level meaning. And so this difference between the red line on top and the green line on the bottom is this hysteresis, which gives you that effect. And then on the output is the digital value of our trigger, which you'll see in a second. So there's kind of three important phases. So the first one is the attacker may actually kind of cause toggles or just maybe background toggles to your victim wire. And you want your attack trigger to be robust against that. So that's what we have here. There's a couple triggers. They don't happen a long time or there's space between them. And you can see charge gets accumulated on the capacitor but not enough to release the attack. But then there's the trigger. So that's what we have here. There's a couple triggers. So the trigger is not working. And then after the toggling stops because of capacitor leakage, it kind of forgets about this spurious activation. So it's like you got close but you didn't get enough. So I'm going to kind of forget about it as time goes on. And you can see the output of our trigger is still a don't attack, a zero. So in the next phase, the attacker wants it. Now the attacker runs their code on there, which wants to actually accumulate enough charge on the capacitor to deploy the attack. So in this case, they run software which creates a high enough toggle rate and for a long enough period of time to actually accumulate more than enough charge on the capacitor so that the output eventually changes from a zero to a one. So now you will deploy the attack. And we'll get to what the attack is later on. And then I don't know how many of you have heard about Heisenbugs in software, but this is like a hardware Heisenbug here. You don't want your, once you start your attack, you don't want your attack to be on in hardware all the time. You actually want it to kind of disappear because you don't want it to disappear because it makes it really hard to find. Because you don't know how you triggered the attack. And you don't know, you know, when it was triggered or for how long. So you want to kind of, you know, release the attack eventually. And so we'll take advantage again of capacitor leakage. And we'll get below that dashed green line. And eventually our attack will disable. And the, uh, this is called the retention time from when we go on to when we go off. And that's the time frame you have to modify software where you have high enough privilege to escalate, escalated privilege where you can actually take a hardware attack and make it a software level persistent attack. So the hardware attack is not persistent, but you have a retention time window to make your attack persistent from the hardware level to the software level. Now, uh, this could be the last slide, but it's great for us. It's not because we never would have got a paper out of it. You're probably thinking, well, that's, I mean, that's interesting, but just connecting a capacitor or some wire in the design doesn't seem that interesting, right? Uh, well, that's, that's, that's, that's, that's, that's, that's, that's well, let's, let's analyze that theory. So I have a capacitor and I'll connect it. And, uh, let's start out when the, when our victim wire is zero. Well, the current value is zero. We have no value, no charge in the capacitor. Everything works in this case. The problem comes. So we start, we change values. Our victim wire goes to high or to one value. And that basically starts accumulating charge very quickly on our capacitor. So quickly, in fact, that with almost instantaneously within a clock cycle, we're going to be able to, we're going to be able to trigger a single clock cycle. Your capacitor is at full charge. But our problem was we wanted this complex state machine, not an attack which was triggerable within a single clock cycle, within a single toggle of a wire. So we just can't, uh, add a simple small capacitor to the design. Now you're probably like, well, that's a small capacitor. I understand that. Small capacitors don't hold a lot of charge. But what if I had a really large capacitor? Well, one problem is we're implementing this in, uh, full custom ASIC. So you can't actually implement very large capacitors. So we're going to have to, we're going to have to, we're going to have to do this. Uh, we're talking femtoferrets. Femtoferrets. It's below nano. Uh, so it's very small. And even if you could implement a large capacitor, a large capacitor actually affects the surrounding components much more. Has large current spikes as you try to push current into that large capacitor to fill it up. So that makes it more obvious from a side channel analysis perspective. So you can't use a small capacitor. You can't directly connect a large capacitor. What can we do? Well, we thought about this and we said, well, we're going to have to, we're going to have to, we're going to do this. And we said, well, what if we, instead of having one single capacitor, what if we had two capacitors? Uh, a small, what we call unit capacitor, and then a relative, relatively larger, still femtoferrets, larger capacitor. And then we do what's called charge sharing. I'll load up charge very quickly in a small capacitor, and then I'll throw a switch, and then I'll, these, I'll connect this capacitor to this capacitor. And when you do that, capacitor's what's called share charge. They basically agree upon a common voltage. And so you see here, all this charge is on here, uh, gets shared with the larger capacitor. And because, again, the unit capacitor is relatively small compared to the main capacitor, it takes several fills of the small capacitor to eventually fill up this much relatively larger capacitor. So that's the premise of how we get the effect that we're looking for. I'm going to kind of run through it here and a little lower. So each of these, we implement this all using transistors. A capacitor, they're so small because they're just wire lengths in a design. Uh, it's not actually, you're not actually adding a physical component capacitor. You're choosing the capacitance and wire lengths. And so what we have here is that two transistors. These gates are hooked up kind of complementary to one another. This gate closes when victim wire is zero. This gate closes when victim wire is one. So they're kind of mutually exclusive. When this gate closes, it charges up this small unit capacitor. When this gate closes and this one opens, it disconnects this small capacitor. And so you connect this one capacitor from power and connects it to the other capacitor in this kind of charge sharing. And if you do this several times, toggling the victim wire, you will gradually charge it up. So let's see what that looks like. Okay. So we start out with zero and you can see the victim wire, uh, goes from one to zero, uh, on zero. Remember this unit capacitors connected to power. And so you can see it almost instantaneously fills up the charge on the unit capacitor, bringing it to VDD. Um, but again, the output of our attack is on the main capacitor. So the victim wire will toggle again. And as soon as it does, that connects the capacitors in charge sharing. And now basically they, both the capacitors agree on a much, much smaller common voltage. And so if you do this for long enough, you will eventually pump up the charge on the main capacitor high enough so that its output, its voltage in the analog domain, when interpreted in the digital domain, now is a one, do attack. And so that's how we use charge sharing to give you that ideal behavior of accumulating charge in a stepwise factoring fashion on the capacitor. So, that's kind of like the high-level attack. But that actually doesn't buy you much besides like, oh, that's an interesting thing. We actually want to demonstrate this in a real design. So what's the next step that we needed to do? Well, what's an appropriate victim wire? Remember some of the properties we had are, uh, has a, it's rare, it has a low-level common-case toggle. This is the normal branch. And you make a problem with a in the background or whatever kind of testing suite that we're going to run on it. But the attacker can control it using kind of user mode code. So we need to find wires in the design that do that. There's details in our paper which is freely available on my website, impediment to progress.com, along with all my other stuff. You can read about it. We basically reverse engineered the design and used simulations to figure out wires that were in both sets. And some of our selections are the most important one is divide by zero. That's one everybody understands. So in the processor we do, there's a flag that gets set every time you do a division by zero. x86 is a little different. And we're going to attach, that's going to be our victim wire. We also can use signed division with unsigned division. In the paper we go into multi-stage attacks. So using this as a building block, this analog trigger as a building block, and how you can connect them in different ways to kind of trade off how large your attack is for, or trigger is for how nestled in the space it is. So we're going to use division by zero. What does the code look like that triggers it? So this is my very simple academic code to do this. How I did this is I had some idea about how to use volatile to do it and I compiled it, looked at the assembly and said that's not a dense enough toggle rate to trigger our attack. And so this is what I ended up on which is kind of still high enough level in C. You can also do an inline assemble if you want. But the things to notice here is that you don't have to look at all the code going into your system. You would look at this and say oh that looks fine. It's not using any special instructions. No privileged behavior. All it has is two fundamental components. The first one is division by zero. So the division by zero takes that flag which says division by zero and moves it from a zero to a one. If you followed up by another division by zero, that flag would stay at one. So that's why we have the plus one afterwards. That plus one is an arithmetic operation. Which resets the division by zero flag. So with these two operations, divide by zero plus one, divide by zero plus one, the rest of the code is just getting that packed into enough in assembly so that we have a high enough toggle rate. But this is all we do and this doesn't have any problems. Oh yeah, questions are awesome. So you can't use C because the volatile means it'll have to read that register every time. So yeah, there's some, don't worry about this too much. I played tricks with volatile and the embedded people might know. But yeah, so I wanted an initial read of that C. I want to separate those A, B, and C off to be different registers. Because basically what I want to do, instead of writing inline assembly, I want to have the compiler not optimize my code away as having no effect. So I need the A, B, and C to look different but actually be zero. So that's what volatile does there. I want to read it once. I don't want you to read C every time. So I put a, I use C one as my intermediate which is not volatile. So it can say, oh, the compiler says, oh, I know that value is going to be the same every time. Because if you use C, yeah. So the initial was not that clever. It was in assembly. But this is kind of a high level way to do it. Okay. So with that, I implement attack. We do some reverse engineering to actually find the wires. And we have some C language which will actually trigger the attack. Well, what's this attack? What do we actually do with this? Because so far I haven't told you what it does. The asterisk means our trigger is attack agnostic. We don't actually care about the attack. We don't care what the attack is. In this case, we do something that most people can understand, which is called privilege escalation. So think if you're on X86 LAN, you run in ring three. And I want to go to ring zero or ring negative one which some of you may not even know exists. This is the attack that does it. What privilege you're executing on is stored in what's called a register. What we do is we simply take the digital interpretive version of our trigger output and reset that flip-flop. And then we run it over to the other side. And then we run it over to the flip-flop or that state that holds it. Now, why does resetting the state work? Think about it. Every time you restart your computers, it starts in the most trusted mode and then gradually deescalates privilege as you boot the system up. So we partially reset part of the hardware and there's no software to deescalate privilege so we're naturally in the most privileged state of hardware. And that's why it's this can apply to any register you want or anything really in the system. Because all systems start at the highest privilege and they deescalate privilege. And they deescalate down. All systems that I know about do that. So that's our attack. And when you have that attack, what can you do with it? You can run any instruction that you want in the system. You can read arbitrary memory. And so what I would do is I would start reading the kernel's process trucks to find my process truck and deescalate my privilege in the process truck by changing memory. And you have that retention time window to do that. So some of you from x86 land, you know, this is going to be a little different. So from here I have this. We implement this on the OR1200 which is an open source risk processor. Here is a snapshot of the instruction set specification of a page for it. And really the next question is, okay, I have my attack. I know what wire I'm attacking. I know how to trigger it. But how do I know when I can spend cycles on doing escalating my hardware attack to software instead of just trying to trigger my hardware attack? And this is called, you know, checking for success. And so we use this special instruction. It's different for different architectures. The key points are this is how we kind of read and modify privilege registers. Notice you can only do this from when you're in supervisor mode or let's say ring zero in x86. But on the OR1200, if you do this from any other lower privilege level, what happens? Nothing happens. So this is kind of a context sensitive behavior. Many processors have that. It's not just an open source thing. ARM has some of these. One thing to look for is something called read as zero. So processor designers say, hey, it's actually going to be a more efficient for us just to return a zero value if you try to read something you shouldn't be reading as opposed to giving you the actual value or giving you an exception. So what they do is they have this context sensitive behavior. When you read a register, if you don't have privilege, it's zero. If you do have privilege, maybe because of our attack, you have some non-zero value. So we'll do our attack sled and then we'll read this register. If we get anything other than zero, we go escalate our attack to the software level. And so that's what we do. Okay. There are a lot more challenges. I'm going to show you how to do this. I'm going to show you how to do this. Then I have time here today. There's a lot of low level analog because when you go at this level, lots of things leak when you kind of build a full custom ASIC and there's kind of a kind of thing we have to loop we have to do there. How do you actually find this? We describe better the reverse engineering that we did. And then I talk about multistage attacks, kind of making this a general thing. So to recap before we get to the evaluation, what we have here is we have kind of we operate on two levels. The blue boxes here in the top and the outside. We have the digital domain. And we also operate in this orange block which is what implements our capacitor in the analog domain. All the defenses that exist today for malicious hardware that don't look for like side channels, they operate in the digital domain. And when you take this design and you pop it up, try to make a digital representation of it, this behavior disappears. So you can't actually like what's called you can't actually image a chip and rebuild the digital circuit because this disappears. Now if you try to actually characterize the analog behavior there's things called spice. But anybody in here who's ever done a spice simulation knows you can't do it for a full processor number one. And if you can, you can't do it for hundreds of thousands of clock cycles that it takes. It's just too low level of information. So you know that's how we get around all the defenses. So we had the attack. We told you about finding victims and how to activate it and check for success. Well now how do we integrate that into an existing chip? So we get something that kind of looks like this and we had to find a place to put it. You would think that would be hard but unfortunately it's a two second slide. It was actually easy because all commercial chips have probably about 30 percent free space, black space in design. So inserting one primitive unit, one cell is trivial in this. You don't create it. Why do they have this for people not to know? Because routing is a very hard problem. It gets exponentially harder the more utilization you have. The tighter your area is packed with devices. So they keep the utilization fairly low below the elbow of the curve to make it tractable for tools to automatically layout your design. So that wasn't actually a problem for us. We actually built this. I forgot the actual prototype at my house but because this exists in both analog and digital domain, it's not something we can run in FPGA. Yeah, we ran simulations of it. We ran hardware simulations. But the hardware simulations can't do the analog behavior. We run analog spy simulations but again you can't simulate a whole processor. So that's simulated the analog behavior of our trigger. To put them together, there's no tool that exists for that. So we had to actually build a chip. And so this is the OR 1200 we built. You can see a couple levels of zooming in to see basically our one cell attack and amongst many other cells about 100,000 transistors worth. So we built it. And so real quickly, some experiments. So what you're seeing here, it's a histogram of wire toggle rates. So on the bottom you see how much is this sort of circuit wire toggle in relation to the clock. And then on here you see the proportion of signals that toggle at that rate. And you'll see here it's not kind of interesting because we were very pessimistic with how we implemented this. But this red highlighted bar is actually a bar. That's a bar that contains our division by zero signal. And as you can see, we even picked out, went through all of our benchmarks, we picked the most division by zero every kernel of our mathematics benchmark and just ran that alone. And that produced a toggle rate of .0002. So basically essentially a zero. This dash line tells you that's our threshold. So you have to toggle for a certain amount of time above this dash line. So move this red line above this dash line for enough time to fill up the charge in the capacitor. If you're below that red line, so this solid red line is below that dash red line, you are not keeping pace with leakage. So you don't actually end up accumulating any charge. As you can see here, we were way too pessimistic with how we built our threshold and our circuit. But this is just, this is an animation, by the way, of running our, one of our, I guess our most division heavy benchmark. And this just gives you an idea how close we are to spuriously activating our attack. The short answer is not close. Well, the next question is, well, we see here on here from the snapshot of the animation that your benchmarks, even the benchmark that gets the closest, doesn't even come close to your activating the attack. But can you activate it as an attacker? So this snapshot is running that division by zero code that I showed earlier, user mode code. And the red, solid red line is right here. And these are all division by zero and sign division related signals. And you can see it's well past that bar. So, defenders can't trigger our attack without knowing exact specifics about it. But we can load user mode code that can trigger it ourselves. Okay. So, we're going to go ahead and do a little testing. So, last little bit, I kind of lied to you about some of this stuff. This bar, I, it was kind of, I actually picked a random number where that was in previous slides. It's actually a question, where does that bar exist in real life? And those of you coming into the hardware space, every processor has a bar in a different location due to the manufacturing time variances. So, you get a little bit more metal here, a little mess, metal here. The capacitors are actually different ratios relative to each other. So, that moves you around. So, I'm going to go ahead and do a little testing. I'm going to use that bar around. So, as an attacker, I want to be able to kind of simulate where this bar is at. And why do I want to do that? Well, if I, if the bar ends up being, if I thought it was over there and it ends up being back here, well, then a benchmark could trigger the attack. And then I would slip in my attack and then every device would be obvious that this attack existed. And kind of on the other side of the spectrum, if the bar is pushed way out in toggle rate, then I can't even attack, I can't even toggle at a fast enough rate to put deposit charge in that capacitor. And so, I can never attack anything. So, we want to make our thing, make our attack, our trigger not trivially, uh, triggerable, but attacker, a knowledgeable attacker can trigger it. But we don't want to have to build a chip. Because, again, most of us don't have $100,000 to build, uh, you know, 100 chips that nobody will use. So, we want to rely on simulation. If simulation is fairly accurate, then an attacker can simulate it. So, we want to rely on simulation. If simulation is fairly accurate, then an attacker can simulate, uh, their circuit at different nodes in the space, and then they can have high trust that it will end up that way. So, what you see here, uh, on the rightmost column is our simulated value. Uh, typical corner, corners are just the operating environment and manufacturing variances. Uh, so we can see seven for the first example. And then our measure. We take 10 chips out of our 100 and we measure where that bar is at and take an average. And our average is 7.4. And so, what this kind of high-level results tell you is, you know, the attacker doesn't have to build the attack circuit to have confidence that where they think that bar is going to be at, where they think the threshold is going to be at, it's going to be really be at that threshold. In our case, uh, our threshold was, we had, none of our circuits were trivially activatable. None of them we couldn't activate. But we were still way too pessimistic, given that our benchmarks barely toggle our wire. Uh, good question. I don't actually, I don't, so, yeah, variance, you're assuming that the distribution of the distribution is normal. I think it actually is normal. Um, I would actually have to look for what the variance is. No, yeah, I think it is a normal. I think those, those process, they're natural processes and I think it is normal. Uh, is the standard different? Yeah. Um, but that's a good question. I don't know why. I don't even know if we have that in the paper, the variance of it. I was thinking the same. Um, but again, that's why I say, none of the chips we couldn't activate and none of them we could. Although, uh, the, the margin, least margin, least slack that we had was actually between the toggle rate that we could toggle and the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, the, where we're gonna, it probably that we couldn't actually activate our attack on some chips. Um, but that's a great question of what the variance was, cause it is important to know. Um, I don't think, it wasn't, for certain devices, and by the way it's device dependent, uh, certain devices have more. So, okay. There's a lot more exper- uh, there are more experiments in the paper. Uh, you can talk about it afterwards. Okay, so, that's kind of the end of my pitch. You can always ask questions afterwards. Uh, the whole point of this is, you know, where are the first issues in, in the show that you can't just divide the attack space uh trivially anymore that these kind of cross layer attacks that are both incredibly small working on no perturbation attacks uh are incredibly small and still stealthy they can get rid they can hide from static and dynamic analysis um it's con- our attack is controllable it's stealthy and uh it can currently you can only detect it uh there's no known way to detect it the only signature you have is you know side channels and so uh from an academic sense we need to probably move forward and assume that there's some bit of malice in our hardware and we need to make hardware that's robust against that malice we can't just assume that somebody's gonna invent a malicious hardware panacea detection tool that's gonna work that's what researchers have been doing I'm guilty of doing one of the first papers of that although I was on this the first paper that said that that doesn't work so I gotta I got to double dip there uh but we really need to when we build systems as hardware if you need hardware and software we need to be able to do that and engineers you really need to think what happens if I can't trust this or how do I make it so my system can still work provide value without trusting this thing here and I'm I'm looking into those areas as well um so hi little bit uh I believe in being as open as possible there's things some things we cannot share uh with this like the cells because that's proprietary um so there's some information about fabbing the chip I have to go to my github repo lots of my other paper stuff's on there if you back tick a couple times and my website for finding this paper other hardware security and other papers uh and pregnant to progress.com uh with that I can ask answer questions we can take questions offline if you want I don't really know the format but uh we have 15 minutes any public questions public questions yes sir so as an attack so the is the question as an attacker could I do more complex stitch more together more complex behavior instead of just looking for one simple event I look for multiple things things uh yeah so we we do the first we do we go towards that by showing you how to do a couple of these things together in a multiple stage attack uh I recently I've been thinking about doing a paper where I can show you how to map existing digital attacks into analog only attacks so there is there is no fundamental limitation anything you can think in a digital space uh that well anything that's been thought of in a digital space I can actually tell you how to implement that using our analog techniques the trade-off though is the more you do the larger your attack is so it might be easier to spot using visual inspection or side detection but I don't think it's going to be that great for what we're talking about but yeah we're looking towards that that's the next thing yes sir I think we need to couple detection with making it assuming that we're going to have some malice detection is still valuable for certain uh yeah I think of so my high level pitch is hardware right now is what we call monolithic so operating systems you have micro kernels you have monolithic kernels hardware is just monolithic hardware so even if you build things in modules you put it together and you fab it it's all one big monolith and I think we need to start thinking about breaking hardware itself into layers and then at the bottom of this you will have a trusted layer and then you can build on top of that so you know it's always a trusted computing base going to the bottom well you don't just stop at hardware you need to go deeper into hardware and break that apart into layers itself is what I think you need to and then yeah and in terms of how you design it and even how you fabricate it there are coming technologies in split manufacturing two and a half d three d integration technologies and I think those can all be combined and then when you divide and you say I only need to trust one hundredth of my design that makes it more amenable to formal and functional verification and you can actually spend more time on that you know but I think you really should say here's stuff I don't care about I don't need security and here's stuff I do need security and let me focus my efforts on the stuff I do need security right now it's just one big gobbledygook yeah yeah so yes ma'am what's that we're using what ah yeah so actually that's yeah I've been trying to so one observation and I think you what you're hinting towards is and I learned about this actually after we even published the paper I'm curious to know is that most manufacturers put spare cells on the hardware itself I don't know if you knew about that but that's what your ah so right now I can say I can actually say we have a zero modification attack because we don't actually don't have to add a cell most manufacturers actually put spare cells and that's when you see processor steppings what they're doing is they're taking spare cells and recoding logic in those spare cells because it saves you the cost the NRE cost of having to do an entire remask and respin it's very easy to connect things up after the fact cheap to connect things up after the fact but you know what I mean you're losing a lot of problems because the So they actually put spare cells to basically populate the entire thing when they ship it because they know, oh, we can just do a very low-level patch. Yes, we could take one of those spare cells and flip it out with our own, and we would have probably even a more stealthy attack. So does that answer your question? Yeah, we thought about it. But I didn't learn about it until afterwards. Yes, sir. I think in the future you'll see things that that question is more suitable towards. Not this, but there's a wink in there somewhere. I think there's a zero modification attack. I think that's one area I'm interested in going towards, where you get plausible deniability. Anyone else? Okay. If you have any private questions, come and see me afterwards. Otherwise, thank you all for attending. I know this was mysterious. I didn't know where I was at either. Thank you.