1 00:00:00,000 --> 00:00:02,900 Good afternoon, everyone. 2 00:00:03,300 --> 00:00:09,080 And this next talk that is sponsored by the Packet Hacking Village. 3 00:00:09,500 --> 00:00:10,860 Is More Money More Problems? 4 00:00:10,860 --> 00:00:12,000 Actually, I'm wrong. 5 00:00:12,000 --> 00:00:12,420 Sorry. 6 00:00:12,420 --> 00:00:14,920 Is More Wireless More Problems? 7 00:00:14,920 --> 00:00:22,980 By Jeff Horvath and Winston Tam. 8 00:00:23,940 --> 00:00:24,760 Hey, guys. 9 00:00:24,760 --> 00:00:27,140 Thanks for coming out to our talk today. 10 00:00:27,140 --> 00:00:28,360 More Wireless, More Problems. 11 00:00:28,360 --> 00:00:31,300 From the modular wireless security systems to the data analytics that love them. 12 00:00:31,300 --> 00:00:33,640 I'm Jeff Horvath from Alsatian Consulting. 13 00:00:33,640 --> 00:00:36,900 Presenting with me today is Winston Tam from Uplinks LLC. 14 00:00:37,840 --> 00:00:41,980 So, to tell you guys a little bit about me, I did 13 years in the Army as an intelligence officer. 15 00:00:41,980 --> 00:00:44,480 I did 10 of those years in special operations units. 16 00:00:44,680 --> 00:00:48,640 Once I got out of the military, I started Alsatian Consulting. 17 00:00:48,640 --> 00:00:50,700 There's our website if you ever want to check us out. 18 00:00:50,700 --> 00:00:57,760 We do cybersecurity, digital signature reduction, personal data protection to private sector and public sector individuals. 19 00:00:57,760 --> 00:01:01,580 I have a BA in political science from Drexel University. 20 00:01:01,580 --> 00:01:05,520 I have a master's in information security engineering from the Sands Institute. 21 00:01:05,560 --> 00:01:10,600 And with that, I got 10 GAIAC certifications and there's my analyst ID so you can prove that I'm not a liar. 22 00:01:10,940 --> 00:01:14,320 I'm a huge wireless enthusiast and I have two German Shepherds. 23 00:01:14,320 --> 00:01:19,080 A 13-year-old girl named Belle and a 3-year-old boy named Gunner. 24 00:01:20,080 --> 00:01:20,900 Hey, everybody. 25 00:01:20,900 --> 00:01:22,160 My name is Winston. 26 00:01:22,320 --> 00:01:26,500 I work in software development with my company, Uplinks. 27 00:01:26,500 --> 00:01:28,500 I spent eight years in the Navy. 28 00:01:28,820 --> 00:01:30,340 Four of those in special operations. 29 00:01:30,380 --> 00:01:33,740 During that time, I was a network engineer, pen tester, and a red teamer. 30 00:01:35,040 --> 00:01:42,680 I also did like three concurrent years as a commercial pen tester for banks, ISPs, and funny enough, like an Indian reservation. 31 00:01:42,680 --> 00:01:43,920 They get like a .gov domain. 32 00:01:43,920 --> 00:01:44,760 That's kind of cool. 33 00:01:45,460 --> 00:01:49,780 Yeah, I do DIY tinkering, love 3D printing. 34 00:01:49,940 --> 00:01:51,300 I have a lot of projects. 35 00:01:51,300 --> 00:01:54,060 A bunch of expired certs I don't care about. 36 00:01:54,060 --> 00:01:56,020 I'm a proud Bengal cat dad. 37 00:01:56,780 --> 00:01:58,500 I stopped playing Factorial. 38 00:01:58,500 --> 00:01:59,880 I switched over to RimWorld. 39 00:02:00,280 --> 00:02:02,660 But I'm still... yeah, I know, I know. 40 00:02:03,140 --> 00:02:06,020 Yeah, and I'm a decent rock climber. 41 00:02:06,020 --> 00:02:07,580 And yeah, that's how I spend my time. 42 00:02:09,460 --> 00:02:11,440 So let's talk about why we did this. 43 00:02:11,440 --> 00:02:14,060 Why the impetus behind this whole project. 44 00:02:14,060 --> 00:02:17,700 And me being a huge wireless nerd, I wanted to collect large swaths of data. 45 00:02:17,700 --> 00:02:21,580 I want to collect all of the channels, all of the packets, get all of the things. 46 00:02:21,580 --> 00:02:26,300 And my initial thought for this was, okay, how many adapters can I actually put onto one computer? 47 00:02:26,300 --> 00:02:28,340 Can I just do an all-in-one situation? 48 00:02:28,480 --> 00:02:32,700 And if I can, how physically big is that and how much power is that going to take? 49 00:02:32,700 --> 00:02:35,780 And what I found is that that then creates a huge issue with form factor. 50 00:02:35,820 --> 00:02:44,260 Because in order to put the requisite amount of cards that we have displayed here on the front on one computer, that's going to be a rather large box. 51 00:02:44,260 --> 00:02:46,080 So there's form factor issues. 52 00:02:46,080 --> 00:02:51,260 There are power concerns with it, with getting enough power to have that and actually have it be kind of portable. 53 00:02:51,760 --> 00:02:53,300 Number of peripheral devices, right? 54 00:02:53,300 --> 00:02:57,800 The more things you add, the more the operating system has to take care of and has to keep track of. 55 00:02:57,800 --> 00:02:59,680 So the more things you add, the more RAM you have. 56 00:02:59,680 --> 00:03:04,520 And eventually you have this incredibly powerful system that really can only do about one or two things. 57 00:03:05,180 --> 00:03:09,700 And with all that collection, even if we did get that to work, it still has a large amount of data. 58 00:03:09,700 --> 00:03:20,300 I mean, think about how much Wi-Fi is flying around right now and how much data in a one-hour run you can get if you're listening to every single channel. 59 00:03:20,520 --> 00:03:24,620 So we had a lot of large amounts of data that were choking my analytic tools. 60 00:03:24,620 --> 00:03:26,160 I couldn't put it into Google Earth. 61 00:03:26,160 --> 00:03:28,080 I couldn't put it into another app called QGIS. 62 00:03:28,080 --> 00:03:31,700 I couldn't put it into Wireshark because they were just too big. 63 00:03:31,720 --> 00:03:39,440 And I would end up either having to strip out data and miss things, or I would end up having an incomplete amount of data. 64 00:03:39,820 --> 00:03:43,680 So my solution to that is building the signal processing and reconnaissance kit yellow. 65 00:03:43,680 --> 00:03:50,020 Which, yes, I know it looks a little orange, but I really wanted the last letter to be a Y, and I couldn't think of any kind of tech thing that started with Y. 66 00:03:50,040 --> 00:03:52,440 So that's why it ends in Y, and that's why I'm calling that yellow. 67 00:03:53,420 --> 00:03:55,540 It's a modular wireless collection. 68 00:03:55,540 --> 00:03:59,740 Each Raspberry Pi is set to do a different band of the wireless frequency. 69 00:04:00,140 --> 00:04:01,940 It will also do Bluetooth BLE. 70 00:04:02,240 --> 00:04:06,500 With these Android phones, it will do cellular parameters. 71 00:04:06,640 --> 00:04:13,180 So what tower you're on, what frequencies you're talking to the cell network on, how good or how bad of service you have, how far you are from the tower. 72 00:04:13,180 --> 00:04:16,180 Because, again, I'm a huge wireless nerd, and that stuff really interests me. 73 00:04:16,180 --> 00:04:25,740 It's got 13 alpha NEH cards, 13 MediaTek alpha cards, one Wi-Fi 6 card, because there really isn't that much Wi-Fi 6. 74 00:04:25,740 --> 00:04:34,160 And me, being a self-funded guy, I'm not going to waste money buying chips that just aren't going to get used. 75 00:04:34,240 --> 00:04:40,220 And then there are five NULAC SDRs running, looking for RTL 433 compatible devices. 76 00:04:40,900 --> 00:04:45,620 Again, these things are running on three individual Raspberry Pi 5s, four Android phones. 77 00:04:45,620 --> 00:04:49,200 The Android phones are running Wiggle and also GNET Track Pro. 78 00:04:49,260 --> 00:04:57,300 And then I bagged it all up into these REI Trailgate gear cubes, and then put all of that into this portable REI Trailgate gear bin. 79 00:04:58,880 --> 00:05:00,320 So why did I make it modular? 80 00:05:00,320 --> 00:05:04,960 Well, one, we talked earlier about the memory requirements for having a lot of devices. 81 00:05:04,960 --> 00:05:19,720 If I distribute those devices across multiple computers, multiple Pis, my RAM requirements go down, because Raspberry Pis have been able to run 13 wireless cards simultaneously ever since the Raspberry Pi 2. 82 00:05:19,780 --> 00:05:24,920 So the Raspberry Pi 5 has more than enough power to handle that much traffic. 83 00:05:24,920 --> 00:05:27,640 So we distributed amongst multiple devices. 84 00:05:27,800 --> 00:05:29,600 I don't have a need for live processing. 85 00:05:29,600 --> 00:05:30,980 I don't need to see my data come in. 86 00:05:30,980 --> 00:05:35,040 I'm going to do all of my analytics on the back end when I have everything merged together. 87 00:05:35,340 --> 00:05:37,360 So I don't need to set alerts. 88 00:05:37,360 --> 00:05:38,560 I don't need to have a GUI. 89 00:05:38,560 --> 00:05:39,440 I don't need to have anything. 90 00:05:39,440 --> 00:05:42,780 This is all just a fire-and-forget headless collection system. 91 00:05:43,900 --> 00:05:48,980 This also reduces bottleneck, because now I don't have all this stuff feeding into one device. 92 00:05:48,980 --> 00:05:54,200 It still has to keep track of all the other devices and all of the other peripherals that are attached to it. 93 00:05:54,200 --> 00:06:04,960 That also allows for a little bit more robustness, because if I have an issue with a collected file, if I have an issue with a collected database, I may lose that entire day's run. 94 00:06:04,960 --> 00:06:07,360 I may lose that entire day's session. 95 00:06:07,520 --> 00:06:14,240 So now that I have it distributed amongst different devices, if something happens to one of them, I still have collection from the other two. 96 00:06:15,240 --> 00:06:19,360 This also, by dividing it up like this, creates smaller files, which are much more manageable. 97 00:06:19,440 --> 00:06:20,440 It's scalable. 98 00:06:20,560 --> 00:06:28,160 As I become more interested in other types of wireless technology, I just build a new Pi, and then we build a new ingest into it. 99 00:06:28,780 --> 00:06:31,160 So I'll show you what some of that looks like. 100 00:06:31,160 --> 00:06:35,660 And I've got two examples here for single-device characterization and AP characterization. 101 00:06:36,960 --> 00:06:41,260 And because this is not my first DEF CON, I'm not doing it live. 102 00:06:45,280 --> 00:06:59,800 So what we have here is the sample dashboard for single devices, and we have the OUI of the devices that it sees, time-of-day analysis about when those devices are active, day of week, and I did all my collection on a Tuesday, so that's why it's all in one pot. 103 00:07:00,660 --> 00:07:12,720 Probed SSIDs for client devices, so what Wi-Fi networks are they looking for, what access points have they been seen on, what protocols have been collected, and this is a video, this is not a live website, so I can't scroll. 104 00:07:12,720 --> 00:07:13,360 There we go. 105 00:07:13,360 --> 00:07:22,580 We've got the layers and the types of protocols that we got collected, and this is all from Tshark or Wireshark. 106 00:07:22,580 --> 00:07:41,800 We got MDNS device names, we've got DHCP client names and operating system, we have user agent strings, we have MDNS information about the actual thing, and this is all from unencrypted wireless networks that are collected with Kismet that PacketGlass actually will take out and customize and contextualize. 107 00:07:42,340 --> 00:07:44,400 So that's what it can show for single devices. 108 00:07:44,400 --> 00:07:53,720 When we talk about access points, when we talk about that, here we've got dots on a map, this is from a drive that I took in Washington, D.C. 109 00:07:53,860 --> 00:08:10,100 Here we've got the top values of the access points, their encryption, their channel, their bandwidth, their capabilities, and it scrolls down and you can see there's lots of things. 110 00:08:11,060 --> 00:08:13,560 And then again, we get into more information about the network itself. 111 00:08:13,560 --> 00:08:27,540 So again, the chip manufacturer, the BSID with the OUI lookup, the SSID list of the SSIDs we've seen, what the router gateway IP address is, subnet mask, DNS server, information that the router is giving up in an unencrypted network. 112 00:08:29,690 --> 00:08:48,190 And there's also support for 802.11h, the country code, country settings, so I can see what kind of frequencies the device is using, what the WPS Wi-Fi protected setup information is about the manufacturer, about the type of device, what clients are associated with it, 113 00:08:48,190 --> 00:08:52,010 all kinds of information related to the operation of that network. 114 00:08:52,010 --> 00:08:57,630 Again, all passively collected because I can collect all of the Wi-Fi's with the SparkyBox. 115 00:09:00,130 --> 00:09:06,230 So I'm going to turn it over to Winston, he's going to tell you about the ones and zeros behind it all that actually make those pretty dots appear on a map. 116 00:09:06,230 --> 00:09:07,530 All right. 117 00:09:10,380 --> 00:09:15,960 Everybody, so, uh, yeah, what I was trying to let's get this blows up. 118 00:09:18,240 --> 00:09:21,780 Do I doesn't look like it took a second. 119 00:09:21,780 --> 00:09:22,080 Cool. 120 00:09:22,080 --> 00:09:22,800 Thanks. 121 00:09:23,040 --> 00:09:23,580 All right. 122 00:09:23,580 --> 00:09:26,400 So, uh, yeah, he collected a lot of data. 123 00:09:26,960 --> 00:09:29,480 And a lot of them were geo data. 124 00:09:29,840 --> 00:09:34,600 And I'm just going to go over the specs, the planning and the kind of the execution of it. 125 00:09:34,600 --> 00:09:43,440 But overall, I kind of realized over the course of a conversation at a bar that this is a geo wireless processing hub from multiple software. 126 00:09:45,560 --> 00:09:50,040 So like I said, we kind of were just having a chat, just drinking. 127 00:09:50,140 --> 00:09:52,540 And he was telling me about all his wireless problems. 128 00:09:53,120 --> 00:09:56,420 And, you know, and two and a half hours later, I was like, yeah, hold my beer. 129 00:09:56,420 --> 00:09:57,640 Let me let me do this. 130 00:09:57,640 --> 00:09:59,080 And I signed on to do that. 131 00:10:00,680 --> 00:10:03,540 So the objective is to kind of like put dots on maps, right? 132 00:10:03,860 --> 00:10:07,080 Jeff is doing everything in the number one column over there. 133 00:10:07,080 --> 00:10:11,760 He's collecting it from Kismet, Wiggle, ArrowDump, a couple of other formats. 134 00:10:11,760 --> 00:10:12,960 I'll mention more later. 135 00:10:13,340 --> 00:10:18,060 So pretty much all my responsibility is in the number two section, the analytics platform. 136 00:10:18,880 --> 00:10:22,200 At this point, as he was telling me all about it, I kind of had one in mind. 137 00:10:22,380 --> 00:10:24,060 Spoiler alert, it's Elk. 138 00:10:24,480 --> 00:10:32,960 And the goal is to make it easy for him to put dots on maps and pretty much change out maps or even visualization if he needs to. 139 00:10:35,000 --> 00:10:38,840 So like I was mentioning earlier, these are the type of different formats that he mentioned. 140 00:10:39,300 --> 00:10:47,220 But just to give you an idea, the files I'll be actually be dealing with were like .kismets, .tsv, SQLite, CAP, CSVs. 141 00:10:47,340 --> 00:10:50,780 Maybe not everything needs to be preprocessed. 142 00:10:50,780 --> 00:10:57,460 But as I was working on this, I was realizing I kind of have to consolidate everything down to one single format that would work with Elk. 143 00:10:59,200 --> 00:11:01,140 So what is Elk? 144 00:11:01,140 --> 00:11:10,120 So overall, Elk is just this open source-ish, it's a big asterisk there, analytics platform. 145 00:11:10,120 --> 00:11:12,000 It does real-time data collection. 146 00:11:12,740 --> 00:11:16,520 E stands for Elasticsearch, L is Logstash, K is Kibana. 147 00:11:16,580 --> 00:11:23,600 But what you really care about is the ingestion order is actually from Logstash, that's where the data comes in. 148 00:11:23,600 --> 00:11:33,160 Logstash forwards it over to Elasticsearch into indexes, where you will perform some kind of tagging to let go, hey, this is how we're going to retrieve the data. 149 00:11:33,540 --> 00:11:36,440 And so when you can actually look up, do the searching later. 150 00:11:36,880 --> 00:11:38,560 And Kibana is where you do the visualization. 151 00:11:41,720 --> 00:11:45,040 So right out of the box, Elk doesn't really do what we need it to do. 152 00:11:45,040 --> 00:11:46,720 It doesn't know what a Kismet file is. 153 00:11:46,720 --> 00:11:48,380 It certainly doesn't know... 154 00:11:49,920 --> 00:11:52,940 Yeah, it doesn't really know how to use any of that data. 155 00:11:54,000 --> 00:11:58,880 For example, maybe coming from Wiggle, we have something called Trilat, a field called Trilat. 156 00:11:58,880 --> 00:12:02,200 And coming from Kismet, we have something called Latitude. 157 00:12:02,380 --> 00:12:06,260 We need to somehow let Elasticsearch know, hey, these guys are the same thing. 158 00:12:06,260 --> 00:12:08,040 This is the same type of geodata. 159 00:12:08,680 --> 00:12:12,540 They also have a different data structure for all of these files coming in. 160 00:12:12,760 --> 00:12:17,860 And lastly, the first-party solution for Elastic Map is Elastic Map Server. 161 00:12:18,180 --> 00:12:19,560 That costs money. 162 00:12:19,820 --> 00:12:21,640 And I don't like to give money away. 163 00:12:21,640 --> 00:12:23,900 So let's do a free version of that. 164 00:12:26,430 --> 00:12:31,470 So this is a little diagram I drew up to kind of handle the whole solution. 165 00:12:31,670 --> 00:12:33,730 The right side is everything you saw. 166 00:12:33,730 --> 00:12:35,950 It's containerized with Docker. 167 00:12:35,950 --> 00:12:38,190 In this case, we're just using Docker Compose. 168 00:12:38,310 --> 00:12:43,330 And we also added a little map server on the right side there. 169 00:12:44,050 --> 00:12:47,590 On the left-hand side is pretty much where most of the preprocessing happens. 170 00:12:47,590 --> 00:12:50,670 We're using a Python script to just handle everything. 171 00:12:52,850 --> 00:12:57,370 And, yeah, we have, like, three directories that we'll kind of go over in a little bit. 172 00:13:02,460 --> 00:13:07,900 So the work ahead of us is pretty much to have, one, stand up a copy of Elk. 173 00:13:07,900 --> 00:13:09,480 Two, convert the files. 174 00:13:09,640 --> 00:13:11,640 Three, we need to normalize the data field. 175 00:13:11,920 --> 00:13:14,660 Four, we need to tell how we're going to use that data. 176 00:13:14,660 --> 00:13:22,580 And then five, we need somewhere, even if we can put it on a coordinate space, some kind of mapping on the background to show, hey, where on the map are we? 177 00:13:22,580 --> 00:13:26,680 Because you can have coordinate systems, but it doesn't necessarily have to translate to a map. 178 00:13:27,840 --> 00:13:30,020 You can put anything you want behind there. 179 00:13:34,130 --> 00:13:36,650 All right, so great news about Elk. 180 00:13:36,650 --> 00:13:39,890 It already came pretty much preassembled, right? 181 00:13:39,890 --> 00:13:43,990 If you look for Docker Compose for Elk, they've already made it super easy. 182 00:13:44,210 --> 00:13:45,770 Easiest thing you ever do is just download it. 183 00:13:45,770 --> 00:13:47,910 Docker Compose up deep, you have it up and running. 184 00:13:47,910 --> 00:13:49,830 But like I said, it doesn't do anything yet. 185 00:13:50,150 --> 00:13:55,070 But I do want to give, like, huge props to, like, Elk Ninja for making this, like, really frictionless. 186 00:13:55,070 --> 00:13:59,650 I'm pretty sure that's actually the first-party GitHub project for them. 187 00:14:01,370 --> 00:14:05,370 All right, so talking a little bit about converting the files into a compatible format. 188 00:14:05,810 --> 00:14:11,350 So like I said, I decided to do this in a Python script outside of the Elk stack. 189 00:14:11,550 --> 00:14:15,790 So we have an ingest folder, an index folder, and an archive folder. 190 00:14:15,790 --> 00:14:22,150 We're pretty much dumping all of the data that we collected into an ingest folder, where the Python script can be monitoring it. 191 00:14:22,150 --> 00:14:26,050 And we can be monitoring for, like, Kismet files, SQL files, or whatnot. 192 00:14:26,790 --> 00:14:30,650 And we kind of chose it for the least amount of work that Jeff had to do. 193 00:14:31,190 --> 00:14:36,010 So pretty much as soon as he's exporting it, we want to have all the default settings. 194 00:14:36,350 --> 00:14:40,590 So for, I think, Wiggle, it might be something as simple as, like, backup.sqlite. 195 00:14:40,690 --> 00:14:48,090 All right, so the search pattern I'm looking for, then, is backup.sqlite for the Python script. 196 00:14:48,610 --> 00:14:51,470 If I have to convert it down, then I'll convert it down to JSON. 197 00:14:51,470 --> 00:14:57,810 And if I don't have to, I pretty much just pass it along from TSV or CSV and move it right along. 198 00:14:57,950 --> 00:15:08,670 For the JSONs, there is a little kind of like a Logstash or Elasticsearchism, which is you pretty much have to convert all JSONs into a single line per entry. 199 00:15:08,830 --> 00:15:12,290 And this is for Elasticsearch efficiency reasons. 200 00:15:14,330 --> 00:15:19,910 So there is a multi-line format you can do, but that, like, honestly, do you want to be less efficient? 201 00:15:22,650 --> 00:15:25,610 So here's an example of how we might convert it from Wiggle. 202 00:15:26,790 --> 00:15:30,550 So the Python script is going to look for, okay, cool, I see a backup.sqlite. 203 00:15:32,410 --> 00:15:34,890 And we're going to just run this command. 204 00:15:35,470 --> 00:15:38,710 Yeah, these are prefields, so this is kind of like slightly of a destructive editing. 205 00:15:38,710 --> 00:15:40,970 This is also why we also backup the originals. 206 00:15:41,910 --> 00:15:44,830 But these are the fields that Jeff told me, hey, this is what I need. 207 00:15:44,830 --> 00:15:45,570 Great, awesome. 208 00:15:45,570 --> 00:15:48,890 You could, hey, say select star and grab everything. 209 00:15:48,890 --> 00:15:56,610 But if you're not really needing to, because the amount of data we're dealing with, we really want to just, like, cut down on size where we can. 210 00:15:58,950 --> 00:16:00,910 And same thing for Kismet as well. 211 00:16:01,310 --> 00:16:03,670 We're also dumping it out into a JSON file. 212 00:16:03,670 --> 00:16:07,690 And if it has a PCAP file, we can, like, dump it out into a PCAP NG. 213 00:16:08,030 --> 00:16:10,030 And this is where we kind of ran into a little tricky thing. 214 00:16:10,030 --> 00:16:11,690 I tried using PacketBeat. 215 00:16:12,050 --> 00:16:18,830 And PacketBeat really feels like it's more designed for any kind of, like, streaming or network monitoring. 216 00:16:18,830 --> 00:16:21,830 It's not really designed for this, like, individual file ingestion. 217 00:16:22,010 --> 00:16:27,710 So what I decided to do was just have Tshark actually convert it back from PCAP also into JSON. 218 00:16:27,850 --> 00:16:34,030 And that's also another step where we can do more filtering down so we can remove data that has absolutely nothing to do with us. 219 00:16:34,030 --> 00:16:36,650 Because at first I was like, yeah, let's keep all the data. 220 00:16:36,830 --> 00:16:38,870 I think we wound up filling up that... 221 00:16:39,810 --> 00:16:40,530 Yeah. 222 00:16:41,090 --> 00:16:42,570 In, like, a single session. 223 00:16:42,570 --> 00:16:45,190 So that was, like, well, let's not do that. 224 00:16:45,650 --> 00:16:49,330 So, yeah, we started looking for other types of traffic and things that we specifically wanted. 225 00:16:52,590 --> 00:16:57,670 So to... yeah, the next part is then we had to tag and normalize the data, right? 226 00:16:57,670 --> 00:17:03,370 So even though we bring it into Logstash, so we moved it over from preprocessing into Logstash now. 227 00:17:03,550 --> 00:17:06,070 Logstash kind of needs a way to go, okay, what am I doing with this? 228 00:17:06,070 --> 00:17:09,370 So right off the bat, we're using the file plugin. 229 00:17:09,570 --> 00:17:12,230 And then for filtering, this is where I was talking about earlier. 230 00:17:12,370 --> 00:17:16,370 This is how we let it know, hey, or start transforming from... 231 00:17:16,370 --> 00:17:25,950 If Wiggle calls it Latitude and Kismet calls it, I don't know, Trilong or Trilat or whatever, right? 232 00:17:25,950 --> 00:17:32,350 We're trying to give it a way to say, hey, we're going to consolidate all of this data type into one single naming field or a single field. 233 00:17:32,570 --> 00:17:35,150 So that Elasticsearch knows how to use it. 234 00:17:35,150 --> 00:17:38,850 And then, yeah, in the output, obviously, we're just sending it over to Elasticsearch. 235 00:17:41,310 --> 00:17:45,330 And now that we are actually in Elasticsearch, we need to tell Elasticsearch, okay, cool. 236 00:17:45,330 --> 00:17:52,090 Within this index, it doesn't, even though we called it, say, location, right, it doesn't really know what location is yet. 237 00:17:52,090 --> 00:17:57,770 So here's where we actually define, hey, we made something called location, and we're going to define it into a geopoint. 238 00:17:58,230 --> 00:18:02,310 Now, geopoint is something that's native to Elasticsearch, so it knows how to use that data. 239 00:18:02,730 --> 00:18:06,270 Because we gave it a lat and a long, and it looks at it and says, oh, cool, this is an array. 240 00:18:06,270 --> 00:18:07,310 It has a lat and a long. 241 00:18:07,710 --> 00:18:09,050 Let's put that as a dot. 242 00:18:09,090 --> 00:18:10,830 Let's put that somewhere on the map. 243 00:18:11,430 --> 00:18:16,970 And that's pretty much how that works, and we have to repeat this process for every software that we want to do that. 244 00:18:17,450 --> 00:18:19,230 But that's essentially the whole pipeline. 245 00:18:19,670 --> 00:18:30,190 And to tie the whole thing together, like I said, because we're not interested in, you know, paying too much to do this, we just decided to use MapTiler, which is another open source software that we can just grab that. 246 00:18:30,190 --> 00:18:37,110 Elasticsearch actually made it pretty easy where you can just either pop it into settings or in an environmental variable when you run up or spin up Elasticsearch. 247 00:18:37,690 --> 00:18:43,230 For the case of using MapTiler, that's actually just a domain for a self-hosted option for it. 248 00:18:44,330 --> 00:18:46,990 And in this case, we're also using just OpenStreetMaps. 249 00:18:47,450 --> 00:18:52,550 So that's how we're able to just, like, put tiles underneath the coordinate system. 250 00:18:54,050 --> 00:19:00,630 So to wrap it up, I want to give some special thanks to Ming, the Packet Hacking Village committee, for allowing us to present today. 251 00:19:00,710 --> 00:19:05,570 Elk Ninja for the work on the Dockerized version of Elastic. 252 00:19:05,570 --> 00:19:11,230 Dark Matter for giving me the idea of how to build a large-scale wireless collection rig. 253 00:19:11,230 --> 00:19:16,850 Dragorn, Weigel Project, Guyakoff Solutions for making all the software that powers this system. 254 00:19:16,850 --> 00:19:24,070 My husband, Mark Winters, who helped me make this actually fit into a nice, pretty presentable form. 255 00:19:24,250 --> 00:19:29,010 Monkey User for letting us borrow a lot of his pictures for this amazing presentation. 256 00:19:29,270 --> 00:19:32,490 And Tyler Carper for his contributions with Winston. 257 00:19:36,410 --> 00:19:39,010 Questions, comments, complaints, other things to begin with. 258 00:19:39,010 --> 00:19:39,610 Let's see. 259 00:19:39,610 --> 00:19:42,350 I have a question. 260 00:19:42,350 --> 00:19:42,870 Yeah . 261 00:19:42,990 --> 00:19:46,590 I think if I heard correctly, you have three separate... 262 00:19:48,150 --> 00:19:49,330 Yes. 263 00:19:49,770 --> 00:19:52,090 Do you do anything special? 264 00:19:52,090 --> 00:19:55,650 Do you make any special efforts to synchronize the time you give the rig? 265 00:19:55,650 --> 00:19:58,410 Because I would imagine when you reintegrate the data... 266 00:19:59,050 --> 00:19:59,210 Yep. 267 00:19:59,210 --> 00:20:00,410 ...you have to have the... 268 00:20:01,230 --> 00:20:01,750 Yep. 269 00:20:02,730 --> 00:20:09,090 So they get their time from the NTP server whenever I connect them up. 270 00:20:09,090 --> 00:20:12,630 And then they have an RTC battery in there that's keeping that running. 271 00:20:12,630 --> 00:20:15,990 So I may lose a few seconds, but with what I'm doing, it's not really... 272 00:20:15,990 --> 00:20:18,430 Like, I'm not looking for an exact one-to-one correlation. 273 00:20:18,490 --> 00:20:19,130 Got it. 274 00:20:19,130 --> 00:20:19,490 Cool. 275 00:20:19,490 --> 00:20:20,110 Thank you. 276 00:20:22,370 --> 00:20:23,430 Anything else? 277 00:20:35,100 --> 00:20:36,140 I just grab it all. 278 00:20:36,460 --> 00:20:37,020 Yep. 279 00:20:37,020 --> 00:20:39,680 And then afterwards, then I look for the anomalies. 280 00:20:39,680 --> 00:20:42,040 Then I look for the things that I want to see. 281 00:20:42,040 --> 00:20:43,620 It's like, oh, that protocol looks interesting. 282 00:20:43,620 --> 00:20:45,600 Let's look more at that device. 283 00:20:48,180 --> 00:20:50,800 So I've been able to find a lot of stuff through MDNS. 284 00:20:50,800 --> 00:20:54,460 I've been able to find a lot of stuff through DHCP requests. 285 00:20:54,460 --> 00:20:58,640 A lot of information about devices themselves, which has been really handy for that. 286 00:21:00,460 --> 00:21:01,180 Yep. 287 00:21:01,520 --> 00:21:02,760 They're getting mid-signal.