Thank you. Can you hear me? Good. Who here is first time to DEF CON? Woohoo. How many of you are aspiring hackers? Aspiring hardware hackers? How many of you are hardware hacking experts? Or hacking experts? So like, all you aspiring hackers, see, experts, raise your hand. All you aspiring people, go talk to those experts. Make some connections, okay? So yeah, your homework, say hello to an expert after this talk. This is direct memory access everywhere. Kind of try to tie into the theme of access everywhere with the pun of direct memory access. Haha. I'm Joe Fitzpatrick. I have been spending probably more than ten years of time doing fun stuff with hardware. I did silicon debug and some security research for a rapidly shrinking CPU company a while back. And now I do hardware security training. And I do actually own a pair of shoes with white LEDs in them because that's the kind of work attire that you need in this industry. And Grace? Hello. Hello. I'm Grace Parrish. I am a current OSU student, Oregon State University, working on cyber security degree. And I am also currently a SOC analyst. In the last nine years before I went back to school, I was a board level repair technician and also taught industrial control systems. I should be graduating in December. And I look forward to a career in offensive security. So this is PCIE. I'm sure many of you who have opened your computers at some point or other probably recognize it. And for those of you who don't, it is a add-on card and interface to be able to add capabilities to your computer. Some examples include networking, RAID controllers, and probably the one most people are familiar with, GPUs. And you may be wondering, well, why are we talking about PCIE here? Well, so the whole revolutionary thing about PCIE is that it uses DMA. Back before DMA, direct memory access, our CPU would take data and move it from a system memory to a peripheral or possibly from a peripheral to system memory. And this took up a lot of resources. And because while the CPU was doing that, it couldn't do any other processing. And so we decided maybe instead we should have the CPU ask for memory to be moved or for data to be moved from the peripheral to system memory and vice versa. And this sped things up significantly because not only can we have a controller that's probably fast to do the moving, the CPU can continue to do whatever other processing it needs to do in the meantime. And so PCIE is a great way to do that . You may be wondering, well, why is there a talk about this? Well, that's fine for a CPU to be able to or for a device to be able to move data around arbitrarily to and from memory if you trust the device. But what if the device isn't trustable? What if it's malicious ? Well, now the device has arbitrary read and write to the entirety of system memory. Now the first kind of exploration into this was the Tribble made by Joe Grand back in 2003. And this is actually the predecessor to PCIE, just PCI. This one's not extended. And you may notice we have a card, again it's PCI, and then from that card we have a cable going off the screen. Well, what that is, is actually it's going to another computer and that computer can use the cable and the card to arbitrarily read and write to memory on the victim machine. Now, this isn't particularly, you know, easy to go unnoticed. It's kind of obvious. Which brings us to Firewire. Firewire is a cable that is used to move data from one device to another. And it does it pretty fast. I'm sure you all could probably guess why. DMA. And so this cable was used primarily for cameras and used a lot in Macs. But now it's used for cameras . And now suddenly we have DMA outside of the case. So instead of having to like tear open a case and put it in a card and a cable going out, we can instead just walk up with a computer and a cable, plug it in and perform a DMA attack all with parts completely off the shelf . Cool. I got to do this slide because I'm the pro. So this is a tale of epic procrastination. Because this spans over a decade at this point. Way back in 2014 I presented here at DEF CON. It was my first time at DEF CON presenting about slot screamer which was a PC express device that did DMA attacks. Sounds familiar, huh? And a couple years later Ulf Frisk did some amazing work and I basically got a card that was mostly off the shelf. Changed a few registers and did a cool demo. Ulf then took that and turned it into this incredible suite of tools that will let you go and own any operating system using the same hardware but a bit more configuration and a bit more software. So it was aware of like operating system structures in memory. It could go and modify them, inject processes, get files. It was pretty amazing. Far more than I had the patience to ever do. Yeah, attention span, procrastination. Anyway, then as a follow on there was an FPGA version. So using a starting with a Xilinx reference board. You could basically use an FPGA to overcome some of the limitations that Slot Screamer had such as 32 bit addressing. And actually past that there were a couple of other projects. Thunderclap from University of Cambridge put together a tiny little like 3 or 4 thousand dollar board that they used to go and poke at some Thunderbolt and IOMMU issues. Thunderspy in 2020. So yeah, there's been a steady progression of stuff like this and I've been keeping my eyes on it and perhaps, you know, meaning to do a lot of work and never actually getting around to it. But luckily other people were getting some of it done too, which is even better. As we're going to go through though, we're going to talk a little bit about threat modeling. Who likes threat modeling? I used to, I used to joke about like armchair hacking. It's where you just like sit and think about things and like throw darts at the wall. And then I realized if you want to build hours, you just call it threat modeling. So four question threat model that Adam Shostak's been using is pretty cool. It's way less structured than a lot of the other things but it actually kind of does a good job of getting straight to the important stuff. So basically what are we working on? We're going to go through a couple different aspects of PCI express. What can go wrong? We've seen some examples of that already. We can use that to inform our answers or we can kind of speculate. What are we going to do about it? Do we fix it? Do we just tell people not to do it? Like what's the solution? And then did we do a good job is kind of a good follow up because you know if we're not doing a good job why are we wasting our time doing this armchair hacking when we could be like taking a nap or going on vacation. So for PCI express what's the threat model? What are we working on? We're working on high speed interconnects. We need a way to connect devices in a system very quickly. What can go wrong? Some malicious devices, errant devices, devices that get programmed with malicious firmware or something like that. What are we going to do about it? Basically the decision was just keep it inside the case. Oh well the trust barrier is the case of the computer. We're going to have an intrusion alarm that like lights a light up or something or tells the BIOS something happened if you open the case. Which maybe was fine 20 years ago. So did we do a good job? Maybe. Based on the threats at the time if we kept it inside the case we probably did an okay job. So yeah, grace. So now you may be wondering well what are the steps of attacking PCI D . So first you're going to connect your hardware. Then the computer is going to enumerate that hardware. Finally then the device is going to enable bus master. And then read and write memory. And then finally you get to present a talk at DEF CON. So connecting hardware. So here are some examples of various hardware. You may notice that PCI E comes in various shapes and sizes. There's 1X, 4X, 8X, 16X and even some interfaces that you may not recognize or you may not realize is PCI E such as M.2. You may also realize or notice that there are USB 3.0 ports on many of these cards. So fun fact, those are not actually USB. One of the things about making implants for machines is sometimes you don't have the space that you want. Or the space is elsewhere in the machine. So what that actually is, is it is a port that connects to a cable that will then connect to our actual implant. So it may look like USB. That's because it's the port reused. But it is actually PCI E over a USB cable. So after we've connected some hardware, now we have to get into enumeration. So the root complex enumerates buses. And I'm sorry, but the lines connecting the buses aren't super visible on the dark background. But I will try to illustrate where I am talking about. So the first bus or the 0th bus is from the root complex on the left to the switch. And that's going to be bus 0. Then the switch also has a bus going from the switch back to the root complex. That's 1. Then from the switch to the left PCI E end point, that's 2. From the switch to the diagonal PCI E component, that's 3. From the switch to the legacy end point, that's 4. And so far we've been going depth first search. And that's how PCI E is enumerated. So next we're going to go from the root complex at the center to the PCI E end point. And that's going to be 4. 5. And then from the root complex on the right to the PCI E bridge, that's going to be 6. And then it's really hard to see, PCI bridge, and then it's really hard to see, there is actually a PCI E bus down below the bridge. And that would be 7. And the root complex connects all of these end points to the memory so that the devices can write directly to the memory. Here is an example of LSPCI output showing all of the various devices enumerated. Do you want to help me with like a little ad hoc hack right here? Yeah? So I'm listening to Micah Flee's talk across the way because I can hear it. And I bet if we all yelled like, great talk Micah, he would hear us. So you want to help me with that? So on three, great talk Micah. Ready? One, two, three. Great talk Micah! I don't know if he heard that. But back on topic, you came for PCI Express, didn't you? This is why I procrastinate a lot. I get distracted. So we want to read and write memory. We get to the point where we've got transaction level packets. So TLPs, these are the things that we get to the point, hooked all the wires up, we enumerated, we know who's who, and we just start sending these packets back and forth. The first group of them are about memory. We want to read memory and we want to write memory, which does basically what you expect, reading and writing memory. Configuration read and message requests are our special type of PCI Express transactions. We're not as interested in those. They're not used nearly as much as the memory read and write, especially when we're doing DMA attacks. And last we've got completions. These are the responses. So when you do a read, your response is a completion with data. So that's all complicated. You don't want to sit there writing TLPs one at a time. That's what's great about PCI Leach is it kind of does all that work for you. You want to read a certain block of memory, it does the TLPs, sends them to the hardware, whether it's a slot screamer or an FPGA, which goes and grabs memory, gives it back to you, and it does stuff with it. It parses tables, does whatever it needs to find processes and memory. It's pretty cool. So I'm going to skip over this example based on time. First example I had was dumping memory where you basically plug this card in and dump all of memory. So you grab 4 gigabytes of memory and whoop-de-doo, you've got a memory image. You can go and look for cool stuff. I'm going to show this next one though. This is the lock screen bypass. So this is using an older piece of hardware. This is using slot screamer. You plug it in the system and this is a Wi-Fi router that happens to have PCI Express. It's a mini PCIe slot. We hook it up over USB to this computer. We've got a console as well. So on the console we're going to try and log into this thing and actually we're already logged in, but we want to look at a file. Let's say we want to check the shadow file. Come on. So shadow file is owned by root. I'm not supposed to be able to read it. And if I go and cat it, I get my permission denied. So I'll go over and run my little script, which is going to go in the other window. This script is going to talk to that PCI Express device and tell it, hey, go find this address in memory, patch it and see what happens. So we found our device. It's this net chip technology board. We patch it, patch the generic permission function in Linux. That's what checks the permission on file accesses. That little thing over there, read and wrote to the memory for the CPU. And if we go back and we try and cat Etsy shadow, it should work. And it works. There we go. Yay. Okay. So we can also unpatch it and, you know, make it go back to normal. But we're going to call it done. Is this you or me? Okay. So key take away, PCI Express is permissive by design. And that demo isn't anything different than what we did 10 years ago. So let's talk about what's changed since then. So there's been a lot more approaches and ideas behind what to do. So here's my DMA attacks, DMA attack taxonomy. I just made this up. There's tethered attacks, there's drive by attacks and there are embedded attacks. So a tethered attack looks kind of like this. We've got the system on the left, that's our target system. We see there's a cable running over to the thing on the right. And that is the attack device. That's actually a Xilinx FPGA board. And attached to it on the far right is a little blue board that's a FTDI high speed IO board. And you can barely see there's a little itty bitty, there's a cursor there, a little bitty thing over there, that little USB cable, that connects to the computer that actually does all the real work. So you're not going to sneak up to someone's laptop and do this to it. This is, it's slotted into a machine , you've got a lot of hardware, it's kind of a pain in the butt. So that's a tethered attack . Now a drive by attack would be something like you just walk up to the system, plug something in and do your whole thing. And so what we've got here is we've got an express card reader , thunderbolt to express card. So you plug this into a thunderbolt port, you've got an express card. In the express card reader you have an express card to mini PCI adapter and in the mini PCI adapter slot you have one of the old slot screamer boards. And this can do the same thing, right? So if you don't have any thunderbolt protections turned on, which we'll talk about in a second, then you could just like walk up to a system, plug it in and do some DMA. And last we've got embedded type attacks. And this is where we, you know, actually like stick the thing inside the system, close it up and leave it there for a while. So this is Pico DMA, which is a project of a few, from a few years ago, I believe 2019. And what they used is they used that board on top, which is called Pico EVB. It was a little Xilinx development board. And they paired it up with these Pycom modules, which let them do either wireless, you know, Bluetooth or 4G connectivity to this device. And they could package it all inside the case of a laptop and, you know, no one would be the wiser. You'd be surprised, you know, how many of you have opened up your laptop and looked inside? How many of you know what every one of those chips does in there? Not many. I don't. So like, it's pretty, pretty, pretty interesting what you can cram in those places. Luckily, things are getting smaller, so it's harder to, like, hide stuff like this, but whatever. So this is an embedded kind of attack. So, you know, here's my little chart. If it's quick access, it's a hot plug, it's short term, you're right, that's a drive-by attack. If we're sticking it in there, we're leaving it there for a long time, we're reboot, persisting over reboots, you know, that's an embedded, everything else is kind of like in between those tether attacks. They're a little more complicated. So let's, let's kind of change gears a little bit. Let's talk about, like, the multi-tenant threat model. So this is like the cloud provider situation. So we've got a lot of cloud providers that want to give, uh, access to computers. Some of them want to, like , give you bare metal, some of them want to give you VMs. Some of those VMs, they want to have FPGAs or GPUs attached to them, which are PCI Express attached devices. So, like, there's some, there's some things to worry about. So what, what are we working on? We're working on making money by sharing hardware. Okay? It's pretty much the, the, the threat, like, their objective, right? What can go wrong? Hardware assisted tenant hopping. So if you go and get a, a VM on a system with a GPU and you can do something with that GPU to access another tenant on the same system, that would be bad. So what are we going to do about it? We're going to use an IOMMU to go and protect devices from each other. An IOMMU, memory management unit. Okay? Did we go to a job? Um, it kind of works. So, Grace, you want to tell us about that? Sure. So, um, in order to understand IOMMU, you first have to understand kind of what the problem IOMMU is trying to solve. So, um, as Joe just said, we're trying to prevent, uh, crossing, uh, boundaries, um, using hardware. And so, uh, how we originally did this is we used a, um, our virtual machine, uh, emulated a device. And so instead of our virtual machine just being able to talk directly to that device, um, it had a driver instead for a virtual device, uh, provided by the virtual machine. Then the virtual machine has to take time to process, or the, the hypervisor has to take time to process that device, um, emulating it. And then it itself has to have a driver for the actual hardware. That's a lot of processing. Um, so instead, uh, what IOMMU allows us to do is our hypervisor actually uses the IOMMU to remap hardware, um, so that the hardware just appears directly in the virtual machine's memory. Um, and this makes things a lot faster. The virtual machine can just use the normal, uh, device driver and it can just talk directly to the hardware. Um, and one of the things that's kind of a byproduct of this is, um, because the IOMMU has to map devices to various address spaces, um, that device, those devices can't just arbitrarily read and write to memory outside of the address that it was written to. Someone keeps moving this microphone up too high. Um, so take away from that, like, the mitigations exist. There is features built into CPUs for nearly 20 years that can let us go and protect hardware devices from our system, our system from hardware devices and hardware devices from each other. Um, so, of course, you know, once we have something figured out, we always kind of make it harder. So let's talk about Thunderbolt for a minute. Um, so Thunderbolt threat model, what are we working on? We want high speed peripherals, okay? We want them outside the case, you want to plug them in, you use them and then leave them at home or take them with us and bring them to another computer, like a high speed drive or, uh, data capture devices. Um, what can go wrong? Malicious Thunderbolt devices, okay? That's kind of like the answer to all of the what can go wrong in this talk. Um, what are we going to do about it? Well, at this point, we do actually a pretty good job of, uh, authenticating and isolating devices. Um, and did we do a job? It took time, but, like, we eventually got there. So there are mitigations, right? Thunderbolt was released in 2011, right? That's a long time ago. Um, how many of you were born in 2011? Okay, most, uh, anyway, um, and before the IOMU's existed, even before then, um, Mac OS 10.8.2 was pretty quick to, uh, have, uh, basically built in support for the IOMU to protect Thunderbolt devices. Of course, like, Macs were the only computers that had Thunderbolt devices for a while, so maybe that's why. Um, but eventually Windows 10 8, build 1802 got support for using IOMU and their kernel DMA protection, uh, in 2018, uh, a scant seven years later. Um, and even Linux got in on the action. So in Linux kernel five in 2019, uh, eight years after Thunderbolt was released, um, they also had some of these protections built in. Now, they're not perfect. I'm sure there are issues in them, but the fact is, like, it was eight years before they existed at all. Um, so my takeaway from that is, like, Thunderbolt got fixed eventually, right? I actually, when I, uh, yeah, I've been working on this for a long time, so like, I was like, wait, okay, so by now I'm sure that all these protections have been built into the operating systems and I get, I check, I'm like, oh, wait, no. Uh, anyway, so eventually got fixed. So Thunderbolt isn't the easy way to just plug in and do a drive by attack anymore. Grace? So, um, you may be thinking now that, uh, Thunderbolt got fixed, um, how are we going to do drive by DMA attacks? Well, um, DMA finds a way. Who here by show of hands recognizes this port? If you are thinking that is display ports, you are wrong. That is in fact, Oculink. Um, so what is Oculink? Oculink is a, um, interface that we came up with because we wanted to be able to attach our GPUs to our laptops. Um, now you may be thinking, wait, we just finished, we just fixed Thunderbolt. Why aren't we using Thunderbolt? Um, well, Thunderbolt, um, while it is more secure, it's also, um, have, um, Thunderbolt has, uh, quite a bit of overhead. Um, and also it's significantly more expensive. Um, so what we decided to do instead was, uh, once again, we brought PCIe outside of the case. So Oculink is basically just PCIe over a cable. Um, amusingly a cable, uh, from server, uh, storage. So I don't think that's really meant to be plugged and unplugged as many times as they're thinking it will be for connecting a GPU to a mobile device. But I digress. Um, and this is actually really kind of cool. Uh, we've taken this thing that's not supposed to be used this way and we've decided to use it. Um, and isn't that what hacking is? So some more armchair hacking. So what are we working on? We want, um, high speed peripherals again, just like Thunderbolt. Same thing. What can go wrong? Same thing. We can have malicious devices. Anybody want to guess what we're going to do about it? Probably, yeah, nothing. Only, only use it in secured locations. Like, yeah. Who here uses any GPU? So when you, like, you, you leave your Oculink GPU at home, right? And then you take your laptop with you, which has the Oculink port on it wherever you go. Like, but you never leave it out of your sight, right? So anyway, did we do a good job? Uh, not really. So now we got, um, Oculink, right? Let's, let's go and use it. Let's, let's do it. Let's figure out a new drive by attack for a cool demo for, for the talk. Um, and I, you know, I like to do like junk hacking and I kind of feel like crypto's junk hacking because it's all crap. Um, and so, uh, MetaMask is, uh, so I, I got some help. So is Dean here? Thanks Dean. Dean helped me out with this demo. Um, like, so we've got this device. Um, what can we do? Can we like go and mess with MetaMask somehow if we have the ability to read and write all of memory? And of course the answer is yes. Is it playing? Here we go. So we got MetaMask running and you can see here we want to go and send some money. Um, and so some just random name that we choose, send, send some random person a dollar of USDC. Um, and so this is all on a computer. This is a browser extension inside of a browser, inside of a sandbox and all that crap inside of this machine. Um, and we're about to go send it, but let's go like run this thing. You see who it's going to, right? Well, that's just stored in memory. And so like, let's just send it to this other address instead. I mean, we just put a bunch of sixes in there to like make it a little easier to make sure we got it working wrong. But anyway, so let's cancel that. We still have this, this process running in the background continuously going and doing a DMA scan for the right string. But if we go and we get another transaction, we want to send some magic money, some Chuck E. Cheese coins over to some dude. Um, and yeah, who cares how many gallons of fuel we took, but whatever. So let's boil, boil a pot full of frogs and continue and it's running. And so you'll see, it'll take a moment, but as soon as we find it in memory, bam, it's overwritten. But oh, wow, what was that? That's okay, we keep looking, we keep looking. Memory is a pretty crazy how fragmented it is and how like when you, when you free and renew stuff, like it shows up all over the place. So it's not easy to go and find out exactly where this is without scanning through all of memory. Anyway, we never clicked continue, we never clicked confirm, but like we were able to pretty much, you know, change that address in the time between setting up the transaction and going to go confirm and send that, that $1 to some stranger whose address ends in 6s. So, I thought that was kind of cool. So Dean actually threw together this, this, this framework to help me put together this demo, um, passive. So, um, you've seen the movie Inception, right? There's a tool, there's a, there's a tool called Inception for DMA access and firewire access and so, uh, Dean thought that passive peripheral attack simulation introspection vehicle would be a good way to do this. So, um, disclosure, that was not on hardware, that was in a VM, um, because it's a lot easier. Um, and, but the reality is, you know, whether you have a VM or whether you have a hardware attached device, we're still doing memory access and we'll talk a little bit more about that in just a moment. Um, but first, let's like diverge into some game cheating stuff. Okay, so, first off, show of hands, who here cheats at games? Why? Um, and, and for that matter, uh, how do you, how do you have a time to play video games? See, that's what I was thinking, because, probably because you cheat. Uh, yeah, but, uh, who, who, who pays other people to develop cheats for them? Uh, yeah, that's like, if you're gonna do, if you're gonna cheat, like if you develop yourself, I think it's cool, but like, I don't know, I think paying for cheats is kinda cheap, but, actually it's really expensive, never mind. Grace, go ahead. But yeah, so, um, I don't really understand why people cheat. Uh, developing cheats, that I can understand, that sounds like a pretty cool puzzle, but actually using that cheat to, um, not play a game, kinda defeats the purpose in my opinion. But, I digress. Um, so, here is a website that sells game cheats. So, if you notice, on the left, we have, uh, just a cheat. And I know it's tiny text, but this is, uh, this is for one month. And even tinier text, it does not include the hardware you actually need to run the cheat, nor the firmware. In the center, we have the basic package for a measly $720. And what this includes is the cheat for, again, for only one month. Uh, DMA card, um, and firmware for that card. And then, finally, on the right, we have something more for yet another ridiculous amount of money. Um, again, only for one month. Um, and the thing about this is, is it's actually all built off of the stuff that people have developed and open sourced that we have talked about. Things like, uh, slot screamer, PCI leach. They are basically repackaging this and selling it to you when you have it, basically, for free. So, yeah, it's always interesting to see what people will sell on the internet. Um, and, you know, like the whole monthly service fee, it seems silly, but, like, it's a, it's a, it's an arms race. So, between the game developers and the cheaters, like, so, it actually is, you need to come up with new ways of deceiving the game to thinking that, like, you don't have a malicious device in. So, for example, it's like this PCI, PCI DMA, NVME, uh, thingy, is gonna basically, like, look like an NVME so that your anti-cheat doesn't say, oh, you've got a cheat device in there. It says, oh, you just got an NVME, a hard drive, and that's what you're running from. Um, so, it's, it's pretty crafty, the levels of, uh, of, uh, stuff going into this . Um, a lot of them are based on, uh, PCI leach. Um, some of them ship with PCI leach generic firmware. Some of them customize it a bit, um, which is good, but, like, the number of people who actually go back and support PCI leach. So, you'll see over there that, like, a few of these, uh, Screamers, uh, Squirrel, the ZDMA and LeetDMA, they're all project sponsors of PCI leach. So, if you do wanna go and mess around with PCI leach, um, that's the way you should go. Um, one of the key takeaways, though, is that changing the form factor is changing the threat model, right? So, you know, changing to, um, this game situation, like, you're, we, we have the owner of the PC being the person, so even, even if we had stuff inside the case, it's not really the same, because, you know, you're the owner of the machine, you can get inside the case. Um, another difference of, of changing the form factor is, uh, maybe going to a different , uh, type of device. And so, Grace? Okay. Um, so, how many of you have seen these before ? So, we have, uh, CF Express on the left and ST Express on the right. Um, these are both relatively new, um, devices, uh, storage devices. And, um, you may recognize them from some, uh, devices that you own, uh, especially if, no. Yeah. Um, who, who has, who has used a CF Express device? Okay. Who, who has used an ST Express device? Okay. So, I don't know if you know what they are, though. Um, and so, basically, um, uh, you probably have seen these. The, the interesting thing about these, though, is, um, once again, they are PCIe, um, and support DMA. Uh, so, on the right, on the ST Express, you may notice, uh, we have a few extra contacts, and what those are is actually, uh, PCIe lanes, uh, just like you would find on, like, a network card or M.2 device. Yeah. And so, uh, what threat model are they working with? Um, so, we know, uh, they are working with high speed small storage. Um, what could possibly go wrong? Well, I think you may have caught on to a theme at this point. It's malicious devices. And what are we going to do about it? We, of course, being the manufacturers of devices that use these. We don't actually know. We're kind of, they kind of don't invite us to other threat modeling, uh, meetings. Um, so, did they do a good job of, of preventing attacks? We also don't know yet. Um, and so, one of the things is, uh, so, how many of you have, like, tried attacking any of these devices? Few. Um, so, you may be wondering why is an Xbox up there? Well, actually, that aforementioned, uh, CF Express card is the exact same card that they're using for the memory expansion cards. Um, it's just packaged in a nice piece of plastic. Um, also, we have the Nikon, uh, which also uses that, uh, CF Express, uh, card. And then finally, this one is really new. Uh, this is the Switch 2, uh, just came out a little bit ago. And it uses SD Express. Uh, and so, an example of SD Express. Sure. So, so, this is still, uh, you know, in research. Um, so, CF Express, right? It's a device. It has NVMe. It has, um, what's it called? PCI Express. And so, what we can basically do is, uh, instead of plugging our, you know, excuse us. So, this is a card reader for, uh, XQD, which is pinout compatible and also PCI Express compatible with, uh, SD Express. So, the reader is pretty much not, not much to it. Uh, it basically is a, wires it up to, uh, PCI Express. Um, but if we wanted to, we could go and do something stupid like this. And we can hook up our, uh, camera with a adapter, which goes and takes the SD Express outside to an M.2 slot, where if we pop, put in our malicious device. And you can see on the screen, it says, uh, card not currently supported. Um, so, it does, uh, it does check the device. It does enumerate. It does check to see if it's, uh, the right type of NVMe device. Um, and then there's probably some magic that I need to be getting figured out to go and actually let it stay enumerated and not get the, throw the error up and disconnect. Um, once we've got that, like, we'll have to see what this little SOC on here actually does in terms of, you know, I'm not sure that camera has an IOMU. This is a seven-year-old camera, but, you know, you can be surprised. Um, so it'll be interesting to see what, what we can get off of the device that way. Um, so we've got to switch to, switch to is like the first device that actually uses SD Express, which is pretty cool. Um, I actually grabbed some SD Express cards a while ago and some readers. Um, I was not really surprised to see that most, uh, these are two different SD Express readers. One's, uh, Sabrent and one is, uh, uh, SanDisk. Um, they're using the exact same chips. The one on the left is the green board has two of these little, uh, SD Express, uh, controller chips from Realtek. The one on the right has the same exact chip, but only one. Um, and these chips actually hook up to this other chip, which is, you know, billed as a multi -purpose one, but, uh, basically it's a, it's an NVIB and a USB adapter, right? So we take SD Express and turn it into NVME. We take the NVME and turn it into USB and we plug it into our system and we store it, mount it as a mass storage device. So, um, you know, Switch, brand new. I literally just got one last week. Who wants to see a Switch 2 jailbreak? Yeah? You want to see one? We only, we only have seven minutes left though. So do you want to see it? Yeah, so do I. So, um, sorry. Um, so the takeaway here is, uh, PCI Express is pervasive. I literally got the Switch the day I left to come to Las Vegas. So, like, haven't had a chance to poke around too much, but maybe some of you will. Um, there are some, um, boards you can get. A couple folks have already made the adapter boards to break out the Switch into the NVME pieces. You can get some adapters. Um, so hopefully in time we'll get all the rigging hooked up and maybe we can poke at it some more. So we're going to kind of scramble through. Uh, let's resume this continuing tale of epic procrastination. Um, I procrastinate and put it off all the way to the end of the presentation. Um, so 2021, we finally got together a schematic for Erebus. Uh, we got PCBs put together in 2022 and had a panic because suddenly you couldn't buy the chips that we needed to put the thing together. So we actually had to do a redesign of some of the PCB to replace components that were discontinued. Uh, we, uh, uh, uh, you know, uh, bought, you know, we're, we're, we're, we're chip preppers. So we, we bought a lot of compatible chips to hopefully last us for a long time. So we wouldn't be blocked by not having chips. Uh, it would have been fine though because we were blocked by our own procrastination. We finally got the test jig together in 2023. And once we had the test jig together, we assembled the boards. Um, and now it's time to profit, right? Um, we're getting there. Um, so this is Erebus. Um, how many of you came here thinking you're gonna, I'd show off like a completely working functioning Erebus board. Yeah, I apologize. I'm a, I'm a procrastinator. Um, but what I do want to go is talk about why Erebus exists and what we put into like make designing it and what for. Um, so it does power on, it does work. We don't have PCI express fully working yet. We have some reset issues that we need to deal with. Um, how do I get to escape? Um, the objective here is we've got a, a lot of ECP5 FPGA. Um, we've got DRAM built into it. I'm not showing this picture on the backside. We've got a spot to put an SD card. So this thing fits where your wifi module might go and you can pop it in a system and leave it there. If you got a two terabyte SD card in there, you can do a lot of memory dumps on a system before you go and retrieve it. So this is like the embedded, like, uh, DMA attack device, uh, dream once it works. Um, you can see we've got some test code running flashing lights. Um, one of the things we wanted to address is that like a lot of devices, this is from PCI leach's repository. A lot of these devices are using Xilinx's proprietary IP cores for PCI express. Um, one of the issues with that is licensing. They're actually not probably licensed properly and that shouldn't be sold the way they are. Um, but more importantly, like it limits what you can do in terms of messing with the TLP level stuff. A couple of the, the, the, the PCI leach devices do let you get that level of control, but not all of them. So we wanted a fully open tool chain, fully open implementation that we could use PCI express to do all the stuff we wanted to do. Um, you can see in the upper left, we, we're, we're planning on putting this on crowd supply. Um, I'm working with, uh, Peter Eszentemski who has done, uh, the icebreaker, um, at Glasgow and a few other hardware tools. So we're trying to make this actually a tool that is available and lasts and doesn't, you know, contain pirated IP and all this stuff. Um, but we'll see how that goes. Um, why Erebus? My objective is platform security. Um, I don't care about game cheaters in, except for maybe as customers to buy a bunch of these boards, right? To fund the development, to actually get IOMUs used properly. Cause right now they're not. Um, so you want to, you want me to like breeze through? Go ahead. Okay. So yeah, you see there's a bunch of PCI express devices here. It's a lot more diverse group of devices than we had on the first slide because there's a whole lot of stuff that is PCI express these days that, that like, it's basically the standard interface anymore. It's kind of like if USB isn't cutting it for you, it's going to be PCIe. Takeaways, right? It's permissive by design. Mitigations exist. We can use them. It took time, but finally Thunderbolt is getting some of that stuff fixed. Um, these form factor changes do affect your threat model. Um, but again, PCV, PCIe is pervasive. Um, progress has been made, but there's still plenty more to do. The fact that I've been procrastinating on this for 10 years means that all of you can probably make more progress on this than I can. So if you're interested in like poking at this stuff, the tools are available and like the, the information's available. Like let's try and work together to make this happen because I'm not doing a good job of getting it moving. Um, there is the forecasting question threat model we talked about a bit and another, another shameless plug. Um, I've been working with Adam Shostak and Eric Abinchik to kind of come up with a, a more formulated model for applying threat modeling to hardware. Uh, we'll hopefully present that at sector, but enough shameless plugs. There's Arabis. Um, what did I forget to say? Stickers. I've got stickers. Oh yeah. Thanks. Um, there's a lot of people who helped with the support and the tooling of getting this up and running. I've been working on Arabis with me trying to get it to work. Um, there's a lot of prior art inspiration that led me into this in the first place and led us to kind of like choose the things that we did. Um, so thanks to all these folks and more. Um, there's some links on there and that is the last slide of our presentation. I'll go back to the links. Thank you. And thank you, Grace. Questions? Did you like that switch 2 thing? That was cool. Hardware to break out PCI for what platform? For the switch? Um, I will put those links on the, um, the direct memory access everywhere, uh, repository once I put something on there. Hold on, there's a question at the mic. Uh, that was great. You said you wanted to motivate platform security. What would you like to see out of the platforms? I would like to see IOMMUs properly configured. I would like to see users actually having control about how they're configured. I would like to see BIOSes that properly, uh, allocate domains to different devices as opposed to just throwing everything into a single domain. Um, it's a, it's a lot to wish for, but you know, when we have the real threat of stuff like this happening, um, that's what drives manufacturers to fix this stuff. Thanks. Okay. More questions out there. Thank you.