WEBVTT

00:00.000 --> 00:01.120
Thank you.

00:01.480 --> 00:02.740
Can you hear me?

00:03.300 --> 00:04.420
Good.

00:04.620 --> 00:07.660
Who here is first time to DEF CON?

00:08.340 --> 00:09.320
Woohoo.

00:09.580 --> 00:12.720
How many of you are aspiring hackers?

00:14.700 --> 00:16.540
Aspiring hardware hackers?

00:17.120 --> 00:19.880
How many of you are hardware hacking experts?

00:21.140 --> 00:22.100
Or hacking experts?

00:22.100 --> 00:25.980
So like, all you aspiring hackers, see, experts, raise your hand.

00:26.320 --> 00:28.940
All you aspiring people, go talk to those experts.

00:29.320 --> 00:31.240
Make some connections, okay?

00:31.920 --> 00:35.180
So yeah, your homework, say hello to an expert after this talk.

00:35.600 --> 00:38.380
This is direct memory access everywhere.

00:38.500 --> 00:44.420
Kind of try to tie into the theme of access everywhere with the pun of direct memory access.

00:44.500 --> 00:45.220
Haha.

00:45.780 --> 00:47.340
I'm Joe Fitzpatrick.

00:47.340 --> 00:52.480
I have been spending probably more than ten years of time doing fun stuff with hardware.

00:52.780 --> 00:59.940
I did silicon debug and some security research for a rapidly shrinking CPU company a while back.

01:00.420 --> 01:03.360
And now I do hardware security training.

01:04.340 --> 01:11.980
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.

01:12.020 --> 01:12.920
And Grace?

01:15.480 --> 01:16.600
Hello.

01:16.600 --> 01:17.800
Hello.

01:18.340 --> 01:20.180
I'm Grace Parrish.

01:20.180 --> 01:30.680
I am a current OSU student, Oregon State University, working on cyber security degree.

01:30.800 --> 01:34.960
And I am also currently a SOC analyst.

01:35.100 --> 01:48.760
In the last nine years before I went back to school, I was a board level repair technician and also taught industrial control systems.

01:48.760 --> 01:52.020
I should be graduating in December.

01:52.040 --> 01:56.480
And I look forward to a career in offensive security.

02:02.940 --> 02:05.480
So this is PCIE.

02:05.540 --> 02:12.180
I'm sure many of you who have opened your computers at some point or other probably recognize it.

02:12.180 --> 02:22.480
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.

02:22.480 --> 02:32.460
Some examples include networking, RAID controllers, and probably the one most people are familiar with, GPUs.

02:35.620 --> 02:40.920
And you may be wondering, well, why are we talking about PCIE here?

02:40.920 --> 02:48.640
Well, so the whole revolutionary thing about PCIE is that it uses DMA.

02:48.700 --> 03:06.160
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.

03:06.460 --> 03:09.580
And this took up a lot of resources.

03:09.940 --> 03:15.500
And because while the CPU was doing that, it couldn't do any other processing.

03:15.500 --> 03:28.040
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.

03:28.300 --> 03:41.700
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.

03:49.780 --> 03:51.400
And so PCIE is a great way to do that .

03:51.400 --> 03:54.920
You may be wondering, well, why is there a talk about this?

03:54.920 --> 04:10.280
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.

04:10.280 --> 04:12.140
But what if the device isn't trustable?

04:12.140 --> 04:13.440
What if it's malicious ?

04:13.620 --> 04:20.420
Well, now the device has arbitrary read and write to the entirety of system memory.

04:20.580 --> 04:32.400
Now the first kind of exploration into this was the Tribble made by Joe Grand back in 2003.

04:32.500 --> 04:40.080
And this is actually the predecessor to PCIE, just PCI.

04:40.080 --> 04:42.300
This one's not extended.

04:42.800 --> 04:52.840
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.

04:53.080 --> 05:04.920
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.

05:05.180 --> 05:11.860
Now, this isn't particularly, you know, easy to go unnoticed.

05:11.860 --> 05:13.480
It's kind of obvious.

05:13.480 --> 05:17.320
Which brings us to Firewire.

05:17.760 --> 05:25.800
Firewire is a cable that is used to move data from one device to another.

05:26.160 --> 05:28.040
And it does it pretty fast.

05:28.040 --> 05:31.740
I'm sure you all could probably guess why.

05:32.060 --> 05:33.360
DMA.

05:33.780 --> 05:42.360
And so this cable was used primarily for cameras and used a lot in Macs.

05:42.560 --> 05:43.480
But now it's used for cameras .

05:43.480 --> 05:47.020
And now suddenly we have DMA outside of the case.

05:47.540 --> 06:01.980
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 .

06:06.310 --> 06:07.310
Cool.

06:08.770 --> 06:11.030
I got to do this slide because I'm the pro.

06:11.870 --> 06:15.330
So this is a tale of epic procrastination.

06:15.330 --> 06:18.250
Because this spans over a decade at this point.

06:19.070 --> 06:21.470
Way back in 2014 I presented here at DEF CON.

06:21.470 --> 06:27.470
It was my first time at DEF CON presenting about slot screamer which was a PC express device that did DMA attacks.

06:27.470 --> 06:28.590
Sounds familiar, huh?

06:29.070 --> 06:36.190
And a couple years later Ulf Frisk did some amazing work and I basically got a card that was mostly off the shelf.

06:36.190 --> 06:38.670
Changed a few registers and did a cool demo.

06:38.890 --> 06:49.530
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.

06:49.530 --> 06:52.710
So it was aware of like operating system structures in memory.

06:52.710 --> 06:55.450
It could go and modify them, inject processes, get files.

06:55.450 --> 06:56.530
It was pretty amazing.

06:56.530 --> 06:58.930
Far more than I had the patience to ever do.

06:59.450 --> 07:02.050
Yeah, attention span, procrastination.

07:02.110 --> 07:05.470
Anyway, then as a follow on there was an FPGA version.

07:05.510 --> 07:07.890
So using a starting with a Xilinx reference board.

07:07.890 --> 07:13.590
You could basically use an FPGA to overcome some of the limitations that Slot Screamer had such as 32 bit addressing.

07:14.410 --> 07:17.270
And actually past that there were a couple of other projects.

07:17.410 --> 07:29.810
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.

07:29.850 --> 07:31.270
Thunderspy in 2020.

07:31.450 --> 07:40.230
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.

07:40.230 --> 07:43.130
But luckily other people were getting some of it done too, which is even better.

07:44.530 --> 07:47.170
As we're going to go through though, we're going to talk a little bit about threat modeling.

07:47.250 --> 07:48.570
Who likes threat modeling?

07:49.690 --> 07:52.730
I used to, I used to joke about like armchair hacking.

07:52.850 --> 07:56.390
It's where you just like sit and think about things and like throw darts at the wall.

07:56.390 --> 07:59.530
And then I realized if you want to build hours, you just call it threat modeling.

08:01.070 --> 08:05.650
So four question threat model that Adam Shostak's been using is pretty cool.

08:05.970 --> 08:12.410
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.

08:12.990 --> 08:14.950
So basically what are we working on?

08:15.070 --> 08:17.550
We're going to go through a couple different aspects of PCI express.

08:17.870 --> 08:19.010
What can go wrong?

08:19.150 --> 08:20.750
We've seen some examples of that already.

08:20.750 --> 08:24.190
We can use that to inform our answers or we can kind of speculate.

08:24.530 --> 08:25.970
What are we going to do about it?

08:26.090 --> 08:27.010
Do we fix it?

08:27.010 --> 08:28.550
Do we just tell people not to do it?

08:28.550 --> 08:29.890
Like what's the solution?

08:30.110 --> 08:38.890
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.

08:40.170 --> 08:42.270
So for PCI express what's the threat model?

08:42.270 --> 08:42.850
What are we working on?

08:42.850 --> 08:44.210
We're working on high speed interconnects.

08:44.210 --> 08:46.750
We need a way to connect devices in a system very quickly.

08:47.110 --> 08:48.230
What can go wrong?

08:48.230 --> 08:54.210
Some malicious devices, errant devices, devices that get programmed with malicious firmware or something like that.

08:54.630 --> 08:56.070
What are we going to do about it?

08:56.130 --> 08:58.670
Basically the decision was just keep it inside the case.

08:58.870 --> 09:01.730
Oh well the trust barrier is the case of the computer.

09:01.730 --> 09:07.430
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.

09:07.450 --> 09:09.650
Which maybe was fine 20 years ago.

09:09.690 --> 09:11.090
So did we do a good job?

09:11.490 --> 09:12.070
Maybe.

09:12.070 --> 09:15.350
Based on the threats at the time if we kept it inside the case we probably did an okay job.

09:16.950 --> 09:19.150
So yeah, grace.

09:21.770 --> 09:25.990
So now you may be wondering well what are the steps of attacking PCI D .

09:25.990 --> 09:30.150
So first you're going to connect your hardware.

09:30.390 --> 09:36.150
Then the computer is going to enumerate that hardware.

09:36.150 --> 09:42.570
Finally then the device is going to enable bus master.

09:42.570 --> 09:45.670
And then read and write memory.

09:45.670 --> 09:50.130
And then finally you get to present a talk at DEF CON.

09:50.930 --> 09:53.690
So connecting hardware.

09:53.690 --> 09:57.950
So here are some examples of various hardware.

09:58.030 --> 10:03.390
You may notice that PCI E comes in various shapes and sizes.

10:04.590 --> 10:20.410
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.

10:21.210 --> 10:28.690
You may also realize or notice that there are USB 3.0 ports on many of these cards.

10:29.590 --> 10:32.670
So fun fact, those are not actually USB.

10:33.010 --> 10:42.570
One of the things about making implants for machines is sometimes you don't have the space that you want.

10:42.570 --> 10:44.810
Or the space is elsewhere in the machine.

10:44.810 --> 10:55.370
So what that actually is, is it is a port that connects to a cable that will then connect to our actual implant.

10:55.370 --> 10:57.450
So it may look like USB.

10:57.450 --> 11:00.630
That's because it's the port reused.

11:00.630 --> 11:06.230
But it is actually PCI E over a USB cable.

11:08.360 --> 11:13.760
So after we've connected some hardware, now we have to get into enumeration.

11:13.760 --> 11:19.040
So the root complex enumerates buses.

11:19.040 --> 11:24.960
And I'm sorry, but the lines connecting the buses aren't super visible on the dark background.

11:24.960 --> 11:29.760
But I will try to illustrate where I am talking about.

11:29.760 --> 11:38.380
So the first bus or the 0th bus is from the root complex on the left to the switch.

11:38.680 --> 11:41.240
And that's going to be bus 0.

11:42.100 --> 11:49.720
Then the switch also has a bus going from the switch back to the root complex.

11:49.720 --> 11:51.040
That's 1.

11:51.600 --> 11:58.400
Then from the switch to the left PCI E end point, that's 2.

11:58.400 --> 12:02.040
From the switch to the diagonal PCI E component, that's 3.

12:02.040 --> 12:06.400
From the switch to the legacy end point, that's 4.

12:07.160 --> 12:11.320
And so far we've been going depth first search.

12:11.320 --> 12:14.100
And that's how PCI E is enumerated.

12:14.100 --> 12:22.680
So next we're going to go from the root complex at the center to the PCI E end point.

12:22.680 --> 12:27.600
And that's going to be 4.

12:29.260 --> 12:30.380
5.

12:32.240 --> 12:39.340
And then from the root complex on the right to the PCI E bridge, that's going to be 6.

12:39.340 --> 12:51.200
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.

12:51.200 --> 12:52.840
And that would be 7.

12:52.840 --> 13:01.620
And the root complex connects all of these end points to the memory so that the devices can write directly to the memory.

13:03.400 --> 13:12.940
Here is an example of LSPCI output showing all of the various devices enumerated.

13:17.440 --> 13:20.700
Do you want to help me with like a little ad hoc hack right here?

13:21.040 --> 13:21.920
Yeah?

13:22.000 --> 13:25.800
So I'm listening to Micah Flee's talk across the way because I can hear it.

13:25.800 --> 13:29.780
And I bet if we all yelled like, great talk Micah, he would hear us.

13:29.780 --> 13:31.140
So you want to help me with that?

13:31.140 --> 13:33.780
So on three, great talk Micah.

13:33.780 --> 13:34.380
Ready?

13:34.460 --> 13:36.380
One, two, three.

13:36.460 --> 13:38.540
Great talk Micah!

13:39.720 --> 13:41.340
I don't know if he heard that.

13:41.400 --> 13:45.780
But back on topic, you came for PCI Express, didn't you?

13:45.780 --> 13:47.960
This is why I procrastinate a lot.

13:47.960 --> 13:48.940
I get distracted.

13:48.940 --> 13:50.460
So we want to read and write memory.

13:50.460 --> 13:53.180
We get to the point where we've got transaction level packets.

13:53.240 --> 14:00.500
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.

14:00.540 --> 14:01.940
The first group of them are about memory.

14:01.940 --> 14:06.740
We want to read memory and we want to write memory, which does basically what you expect, reading and writing memory.

14:07.740 --> 14:12.500
Configuration read and message requests are our special type of PCI Express transactions.

14:12.540 --> 14:13.720
We're not as interested in those.

14:13.720 --> 14:17.380
They're not used nearly as much as the memory read and write, especially when we're doing DMA attacks.

14:17.740 --> 14:19.020
And last we've got completions.

14:19.020 --> 14:20.160
These are the responses.

14:20.160 --> 14:23.120
So when you do a read, your response is a completion with data.

14:24.800 --> 14:25.860
So that's all complicated.

14:25.860 --> 14:27.780
You don't want to sit there writing TLPs one at a time.

14:27.780 --> 14:30.920
That's what's great about PCI Leach is it kind of does all that work for you.

14:30.920 --> 14:39.040
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.

14:39.040 --> 14:42.460
It parses tables, does whatever it needs to find processes and memory.

14:42.520 --> 14:43.380
It's pretty cool.

14:45.480 --> 14:48.460
So I'm going to skip over this example based on time.

14:48.460 --> 14:53.580
First example I had was dumping memory where you basically plug this card in and dump all of memory.

14:53.580 --> 14:56.860
So you grab 4 gigabytes of memory and whoop-de-doo, you've got a memory image.

14:56.860 --> 14:58.400
You can go and look for cool stuff.

14:58.740 --> 14:59.860
I'm going to show this next one though.

14:59.860 --> 15:01.120
This is the lock screen bypass.

15:01.360 --> 15:03.060
So this is using an older piece of hardware.

15:03.060 --> 15:04.140
This is using slot screamer.

15:04.140 --> 15:09.940
You plug it in the system and this is a Wi-Fi router that happens to have PCI Express.

15:09.940 --> 15:11.480
It's a mini PCIe slot.

15:11.480 --> 15:14.100
We hook it up over USB to this computer.

15:14.980 --> 15:16.580
We've got a console as well.

15:16.820 --> 15:21.700
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.

15:21.860 --> 15:24.020
Let's say we want to check the shadow file.

15:26.100 --> 15:27.180
Come on.

15:27.360 --> 15:29.340
So shadow file is owned by root.

15:29.340 --> 15:31.060
I'm not supposed to be able to read it.

15:31.260 --> 15:34.460
And if I go and cat it, I get my permission denied.

15:34.640 --> 15:38.200
So I'll go over and run my little script, which is going to go in the other window.

15:38.740 --> 15:45.220
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.

15:45.220 --> 15:46.880
So we found our device.

15:46.880 --> 15:48.600
It's this net chip technology board.

15:48.600 --> 15:51.480
We patch it, patch the generic permission function in Linux.

15:51.560 --> 15:53.600
That's what checks the permission on file accesses.

15:53.700 --> 15:56.600
That little thing over there, read and wrote to the memory for the CPU.

15:56.960 --> 16:00.760
And if we go back and we try and cat Etsy shadow, it should work.

16:03.140 --> 16:04.680
And it works.

16:04.680 --> 16:05.380
There we go.

16:05.400 --> 16:06.120
Yay.

16:06.620 --> 16:07.280
Okay.

16:11.010 --> 16:14.210
So we can also unpatch it and, you know, make it go back to normal.

16:14.210 --> 16:16.410
But we're going to call it done.

16:17.430 --> 16:18.570
Is this you or me?

16:18.570 --> 16:19.350
Okay.

16:19.350 --> 16:22.390
So key take away, PCI Express is permissive by design.

16:22.390 --> 16:26.230
And that demo isn't anything different than what we did 10 years ago.

16:26.230 --> 16:28.430
So let's talk about what's changed since then.

16:28.970 --> 16:34.210
So there's been a lot more approaches and ideas behind what to do.

16:34.210 --> 16:37.230
So here's my DMA attacks, DMA attack taxonomy.

16:37.230 --> 16:38.470
I just made this up.

16:38.870 --> 16:42.490
There's tethered attacks, there's drive by attacks and there are embedded attacks.

16:42.490 --> 16:44.990
So a tethered attack looks kind of like this.

16:45.230 --> 16:47.990
We've got the system on the left, that's our target system.

16:48.070 --> 16:51.350
We see there's a cable running over to the thing on the right.

16:51.410 --> 16:52.530
And that is the attack device.

16:52.530 --> 16:57.990
That's actually a Xilinx FPGA board.

16:58.790 --> 17:04.770
And attached to it on the far right is a little blue board that's a FTDI high speed IO board.

17:04.770 --> 17:13.370
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.

17:13.370 --> 17:16.910
So you're not going to sneak up to someone's laptop and do this to it.

17:17.170 --> 17:21.910
This is, it's slotted into a machine , you've got a lot of hardware, it's kind of a pain in the butt.

17:22.210 --> 17:23.730
So that's a tethered attack .

17:24.530 --> 17:29.730
Now a drive by attack would be something like you just walk up to the system, plug something in and do your whole thing.

17:29.890 --> 17:33.890
And so what we've got here is we've got an express card reader , thunderbolt to express card.

17:33.890 --> 17:36.430
So you plug this into a thunderbolt port, you've got an express card.

17:36.430 --> 17:43.930
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.

17:44.410 --> 17:45.790
And this can do the same thing, right?

17:45.790 --> 17:52.130
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.

17:53.270 --> 17:55.790
And last we've got embedded type attacks.

17:55.790 --> 18:00.110
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.

18:00.130 --> 18:04.950
So this is Pico DMA, which is a project of a few, from a few years ago, I believe 2019.

18:06.150 --> 18:09.370
And what they used is they used that board on top, which is called Pico EVB.

18:09.370 --> 18:12.110
It was a little Xilinx development board.

18:12.510 --> 18:19.910
And they paired it up with these Pycom modules, which let them do either wireless, you know, Bluetooth or 4G connectivity to this device.

18:19.910 --> 18:24.750
And they could package it all inside the case of a laptop and, you know, no one would be the wiser.

18:25.290 --> 18:29.670
You'd be surprised, you know, how many of you have opened up your laptop and looked inside?

18:29.670 --> 18:32.470
How many of you know what every one of those chips does in there?

18:33.150 --> 18:33.690
Not many.

18:33.690 --> 18:34.430
I don't.

18:34.430 --> 18:38.850
So like, it's pretty, pretty, pretty interesting what you can cram in those places.

18:38.950 --> 18:42.890
Luckily, things are getting smaller, so it's harder to, like, hide stuff like this, but whatever.

18:42.970 --> 18:44.830
So this is an embedded kind of attack.

18:45.090 --> 18:46.830
So, you know, here's my little chart.

18:46.830 --> 18:51.050
If it's quick access, it's a hot plug, it's short term, you're right, that's a drive-by attack.

18:51.110 --> 18:58.890
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.

18:59.110 --> 19:00.290
They're a little more complicated.

19:01.530 --> 19:03.730
So let's, let's kind of change gears a little bit.

19:03.730 --> 19:06.090
Let's talk about, like, the multi-tenant threat model.

19:06.170 --> 19:08.290
So this is like the cloud provider situation.

19:08.670 --> 19:12.790
So we've got a lot of cloud providers that want to give, uh, access to computers.

19:12.790 --> 19:15.530
Some of them want to, like , give you bare metal, some of them want to give you VMs.

19:15.530 --> 19:20.990
Some of those VMs, they want to have FPGAs or GPUs attached to them, which are PCI Express attached devices.

19:21.010 --> 19:23.010
So, like, there's some, there's some things to worry about.

19:23.010 --> 19:24.050
So what, what are we working on?

19:24.050 --> 19:25.990
We're working on making money by sharing hardware.

19:26.330 --> 19:26.870
Okay?

19:26.870 --> 19:29.510
It's pretty much the, the, the threat, like, their objective, right?

19:29.510 --> 19:30.530
What can go wrong?

19:30.670 --> 19:32.090
Hardware assisted tenant hopping.

19:32.090 --> 19:40.670
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.

19:40.810 --> 19:41.890
So what are we going to do about it?

19:41.890 --> 19:44.850
We're going to use an IOMMU to go and protect devices from each other.

19:44.850 --> 19:46.670
An IOMMU, memory management unit.

19:46.750 --> 19:47.390
Okay?

19:47.390 --> 19:48.410
Did we go to a job?

19:48.410 --> 19:50.130
Um, it kind of works.

19:50.130 --> 19:52.590
So, Grace, you want to tell us about that?

19:52.870 --> 19:53.390
Sure.

19:55.590 --> 20:06.530
So, um, in order to understand IOMMU, you first have to understand kind of what the problem IOMMU is trying to solve.

20:06.530 --> 20:18.670
So, um, as Joe just said, we're trying to prevent, uh, crossing, uh, boundaries, um, using hardware.

20:18.670 --> 20:30.550
And so, uh, how we originally did this is we used a, um, our virtual machine, uh, emulated a device.

20:30.590 --> 20:45.270
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.

20:46.410 --> 20:59.270
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.

20:59.270 --> 21:03.390
And then it itself has to have a driver for the actual hardware.

21:04.110 --> 21:06.810
That's a lot of processing.

21:06.930 --> 21:24.830
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.

21:25.070 --> 21:27.670
Um, and this makes things a lot faster.

21:27.670 --> 21:34.870
The virtual machine can just use the normal, uh, device driver and it can just talk directly to the hardware.

21:37.210 --> 21:59.970
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.

22:06.030 --> 22:08.730
Someone keeps moving this microphone up too high.

22:08.890 --> 22:11.970
Um, so take away from that, like, the mitigations exist.

22:11.970 --> 22:20.730
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.

22:21.550 --> 22:25.710
Um, so, of course, you know, once we have something figured out, we always kind of make it harder.

22:25.710 --> 22:27.210
So let's talk about Thunderbolt for a minute.

22:27.370 --> 22:29.370
Um, so Thunderbolt threat model, what are we working on?

22:29.370 --> 22:31.690
We want high speed peripherals, okay?

22:31.690 --> 22:39.850
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.

22:39.970 --> 22:41.150
Um, what can go wrong?

22:41.150 --> 22:43.410
Malicious Thunderbolt devices, okay?

22:43.410 --> 22:46.790
That's kind of like the answer to all of the what can go wrong in this talk.

22:46.970 --> 22:48.230
Um, what are we going to do about it?

22:48.230 --> 22:52.770
Well, at this point, we do actually a pretty good job of, uh, authenticating and isolating devices.

22:52.970 --> 22:54.950
Um, and did we do a job?

22:54.950 --> 22:57.950
It took time, but, like, we eventually got there.

22:58.170 --> 22:59.550
So there are mitigations, right?

22:59.550 --> 23:02.930
Thunderbolt was released in 2011, right?

23:02.930 --> 23:04.330
That's a long time ago.

23:04.430 --> 23:06.650
Um, how many of you were born in 2011?

23:06.670 --> 23:21.010
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.

23:21.010 --> 23:26.550
Of course, like, Macs were the only computers that had Thunderbolt devices for a while, so maybe that's why.

23:26.550 --> 23:35.450
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.

23:35.570 --> 23:37.910
Um, and even Linux got in on the action.

23:37.910 --> 23:44.830
So in Linux kernel five in 2019, uh, eight years after Thunderbolt was released, um, they also had some of these protections built in.

23:44.910 --> 23:46.810
Now, they're not perfect.

23:46.830 --> 23:53.150
I'm sure there are issues in them, but the fact is, like, it was eight years before they existed at all.

23:53.390 --> 23:58.030
Um, so my takeaway from that is, like, Thunderbolt got fixed eventually, right?

23:58.030 --> 24:08.950
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.

24:09.150 --> 24:11.210
Uh, anyway, so eventually got fixed.

24:11.210 --> 24:15.110
So Thunderbolt isn't the easy way to just plug in and do a drive by attack anymore.

24:15.130 --> 24:16.010
Grace?

24:18.470 --> 24:26.790
So, um, you may be thinking now that, uh, Thunderbolt got fixed, um, how are we going to do drive by DMA attacks?

24:27.050 --> 24:30.410
Well, um, DMA finds a way.

24:33.320 --> 24:37.380
Who here by show of hands recognizes this port?

24:37.840 --> 24:41.940
If you are thinking that is display ports, you are wrong.

24:41.940 --> 24:44.100
That is in fact, Oculink.

24:44.100 --> 24:47.220
Um, so what is Oculink?

24:47.400 --> 24:58.520
Oculink is a, um, interface that we came up with because we wanted to be able to attach our GPUs to our laptops.

24:58.640 --> 25:04.340
Um, now you may be thinking, wait, we just finished, we just fixed Thunderbolt.

25:04.340 --> 25:06.260
Why aren't we using Thunderbolt?

25:06.280 --> 25:20.720
Um, well, Thunderbolt, um, while it is more secure, it's also, um, have, um, Thunderbolt has, uh, quite a bit of overhead.

25:20.720 --> 25:25.440
Um, and also it's significantly more expensive.

25:25.440 --> 25:32.800
Um, so what we decided to do instead was, uh, once again, we brought PCIe outside of the case.

25:33.000 --> 25:38.280
So Oculink is basically just PCIe over a cable.

25:38.280 --> 25:44.740
Um, amusingly a cable, uh, from server, uh, storage.

25:45.100 --> 25:56.580
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.

25:56.580 --> 25:58.260
But I digress.

25:59.360 --> 26:02.820
Um, and this is actually really kind of cool.

26:02.820 --> 26:10.480
Uh, we've taken this thing that's not supposed to be used this way and we've decided to use it.

26:10.480 --> 26:14.000
Um, and isn't that what hacking is?

26:17.460 --> 26:19.740
So some more armchair hacking.

26:19.840 --> 26:21.060
So what are we working on?

26:21.060 --> 26:23.480
We want, um, high speed peripherals again, just like Thunderbolt.

26:23.480 --> 26:24.360
Same thing.

26:24.360 --> 26:25.180
What can go wrong?

26:25.180 --> 26:25.700
Same thing.

26:25.700 --> 26:27.180
We can have malicious devices.

26:27.920 --> 26:29.600
Anybody want to guess what we're going to do about it?

26:30.360 --> 26:31.500
Probably, yeah, nothing.

26:31.600 --> 26:33.840
Only, only use it in secured locations.

26:33.900 --> 26:34.780
Like, yeah.

26:34.960 --> 26:36.640
Who here uses any GPU?

26:38.540 --> 26:41.660
So when you, like, you, you leave your Oculink GPU at home, right?

26:41.660 --> 26:46.040
And then you take your laptop with you, which has the Oculink port on it wherever you go.

26:46.040 --> 26:47.740
Like, but you never leave it out of your sight, right?

26:47.740 --> 26:50.100
So anyway, did we do a good job?

26:50.100 --> 26:51.080
Uh, not really.

26:51.080 --> 26:53.080
So now we got, um, Oculink, right?

26:53.080 --> 26:54.220
Let's, let's go and use it.

26:54.220 --> 26:55.000
Let's, let's do it.

26:55.000 --> 26:58.860
Let's figure out a new drive by attack for a cool demo for, for the talk.

26:58.920 --> 27:07.120
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.

27:07.200 --> 27:11.360
Um, and so, uh, MetaMask is, uh, so I, I got some help.

27:11.360 --> 27:12.680
So is Dean here?

27:12.680 --> 27:13.540
Thanks Dean.

27:13.540 --> 27:14.800
Dean helped me out with this demo.

27:14.920 --> 27:19.220
Um, like, so we've got this device.

27:19.580 --> 27:20.380
Um, what can we do?

27:20.380 --> 27:25.160
Can we like go and mess with MetaMask somehow if we have the ability to read and write all of memory?

27:25.300 --> 27:27.500
And of course the answer is yes.

27:28.040 --> 27:28.760
Is it playing?

27:28.760 --> 27:29.120
Here we go.

27:29.120 --> 27:33.040
So we got MetaMask running and you can see here we want to go and send some money.

27:33.960 --> 27:40.360
Um, and so some just random name that we choose, send, send some random person a dollar of USDC.

27:41.100 --> 27:43.260
Um, and so this is all on a computer.

27:43.260 --> 27:49.920
This is a browser extension inside of a browser, inside of a sandbox and all that crap inside of this machine.

27:50.280 --> 27:53.180
Um, and we're about to go send it, but let's go like run this thing.

27:53.180 --> 27:55.000
You see who it's going to, right?

27:55.000 --> 27:56.080
Well, that's just stored in memory.

27:56.460 --> 27:59.040
And so like, let's just send it to this other address instead.

27:59.160 --> 28:03.220
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.

28:03.360 --> 28:05.120
But anyway, so let's cancel that.

28:05.120 --> 28:10.240
We still have this, this process running in the background continuously going and doing a DMA scan for the right string.

28:10.640 --> 28:17.320
But if we go and we get another transaction, we want to send some magic money, some Chuck E.

28:17.320 --> 28:19.380
Cheese coins over to some dude.

28:20.540 --> 28:25.740
Um, and yeah, who cares how many gallons of fuel we took, but whatever.

28:26.120 --> 28:30.940
So let's boil, boil a pot full of frogs and continue and it's running.

28:30.940 --> 28:35.500
And so you'll see, it'll take a moment, but as soon as we find it in memory, bam, it's overwritten.

28:35.500 --> 28:37.260
But oh, wow, what was that?

28:37.260 --> 28:39.320
That's okay, we keep looking, we keep looking.

28:39.540 --> 28:46.200
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.

28:46.200 --> 28:50.380
So it's not easy to go and find out exactly where this is without scanning through all of memory.

28:50.500 --> 29:05.400
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.

29:05.520 --> 29:08.080
So, I thought that was kind of cool.

29:08.100 --> 29:12.720
So Dean actually threw together this, this, this framework to help me put together this demo, um, passive.

29:12.740 --> 29:16.760
So, um, you've seen the movie Inception, right?

29:16.760 --> 29:26.440
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.

29:26.440 --> 29:33.460
So, um, disclosure, that was not on hardware, that was in a VM, um, because it's a lot easier.

29:33.500 --> 29:40.740
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.

29:40.800 --> 29:44.520
Um, but first, let's like diverge into some game cheating stuff.

29:47.570 --> 29:53.270
Okay, so, first off, show of hands, who here cheats at games?

29:55.630 --> 29:56.410
Why?

29:59.940 --> 30:06.640
Um, and, and for that matter, uh, how do you, how do you have a time to play video games?

30:08.720 --> 30:12.380
See, that's what I was thinking, because, probably because you cheat.

30:12.780 --> 30:17.020
Uh, yeah, but, uh, who, who, who pays other people to develop cheats for them?

30:17.860 --> 30:26.160
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.

30:26.200 --> 30:26.980
Grace, go ahead.

30:27.840 --> 30:31.720
But yeah, so, um, I don't really understand why people cheat.

30:31.720 --> 30:43.480
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.

30:43.480 --> 30:45.500
But, I digress.

30:45.640 --> 30:51.120
Um, so, here is a website that sells game cheats.

30:51.120 --> 30:57.060
So, if you notice, on the left, we have, uh, just a cheat.

30:57.060 --> 31:03.520
And I know it's tiny text, but this is, uh, this is for one month.

31:03.520 --> 31:10.640
And even tinier text, it does not include the hardware you actually need to run the cheat, nor the firmware.

31:11.340 --> 31:18.080
In the center, we have the basic package for a measly $720.

31:18.220 --> 31:24.640
And what this includes is the cheat for, again, for only one month.

31:24.640 --> 31:29.620
Uh, DMA card, um, and firmware for that card.

31:29.620 --> 31:37.500
And then, finally, on the right, we have something more for yet another ridiculous amount of money.

31:37.500 --> 31:40.060
Um, again, only for one month.

31:40.060 --> 31:51.160
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.

31:51.160 --> 31:55.440
Things like, uh, slot screamer, PCI leach.

31:55.540 --> 32:02.880
They are basically repackaging this and selling it to you when you have it, basically, for free.

32:08.610 --> 32:12.090
So, yeah, it's always interesting to see what people will sell on the internet.

32:12.110 --> 32:17.530
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.

32:17.530 --> 32:26.850
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.

32:26.850 --> 32:36.930
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.

32:36.930 --> 32:40.410
It says, oh, you just got an NVME, a hard drive, and that's what you're running from.

32:40.550 --> 32:45.530
Um, so, it's, it's pretty crafty, the levels of, uh, of, uh, stuff going into this .

32:45.530 --> 32:48.110
Um, a lot of them are based on, uh, PCI leach.

32:48.110 --> 32:50.350
Um, some of them ship with PCI leach generic firmware.

32:50.350 --> 32:57.090
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.

32:57.090 --> 33:03.470
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.

33:03.470 --> 33:07.370
So, if you do wanna go and mess around with PCI leach, um, that's the way you should go.

33:08.250 --> 33:13.630
Um, one of the key takeaways, though, is that changing the form factor is changing the threat model, right?

33:13.630 --> 33:26.610
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.

33:26.790 --> 33:33.650
Um, another difference of, of changing the form factor is, uh, maybe going to a different , uh, type of device.

33:33.650 --> 33:34.610
And so, Grace?

33:35.590 --> 33:36.390
Okay.

33:38.270 --> 33:41.830
Um, so, how many of you have seen these before ?

33:41.990 --> 33:46.950
So, we have, uh, CF Express on the left and ST Express on the right.

33:47.150 --> 33:52.730
Um, these are both relatively new, um, devices, uh, storage devices.

33:52.830 --> 34:02.930
And, um, you may recognize them from some, uh, devices that you own, uh, especially if, no.

34:02.930 --> 34:03.850
Yeah.

34:03.890 --> 34:09.810
Um, who, who has, who has used a CF Express device?

34:10.070 --> 34:10.870
Okay.

34:10.870 --> 34:14.170
Who, who has used an ST Express device?

34:14.270 --> 34:15.330
Okay.

34:15.450 --> 34:17.730
So, I don't know if you know what they are, though.

34:18.950 --> 34:26.990
Um, and so, basically, um, uh, you probably have seen these.

34:26.990 --> 34:35.590
The, the interesting thing about these, though, is, um, once again, they are PCIe, um, and support DMA.

34:35.750 --> 34:54.330
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.

34:56.970 --> 34:57.750
Yeah.

34:58.010 --> 35:03.950
And so, uh, what threat model are they working with?

35:03.950 --> 35:11.490
Um, so, we know, uh, they are working with high speed small storage.

35:11.910 --> 35:14.530
Um, what could possibly go wrong?

35:14.530 --> 35:18.590
Well, I think you may have caught on to a theme at this point.

35:18.590 --> 35:20.670
It's malicious devices.

35:20.750 --> 35:23.350
And what are we going to do about it?

35:23.350 --> 35:27.790
We, of course, being the manufacturers of devices that use these.

35:28.470 --> 35:30.250
We don't actually know.

35:30.250 --> 35:36.790
We're kind of, they kind of don't invite us to other threat modeling, uh, meetings.

35:36.890 --> 35:42.150
Um, so, did they do a good job of, of preventing attacks?

35:42.250 --> 35:44.490
We also don't know yet.

35:44.550 --> 35:57.450
Um, and so, one of the things is, uh, so, how many of you have, like, tried attacking any of these devices?

35:58.350 --> 35:59.510
Few.

35:59.510 --> 36:03.250
Um, so, you may be wondering why is an Xbox up there?

36:03.250 --> 36:14.470
Well, actually, that aforementioned, uh, CF Express card is the exact same card that they're using for the memory expansion cards.

36:14.650 --> 36:19.910
Um, it's just packaged in a nice piece of plastic.

36:19.950 --> 36:27.530
Um, also, we have the Nikon, uh, which also uses that, uh, CF Express, uh, card.

36:28.010 --> 36:31.910
And then finally, this one is really new.

36:31.910 --> 36:36.010
Uh, this is the Switch 2, uh, just came out a little bit ago.

36:36.010 --> 36:38.750
And it uses SD Express.

36:40.850 --> 36:48.530
Uh, and so, an example of SD Express.

36:49.210 --> 36:49.930
Sure.

36:50.490 --> 36:54.870
So, so, this is still, uh, you know, in research.

36:54.870 --> 36:56.670
Um, so, CF Express, right?

36:56.670 --> 36:57.730
It's a device.

36:57.730 --> 36:58.650
It has NVMe.

36:58.650 --> 37:00.130
It has, um, what's it called?

37:00.130 --> 37:00.990
PCI Express.

37:00.990 --> 37:05.810
And so, what we can basically do is, uh, instead of plugging our, you know, excuse us.

37:05.810 --> 37:12.550
So, this is a card reader for, uh, XQD, which is pinout compatible and also PCI Express compatible with, uh, SD Express.

37:12.550 --> 37:14.530
So, the reader is pretty much not, not much to it.

37:14.530 --> 37:18.770
Uh, it basically is a, wires it up to, uh, PCI Express.

37:18.770 --> 37:21.750
Um, but if we wanted to, we could go and do something stupid like this.

37:21.750 --> 37:30.770
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.

37:30.950 --> 37:33.970
And you can see on the screen, it says, uh, card not currently supported.

37:34.230 --> 37:37.230
Um, so, it does, uh, it does check the device.

37:37.230 --> 37:38.110
It does enumerate.

37:38.110 --> 37:41.370
It does check to see if it's, uh, the right type of NVMe device.

37:41.430 --> 37:49.750
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.

37:49.750 --> 37:57.630
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.

37:57.630 --> 38:00.870
This is a seven-year-old camera, but, you know, you can be surprised.

38:01.250 --> 38:04.550
Um, so it'll be interesting to see what, what we can get off of the device that way.

38:05.870 --> 38:11.530
Um, so we've got to switch to, switch to is like the first device that actually uses SD Express, which is pretty cool.

38:11.530 --> 38:15.230
Um, I actually grabbed some SD Express cards a while ago and some readers.

38:15.270 --> 38:19.750
Um, I was not really surprised to see that most, uh, these are two different SD Express readers.

38:19.750 --> 38:23.790
One's, uh, Sabrent and one is, uh, uh, SanDisk.

38:23.890 --> 38:25.790
Um, they're using the exact same chips.

38:25.790 --> 38:31.690
The one on the left is the green board has two of these little, uh, SD Express, uh, controller chips from Realtek.

38:31.690 --> 38:34.250
The one on the right has the same exact chip, but only one.

38:34.330 --> 38:43.150
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?

38:43.150 --> 38:45.970
So we take SD Express and turn it into NVME.

38:45.970 --> 38:52.410
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.

38:53.070 --> 38:56.290
So, um, you know, Switch, brand new.

38:56.290 --> 38:58.950
I literally just got one last week.

38:59.430 --> 39:01.510
Who wants to see a Switch 2 jailbreak?

39:02.450 --> 39:03.250
Yeah?

39:03.270 --> 39:04.370
You want to see one?

39:04.610 --> 39:07.390
We only, we only have seven minutes left though.

39:07.550 --> 39:09.330
So do you want to see it?

39:09.670 --> 39:11.070
Yeah, so do I.

39:11.070 --> 39:13.810
So, um, sorry.

39:13.970 --> 39:17.150
Um, so the takeaway here is, uh, PCI Express is pervasive.

39:17.150 --> 39:19.610
I literally got the Switch the day I left to come to Las Vegas.

39:19.630 --> 39:23.230
So, like, haven't had a chance to poke around too much, but maybe some of you will.

39:23.230 --> 39:27.110
Um, there are some, um, boards you can get.

39:27.110 --> 39:31.550
A couple folks have already made the adapter boards to break out the Switch into the NVME pieces.

39:31.550 --> 39:32.810
You can get some adapters.

39:32.950 --> 39:37.570
Um, so hopefully in time we'll get all the rigging hooked up and maybe we can poke at it some more.

39:38.050 --> 39:39.930
So we're going to kind of scramble through.

39:39.930 --> 39:42.930
Uh, let's resume this continuing tale of epic procrastination.

39:43.090 --> 39:45.990
Um, I procrastinate and put it off all the way to the end of the presentation.

39:46.250 --> 39:49.210
Um, so 2021, we finally got together a schematic for Erebus.

39:49.210 --> 39:56.050
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.

39:56.050 --> 40:00.350
So we actually had to do a redesign of some of the PCB to replace components that were discontinued.

40:00.550 --> 40:05.590
Uh, we, uh, uh, uh, you know, uh, bought, you know, we're, we're, we're, we're chip preppers.

40:05.590 --> 40:09.430
So we, we bought a lot of compatible chips to hopefully last us for a long time.

40:09.450 --> 40:11.590
So we wouldn't be blocked by not having chips.

40:11.610 --> 40:14.790
Uh, it would have been fine though because we were blocked by our own procrastination.

40:14.950 --> 40:17.610
We finally got the test jig together in 2023.

40:17.610 --> 40:19.770
And once we had the test jig together, we assembled the boards.

40:19.850 --> 40:22.110
Um, and now it's time to profit, right?

40:22.710 --> 40:23.890
Um, we're getting there.

40:23.910 --> 40:25.750
Um, so this is Erebus.

40:25.750 --> 40:31.670
Um, how many of you came here thinking you're gonna, I'd show off like a completely working functioning Erebus board.

40:31.670 --> 40:33.290
Yeah, I apologize.

40:33.830 --> 40:35.650
I'm a, I'm a procrastinator.

40:35.770 --> 40:42.010
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.

40:42.330 --> 40:45.070
Um, so it does power on, it does work.

40:45.070 --> 40:46.930
We don't have PCI express fully working yet.

40:46.930 --> 40:49.470
We have some reset issues that we need to deal with.

40:49.750 --> 40:51.490
Um, how do I get to escape?

40:51.710 --> 40:56.330
Um, the objective here is we've got a, a lot of ECP5 FPGA.

40:56.370 --> 40:58.230
Um, we've got DRAM built into it.

40:58.230 --> 40:59.790
I'm not showing this picture on the backside.

40:59.790 --> 41:01.230
We've got a spot to put an SD card.

41:01.230 --> 41:06.270
So this thing fits where your wifi module might go and you can pop it in a system and leave it there.

41:06.270 --> 41:11.530
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.

41:11.530 --> 41:17.190
So this is like the embedded, like, uh, DMA attack device, uh, dream once it works.

41:17.370 --> 41:21.250
Um, you can see we've got some test code running flashing lights.

41:21.270 --> 41:26.710
Um, one of the things we wanted to address is that like a lot of devices, this is from PCI leach's repository.

41:26.710 --> 41:31.430
A lot of these devices are using Xilinx's proprietary IP cores for PCI express.

41:31.650 --> 41:33.830
Um, one of the issues with that is licensing.

41:33.830 --> 41:37.070
They're actually not probably licensed properly and that shouldn't be sold the way they are.

41:37.070 --> 41:41.450
Um, but more importantly, like it limits what you can do in terms of messing with the TLP level stuff.

41:41.450 --> 41:46.350
A couple of the, the, the, the PCI leach devices do let you get that level of control, but not all of them.

41:46.350 --> 41:52.950
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.

41:53.450 --> 41:57.990
Um, you can see in the upper left, we, we're, we're planning on putting this on crowd supply.

41:58.110 --> 42:04.390
Um, I'm working with, uh, Peter Eszentemski who has done, uh, the icebreaker, um, at Glasgow and a few other hardware tools.

42:04.390 --> 42:11.610
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.

42:11.610 --> 42:13.150
Um, but we'll see how that goes.

42:13.690 --> 42:14.830
Um, why Erebus?

42:14.830 --> 42:16.650
My objective is platform security.

42:16.790 --> 42:22.670
Um, I don't care about game cheaters in, except for maybe as customers to buy a bunch of these boards, right?

42:22.670 --> 42:26.070
To fund the development, to actually get IOMUs used properly.

42:26.110 --> 42:27.690
Cause right now they're not.

42:27.990 --> 42:31.050
Um, so you want to, you want me to like breeze through?

42:31.050 --> 42:31.370
Go ahead.

42:31.370 --> 42:31.730
Okay.

42:31.730 --> 42:34.230
So yeah, you see there's a bunch of PCI express devices here.

42:34.230 --> 42:43.130
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.

42:43.130 --> 42:47.030
It's kind of like if USB isn't cutting it for you, it's going to be PCIe.

42:47.550 --> 42:48.450
Takeaways, right?

42:48.450 --> 42:49.790
It's permissive by design.

42:49.790 --> 42:50.690
Mitigations exist.

42:50.690 --> 42:51.670
We can use them.

42:51.670 --> 42:55.250
It took time, but finally Thunderbolt is getting some of that stuff fixed.

42:55.430 --> 42:58.350
Um, these form factor changes do affect your threat model.

42:58.350 --> 43:01.090
Um, but again, PCV, PCIe is pervasive.

43:01.090 --> 43:03.770
Um, progress has been made, but there's still plenty more to do.

43:03.770 --> 43:10.030
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.

43:10.030 --> 43:15.470
So if you're interested in like poking at this stuff, the tools are available and like the, the information's available.

43:15.470 --> 43:21.230
Like let's try and work together to make this happen because I'm not doing a good job of getting it moving.

43:21.670 --> 43:26.210
Um, there is the forecasting question threat model we talked about a bit and another, another shameless plug.

43:26.210 --> 43:32.250
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.

43:32.250 --> 43:35.990
Uh, we'll hopefully present that at sector, but enough shameless plugs.

43:36.630 --> 43:37.930
There's Arabis.

43:37.930 --> 43:39.530
Um, what did I forget to say?

43:40.190 --> 43:40.670
Stickers.

43:40.930 --> 43:41.870
I've got stickers.

43:41.870 --> 43:42.130
Oh yeah.

43:42.130 --> 43:42.790
Thanks.

43:43.110 --> 43:47.010
Um, there's a lot of people who helped with the support and the tooling of getting this up and running.

43:47.090 --> 43:49.970
I've been working on Arabis with me trying to get it to work.

43:49.970 --> 43:56.430
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.

43:56.470 --> 43:58.550
Um, so thanks to all these folks and more.

43:58.750 --> 44:02.130
Um, there's some links on there and that is the last slide of our presentation.

44:02.130 --> 44:02.970
I'll go back to the links.

44:02.970 --> 44:03.710
Thank you.

44:05.670 --> 44:07.150
And thank you, Grace.

44:10.240 --> 44:11.040
Questions?

44:13.620 --> 44:15.940
Did you like that switch 2 thing?

44:17.900 --> 44:18.660
That was cool.

44:18.840 --> 44:21.480
Hardware to break out PCI for what platform?

44:21.560 --> 44:22.660
For the switch?

44:23.080 --> 44:29.300
Um, I will put those links on the, um, the direct memory access everywhere, uh, repository once I put something on there.

44:29.560 --> 44:31.060
Hold on, there's a question at the mic.

44:31.060 --> 44:32.300
Uh, that was great.

44:32.300 --> 44:35.200
You said you wanted to motivate platform security.

44:35.200 --> 44:38.060
What would you like to see out of the platforms?

44:38.340 --> 44:41.060
I would like to see IOMMUs properly configured.

44:41.060 --> 44:44.200
I would like to see users actually having control about how they're configured.

44:44.220 --> 44:50.760
I would like to see BIOSes that properly, uh, allocate domains to different devices as opposed to just throwing everything into a single domain.

44:50.880 --> 44:59.560
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.

44:59.560 --> 45:00.180
Thanks.

45:01.420 --> 45:02.320
Okay.

45:02.320 --> 45:03.720
More questions out there.

45:03.720 --> 45:04.200
Thank you.

