1 00:00:02,270 --> 00:00:04,930 Alright, looks like that last group of people I saw coming in came in. 2 00:00:04,970 --> 00:00:07,570 So, we'll go ahead and get the talk started. 3 00:00:07,630 --> 00:00:08,850 My name is Mikey Aubrey. 4 00:00:08,850 --> 00:00:12,730 I'm giving a talk on tracking real-time locations with rogue Wi-Fi packets. 5 00:00:13,030 --> 00:00:14,910 So, this is a pretty bold claim. 6 00:00:15,030 --> 00:00:16,970 It's a pretty cool project. 7 00:00:17,130 --> 00:00:19,050 So, we'll go ahead and dive right in. 8 00:00:19,530 --> 00:00:21,750 A little bit more information on introductions here, though. 9 00:00:21,850 --> 00:00:22,950 My name is Mikey Aubrey. 10 00:00:22,950 --> 00:00:27,670 I am known as Huey Huey on the RF Village Discord, if any of you are on there. 11 00:00:27,670 --> 00:00:32,090 I am 10 years, a little over 10 years now, a professional hacker. 12 00:00:32,090 --> 00:00:35,030 I do commercial work, government work, other work. 13 00:00:35,370 --> 00:00:43,570 I spent two years in radar technologies, which I'm only really bringing up because it's quite relevant to this talk and some of the technologies that are being used here. 14 00:00:43,750 --> 00:00:45,370 And I would like to introduce the device itself. 15 00:00:45,370 --> 00:00:47,210 I'm actually wearing two of them right now. 16 00:00:47,210 --> 00:00:49,510 That's the little blinky things that are right above my badge. 17 00:00:49,510 --> 00:00:52,310 You've probably seen several people walking around with these. 18 00:00:52,310 --> 00:00:54,610 We are actively using them for a couple of things. 19 00:00:54,610 --> 00:00:56,890 You'll see why and what here in a minute. 20 00:00:56,890 --> 00:00:59,970 The device itself, it tracks 2.4 gigahertz. 21 00:01:00,150 --> 00:01:02,230 And it is a working POC. 22 00:01:02,250 --> 00:01:04,090 So it's part of a larger project. 23 00:01:04,130 --> 00:01:06,890 The device itself is just a proof of concept. 24 00:01:06,890 --> 00:01:09,230 But the proof of concept is fully functional. 25 00:01:09,230 --> 00:01:12,410 It actually does some work that we have found to be useful. 26 00:01:14,150 --> 00:01:16,370 So, we'll start with the technical problem statement. 27 00:01:16,370 --> 00:01:20,630 This is what we were trying to solve, why this project came into fruition. 28 00:01:20,730 --> 00:01:29,350 And that is that tracking down Wi-Fi devices is something that you have to do occasionally if you're in the admin world or if you're in secret spaces or anything like that. 29 00:01:29,350 --> 00:01:35,470 You find yourself a rogue AP or a rogue device connects to you, you need to be able to find, track down those devices. 30 00:01:35,610 --> 00:01:44,710 Well, the devices, if you've ever had to use them to try and track these things down, are either expensive, hard to use, and most likely both. 31 00:01:44,950 --> 00:01:48,230 They are not the greatest of things to try and track down devices with. 32 00:01:48,230 --> 00:01:51,190 And sometimes you can spend a very long time looking for stuff. 33 00:01:51,270 --> 00:01:53,550 Most of the time, though, you don't have any of that. 34 00:01:53,550 --> 00:01:58,450 You simply are told, hey, somebody created a Wi-Fi access point in our area. 35 00:01:58,450 --> 00:02:00,530 I need you to go find it and shut it down. 36 00:02:00,530 --> 00:02:02,210 And off you go. 37 00:02:02,210 --> 00:02:04,210 I see a couple people nodding out in the audience. 38 00:02:04,550 --> 00:02:05,190 Off you go. 39 00:02:05,190 --> 00:02:05,990 Good luck. 40 00:02:06,310 --> 00:02:08,130 I actually had somebody on the bus on the way here. 41 00:02:08,130 --> 00:02:09,090 I was talking about this project. 42 00:02:09,090 --> 00:02:12,530 And they mentioned that they were reprovisioning all the access points for their company. 43 00:02:13,090 --> 00:02:17,610 And they did all of them, but there was one access point they could not find. 44 00:02:18,130 --> 00:02:19,490 And it was their own access point. 45 00:02:19,490 --> 00:02:20,810 They just had no idea where it was. 46 00:02:20,810 --> 00:02:23,470 They just knew that they couldn't find it, couldn't reprovision it. 47 00:02:23,750 --> 00:02:25,290 This is the kind of thing to do it. 48 00:02:25,290 --> 00:02:33,530 The idea of this project was to create a low-cost solution with a low barrier of entry to give you guys something that you can use to do this. 49 00:02:33,530 --> 00:02:35,110 Is it the best tool in the world? 50 00:02:35,110 --> 00:02:35,730 No. 51 00:02:35,730 --> 00:02:39,410 But it's also meant to be something that is cheap and accessible. 52 00:02:41,570 --> 00:02:46,550 Now, we are going to have to go on a couple of tangents in this talk to make sure that everything comes around full circle. 53 00:02:46,550 --> 00:02:48,890 But trust me, everything is coming around full circle. 54 00:02:48,890 --> 00:02:51,390 So we are going to start with 802.11 basics. 55 00:02:51,430 --> 00:02:53,570 Don't worry, we are not going to go too deep into the protocol. 56 00:02:53,570 --> 00:02:56,570 We are not going to go too deep into that whole framework and what it is. 57 00:02:56,930 --> 00:03:01,250 But just know that 802.11 is the standard that Wi-Fi devices use to communicate. 58 00:03:01,250 --> 00:03:06,290 It's what creates a wireless local area network rather than a wired local area network. 59 00:03:06,570 --> 00:03:08,310 They communicate using frames. 60 00:03:08,310 --> 00:03:13,190 The concept of frames is the important thing to know to understand how all of this stuff is working. 61 00:03:14,410 --> 00:03:22,170 Frames perform all of the functions from the management functions, from your access point controlling the devices, to your devices sending data to and from everywhere. 62 00:03:22,170 --> 00:03:23,990 It's all done within frames. 63 00:03:25,050 --> 00:03:28,310 So, going back, this is an example frame. 64 00:03:28,310 --> 00:03:29,830 This is what the frames look like. 65 00:03:29,830 --> 00:03:32,270 You can see they've got a header, they've got the body. 66 00:03:32,450 --> 00:03:33,970 Different frames will have different structures. 67 00:03:33,970 --> 00:03:37,050 The one you are looking at here is an empty data frame. 68 00:03:37,190 --> 00:03:41,350 So, it's got your destination MAC, your source MAC, your BSS ID. 69 00:03:42,570 --> 00:03:48,370 Things like sequence control and the CRC are usually handled by your stack automatically, so you don't need to worry too much about it. 70 00:03:48,370 --> 00:03:54,790 The important things to take away from this slide are the destination MAC, the source MAC, and the BSS ID. 71 00:03:55,050 --> 00:04:00,950 So, those are the three different things that kind of tell the data where it's going and who it's going to. 72 00:04:02,330 --> 00:04:07,050 In this particular example, in the thing you see below there, the destination is like our target device. 73 00:04:07,210 --> 00:04:10,510 The source would be set to the device that is sending the data out. 74 00:04:10,510 --> 00:04:14,310 And then the BSS ID would be like an access point that's moving stuff around. 75 00:04:14,670 --> 00:04:23,110 So , just a general understanding of what the frames are, because I'm going to be using terms like source MAC, destination MAC, and null data frames. 76 00:04:23,110 --> 00:04:24,850 Those are terms that you're going to hear a lot in this talk. 77 00:04:24,850 --> 00:04:26,950 So, I wanted to make sure we had that set up up front. 78 00:04:26,950 --> 00:04:29,470 That way, we're all on the same page moving forward. 79 00:04:30,490 --> 00:04:32,430 So, now I'm going to talk about polite Wi-Fi. 80 00:04:32,430 --> 00:04:37,190 So, polite Wi-Fi is a... hesitate to use the term exploit. 81 00:04:37,190 --> 00:04:39,870 It's not really an exploit of the 802.11 framework. 82 00:04:39,870 --> 00:04:43,930 It is an interesting behavior of the 802.11 framework. 83 00:04:44,070 --> 00:04:56,370 The basis of the polite Wi-Fi finding, which came out a number of years ago, there's a bunch of white papers on it, is that every device must send an ACK frame if they receive a valid frame. 84 00:04:56,510 --> 00:05:00,550 So, this is to make sure that devices know, hey, I sent you data, and it comes back. 85 00:05:00,550 --> 00:05:07,350 Similar to in TCP, where you have a handshake, where you give data, and then the device acknowledges that it received the data. 86 00:05:07,370 --> 00:05:08,790 This is a very similar process. 87 00:05:08,790 --> 00:05:10,450 You send a frame to a device. 88 00:05:10,450 --> 00:05:12,570 The device says, hey, I got your frame. 89 00:05:13,510 --> 00:05:23,990 Interestingly, and what makes this so critical, is that this data, like this valid frame, can come from outside of the network that your station, your device you're targeting, is on. 90 00:05:23,990 --> 00:05:31,870 So, typically, devices will only communicate with each other within the same wireless area network, but these frames don't need to come from the network that you're on. 91 00:05:31,870 --> 00:05:33,910 It will just respond with an ACK. 92 00:05:33,910 --> 00:05:46,510 So, this means that any device can send to a target device a valid frame, and as long as the frame passes the CRC, which is what it defines as a valid frame, then the device must respond with an ACK. 93 00:05:46,510 --> 00:05:51,590 It even defines the time period that it has to respond in as 12 microseconds, but most devices don't play nice. 94 00:05:52,890 --> 00:05:56,890 So, this is a really kind of cool behavior, and it absolutely is real. 95 00:05:56,890 --> 00:05:59,030 It's what you have it on. 96 00:05:59,370 --> 00:06:01,590 But there are a couple of limitations. 97 00:06:01,590 --> 00:06:03,510 One of them is power-saving mode. 98 00:06:03,870 --> 00:06:12,110 So, devices will only respond if they are on, and most devices will have a period where they turn off to save battery. 99 00:06:12,110 --> 00:06:15,830 If devices were on all the time, you would drain your batteries very quickly. 100 00:06:15,990 --> 00:06:31,690 There's actually research done with polite Wi-Fi where they took security cameras that were made to have like 16 to 20 day batteries, and they were hitting them with these polite Wi-Fi frames to force them to stay on, and they drained the entire battery in just a matter of a few hours. 101 00:06:32,050 --> 00:06:34,810 So, power-saving mode is a big issue with this. 102 00:06:35,430 --> 00:06:38,510 We're already doing a little bit of work on how to overcome the power-saving mode. 103 00:06:38,510 --> 00:06:42,450 You have to be able to send out a beacon frame with what is called a traffic indication map. 104 00:06:42,830 --> 00:06:46,310 That is how devices know that the access point is trying to send them data. 105 00:06:46,450 --> 00:06:48,670 So, there are ways to kind of overcome this limitation. 106 00:06:48,670 --> 00:06:57,070 You can send it a traffic indication map saying, hey, I need you to turn on, and then you can send it the polite Wi-Fi frame to which it will then have to respond with an ACK. 107 00:06:57,870 --> 00:07:07,710 All of this isn't implemented in these devices yet, because this requires you to know the access point as well as the target device, and we're trying to minimize any layers of what you need to know in advance. 108 00:07:09,390 --> 00:07:13,410 So, this is why polite Wi-Fi is just considered an interesting anomaly. 109 00:07:13,410 --> 00:07:25,890 So, if you look at the community as a whole, like the RF Wi-Fi community as a whole, they don't really view polite Wi-Fi as an exploit, because it's just a behavior that is part of the 802.11 framework. 110 00:07:25,890 --> 00:07:27,850 It's not really anything. 111 00:07:27,850 --> 00:07:32,010 You have to already have a valid frame that is going to a known MAC. 112 00:07:32,010 --> 00:07:35,870 The device has to be on, so there's some limitations in it to even work. 113 00:07:35,870 --> 00:07:40,770 And then, even if it does work, you don't gain any extra information from the target. 114 00:07:40,830 --> 00:07:42,970 An ACK frame is extremely simple. 115 00:07:42,970 --> 00:07:49,150 I'll give an example of one later, but it only has a single MAC address on it, and that MAC address would be my own device. 116 00:07:49,150 --> 00:07:59,750 So, if my device sends out a frame to do the polite Wi-Fi attack, the ACK that comes back has my MAC address on it and nothing else. 117 00:07:59,750 --> 00:08:02,390 So, the target device doesn't really give anything away. 118 00:08:02,530 --> 00:08:04,450 So, again, this is just an interesting anomaly. 119 00:08:04,450 --> 00:08:06,390 Nobody really thought much of it. 120 00:08:07,710 --> 00:08:10,210 So, here's where we're going to go on yet another one of those tangents. 121 00:08:10,250 --> 00:08:11,290 Don't worry. 122 00:08:11,570 --> 00:08:13,690 It all comes full circle, I promise. 123 00:08:13,850 --> 00:08:17,370 So, we're going to talk a little bit about a technique called trilateration. 124 00:08:18,490 --> 00:08:24,150 Trilateration is, and this is one of the only times I'm actually going to read directly off the slide, because this is a very important definition. 125 00:08:24,150 --> 00:08:29,410 It is the process of using these distance measurements to estimate position. 126 00:08:29,610 --> 00:08:36,390 So, if you have distance measurements, this is the process of using those measurements to estimate the position of something. 127 00:08:36,930 --> 00:08:38,310 Really important. 128 00:08:38,370 --> 00:08:46,550 So, the way that you get these distance measurements is by using your known factors, which is time, speed, and distance, and the relationship between those three objects. 129 00:08:46,550 --> 00:08:49,790 This is where I mentioned my radar background comes into play. 130 00:08:49,970 --> 00:08:53,550 This isn't anything too complicated, but distance is equal to speed times time. 131 00:08:53,550 --> 00:08:57,290 That's the main formula that we're interested in and going to be looking at that. 132 00:08:57,430 --> 00:09:05,350 So , when you're doing this, you are beholden to your clock speed of your device measuring it, and that is really important when you are measuring the speed of light. 133 00:09:05,350 --> 00:09:07,770 The speed of light is very, very, very fast. 134 00:09:07,850 --> 00:09:12,790 Your clock, in comparison to the speed of light, is extremely slow. 135 00:09:12,810 --> 00:09:15,670 So, that is kind of your biggest limitation, is time. 136 00:09:15,670 --> 00:09:17,230 You can't control the speed of light. 137 00:09:17,270 --> 00:09:20,150 Your time is limited by the clock speed of your device. 138 00:09:20,150 --> 00:09:24,410 So, your distance measurement is going to be based on those kind of issues. 139 00:09:24,530 --> 00:09:30,010 So, the longer you can increase that distance traveled, the less problem you're going to have with your distance. 140 00:09:30,270 --> 00:09:38,030 We'll go into a little bit more math on that in just a minute, just kind of let that sink in, while we talk about a picture version of trilateration. 141 00:09:38,030 --> 00:09:42,750 You can see we're going to talk about the one on the left here, trilateration without Wi-Fi polite, how that works. 142 00:09:43,130 --> 00:09:46,710 You can see that there are three receivers here and a signal source. 143 00:09:46,710 --> 00:09:53,570 Those three receivers, you have to assume that they know the location of each other, so they know how far apart they are from each other. 144 00:09:54,270 --> 00:09:56,370 And their clocks are synchronized to each other. 145 00:09:56,370 --> 00:09:59,930 So, whenever they get a signal, they can synchronize that data and understand it. 146 00:10:00,690 --> 00:10:06,050 When the signal source sends out data, you can get a measurement of when that data gets received. 147 00:10:06,190 --> 00:10:09,830 So, you can calculate T1, T2, T3, the time from there. 148 00:10:09,830 --> 00:10:13,030 You can then use the time to calculate distance and use that to trilaterate. 149 00:10:13,030 --> 00:10:15,250 It's a big simplification of the trilateration process. 150 00:10:15,250 --> 00:10:22,710 It's a lot more complicated than this, but this is all you really need to know to understand how polite Wi-Fi can enhance this process. 151 00:10:23,750 --> 00:10:34,250 There are a lot of limitations to doing it this way, and a lot of the things, if you research Wi-Fi tracking, like using Wi-Fi to locate devices, this is the process that most of them use. 152 00:10:34,390 --> 00:10:38,330 You'll a lot of times see these devices that have multiple antennas sticking out in the same location. 153 00:10:38,450 --> 00:10:40,910 They're using this kind of a technique to trilaterate. 154 00:10:41,490 --> 00:10:46,830 If you're using polite Wi-Fi to do your trilateration, though, you have a couple of main advantages. 155 00:10:46,850 --> 00:10:51,790 The biggest one being, if you look, now your source and receiver are in the same location. 156 00:10:51,790 --> 00:10:55,110 They're now one device, which means you actually control the source. 157 00:10:55,230 --> 00:11:03,430 You know exactly when that source signal came out, which is a huge advantage over just having a random device that you're just getting a signal from. 158 00:11:03,430 --> 00:11:05,750 You have no idea when that device sent that data. 159 00:11:05,750 --> 00:11:07,170 You just know when you received it. 160 00:11:07,170 --> 00:11:11,050 In this situation, you know exactly when that signal came out. 161 00:11:11,070 --> 00:11:22,310 And you know the distance between your receivers, just like in the other one, which means you can now calculate from the receivers, you can actually back-calculate the clock time that the original signal came out. 162 00:11:22,810 --> 00:11:25,270 So this means you no longer have to synchronize your clocks. 163 00:11:25,270 --> 00:11:32,610 You can actually use the origin of your controlled source as a way to synchronize the clocks on the attack time. 164 00:11:32,930 --> 00:11:44,170 And then, you also have now increased that distance, because the signal has to go from the signal source to the target, the target has to process data, and then the target has to send data back out. 165 00:11:44,170 --> 00:11:50,030 So this is where it diverges from your traditional radar technologies, where it's just a straight bounced signal. 166 00:11:50,030 --> 00:11:52,530 Much easier to kind of get a distance measurement for. 167 00:11:52,530 --> 00:11:58,430 In this case, the signal goes to the device, and the device has to process something, and then send back out. 168 00:11:58,430 --> 00:12:04,190 This introduces what is called jitter, which is the amount of time it takes the device to process and send back out. 169 00:12:04,190 --> 00:12:08,530 In the 802.11 standard, it says that that is meant to be exactly 12 microseconds. 170 00:12:08,530 --> 00:12:11,070 That is absolutely not true in the real world. 171 00:12:11,070 --> 00:12:16,250 But don't worry, there are ways to solve for it, and we're going to talk about that here in a minute. 172 00:12:17,110 --> 00:12:24,570 This is just a dotted version of this, mostly for people who are watching the pre-recorded version of this talk, or who just see the slides. 173 00:12:24,570 --> 00:12:37,950 The important things that are here, that I didn't talk about at detail, is that in trilateration without Wi-Fi, or polite Wi-Fi, you have to take the data you've received, and you have to line it up. 174 00:12:37,950 --> 00:12:51,510 Because if you have a target that's sending out 100 frames a second, you need to know exactly which frame and which timing you're lining up with each different receiver, which involves a lot more processing and time. 175 00:12:51,510 --> 00:12:57,150 However, if you're using polite Wi-Fi, it is obvious exactly which frame belongs to which thing. 176 00:12:57,150 --> 00:12:59,410 You can back-calculate all of that time. 177 00:12:59,410 --> 00:13:11,190 So there's a lot of advantages when it comes to trilateration by adding that extra bounce in between, even though you do introduce jitter, which you don't have with the more traditional form of trilateration. 178 00:13:11,850 --> 00:13:18,990 And again, I just want to emphasize that increasing distance traveled for the signal increases accuracy. 179 00:13:19,630 --> 00:13:22,430 And that's where we're going to talk a little bit about the clock issue. 180 00:13:22,470 --> 00:13:27,870 This is your biggest limitation when it comes to accuracy, and this is true no matter what form of trilateration you're using. 181 00:13:28,490 --> 00:13:33,470 The best clock speed on an ESP32, at least the ones that I'm using, is a 240 MHz clock. 182 00:13:33,850 --> 00:13:42,650 If you calculate that with the speed of light, that means that a singular clock cycle, that's one operation, is 1.25 meters. 183 00:13:43,050 --> 00:13:53,410 So if your device, your target, is 1.25 meters away, and I get that data, if I miss a single clock cycle, I am now 100% inaccurate. 184 00:13:53,870 --> 00:14:01,910 If my device is 100 meters away, and I miss a single clock cycle, now I'm only 1% inaccurate. 185 00:14:01,910 --> 00:14:07,390 So you can see, this is why distance, and making that distance bigger, matters. 186 00:14:07,490 --> 00:14:12,890 And polite Wi-Fi gives you some agency over what that distance is. 187 00:14:12,950 --> 00:14:21,450 When you're doing the trilateration without Wi-Fi polite, your distance is just whatever the shortest path is from your receiver to the signal. 188 00:14:21,450 --> 00:14:24,150 But with this, you have control over it. 189 00:14:24,650 --> 00:14:32,130 You really can't get better clock cycles without external stuff, and I don't know if you've ever tried to put external clocks on an ESP32. 190 00:14:32,210 --> 00:14:33,710 They don't play nice. 191 00:14:33,850 --> 00:14:36,810 They're very difficult to get really good readings on those. 192 00:14:37,690 --> 00:14:40,850 So for this reason, you really need to worry about missed clock cycles. 193 00:14:40,850 --> 00:14:50,530 You need to make your program, you need to make your system absolutely focused on minimizing any missed clock cycles that you might have. 194 00:14:50,530 --> 00:14:54,750 Because again, one missed clock cycle is 1.25 meters of inaccuracy. 195 00:14:55,730 --> 00:14:58,770 Now, there's got to be a way to kind of account for this, right? 196 00:14:58,850 --> 00:15:02,710 You've got to account for jitter, which is going to be that unknown time it takes the device to process. 197 00:15:02,710 --> 00:15:10,990 You've got to account for the actual device itself missing clock cycles because you had to process that incoming frame to see if it was the right one you're interested in. 198 00:15:11,190 --> 00:15:14,150 And it turns out, somebody's actually solved all this. 199 00:15:14,550 --> 00:15:17,170 In fact, somebody's kind of done this entire project. 200 00:15:17,550 --> 00:15:18,230 YPeep. 201 00:15:18,230 --> 00:15:19,470 Has anybody here heard of YPeep? 202 00:15:19,470 --> 00:15:20,190 I'm just curious. 203 00:15:20,190 --> 00:15:22,490 Has anybody here actually read up on that research? 204 00:15:22,490 --> 00:15:25,510 Wow, actually, nobody seems to have known about it. 205 00:15:25,510 --> 00:15:26,750 So , YPeep's really cool. 206 00:15:26,750 --> 00:15:27,610 You should go look it up. 207 00:15:27,610 --> 00:15:29,630 A really great white paper on YPeep. 208 00:15:29,630 --> 00:15:36,530 They actually made a product, which attaches onto a drone, some ESP32s and an ESP8266. 209 00:15:36,550 --> 00:15:39,010 They send out these polite Wi-Fi frames. 210 00:15:39,010 --> 00:15:40,610 They get back the acts. 211 00:15:40,610 --> 00:15:43,030 They then put that with the GPS on the drone. 212 00:15:43,030 --> 00:15:50,610 They fly the thing around, and they claim, within a couple dozen centimeters of accuracy, they can locate devices, which is phenomenal. 213 00:15:50,670 --> 00:15:51,670 Absolutely amazing. 214 00:15:51,670 --> 00:15:54,190 They show the data on how they can account for jitter. 215 00:15:54,270 --> 00:15:55,990 They talk about all of this. 216 00:15:55,990 --> 00:16:00,410 And they're literally doing exactly what this whole project is about, which is awesome. 217 00:16:00,410 --> 00:16:04,070 And, again, according to their paper, they were incredibly successful with this. 218 00:16:04,070 --> 00:16:05,710 But there was a huge problem. 219 00:16:06,990 --> 00:16:12,730 Number one, they put it on a drone, which is really cool, but I want a cheap solution. 220 00:16:12,730 --> 00:16:14,750 And drones are not cheap, usually. 221 00:16:14,750 --> 00:16:16,850 They're a little cheaper now than they used to be. 222 00:16:16,970 --> 00:16:19,150 Number two, they did not release their code. 223 00:16:19,150 --> 00:16:25,130 In fact, I reached out to them to ask them about this, and I said, hey, your research is exactly something I want to do. 224 00:16:25,130 --> 00:16:27,810 I'd love to talk to you guys and get to know more about this. 225 00:16:27,870 --> 00:16:33,410 And they sent back a vaguely threatening email that essentially said, no, we filed a patent. 226 00:16:33,410 --> 00:16:34,690 We're commercializing this. 227 00:16:34,690 --> 00:16:35,650 Back off. 228 00:16:36,450 --> 00:16:44,390 And number three, their algorithms and charts that I was talking about that showed they accounted for jitter, they're super informative in the fact that they don't tell you a darn thing. 229 00:16:45,030 --> 00:16:46,910 They basically were just like, yeah, we solved jitter. 230 00:16:47,690 --> 00:16:49,090 We made a chart. 231 00:16:51,490 --> 00:16:56,150 So, the approach of using Ypeep is absolutely not viable, right? 232 00:16:56,150 --> 00:17:02,210 I have no access to their product, I have no access to their code, and I got a vaguely threatening response because I was curious about it. 233 00:17:03,410 --> 00:17:05,970 So, you know, we really can't do it. 234 00:17:05,970 --> 00:17:09,590 But, Ypeep did teach me a couple of really important things. 235 00:17:09,590 --> 00:17:20,770 Number one, most important thing Ypeep taught me is that this idea of using polite Wi-Fi to elicit extra information from the devices via signal analysis is possible. 236 00:17:20,910 --> 00:17:33,790 They show that you can use polite Wi-Fi and the ACK coming back from the signal to do kind of round-trip time calculations, start getting info from it, and have something that works as a result. 237 00:17:34,150 --> 00:17:42,870 The number two thing they taught me is that I absolutely, by any means, need to not do anything they did because they filed a patent and sent a vaguely threatening email. 238 00:17:42,890 --> 00:17:52,710 So, everything that I do, every solution I need to do needs to be completely developed on my own, and I need to make sure that compared to the limited information they do provide, I'm not touching any of their stuff. 239 00:17:52,710 --> 00:17:55,010 They've got their baby, I can't touch their baby. 240 00:17:55,010 --> 00:17:57,250 But, again, it was possible. 241 00:17:57,270 --> 00:17:58,790 This is something that works. 242 00:17:58,990 --> 00:18:03,950 And somebody out there has proven it, even if they haven't shared how they did. 243 00:18:04,970 --> 00:18:07,010 So, now I had to break down this problem, right? 244 00:18:07,010 --> 00:18:08,430 We have a couple of problems to solve. 245 00:18:08,430 --> 00:18:11,170 For one, we need a cheap, polite Wi-Fi implementation. 246 00:18:11,950 --> 00:18:17,450 We need to gather, send, and receive data from multiple locations in order to do this analysis, right? 247 00:18:17,610 --> 00:18:20,010 Trilateration requires multiple points. 248 00:18:20,410 --> 00:18:25,810 I need to actually do the analysis, like whatever that looks like, to do the trilateration to account for jitter. 249 00:18:26,010 --> 00:18:28,630 And I need some sort of user-friendly interface, right? 250 00:18:28,790 --> 00:18:32,630 All this stuff is great, but if nobody can use it, nobody's going to use it. 251 00:18:34,410 --> 00:18:40,610 So, from those problems, we are going to break down the gaps that need to be filled, and the things that are already solved. 252 00:18:40,670 --> 00:18:45,750 So, for one, trilateration and other signal analysis techniques, they're already known. 253 00:18:45,750 --> 00:18:48,290 Like, I don't need to reinvent trilateration. 254 00:18:48,290 --> 00:18:50,190 This is a technique that exists. 255 00:18:50,370 --> 00:18:51,930 I need to implement it. 256 00:18:52,070 --> 00:18:56,070 I need to find a way to make it work, but I don't have to create it. 257 00:18:56,070 --> 00:18:58,470 So, this is a gap that I do not need to fill. 258 00:18:59,050 --> 00:19:00,750 The next one is a user-friendly interface. 259 00:19:00,750 --> 00:19:02,090 I mean, come on, that's entirely doable. 260 00:19:02,090 --> 00:19:03,390 Form follows function, though. 261 00:19:03,390 --> 00:19:04,930 So, I just put that to the back of my mind. 262 00:19:04,930 --> 00:19:06,770 We'll figure that out when we get there. 263 00:19:06,770 --> 00:19:09,530 We have to have something for the user to interface with. 264 00:19:09,890 --> 00:19:11,870 And then, finally, gathering send and receive data. 265 00:19:11,870 --> 00:19:14,250 Well, this is all using the 802.11 framework. 266 00:19:14,250 --> 00:19:17,230 That's kind of what the 802.11 framework is made for. 267 00:19:17,230 --> 00:19:21,090 So, there's got to be some way for that to already be a solved problem as well. 268 00:19:21,250 --> 00:19:26,890 Which means that the problem that needs to be filled, the gap that I need to fill, is a hardware solution. 269 00:19:26,890 --> 00:19:34,230 Like, I need to find some hardware that can do polite Wi-Fi and is capable of sending and receiving the data that I need it to send and receive. 270 00:19:34,430 --> 00:19:36,270 That is actually a gap to fill. 271 00:19:36,270 --> 00:19:37,830 Everything else isn't a gap. 272 00:19:37,830 --> 00:19:38,390 It's solved. 273 00:19:38,390 --> 00:19:39,890 I just need to figure it out. 274 00:19:40,750 --> 00:19:43,090 So, now we're on to the hardware selection. 275 00:19:43,110 --> 00:19:44,950 I'm personally a fan of Espressif. 276 00:19:44,950 --> 00:19:46,190 I love their stuff. 277 00:19:46,190 --> 00:19:46,710 It's cheap. 278 00:19:46,710 --> 00:19:47,410 It's accessible. 279 00:19:47,410 --> 00:19:48,190 It's awesome. 280 00:19:48,190 --> 00:19:50,030 Their documentation is amazing. 281 00:19:51,070 --> 00:19:52,830 And, yeah, they're cheap. 282 00:19:52,830 --> 00:19:58,010 They also have ESP-Now, which is a mesh capability for sending and receiving data between ESPs. 283 00:19:58,010 --> 00:19:59,050 It's awesome. 284 00:19:59,330 --> 00:20:02,870 And , the ESP-IDF allows for low-level control. 285 00:20:02,870 --> 00:20:06,350 Meaning, I can send and receive 802.11 frames directly. 286 00:20:06,350 --> 00:20:19,010 I don't have to do any weird thing where I'm, like, trying to change my device's Mac and I can literally just write an array of bytes and say, send this as an 802.11 frame and it will say, yes, sir. 287 00:20:19,010 --> 00:20:20,570 And send that frame off. 288 00:20:20,830 --> 00:20:28,510 So, in the end, the actual kit that I chose with the ESP 32 S2 Solo 2, it is on the DevKit C and it is $8. 289 00:20:28,530 --> 00:20:29,390 I love it. 290 00:20:29,430 --> 00:20:31,370 It's what's in these guys right here. 291 00:20:31,370 --> 00:20:32,090 It's great. 292 00:20:32,150 --> 00:20:33,730 Bought a bunch of them, set them all up. 293 00:20:34,890 --> 00:20:36,490 So, now we have to break down the problem further. 294 00:20:36,490 --> 00:20:37,670 So, we have our solution. 295 00:20:37,750 --> 00:20:38,810 What do we need to do with it? 296 00:20:38,870 --> 00:20:41,270 Problem number one, we need to implement polite Wi-Fi. 297 00:20:41,270 --> 00:20:43,750 Problem number two, we need to implement ESP Now. 298 00:20:44,250 --> 00:20:47,330 Well, ESP Now, again, looking at gaps that need to fill. 299 00:20:47,330 --> 00:20:50,470 So, we're focusing our problem solving on gaps that need to fill. 300 00:20:50,470 --> 00:20:51,850 So, we're not going to reinvent the wheel. 301 00:20:51,850 --> 00:20:53,950 We're not going to start with something that's already solved. 302 00:20:53,950 --> 00:20:57,650 We're going to start with the thing that we need to prove that this technology can work. 303 00:20:58,690 --> 00:21:01,430 And, ESP Now has great documentation. 304 00:21:01,690 --> 00:21:02,790 It's implemented. 305 00:21:02,790 --> 00:21:04,430 It already exists. 306 00:21:04,430 --> 00:21:06,650 I don't really need to, again, reinvent that. 307 00:21:06,650 --> 00:21:07,730 I don't need to work with that. 308 00:21:07,730 --> 00:21:13,170 I just need to figure out how my solution fits into the already existing solutions that are out there. 309 00:21:13,410 --> 00:21:16,990 So, that means problem number one is to implement polite Wi-Fi. 310 00:21:16,990 --> 00:21:21,190 There's nothing out there right now that shows you how to do polite Wi-Fi on this stuff. 311 00:21:21,430 --> 00:21:30,170 The papers talk about the technical side of how to do it, but they don't provide any direct examples of here's what you do, here's when you do it, here's how you do it, here's what it looks like. 312 00:21:30,350 --> 00:21:32,550 So, that is our problem to solve. 313 00:21:33,690 --> 00:21:38,210 So, now, to implement polite Wi-Fi on an ESP32, we need a couple of things. 314 00:21:38,350 --> 00:21:39,890 Number one, we need a valid frame. 315 00:21:40,590 --> 00:21:42,270 Number two, we need the target. 316 00:21:42,730 --> 00:21:45,610 Number three, we need to set our source ourselves. 317 00:21:45,610 --> 00:21:46,910 We need to set our source MAC. 318 00:21:47,030 --> 00:21:51,690 We need the ability to send those 802.11 frames, and we need the ability to receive ACKs. 319 00:21:52,530 --> 00:21:54,290 You can see here, these are the frames I chose. 320 00:21:54,290 --> 00:21:57,070 I chose a null data frame because they're small, they're quick, they're easy. 321 00:21:58,350 --> 00:22:05,230 And you actually can throw some data on them if you want, but they are generally just a blank frame that's used to kind of keep a live signal. 322 00:22:06,130 --> 00:22:09,950 And then the ACK coming back, you can see that is an extremely simple frame. 323 00:22:09,950 --> 00:22:12,530 It's just got the frame control, which tells you that it's an ACK. 324 00:22:12,530 --> 00:22:19,310 It's got how long that frame is going to be there, the MAC receiver, and the end. 325 00:22:19,450 --> 00:22:21,570 There's almost no information in an ACK. 326 00:22:21,570 --> 00:22:26,070 But we need the ability to do all of this within the ESP32. 327 00:22:26,290 --> 00:22:30,810 So the first thing that we need to do in there is implement our first user interface. 328 00:22:30,810 --> 00:22:32,910 The user needs to be able to set the target. 329 00:22:32,910 --> 00:22:34,870 The user needs to be able to set their source. 330 00:22:35,150 --> 00:22:44,090 So we did that using the non-volatile storage, the NVS, on the ESP32, and a serial interface, just a basic serial interface, to put the data in. 331 00:22:44,090 --> 00:22:50,150 So again, this is our first instance of a user interface implementation, form follows function . 332 00:22:50,150 --> 00:22:52,770 So the function is, they need to set the target and the source. 333 00:22:52,770 --> 00:22:56,070 The form easiest was to just have a serial interface to do so. 334 00:22:57,190 --> 00:23:08,330 Also, by using the non-volatile storage, you can reboot your device, so you plug it into your computer, use your serial to set the data, then you can unplug it, and plug it into a battery power source, and you don't lose your target, right? 335 00:23:08,330 --> 00:23:11,610 It's not stored in memory, it's actually stored on the device. 336 00:23:13,110 --> 00:23:16,190 So the next thing we needed to do was implement a frame. 337 00:23:16,450 --> 00:23:19,990 Again, I chose a null data frame for this, because they are small and easy. 338 00:23:20,510 --> 00:23:21,970 They're very quick. 339 00:23:22,290 --> 00:23:27,490 They contain all of the details that you need, your destination, your source, and your BSSID. 340 00:23:27,970 --> 00:23:34,310 In this particular case, we actually set the BSSID and the source to the same thing, because we don't know the access point of the target. 341 00:23:34,310 --> 00:23:35,390 We don't really care. 342 00:23:35,810 --> 00:23:37,590 The target doesn't even really care. 343 00:23:37,590 --> 00:23:39,590 We just need to send something valid. 344 00:23:40,010 --> 00:23:41,850 And this is a very easy frame to get valid. 345 00:23:41,850 --> 00:23:43,910 They're quick to calculate, quick to put out there. 346 00:23:45,970 --> 00:23:49,590 The next thing is, we need to put the ESP32 into promiscuous mode. 347 00:23:49,950 --> 00:23:53,410 And with promiscuous mode, there are a bunch of filters that you can set. 348 00:23:53,430 --> 00:23:57,250 So we set the filters in promiscuous mode to read ACK frames. 349 00:23:57,570 --> 00:24:02,330 There's a lot of them out there, so you've got to have really quick processing for this, so you don't fill your buffer. 350 00:24:02,810 --> 00:24:04,830 But easy to do. 351 00:24:04,830 --> 00:24:05,550 And you know what? 352 00:24:05,550 --> 00:24:13,110 While we were looking at putting in promiscuous mode for ACK frames, well, you can set some filters for other types of frames too, so why the heck not? 353 00:24:13,110 --> 00:24:15,310 Let's also look at management frames and data frames. 354 00:24:15,310 --> 00:24:17,690 Those will tell you if your target's in the area passively. 355 00:24:17,690 --> 00:24:23,050 So we now have put the passive scanning feature into this device that has that active scan. 356 00:24:23,050 --> 00:24:24,070 So we have both. 357 00:24:24,070 --> 00:24:29,870 If your device sends out a beacon, we'll pick that up, and it'll also pick it up if we send out the polite WiFi. 358 00:24:29,870 --> 00:24:32,450 It can do both at the same time, so why not? 359 00:24:32,710 --> 00:24:34,330 And don't forget to channel hop. 360 00:24:34,850 --> 00:24:37,210 That was a mistake I made early on. 361 00:24:37,210 --> 00:24:39,010 Don't forget to hop through channels. 362 00:24:41,090 --> 00:24:44,870 So the next step is to do the next level of user interface, right? 363 00:24:44,870 --> 00:24:54,630 The user needs to be able to do something with this data, and I don't want people to have to be walking around with their laptop out all the time, reading the serial interface. 364 00:24:55,050 --> 00:25:00,950 So I decided the easiest, again, form follows function, is to just throw two LEDs on the darn thing. 365 00:25:01,190 --> 00:25:06,710 One of them blinks faster if the signal is stronger, and the other one is brighter if the signal is stronger. 366 00:25:07,570 --> 00:25:09,050 I have them right here. 367 00:25:09,050 --> 00:25:10,350 You can see they're blinking right now. 368 00:25:10,350 --> 00:25:14,670 These are actually currently hunting the foxes that are set by the CTF. 369 00:25:15,790 --> 00:25:17,910 And you can see I actually have a blink. 370 00:25:17,910 --> 00:25:20,070 This blink is just to let me know that it's working. 371 00:25:20,070 --> 00:25:22,050 So you've got the power LED on these things. 372 00:25:22,050 --> 00:25:25,410 Then you've got this, which is kind of like my software is functional LED. 373 00:25:25,470 --> 00:25:28,950 And then once I get a signal, this LED will turn on. 374 00:25:29,070 --> 00:25:31,650 It'll actually get brighter if the device is closer. 375 00:25:31,650 --> 00:25:35,870 However, in my experience, it is really hard to tell if something is brighter or not. 376 00:25:35,870 --> 00:25:38,850 If you've ever actually used LEDs that do that, it's pretty much impossible. 377 00:25:38,850 --> 00:25:42,870 That's why I added the second one, which is the faster blink, because that is very clear. 378 00:25:43,170 --> 00:25:47,290 You can actually move these closer to devices and it will just go nuts. 379 00:25:48,110 --> 00:25:51,250 Very, very easy and clear to see when it is functional. 380 00:25:52,790 --> 00:25:54,550 And yeah, it started off as just the one LED. 381 00:25:54,550 --> 00:26:03,070 I ended up adding the second one, and now we have a user interface that is very clear indication of the RSSI, of the signal strength of their target you're looking for. 382 00:26:04,790 --> 00:26:07,970 So, I'm going to do a little demonstration of the device. 383 00:26:07,970 --> 00:26:10,650 Like I said, I've had them running right here the whole time. 384 00:26:11,290 --> 00:26:16,270 I actually think it might be easiest if I do the demonstration by grabbing the video that I have of it. 385 00:26:16,990 --> 00:26:18,230 We'll do that here. 386 00:26:18,370 --> 00:26:21,870 Go ahead and finish the talk, and then I'll pull up the video for you guys to do that. 387 00:26:22,030 --> 00:26:27,570 The main reason being, I don't have foxes nearby for myself to target. 388 00:26:27,650 --> 00:26:34,270 If anybody wants to volunteer a fox, I just need a 2.4 gigahertz device, and we can actually see these things in action. 389 00:26:34,270 --> 00:26:36,370 But, it's really simple, like I said. 390 00:26:36,370 --> 00:26:38,590 Light turns on when you get a signal. 391 00:26:38,590 --> 00:26:40,310 Light blinks faster when you get closer. 392 00:26:40,350 --> 00:26:43,830 It is not rocket science on that, and it's super easy. 393 00:26:43,830 --> 00:26:46,010 The whole point I made it, again, was accessibility. 394 00:26:46,170 --> 00:26:50,950 I want this to be something that you have somebody on your team who can say, provision these devices, right? 395 00:26:50,950 --> 00:26:59,890 They build the repo, they flash it onto a device , you set the target, and you can hand it off to anybody and just say, hey, play hot or colder. 396 00:26:59,890 --> 00:27:01,550 You got a 2 .4 gigahertz? 397 00:27:01,590 --> 00:27:02,250 Awesome. 398 00:27:03,010 --> 00:27:05,950 The next thing I actually need is a USB micro cable. 399 00:27:06,230 --> 00:27:08,570 Anybody here could run to the table that I have? 400 00:27:08,850 --> 00:27:11,350 I've got a couple people out here who have been working with me. 401 00:27:11,350 --> 00:27:14,510 Somebody could run to the table and grab a USB micro cable off my laptop. 402 00:27:14,510 --> 00:27:16,330 I'd appreciate that, or off my desk. 403 00:27:18,830 --> 00:27:25,490 So, you know, I want it to be something that you can just hand it off to somebody, and they don't know anything about how this works. 404 00:27:25,490 --> 00:27:26,250 They don't need to. 405 00:27:26,250 --> 00:27:29,890 They just need to know, hey, if it's blinking, you're closer. 406 00:27:30,450 --> 00:27:32,250 And honestly, this has been really successful. 407 00:27:32,250 --> 00:27:36,790 We've had a number of people that have come up and been interested in these devices, and I've illustrated it to them. 408 00:27:36,790 --> 00:27:43,770 I've handed it off to a few people that I work with who have no idea about any of this code that's in the background and how it's running, and it's super easy. 409 00:27:43,950 --> 00:27:46,070 They can go out and see it. 410 00:27:47,610 --> 00:27:49,670 So again, I'm going to go ahead and do the conclusion. 411 00:27:49,670 --> 00:27:52,090 Like I said, we'll do a little bit of a demo here in just a minute. 412 00:27:53,070 --> 00:27:59,490 And the conclusion is that the goal was to create a real-time tracking widget for Wi-Fi devices. 413 00:28:00,010 --> 00:28:02,570 And that is not finished, but that is well underway. 414 00:28:02,570 --> 00:28:07,590 And on the way, we have this proof-of-concept device that actually does it. 415 00:28:07,810 --> 00:28:12,110 The technology there is available, accessible, and cheap, which was all the goals. 416 00:28:12,110 --> 00:28:12,690 And it's proven. 417 00:28:12,690 --> 00:28:13,590 Do you have the cable? 418 00:28:13,610 --> 00:28:14,310 Awesome. 419 00:28:14,390 --> 00:28:15,650 And it's proven. 420 00:28:15,690 --> 00:28:21,670 So because of that, this is a pretty successful little device, and it's on the way. 421 00:28:21,730 --> 00:28:33,410 All the problems that are left are items that, again, when we were doing our problem solving breakdown, and we were looking at it, all of those problems that are left are ones that have been solved in one way or another. 422 00:28:34,070 --> 00:28:35,950 So all we have left to do is implement them, right? 423 00:28:35,950 --> 00:28:36,930 That's the easy part. 424 00:28:37,410 --> 00:28:38,430 Just do it. 425 00:28:40,210 --> 00:28:41,870 So if you would like to... 426 00:28:44,340 --> 00:28:46,820 I want to set down the microphone, but I don't want to move that thing too much. 427 00:28:46,820 --> 00:28:48,460 So you said you had a 2 .4 gigahertz device? 428 00:28:48,460 --> 00:28:49,960 You got the MAC address for it and stuff? 429 00:28:53,330 --> 00:28:57,210 So I'm going to go ahead and unplug this here real quick while I set up a serial reader. 430 00:29:32,790 --> 00:29:33,990 Don't you love demos? 431 00:29:34,010 --> 00:29:35,350 Aren't they always the best, you know? 432 00:29:35,570 --> 00:29:36,950 Always work first time. 433 00:29:49,880 --> 00:30:04,200 So I know one thing I can do, it's a little bit of a cheap trick, but I can just look for the DC32 Wi-Fi and start beaconing off of that, but that's not as cool because they're kind of up and around, so I can't show you that it blinks faster when you get closer because you can only get so close to those. 434 00:30:24,740 --> 00:30:26,460 All right, we've got serial interface up here. 435 00:30:26,460 --> 00:30:27,460 Let me plug it back in. 436 00:30:32,060 --> 00:30:34,460 All right, so yeah, here we have the serial output from this device. 437 00:30:34,520 --> 00:30:36,020 It's just kind of giving me some data right now. 438 00:30:36,020 --> 00:30:39,000 It's essentially just telling me that, hey, I don't see the target. 439 00:30:39,200 --> 00:30:45,540 So I just need the MAC of a useful device and I don't even have my phone on me, so I can't grab that. 440 00:30:52,690 --> 00:30:54,330 We're connected to DC32 right here. 441 00:30:54,330 --> 00:30:57,810 I wonder if I can just grab the MAC address of my access point here. 442 00:31:03,010 --> 00:31:04,070 There we go. 443 00:31:07,780 --> 00:31:08,700 So 3CE9. 444 00:31:08,700 --> 00:31:12,020 So we're going to type it in here, target MAC 445 00:31:16,650 --> 00:31:22,150 3C E9 446 00:31:26,220 --> 00:31:33,140 F7 So one thing that this might not work is this might be the 5 GHz band, so we will see. 447 00:31:38,310 --> 00:31:38,750 0483 448 00:31:44,820 --> 00:31:46,680 And I misspelled target MAC. 449 00:31:47,800 --> 00:31:49,020 Isn't that great? 450 00:32:17,160 --> 00:32:24,280 All right, we're going to fall on pan B here, which is the video demo, because demo gods are not on my side today. 451 00:32:36,290 --> 00:32:44,510 So the video, what you're going to see is I actually, when I was testing these devices, I was picking random MAC addresses in my house that I had no idea what these devices were. 452 00:32:44,510 --> 00:32:46,250 I didn't even know if they were in my house. 453 00:32:46,750 --> 00:32:51,990 I was just going for it. 454 00:32:52,010 --> 00:33:00,990 And as a result, I decided to use that as my first, like, fox hunt, was to figure out what these devices were that I was using. 455 00:33:03,450 --> 00:33:04,630 So let's see. 456 00:33:04,630 --> 00:33:06,430 Make sure this is the right video real quick. 457 00:33:17,970 --> 00:33:21,090 All right, you guys are going to see the lovely inside of my house as well here. 458 00:33:21,090 --> 00:33:22,130 This is going to be great. 459 00:33:26,720 --> 00:33:27,700 Real quick question. 460 00:33:27,700 --> 00:33:30,080 Is there sound coming from the HDMI? 461 00:33:31,340 --> 00:33:32,100 There is not. 462 00:33:32,100 --> 00:33:33,800 All right, so I will talk through it then. 463 00:33:34,980 --> 00:33:38,380 So, see my lovely face here talking to it. 464 00:33:38,380 --> 00:33:40,260 So this is in the pre-recorded version. 465 00:33:40,260 --> 00:33:41,660 If you're seeing, there's actually two videos. 466 00:33:41,660 --> 00:33:48,920 This is one where I actually show the device itself because you guys can actually come up here after we're done with the talk if you want to come up, ask questions, see the device. 467 00:33:49,120 --> 00:33:50,380 We can talk a little bit more about it. 468 00:33:50,380 --> 00:33:51,240 I'd be happy to. 469 00:33:51,480 --> 00:33:52,380 So you can see that's there. 470 00:33:52,380 --> 00:33:53,420 It's on the breadboard. 471 00:33:53,420 --> 00:33:54,980 It's one of the earliest versions of the device. 472 00:33:54,980 --> 00:33:56,660 Just barely getting it functional. 473 00:33:56,980 --> 00:34:02,300 And I'm talking through the fact that I'm getting ready to go and fox hunt stuff in my own house. 474 00:34:07,430 --> 00:34:08,770 It's unfortunate there's no sound. 475 00:34:08,770 --> 00:34:11,290 I swear, I'm giving you the greatest speech of your life. 476 00:34:11,290 --> 00:34:14,890 Like, if you could hear me talking on that video right now, you would be just wowed. 477 00:34:16,530 --> 00:34:17,970 So I started in my basement. 478 00:34:17,970 --> 00:34:22,330 I could tell that it wasn't in there because you can see that it is blinking, but it's not blinking that great. 479 00:34:22,330 --> 00:34:25,390 But as I go up the stairs of my house, I'm blinking faster and faster. 480 00:34:25,430 --> 00:34:27,430 I actually have no idea where this device is. 481 00:34:27,430 --> 00:34:28,970 This is not a directional antenna. 482 00:34:28,970 --> 00:34:30,750 This is an omnidirectional antenna. 483 00:34:30,810 --> 00:34:34,450 The only data I have to identify this stuff is the signal strength. 484 00:34:35,310 --> 00:34:43,330 So, you know, tracking stuff down is understandably a little bit more difficult because of that, but you can see that it is entirely possible. 485 00:34:43,330 --> 00:34:46,310 As I'm moving through the house, I'm checking different Wi-Fi devices that I see. 486 00:34:46,470 --> 00:34:50,250 You can see it's blinking slower, so that obviously wasn't the device. 487 00:34:50,390 --> 00:34:52,550 You can see my children absolutely love to color. 488 00:34:52,670 --> 00:34:53,610 I got a little doggie there. 489 00:34:53,610 --> 00:34:54,550 Her name's Blueberry. 490 00:34:55,510 --> 00:34:57,010 Kids love to color or play. 491 00:34:57,010 --> 00:34:58,050 Kids kind of take over the house. 492 00:34:58,050 --> 00:34:58,950 You know how that can be. 493 00:34:59,510 --> 00:35:02,110 As you can see, I'm getting faster, so I'm thinking it might be my oven. 494 00:35:02,110 --> 00:35:05,850 I know my oven has a Wi-Fi device in it, but it doesn't seem to be the oven. 495 00:35:05,970 --> 00:35:09,470 I don't think that I have any Wi-Fi devices on the counter, but you might as well check. 496 00:35:09,510 --> 00:35:12,690 Again, you can use that blinking light really easy to see where that is. 497 00:35:13,390 --> 00:35:27,570 As I move into this room, it's going faster and faster, so the first thing I go to is my Switch, and I also have a device hiding behind the TV, a little Google Chromecast thing, and a sound bar, all of which might be the device, but we're not sure. 498 00:35:27,570 --> 00:35:30,610 I actually didn't even know how fast the fastest blink was at this point either. 499 00:35:30,610 --> 00:35:32,610 I just kind of programmed it, and off I went. 500 00:35:33,250 --> 00:35:37,570 And then, as you can see, I got really close, and that little blinking light is just going insane. 501 00:35:37,570 --> 00:35:41,530 So you can see I've located that it is that little smart speaker right there. 502 00:35:41,530 --> 00:35:46,490 So you can kind of see that's how the device operates when it is functioning. 503 00:35:48,550 --> 00:35:50,290 So let's get back to the presentation. 504 00:35:53,700 --> 00:35:57,720 And yeah, now's the time for questions if anybody has any questions you want to ask. 505 00:35:58,040 --> 00:35:59,220 I'll answer as many as I can. 506 00:35:59,220 --> 00:36:00,900 It's a little bit loud, so please do speak up. 507 00:36:00,900 --> 00:36:01,500 Yes, sir? 508 00:36:07,320 --> 00:36:08,640 I'm sorry, I can't quite hear you. 509 00:36:08,640 --> 00:36:10,520 Let me come forward a little bit. 510 00:36:10,520 --> 00:36:12,220 I heard the first part of the question. 511 00:36:19,350 --> 00:36:23,790 Alright, so the question was, if you wanted to evade this, could you use traffic control to increase the jitter? 512 00:36:24,010 --> 00:36:34,090 So, if you do that, your device is not responding to acts correctly anymore, which will cause all sorts of other issues, because your device must act any valid frame it receives. 513 00:36:34,090 --> 00:36:35,950 That is an 802.11 standard. 514 00:36:36,230 --> 00:36:40,250 You would probably end up with connectivity issues in general if you did something like that. 515 00:36:41,130 --> 00:36:52,510 I've thought about a number of different ways to try and evade this kind of technique, and an important thing to note about these devices is, for one, that they also do passive scanning, which you can't really evade a passive scan, but for the active side, 516 00:36:52,510 --> 00:36:57,190 again, your device has to respond to a valid frame. 517 00:36:57,550 --> 00:37:00,750 So, if the valid frame comes to you, you need to do that. 518 00:37:00,750 --> 00:37:09,590 If you wanted to try and implement something that didn't respond with an act, you would likely end up with issues with 802.11 control, right? 519 00:37:09,630 --> 00:37:21,770 Devices would send a packet to you, not receive the act, and go, oh, I better send it again, and send it again, until they actually receive that proper act at the end. 520 00:37:23,770 --> 00:37:24,930 Yes, sir? 521 00:37:27,110 --> 00:37:29,010 Am I going to release the code? 522 00:37:29,090 --> 00:37:31,390 The answer is, after DEF CON. 523 00:37:33,830 --> 00:37:41,690 So, when we are able to do any sort of code release or code reviews, it's currently under review right now, before release. 524 00:37:42,150 --> 00:37:53,430 I was talking, I think the best place for that to be communicated out will be either on the Discord, or in the video description, when the actual recorded version of this talk goes live. 525 00:37:53,530 --> 00:38:00,630 So, if you're not on it, the Radio Frequency Sanctuary Discord, I forgot the exact name of it off the top of my head, but that Discord is a great place. 526 00:38:00,630 --> 00:38:01,530 All these guys are on it. 527 00:38:01,530 --> 00:38:02,430 They're super responsive. 528 00:38:02,430 --> 00:38:04,310 I've got to say a big thank you to the admin team. 529 00:38:04,870 --> 00:38:06,850 So , if you're not on that Discord, get on the Discord. 530 00:38:06,850 --> 00:38:08,850 Lots of great stuff being shared there. 531 00:38:10,450 --> 00:38:11,090 Yes, sir? 532 00:38:18,610 --> 00:38:22,430 Yes, so the question was, I mentioned trial iteration, but I was only doing one device on the video. 533 00:38:22,430 --> 00:38:25,850 So, that is where I'm specifying, this is the proof of concept device. 534 00:38:26,110 --> 00:38:38,370 So, the full problem statement gets broken down into a number of different steps, and one of them is the fact that there need to be multiple devices communicating to each other, and the data needs to be able to be correlated between the devices. 535 00:38:39,310 --> 00:38:43,410 However, in that, I broke down which problems I needed to solve first. 536 00:38:43,410 --> 00:38:45,790 Which problems don't have a solution. 537 00:38:45,790 --> 00:38:47,670 Trial iteration is something that exists. 538 00:38:47,670 --> 00:38:48,570 It's solved. 539 00:38:48,570 --> 00:38:51,230 Well, it's not solved, but there are algorithms for it. 540 00:38:51,230 --> 00:38:52,790 There's research on it. 541 00:38:52,790 --> 00:39:00,290 But doing polite Wi-Fi on an ESP32 and collecting that data on the same device is not solved. 542 00:39:00,290 --> 00:39:04,490 So, this is a proof of concept of that part of the chain. 543 00:39:04,490 --> 00:39:09,190 So, the full trial iteration and that scale is not implemented on these singular devices. 544 00:39:09,190 --> 00:39:13,450 Again, that's a big weakness that you saw when I was doing the hunt with the device. 545 00:39:13,510 --> 00:39:17,690 I only had the signal strength on an omnidirectional antenna. 546 00:39:17,910 --> 00:39:30,350 It doesn't do the full scale trial iteration yet, but the point of the presentation was to break down which of those problems are solved, how they're solved, and how this device fits into all of that with a solution for the one missing piece. 547 00:39:51,970 --> 00:39:57,330 So, the question was about private MAC addresses from an iPhone and an iPad. 548 00:39:57,330 --> 00:40:02,430 So, I unfortunately am not familiar with how exactly that protocol works or how that would work. 549 00:40:02,430 --> 00:40:07,950 I know that if it uses 802.11 to send and receive frames, that's what this is. 550 00:40:07,950 --> 00:40:11,970 These are 802.11 frames that these are looking at and using and manipulating. 551 00:40:11,970 --> 00:40:17,370 So, if the device is using 802.11 to communicate, this would affect it. 552 00:40:17,970 --> 00:40:21,210 Do iPads and iPhones have something proprietary that is outside of that? 553 00:40:21,210 --> 00:40:22,750 I honestly don't know. 554 00:40:24,090 --> 00:40:25,470 Somebody's shaking their head. 555 00:40:25,470 --> 00:40:28,370 So, you would end up seeing if it's private MAC. 556 00:40:28,370 --> 00:40:29,410 Do you know what that means? 557 00:40:29,630 --> 00:40:31,030 I'm not familiar with that. 558 00:40:35,060 --> 00:40:37,960 So, apparently with that, they pick a new MAC address. 559 00:40:38,060 --> 00:40:47,220 So, that actually would affect this quite a bit because you set the target MAC and unless you had something to update that target MAC with the new MAC address, it wouldn't work. 560 00:40:47,760 --> 00:40:51,680 I don't know if maybe you could put it into a filter that says all MAC addresses or something like that. 561 00:40:51,740 --> 00:40:59,200 There's ways that you could attempt to do that, but the way that this device works is once you set that target MAC, that's what it's hunting. 562 00:40:59,200 --> 00:41:04,480 So, if your device is rotating MACs, then by all means that would evade this device. 563 00:41:05,140 --> 00:41:05,760 Yes. 564 00:41:24,010 --> 00:41:25,450 Yeah, and I apologize. 565 00:41:25,450 --> 00:41:27,850 I'm a big part of the 2.4 traffic right now. 566 00:41:28,270 --> 00:41:33,790 So, he was just saying that was the gentleman who volunteered to use his phone as a 2.4 GHz target. 567 00:41:33,790 --> 00:41:37,090 He was just saying that's exactly what's happening with his phone. 568 00:41:37,090 --> 00:41:41,070 It was kind of rotating MACs and he couldn't even get his own devices to connect to it. 569 00:41:41,070 --> 00:41:51,430 So, yeah, if we're talking about evasion techniques, rotating your MAC address would be an effective evasion technique as it would for any Wi-Fi scanner that's looking for a target MAC. 570 00:41:51,430 --> 00:41:54,910 If you change your MAC, then it's no longer able to see who you are. 571 00:41:57,440 --> 00:42:01,940 Any other questions or anybody have anything else that they'd like to add? 572 00:42:02,120 --> 00:42:03,880 So, I do have one more quick little bonus slide. 573 00:42:03,880 --> 00:42:07,260 It's nothing too crazy, but I did want to talk about this donkey. 574 00:42:07,520 --> 00:42:10,780 So, this is a donkey named Maggie and she is wearing a blanket. 575 00:42:10,780 --> 00:42:13,520 So, it is a blanketed donkey. 576 00:42:15,140 --> 00:42:16,500 Hopefully, you get the reference. 577 00:42:17,100 --> 00:42:20,440 So, I wanted to take a moment to talk about how else this is different than Ypeep. 578 00:42:20,440 --> 00:42:24,700 Again, Ypeep is a solution that supposedly exists, so I do want to kind of cover this real quick. 579 00:42:24,960 --> 00:42:28,040 For one, Ypeep actually uses two devices that are co-located. 580 00:42:28,040 --> 00:42:39,460 This is a very, very, very common solution for this because it is really hard to send a transmit and then immediately receive that ACK back because it happens so, so, so quickly. 581 00:42:40,140 --> 00:42:49,540 This does not rely on co-located devices and it does not, it can use an arbitrary number of devices even. 582 00:42:49,540 --> 00:42:51,980 The idea is to have this be a mesh at the end of the day. 583 00:42:52,020 --> 00:42:54,320 So, the number of devices don't really matter. 584 00:42:54,320 --> 00:42:59,900 They can work together and it is totally different than their co-located one sender, one receiver. 585 00:43:00,700 --> 00:43:09,980 And I have tested, you can in fact on at least the way I have programmed these, at least the way this works, it will receive the ACK from its own send, its own transmit. 586 00:43:09,980 --> 00:43:13,140 It is fast enough to transmit and then receive that ACK. 587 00:43:14,360 --> 00:43:20,840 The other thing is, they used an 8266 and an ESP32 of unknown type. 588 00:43:21,760 --> 00:43:26,640 Ours just uses an ESP32S2 so we are using a totally different hardware base. 589 00:43:26,640 --> 00:43:31,600 Those don't mention which one is the receiver, which one is the sender or how they are doing any of that. 590 00:43:31,600 --> 00:43:32,780 So, different hardware. 591 00:43:32,880 --> 00:43:37,560 And the final thing is that their trilateration techniques relied on drone GPS. 592 00:43:38,360 --> 00:43:47,860 The trilateration that we are talking about doing will use round trip time between the devices in the mesh so that they can locate each other in an arbitrary location. 593 00:43:48,100 --> 00:43:54,380 The idea is that the user would then pin one of them using a GPS or even just on an arbitrary map. 594 00:43:54,380 --> 00:43:56,400 You could just draw a map on your screen. 595 00:43:56,840 --> 00:44:06,600 Say this device is here and then the devices will get the distance to each other and locate devices within that area net that they have cast. 596 00:44:07,260 --> 00:44:10,580 Totally different techniques when it comes to how the trilateration is working. 597 00:44:10,580 --> 00:44:12,040 Totally different set of hardware. 598 00:44:12,580 --> 00:44:16,600 And a totally different send and receive methodology. 599 00:44:16,980 --> 00:44:19,380 Again, that is my donkey being covered. 600 00:44:22,900 --> 00:44:25,640 If anybody wants to come up here and see the devices, chat with me. 601 00:44:25,640 --> 00:44:28,640 I am more than happy to hang around for a little bit. 602 00:44:28,640 --> 00:44:30,860 Talk to you guys, let you guys interact with the devices. 603 00:44:32,280 --> 00:44:34,480 And yeah, we will call the talk here. 604 00:44:34,480 --> 00:44:37,520 Thank you all for coming and hopefully you have a great rest of your day.