With the first decade of the 21st century coming to a close, a look back at the past few years reminds us of the rapid development of technology, which has launched us into the information age. Innovative and imaginative engineering has expanded the electronic domain to include wireless networking, cellular communications, global positioning systems, satellite radio, and many others. All of these devices continue to advance in speed, efficiency, and complexity. Paralleling this growth is also the change in cost. As customers continue to demand a lower price, manufacturers have started to push the majority of their production overseas. This low-cost, high-volume, competitive production means that most devices that include integrated circuits will be fabricated outside of the country in which they are produced. This makes all of these devices vulnerable to an attack from potential competitors or even enemies of its designing country. So what if an adversary were to insert malicious code into a hardware design, causing it to appear as if it were operating as expected? However, in reality, the device is leaking sensitive and important information to whoever re-engineered the device. This kind of trojan is built into the hardware and can be activated unknowingly by its operator. This is what we are exploring. Thank you very much. All right. So that was a short introductory video to get us started, but the talk is a demonstration of hardware trojans. And my name is Dr. K. And the crew you see here. They ride with me. We came here. We're kind of, although we are a research group at University of Delaware, we're kind of more like a ship of pirates. So if you look at the back of our shirts, what you'll see is written there is, we take pride in our junk drawers. Crazy ideas are encouraged. We can't tell you everything, but you can still ask. You simulate it. We build it. Our mess is a sign of work in progress. And our toolbox contains more than just MATLAB. No device is safe from disassembly, and like everyone here at DEF CON, we love what we do. Yeah. All right. So actually what we do is many different things that, anything that involves making electronics. And this stuff that we're presenting here is just a part of projects we're involved in. That ranges from writing some software, firmware. We build FPGA systems. We build special devices. We build digital instrumentation, for example, for solar energy applications. What we're showing here today is kind of reverse engineering. We design our own printed circuit boards. We do custom integrated circuits, both analog and digital. And we're actually pretty good at gigabit data link design, I think so, and power conversion. Now before Ryan Hoover, who is a graduate student, and the crew will give you a demonstration, I just want to get some definitions. I want to get some definitions in place so that it's clear what we're talking about here. So how many people here have started hacking their DEF CON badge? Let's see a show of hands. Yes. All right. Good job. So what you guys are doing, that's probably, we call that hardware hacking, right? It's a creative process. You've got some piece of hardware. You're trying to figure it out, trying to make it better, trying to discover it. Now hardware trojans. That's kind of similar. But it involves malicious intent. So what you have is you have a party who is not trustable or has bad intentions. And they insert some bugs, let's say, into your hardware design that under specific conditions perform something that the user is very surprised and perhaps unpleasantly about. Examples of this could be a time bomb trojan. So let's say you have a cell, a GPS system. And on a certain important date, it stops working. Another example is data exfiltration trojan. And that would be, for example, your cell phone would somehow covertly leak or exfiltrate some secret information, like, let's say, your PIN codes or whatever. And that is the focus of our talk, is data exfiltration trojans. And we will demonstrate you some possibilities for doing data exfiltration. Why should we be all concerned about trojans? Well, I would say that the audience in this room probably not in danger, huge, of a hardware trojan because we are all hackers, right? We question everything we get, right? You give us a cell phone, we'll test it out, we'll figure it out. But we're a small part of the population, right? Ninety-nine percent of the population, they get their electronics, they get all these devices in their cars, in their refrigerators, they go to their ATM. They don't know what they're using. And increasingly, electronics is such an important role in our lives, right? I mean, we use it for storing, communicating information, factories, medical devices run on it. And of course, national security, DOD, both in this country and outside, depends on electronic devices. Now, the problem here is that manufacturing is globalized. So when you look at your cell phone and it says, made in China, well, the truth is that actually the chips inside of that cell phone could be made in Thailand. Taiwan, Korea, Singapore, United States. But the problem is they all use second and third source suppliers. So you buy a cell phone today and buy the same cell phone tomorrow. It may have the same parts but manufactured somewhere else. So the problem with that is you might not control that process. So that opens a possibility for a malicious party to insert something into your design. So let's talk about what can be changed. So there are three levels in high-tech. One is hardware that can be changed. Now, I realize the audience here is probably also very familiar with firmware and hacking firmware. So that is not shown here, but that is another way that you can change a hardware design. But from the sort of really low-level hardware perspective at the chip level, the three levels that you can do this Trojan alteration is you can do it at the HDL source code. People write code that becomes hardware. And you can insert your malicious code in there. Now, people have gotten clever in their obfuscation techniques, their obfuscation tools that will take your code, mangle it. So it's pretty hard to get in. So then what you can do is take it to the next level because people typically obfuscate blocks, but blocks still communicate in predefined ways. Then you can get in between the blocks and start watching the buses between them and attack that. And finally, the most, I would say, treacherous way would be talking to a security guard. You can actually modify the mask set. The integrated circuits are produced by making masks. And a leading microprocessor has a billion transistors. So let's say I add a few thousand transistors that will attach to some IOPort or a PLL. You wouldn't really have an easy way of finding this out. So these are the three ways. And now I'm going to give it to Ryan Hoover, who is going to show you the demonstrations. . Okay, so we decided to try and find a way to show data exfiltration Trojans without actually sending off hardware to a fab because that would be insane monetarily and time-wise. So what we decided to use is called an FPGA, which stands for Field Programmable Gate Array. . What that is is basically a device that allows us to program basically a hardware design in VHDL, which is a hardware description language. And then that is synthesized, placed, and routed for a specific FPGA. The vector is loaded in that tells it which gates to switch to give us our actual hardware design. So we're basically using an FPGA as a simulator for a real semiconductor device. . . We chose AES encryption, which is a six-year-old algorithm. It's widely available online. I think GNU has it up on the web. And so AES, the most important thing to get out of AES, obviously, is the encryption keys. So we will be leaking them out via our hardware, which is a Spartan 3E board. That's that guy right there. We have a lot of crap up here right now. . . We have a lot of crap up here. . . . . . . . . . . . . . . . . . . . . . . . . . . . . First we're tapping into the bus between the keyboard and the AES core with a trigger module. What that does is it just sits there and waits until it gets specific input. Once it's activated, it sends another signal to our transmitter module, which when it's turned on, it wakes up and it starts transmitting via that covert communication channel. It grabs the key off of the bus between the key and the AES core. The other method that we came up with is actually inserting this Trojan into the hardware description language for the AES core. Of course, you have to have the code in VHDL or Verilog in order to insert it in this manner. Now we're going to show them to you. We're going to demo them. I want to say before we do that that we have a video of all three of these demos and the little blurb you saw earlier up on our website. It's up on the screen right now if you want to jot that down. It's also on the CD that you guys all got and our slides. I'd also like to mention that after our talk, our Q&A will be located at the Harbor Hacking Village, which is Skybox 209. We'll be showing all this stuff and you guys can come talk to us. We also have a bunch of gear that we're giving away. We're giving away a free oscilloscope. We have a contest. We're giving away a bunch of other stuff. Come check us out. I'm going to switch over so you guys can see what's going on up here to a video input. The first thing we're going to show you is an optical Trojan using our Spartan board. Basically the premise of this is that the human eye can't detect changes in modulation above one kilohertz. Most devices that we have today have some kind of LED or backlight or whatever. I'm going to switch over so you guys can see what's going on up here to a video input. I'm going to switch over so you guys can see what's going on up here to a video input. If it were modulating, you wouldn't be able to see with your eye. They're usually solidly lit. If the SAR were Trojan, you wouldn't even notice it. Ray is going to show you right now. He's going to run the optical sensor over a solidly lit light. You'll hear nothing because it's not flickering at all. He's going to go ahead and activate the Trojan. You can hear modulation in the LED. It looks exactly the same as it did before. There's no real change in what we can visualize with the device. You look at that and you're thinking, okay, it's a board. How does this translate to anything that's in my life? We've got over here a Linksys router. It's a WRT54GL. Some of you guys might have those. We've actually done the same thing to the firmware on the Linksys. Steve's going to run it over the first Linksys, which is not Trojaned. You don't hear anything because they're all solidly lit. Then the one below it actually has a Trojan on it. It looks exactly the same, but it's actually transmitting Morse code. We're actually playing around with being able to spot stuff like that from far away. That is our spotting scope set up here, which we'll have up in the hardware hacking village if you guys want to check it out. We'll play around with it up there for you. Come see us afterwards for that. We're going to move on now to the thermal Trojan. We're going to actually switch the video input over to the thermal camera here so you guys can actually see what's going on. Now, the thermal Trojan operates as you would expect. We're heating up and cooling down, actually in this case, a resistor. It's one of the little guys that you guys have on your badges and is on almost every device that you have. We also have another version of this. We're not going to show you today that actually saturates the FPGA with operations so that it will heat up and cool down. We're going to switch it up as the thermal Trojan down, pulsing. When it's heated up, it's a one. When it's cooled down, it's a zero. Right now it's not doing anything. Ray is going to trigger it, and you guys are going to be able to see it right here. That's our thermal guy. We're going to switch back the video so you guys can see the last guy up here. The last is our radio Trojan. We implemented that because our board actually has a 50 megahertz clock built in, but like any electronic device, this guy has a 12 megahertz clock. That generates a square wave signal all the time. What we're actually doing is taking that square wave signal and sending it out on unused pins. An iPod or a phone has a square wave signal. It has 32 pins on its connector. You're only using about five to six, sometimes more of them, but not all of them. You could very easily modify hardware design to send out a Trojan signal on one of those pins. That's what we're going to do right here. He's going to turn on the radio here so you can hear the radio noise. Then he's going to activate the Trojan. You can hear there's not even an antenna on there. You can hear it. You can hear it. You can hear pretty clearly from that far away the signal being sent out, which is the AES encryption keys. Those are our Trojan demos. Now I'm going to hand it back to Dr. K. To wrap things up, we've shown you three demonstrations, an optical, exfiltration, technique, a thermal exfiltration, and a radio. We've also used an off-the-shelf board, a $150 development board for FPGAs, but you can see that normal devices that everybody uses, like a router, can be modified in the same way. I'd like to finish by saying that this is an emerging threat because we are more and more using electronics devices, and people not necessarily familiar with the electronics are using it. People who don't question whether it works or does something funny. Systems at risk include military systems, financial systems, but also household devices. The purpose of the work here was to educate and to demonstrate people that this threat is there. Of course, the more difficult question is, how do you protect against hardware Trojans? I'd just like to say we're continuing to work in the area of hardware security. We'll be having the Q&A. Q&A in Skybox 209, and as Ryan mentioned before, we have a number of good stuff to give away, so please visit us and check us out in 209 and Hardware Hacking Village as well. There's a lot of good stuff there, guys. Thank you very much.