1 00:00:00,000 --> 00:00:13,940 Alright, now that I've wasted enough of Josh's time, this fine gentleman who's been competing on our Capture the Flag for two, three years, three years now, I see him every year, submitted a talk to our call for papers and we promptly went over it and said, 2 00:00:14,020 --> 00:00:24,260 Who the hell is this? Sounds kind of interesting, should we let him talk? Yeah, okay, sure, let's let him talk. Then he shows up and is like, wait, that's you? Aw man, why did I approve that? 3 00:00:24,260 --> 00:00:31,160 So, without further ado, here's a guy who keeps making me do more work at the Capture the Flag, Josh in general. 4 00:00:32,220 --> 00:00:46,580 All right, so I just want to cover, I'm also a part of NovaHackers and I currently do incident response in Northern Virginia. This research is not related to that job. 5 00:00:48,260 --> 00:00:52,600 So in the overview, we're going to kind of just lay out some basic things there. 6 00:00:52,860 --> 00:00:54,240 Then we're going to hop into... 7 00:00:54,700 --> 00:00:57,820 Oh, sorry, whoops, yes, I forget about these things. 8 00:00:58,140 --> 00:01:05,520 All right, so now that you can actually hear me, we're going to go over Wi-Fi, we're going to talk about hardware and software that you need. 9 00:01:06,200 --> 00:01:12,440 We're going to talk about attribution, so finding people over Wi-Fi and figuring out who they are and where they're from. 10 00:01:13,060 --> 00:01:17,740 We're also going to talk about tips for protection, so how you can protect yourself from these kinds of attacks. 11 00:01:18,380 --> 00:01:20,580 We'll also go over the same things in Bluetooth as well. 12 00:01:21,720 --> 00:01:23,120 All right, so you're a defender. 13 00:01:23,820 --> 00:01:24,220 You... 14 00:01:24,240 --> 00:01:30,100 You are walking around with your laptop in your back, you've got a cell phone, you might have a Fitbit. 15 00:01:30,700 --> 00:01:32,520 All these things are transmitting things about you. 16 00:01:32,960 --> 00:01:37,860 Your Wi-Fi devices are telling everyone what networks you've connected to in the past. 17 00:01:38,200 --> 00:01:40,420 Your Bluetooth devices are giving away your Mac address. 18 00:01:40,680 --> 00:01:42,400 If you have a name on it, it's giving that away. 19 00:01:42,780 --> 00:01:46,800 You might have RF, so if you're typing on your laptop, there's RF signals that are going out. 20 00:01:47,660 --> 00:01:53,980 There are also a lot of other things, like with a laptop, this one's going over VGA, so people could be picking up that. 21 00:01:53,980 --> 00:01:58,380 We won't be talking about those, but those are things just to kind of have in the back of your mind. 22 00:01:58,920 --> 00:02:03,000 The other thing is if you have a GSM device, so Mi-Fi or a cell phone, 23 00:02:03,200 --> 00:02:07,140 you're also going to have connections to whatever tower you're going to have as well, 24 00:02:07,220 --> 00:02:09,260 so that can, you know, determine some things about you. 25 00:02:09,360 --> 00:02:13,140 So if you're staying in a room, got AT&T, people might be able to pinpoint you. 26 00:02:14,320 --> 00:02:15,380 All right, so you lose. 27 00:02:15,960 --> 00:02:20,880 You can't protect against people picking up these signals if you want to actually walk in the real world. 28 00:02:21,760 --> 00:02:22,120 Okay. 29 00:02:25,500 --> 00:02:30,560 So for the discovery mode, for Bluetooth, you can get your Mac, several different things. 30 00:02:30,740 --> 00:02:36,020 Good OPSEC is when we're doing these attacks, we're not going to actually connect, so we're just going to sniff. 31 00:02:37,220 --> 00:02:39,580 You can use the decibels in order to home in on someone. 32 00:02:40,100 --> 00:02:43,160 So the closer to zero, the closer you are to the person. 33 00:02:43,900 --> 00:02:46,540 There's also two types that we'll be talking about today. 34 00:02:46,680 --> 00:02:47,320 There's low energy. 35 00:02:47,520 --> 00:02:53,960 Those are things that require, like, a battery, such as, like, an alarm system or fire extinguishers. 36 00:02:53,960 --> 00:02:58,520 That might have some kind of Bluetooth in order to register or do whatever. 37 00:02:58,860 --> 00:02:59,820 Then you have the classic. 38 00:02:59,880 --> 00:03:00,920 That's normally what's in your phone. 39 00:03:01,580 --> 00:03:04,680 Most things that I've been seeing, and I've been doing this for several months now, 40 00:03:04,800 --> 00:03:08,780 I see a lot of Fitbits, a lot of iPhones, Androids, and entertainment systems. 41 00:03:08,920 --> 00:03:13,180 So if you go over to someone's house, you'll probably pick up their entertainment system. 42 00:03:13,280 --> 00:03:16,980 If they're in an apartment complex, you'll probably pick up other people's, you know, iHome or whatever that. 43 00:03:19,440 --> 00:03:23,300 For Wi-Fi, every Wi-Fi that you've ever connected to, 44 00:03:23,300 --> 00:03:26,300 if you have not cleaned this out, is actually broadcasting those back. 45 00:03:26,520 --> 00:03:28,580 So, as you can see, I went to the Marriott. 46 00:03:29,740 --> 00:03:32,660 I had a friend that had a Verizon Wi-Fi, connected to that. 47 00:03:32,940 --> 00:03:39,800 And I was playing around with ASCII and created a little fun fingers up guy, and I connected to that as well. 48 00:03:39,880 --> 00:03:42,680 So all of these are broadcasting and are identifiers to me. 49 00:03:43,840 --> 00:03:47,960 So they can give away what home you have for your Wi-Fi. 50 00:03:48,120 --> 00:03:49,500 They can also give away your work. 51 00:03:49,740 --> 00:03:53,020 So if you work at a network company and it's IT widgets, 52 00:03:53,040 --> 00:03:53,280 So if you work at a network company and it's IT widgets, So if you work at a network company and it's IT widgets, 53 00:03:53,280 --> 00:03:58,140 then they'll know that you work at IT widgets because you've connected to there once and it's broadcasting wherever you go. 54 00:03:58,460 --> 00:03:59,600 And also your friends. 55 00:03:59,760 --> 00:04:04,300 So if your friends has a distinct Wi-Fi that's been logged and has been loaded up on the internet, 56 00:04:04,480 --> 00:04:05,620 and we'll talk about that a little bit later, 57 00:04:05,720 --> 00:04:08,400 then you can also pick up that and kind of get location information. 58 00:04:10,020 --> 00:04:11,000 So hardware needed. 59 00:04:11,240 --> 00:04:16,520 I recommend the Alpha, specifically the RTL8187. 60 00:04:16,880 --> 00:04:20,200 It has some capabilities that some drivers have been written for the Android. 61 00:04:20,400 --> 00:04:23,260 So you can use that to actually just have it in your computer. 62 00:04:23,260 --> 00:04:25,400 Or you can just put it in your pocket and walk around and pick up PCAPs. 63 00:04:26,880 --> 00:04:29,160 I'll be showing this today on a Linux system. 64 00:04:29,800 --> 00:04:34,400 And then the other piece that you'll need in order to use it with the Android is an OTG cable. 65 00:04:34,560 --> 00:04:38,460 You can pick those up for about $3 to $5 just off of Amazon. 66 00:04:39,060 --> 00:04:41,820 And if you post the slides, that's actually the link. 67 00:04:42,740 --> 00:04:45,320 So you can actually get the one that I have that I know works. 68 00:04:46,720 --> 00:04:49,260 For software, we have Wiggle Wi-Fi, one of my favorites. 69 00:04:49,600 --> 00:04:52,100 We have PCAP scanner on Android, 70 00:04:52,240 --> 00:04:53,180 We have PCAP scanner on Android, 71 00:04:53,180 --> 00:04:54,420 and we have a version of Kismet that's been ported. 72 00:04:54,480 --> 00:04:57,500 I'm not sure if it's the same author or not, but it works pretty well. 73 00:04:57,900 --> 00:05:00,580 Then there's a tool called BitShark Share. 74 00:05:01,200 --> 00:05:03,460 If you don't mind paying $5, 75 00:05:03,520 --> 00:05:06,560 this is an excellent way to look at the actual PCAPs on your phone. 76 00:05:07,240 --> 00:05:10,380 It also has the capability if you're an enterprise customer and you use CloudShark, 77 00:05:10,480 --> 00:05:12,340 you can upload the PCAPs directly to CloudShark. 78 00:05:13,340 --> 00:05:15,880 So then we have Kismet for Linux and Windows, 79 00:05:16,080 --> 00:05:17,320 and we also have Aircrack. 80 00:05:17,800 --> 00:05:19,900 On Mac, you probably want to just throw up a VM 81 00:05:19,900 --> 00:05:22,900 because all the ones that I've tried really don't work well, 82 00:05:23,180 --> 00:05:28,240 and it's kind of just easier to throw up a Mac than Mac VM 83 00:05:28,240 --> 00:05:30,420 instead of just fighting with all the drivers and whatnot. 84 00:05:30,880 --> 00:05:33,360 Then you have Wireshark and TCP dump, 85 00:05:33,480 --> 00:05:36,900 and Wireshark also has a command line called Tshark. 86 00:05:37,460 --> 00:05:38,820 We'll show a little bit about that, 87 00:05:38,900 --> 00:05:40,380 and those work across Mac, Linux, and Windows. 88 00:05:40,440 --> 00:05:42,720 So you can do your capture on Linux or Windows, 89 00:05:44,940 --> 00:05:46,600 and then just move it over to Mac 90 00:05:46,600 --> 00:05:48,000 if that's what you're more comfortable with. 91 00:05:49,140 --> 00:05:50,600 All right, so this is Wiggle Wi-Fi. 92 00:05:51,180 --> 00:05:52,620 We use this a lot, actually, 93 00:05:52,620 --> 00:05:55,440 in the WCTF in order to track things 94 00:05:55,440 --> 00:05:57,440 and kind of get an idea of what's going on around. 95 00:05:58,480 --> 00:06:00,640 You can see it's the icon in the top left there. 96 00:06:00,960 --> 00:06:02,200 It has a lot of information. 97 00:06:02,460 --> 00:06:04,100 So you've got your DBI in the bottom left. 98 00:06:04,500 --> 00:06:05,580 You have a Mac address. 99 00:06:06,060 --> 00:06:07,500 It shows the SSID. 100 00:06:07,940 --> 00:06:09,400 You've got GPS location 101 00:06:09,400 --> 00:06:12,420 because you've inherently got that on the actual Android itself. 102 00:06:13,020 --> 00:06:14,220 It shows you speed. 103 00:06:14,440 --> 00:06:17,600 So in this particular, I was actually doing it while in a car. 104 00:06:18,620 --> 00:06:20,900 Not, you know, I threw it over there and drove 105 00:06:20,900 --> 00:06:22,540 and picked up different things. 106 00:06:23,060 --> 00:06:23,840 Not driving. 107 00:06:25,160 --> 00:06:27,960 It also has several other historical information, 108 00:06:28,160 --> 00:06:30,260 and it has data where it's actually keeping a database 109 00:06:30,260 --> 00:06:31,640 that you can upload to Wiggle Wi-Fi 110 00:06:31,640 --> 00:06:34,160 and will allow you to see all kinds of fun stuff there. 111 00:06:35,380 --> 00:06:37,740 So this is what the interface looks like when you upload it. 112 00:06:37,900 --> 00:06:39,480 You've got a lot of different features here, 113 00:06:39,580 --> 00:06:41,320 and people have been uploading this for several years. 114 00:06:41,520 --> 00:06:43,360 So as you can see, it goes back to 2001. 115 00:06:43,700 --> 00:06:44,880 So you've got a lot of data. 116 00:06:45,020 --> 00:06:46,780 So when you're trying to figure out who's who, 117 00:06:46,900 --> 00:06:49,580 you can go on this site and actually track down people 118 00:06:49,580 --> 00:06:51,260 based on what people have uploaded 119 00:06:51,260 --> 00:06:52,500 and done for WarDrive. 120 00:06:53,480 --> 00:06:55,540 In this particular one, I did the Bailey's Hotel, 121 00:06:55,700 --> 00:06:58,520 and you can see all the Wi-Fi that people have uploaded from this. 122 00:06:59,000 --> 00:07:00,320 It's got latitude and longitude, 123 00:07:00,540 --> 00:07:02,200 and it also has an option for searching 124 00:07:02,200 --> 00:07:04,160 in an actual address down there on Google Maps. 125 00:07:04,320 --> 00:07:05,520 So you can get in, homing. 126 00:07:06,920 --> 00:07:08,360 So this is the PCAP scanner. 127 00:07:09,040 --> 00:07:14,780 It has to have the RTL plugged in via the OTG cable. 128 00:07:15,420 --> 00:07:17,500 Then it also has an option to export it. 129 00:07:17,580 --> 00:07:19,800 And what I normally do is I open it up in the file manager, 130 00:07:19,960 --> 00:07:21,780 and then that will give you an option of all the files 131 00:07:21,780 --> 00:07:22,480 that can open PCAP. 132 00:07:22,480 --> 00:07:24,820 And as you can see, BitShark is the top one there. 133 00:07:26,020 --> 00:07:27,360 So here's the BitShark interface. 134 00:07:27,940 --> 00:07:32,400 Over on the left, you have a selection of different PCAPs. 135 00:07:32,460 --> 00:07:35,840 It shows size, what Ethernet was picked up with it. 136 00:07:36,040 --> 00:07:37,680 It has a MAC address and basic information. 137 00:07:38,020 --> 00:07:40,120 So what I normally do here is just kind of look for ones 138 00:07:40,120 --> 00:07:42,220 that are larger, the size that I'm looking for. 139 00:07:42,360 --> 00:07:44,040 And then I click on it, and I get all this data. 140 00:07:44,220 --> 00:07:46,360 So you actually have data hex in the bottom. 141 00:07:46,440 --> 00:07:48,900 You have the Ethernet frame packets 142 00:07:49,400 --> 00:07:50,720 that have been parsed out for you. 143 00:07:50,780 --> 00:07:52,120 And then you have some basic information, 144 00:07:52,120 --> 00:07:53,960 which you saw to correlate from the other screen. 145 00:07:54,600 --> 00:07:56,220 They also have statistical information. 146 00:07:56,560 --> 00:08:00,220 So those are the filters down there, the middle two icons. 147 00:08:00,440 --> 00:08:01,980 And that kind of helps you if you're, like, 148 00:08:01,980 --> 00:08:03,280 wanting to parse something out. 149 00:08:05,560 --> 00:08:06,780 So this is Kismet. 150 00:08:06,900 --> 00:08:08,360 This is a little hard to see. 151 00:08:08,400 --> 00:08:08,660 I'm sorry. 152 00:08:09,460 --> 00:08:12,480 They don't have the greatest coloring when you start it up. 153 00:08:13,220 --> 00:08:16,240 But as you can see here, I've selected the AutoGroup probe. 154 00:08:16,460 --> 00:08:19,340 And this is showing out different Wi-Fi 155 00:08:20,480 --> 00:08:21,880 that's actually trying to attempt 156 00:08:21,880 --> 00:08:24,240 to connect to, you know, different hotspots. 157 00:08:25,460 --> 00:08:26,720 So they're not even associated. 158 00:08:26,960 --> 00:08:27,840 You're getting this information 159 00:08:27,840 --> 00:08:29,780 without them even being connected to an AP. 160 00:08:31,520 --> 00:08:33,740 The other thing is Aircrack. 161 00:08:34,480 --> 00:08:36,660 Aircrack is a little bit cleaner with its output. 162 00:08:37,360 --> 00:08:40,840 I created a script because I forget things very often. 163 00:08:40,960 --> 00:08:43,580 And so I essentially just have a case loop 164 00:08:43,580 --> 00:08:47,620 and several different files that do various different actions. 165 00:08:47,720 --> 00:08:50,580 I'll actually be posting this later on today after the slides 166 00:08:51,120 --> 00:08:52,120 so you guys can use it. 167 00:08:53,460 --> 00:08:58,100 Breakdown, it'll allow you to put your Etho, sorry, 168 00:08:58,240 --> 00:09:01,640 your WLAN adapters in monitor or unmonitor mode. 169 00:09:01,800 --> 00:09:03,940 You select mon start or stop, which you want to do. 170 00:09:04,020 --> 00:09:06,040 It'll loop through all the ones on your system. 171 00:09:06,460 --> 00:09:07,800 And you can say yes or no, 172 00:09:07,860 --> 00:09:08,980 whether you want to throw it in monitor mode. 173 00:09:09,380 --> 00:09:14,500 You can do config, which if you can see up there at the top, 174 00:09:14,600 --> 00:09:16,560 I've selected a config that has channel 11, 175 00:09:16,720 --> 00:09:17,900 has a certain BSS ID, 176 00:09:18,040 --> 00:09:20,440 and it's going to put a file out with test three. 177 00:09:23,040 --> 00:09:27,540 It also has the option to capture all BSS IDs. 178 00:09:28,360 --> 00:09:32,020 And then also you can toggle it so it uses the one from the configuration. 179 00:09:32,300 --> 00:09:35,660 So in the next slide I'll be showing where I selected all of them 180 00:09:35,660 --> 00:09:37,000 and how you can actually look at that. 181 00:09:37,840 --> 00:09:39,600 Handshakes, you can test it for handshakes. 182 00:09:39,680 --> 00:09:42,480 So if you're doing WPA attacking, you can actually just go through. 183 00:09:42,660 --> 00:09:43,480 It'll create a screen. 184 00:09:43,620 --> 00:09:46,000 You can hop in now that screen and go back to this 185 00:09:46,000 --> 00:09:48,680 and it'll, you know, kind of help you figure out what's going on. 186 00:09:49,100 --> 00:09:50,560 So we've actively been using it. 187 00:09:50,580 --> 00:09:51,980 We've been using this in the wireless CTF 188 00:09:51,980 --> 00:09:53,360 and it's been working fairly well. 189 00:09:56,320 --> 00:09:58,700 All right, so this is just kind of the loop 190 00:09:58,700 --> 00:09:59,660 that I was talking about earlier. 191 00:10:00,800 --> 00:10:03,100 And then you can see over on the left-hand side, 192 00:10:03,420 --> 00:10:08,140 oh, sorry, your left, yes, that it's very, very, very small. 193 00:10:08,320 --> 00:10:11,380 So this was just collecting everything that I possibly could. 194 00:10:11,560 --> 00:10:13,800 What you can do if you have this is, 195 00:10:14,400 --> 00:10:17,120 what'll happen is it'll run off of the screen. 196 00:10:17,260 --> 00:10:20,400 So just do, make the text sizer, 197 00:10:20,580 --> 00:10:23,280 in the terminal, stop the PCAP collection, 198 00:10:23,600 --> 00:10:25,520 copy it out and throw it into a text file 199 00:10:25,520 --> 00:10:26,520 and you'll be able to see everything. 200 00:10:26,980 --> 00:10:30,000 So you can see down here, we've got some interesting ones. 201 00:10:30,260 --> 00:10:36,360 AT&T, Wi-Fi, Belkin, Guest, CCC-W, Wi-Fi, Coffee Bean. 202 00:10:36,520 --> 00:10:39,380 So these are all indicators about this particular person 203 00:10:39,380 --> 00:10:40,560 and that's their MAC address. 204 00:10:40,800 --> 00:10:42,480 So we can kind of correlate all that together. 205 00:10:42,860 --> 00:10:46,900 And then the bottom one here has got some actually interesting identifiers 206 00:10:46,900 --> 00:10:49,320 so we can kind of track down where in the world they're located. 207 00:10:51,660 --> 00:10:57,440 So using that, we can actually look at FCPS Mobile. 208 00:10:57,600 --> 00:11:02,200 If you notice, FCPS Guest, 209 00:11:04,640 --> 00:11:08,920 so this is actually, Rick, are you listening? 210 00:11:10,020 --> 00:11:12,920 This is actually either a middle school or a high school 211 00:11:13,450 --> 00:11:18,360 that someone connected to in the Fairfax, Virginia area. 212 00:11:18,360 --> 00:11:22,060 We also have some other information about where they might have gone. 213 00:11:22,200 --> 00:11:23,320 They might have gone to New York. 214 00:11:23,480 --> 00:11:25,240 We have Century Building 11A. 215 00:11:27,080 --> 00:11:29,860 And then we also have the FCC building. 216 00:11:30,060 --> 00:11:34,780 So if we go back, we can see FCC Public is also one of the options there. 217 00:11:36,020 --> 00:11:38,400 So we've kind of got some information about where they've been. 218 00:11:39,220 --> 00:11:42,460 Searching FCC, I put in the actual address of the FCC there 219 00:11:42,460 --> 00:11:43,740 and I was looking around. 220 00:11:43,920 --> 00:11:47,020 I didn't actually see FCC Public as an actual hotspot. 221 00:11:47,180 --> 00:11:48,340 So that's the thing to keep in mind. 222 00:11:48,360 --> 00:11:49,540 What you need to know with this attribution 223 00:11:49,540 --> 00:11:53,500 is it sometimes hit or miss and sometimes you get really dialed in 224 00:11:53,500 --> 00:11:55,420 and other times it's a little more vague. 225 00:11:55,720 --> 00:11:57,800 So that's just the way it goes with attributions. 226 00:11:57,920 --> 00:12:00,540 So before you actually definitely say this is so-and-so 227 00:12:00,540 --> 00:12:02,280 or this is a person that does that, 228 00:12:02,440 --> 00:12:07,620 you've got to work with your degrees of variability there. 229 00:12:09,460 --> 00:12:10,040 All right. 230 00:12:10,120 --> 00:12:13,580 So how would we do this if we wanted to do it in Wireshark 231 00:12:13,580 --> 00:12:16,860 and not just, sorry, Aircrack? 232 00:12:17,160 --> 00:12:18,340 So for this one, 233 00:12:18,360 --> 00:12:20,220 I picked Andrew's iPhone 6, 234 00:12:20,500 --> 00:12:23,020 which was a hotspot that people were jumping on. 235 00:12:24,280 --> 00:12:26,640 So essentially I had done this capture 236 00:12:26,640 --> 00:12:29,200 right off of the PCAP tool on the Android. 237 00:12:29,660 --> 00:12:30,960 I threw it in Wireshark 238 00:12:30,960 --> 00:12:34,160 and I selected Statistics YLAN Summary. 239 00:12:34,260 --> 00:12:36,280 So it will show Andrew's iPhone, 240 00:12:36,560 --> 00:12:38,940 other Wi-Fi hotspots, Baileys, whatnot. 241 00:12:39,580 --> 00:12:44,380 It shows all the associated different connections to it. 242 00:12:44,820 --> 00:12:46,920 And if we pull one of those MAC addresses out, 243 00:12:46,920 --> 00:12:51,180 we can see which ones those have previously connected to. 244 00:12:51,360 --> 00:12:54,120 So if you see 9494, 245 00:12:55,220 --> 00:12:59,300 it was one of the, actually 16. 246 00:13:01,660 --> 00:13:03,240 Yeah, so it was the Apple device, 247 00:13:03,320 --> 00:13:04,440 second Apple device right there. 248 00:13:05,240 --> 00:13:07,940 You can see that these are the wireless connections 249 00:13:07,940 --> 00:13:09,120 that they've done previously. 250 00:13:09,340 --> 00:13:11,300 So if I was going to do some analytics, 251 00:13:11,540 --> 00:13:13,460 I would probably go with the fourth one down there, 252 00:13:13,540 --> 00:13:16,160 the A194809, 253 00:13:16,160 --> 00:13:17,340 and go through Wiggle Wi-Fi 254 00:13:17,340 --> 00:13:19,460 and try to find where is that actually located. 255 00:13:22,600 --> 00:13:24,960 The other thing you can do is you can use TCP dump. 256 00:13:25,220 --> 00:13:34,500 So you're going to grep essentially for XOR 0030 257 00:13:34,500 --> 00:13:36,300 and XOR 0040 258 00:13:36,300 --> 00:13:39,840 using the dash dash NNR command, 259 00:13:39,960 --> 00:13:41,160 which is network neighbors. 260 00:13:41,580 --> 00:13:43,400 And you'll see right here 261 00:13:43,400 --> 00:13:45,140 we've pulled out one that's AT home base. 262 00:13:47,740 --> 00:13:50,300 All right, so moving on to Bluetooth, 263 00:13:51,380 --> 00:13:54,940 we have several different software packages for that. 264 00:13:55,160 --> 00:13:59,060 You can also run it on a desktop or laptop. 265 00:14:00,080 --> 00:14:02,200 But I'm not going to probably go into that too much 266 00:14:02,200 --> 00:14:04,400 because I want to focus on the actual Android. 267 00:14:04,600 --> 00:14:05,960 And the reason I want to do that is because 268 00:14:05,960 --> 00:14:08,140 Bluetooth is very low. 269 00:14:08,240 --> 00:14:10,560 So you're probably going to get about 35 feet, 270 00:14:10,660 --> 00:14:12,040 maybe 40, the max. 271 00:14:13,000 --> 00:14:14,680 You're wanting to home in on your target. 272 00:14:14,800 --> 00:14:16,140 If you're having a laptop, and you're going to be using it, 273 00:14:16,160 --> 00:14:18,260 and you're running around with, you know, doing Bluetooth, 274 00:14:18,540 --> 00:14:19,300 that's not very good. 275 00:14:19,520 --> 00:14:21,860 But as you can see, 276 00:14:22,020 --> 00:14:24,520 I've got an Android device in my pocket. 277 00:14:25,780 --> 00:14:28,340 You know, that's pretty inconspicuous 278 00:14:28,340 --> 00:14:29,700 and reasonable for me to have. 279 00:14:30,700 --> 00:14:32,600 All right, so we've got Ramble, Bluescan, 280 00:14:32,880 --> 00:14:34,660 and Bluetooth SmartScan 281 00:14:34,660 --> 00:14:36,140 if you're so inclined to have an iPhone. 282 00:14:37,800 --> 00:14:40,080 The only hardware that you would possibly need 283 00:14:40,080 --> 00:14:42,280 is the BT Ubertooth. 284 00:14:42,660 --> 00:14:43,860 I'll be perfectly honest, 285 00:14:44,060 --> 00:14:45,660 this is something I'm learning, 286 00:14:46,160 --> 00:14:46,880 but I wanted to throw it up here 287 00:14:46,880 --> 00:14:48,300 just so if you guys wanted to check it out 288 00:14:48,300 --> 00:14:49,740 and work through that, you could. 289 00:14:52,360 --> 00:14:54,100 All right, so this is what Ramble looks like. 290 00:14:54,420 --> 00:14:56,220 A lot of people are actually using Ramble 291 00:14:57,140 --> 00:15:00,200 primarily because it gives you a lot of data in the middle, 292 00:15:00,280 --> 00:15:02,420 and it also gives a quick look 293 00:15:02,420 --> 00:15:04,900 on where that actual device was found. 294 00:15:05,140 --> 00:15:08,480 So you go from the device over here, 295 00:15:08,560 --> 00:15:09,340 which was a Flexbit, 296 00:15:10,160 --> 00:15:12,720 which is one of the ones that they do for health checking 297 00:15:12,720 --> 00:15:14,020 and all kinds of other fun stuff, 298 00:15:14,180 --> 00:15:15,360 how far you've run, whatnot. 299 00:15:16,160 --> 00:15:20,280 And then here is the point where I actually found that. 300 00:15:21,440 --> 00:15:24,300 I personally like Bluescan a little bit better. 301 00:15:24,660 --> 00:15:27,080 The primary reason for this is 302 00:15:27,080 --> 00:15:30,240 Ramble will export everything as an SQLite database, 303 00:15:30,480 --> 00:15:32,520 whereas Ramble will export it as a JSON file. 304 00:15:32,720 --> 00:15:35,140 That allows me to be able to move it into, 305 00:15:35,220 --> 00:15:36,760 you know, different implementations. 306 00:15:36,920 --> 00:15:39,000 And I've also been talking to the creator of Bluescan, 307 00:15:39,200 --> 00:15:40,440 and he's doing some really cool stuff. 308 00:15:40,660 --> 00:15:43,520 He's creating, like, a Wiggle-like setup 309 00:15:43,520 --> 00:15:45,360 where you can actually upload your data, 310 00:15:45,360 --> 00:15:47,260 and then you'll be able to see it on a map. 311 00:15:47,400 --> 00:15:48,740 He doesn't have it fully implemented, 312 00:15:48,940 --> 00:15:50,280 but I've actually written a tool 313 00:15:50,280 --> 00:15:52,020 so that you can actually build it out yourself. 314 00:15:52,920 --> 00:15:55,420 So as you can see here, you've got your local Mac, 315 00:15:55,560 --> 00:15:57,460 so that's your actual device yourself. 316 00:15:57,780 --> 00:16:01,140 You have the Mac that you're attempting to, you know, sniff. 317 00:16:01,380 --> 00:16:03,020 Then you have your longitude and latitude. 318 00:16:03,300 --> 00:16:05,100 You have any description data as well 319 00:16:05,100 --> 00:16:07,540 and some other characteristics, 320 00:16:07,640 --> 00:16:09,300 like the DBI and altitude. 321 00:16:11,220 --> 00:16:12,640 So here are some things. 322 00:16:12,740 --> 00:16:14,460 Like I said, these slides will be posted 323 00:16:14,460 --> 00:16:16,920 if you just guys follow me on Twitter, Josh in general. 324 00:16:17,460 --> 00:16:18,980 I will publish all of this, 325 00:16:19,100 --> 00:16:21,740 and, you know, anything else that I build 326 00:16:21,740 --> 00:16:22,980 will also be posted there as well. 327 00:16:23,440 --> 00:16:26,580 So for the first one is you'll take the JSON file, 328 00:16:26,740 --> 00:16:30,540 you'll egrep, and it'll pull out a Mac address. 329 00:16:30,740 --> 00:16:32,760 And so what I've done here is you're going to go 330 00:16:32,760 --> 00:16:34,440 before 3 and after 8 331 00:16:34,440 --> 00:16:38,280 so that you can actually get the full area around it. 332 00:16:38,340 --> 00:16:39,160 So you can get the local Mac, 333 00:16:39,260 --> 00:16:40,620 and then you can also get the other stuff 334 00:16:40,620 --> 00:16:41,420 that you're interested in. 335 00:16:43,480 --> 00:16:45,380 If you notice, the... 336 00:16:45,380 --> 00:16:47,440 Hold on, let me stay here real quick. 337 00:16:47,680 --> 00:16:50,360 So that number there, data seconds and timestamp, 338 00:16:50,480 --> 00:16:51,680 those are in epoch time. 339 00:16:51,880 --> 00:16:55,020 So epoch time is essentially the Linux time 340 00:16:55,020 --> 00:16:59,420 that was devised that goes from 1970 and forward. 341 00:16:59,560 --> 00:17:02,340 So how many seconds from 1970, you know, 342 00:17:02,360 --> 00:17:04,520 it essentially is a number from that. 343 00:17:05,060 --> 00:17:06,420 That doesn't really help me. 344 00:17:06,480 --> 00:17:08,400 I can't read that. It's not super helpful. 345 00:17:08,580 --> 00:17:11,160 But that being said, I can use certain tools 346 00:17:11,160 --> 00:17:13,400 in order to figure out what range I want, 347 00:17:13,540 --> 00:17:15,760 and this would be the script that you would use 348 00:17:15,760 --> 00:17:17,020 in order to do it on the raw JSON. 349 00:17:17,480 --> 00:17:19,640 So how do we make this human-readable? 350 00:17:21,260 --> 00:17:23,260 So there's a tool called epoch converter. 351 00:17:23,480 --> 00:17:25,400 You can actually Google for other ones as well. 352 00:17:26,740 --> 00:17:28,820 But you can just throw that timestamp in there, 353 00:17:28,960 --> 00:17:29,960 and it'll parse it out. 354 00:17:30,160 --> 00:17:32,160 So the key thing to note is that 355 00:17:33,320 --> 00:17:36,140 the actual part that Linux will use 356 00:17:36,140 --> 00:17:38,340 is it goes up to 10 characters, 357 00:17:38,440 --> 00:17:40,300 and then they should have put a decimal point in there, 358 00:17:40,340 --> 00:17:40,880 but they didn't. 359 00:17:41,160 --> 00:17:42,620 So epoch is smart enough to know that, 360 00:17:42,660 --> 00:17:44,680 but if you're doing any kind of scripting off of it, 361 00:17:44,740 --> 00:17:48,160 just know that you're going to need to go 10 characters in. 362 00:17:49,220 --> 00:17:53,320 And that's what I've done in the second... 363 00:17:53,320 --> 00:17:54,420 Sorry, third script there. 364 00:17:54,600 --> 00:17:57,900 So for this part here, what I've done is I've said, 365 00:17:58,000 --> 00:17:59,180 okay, at this particular time, 366 00:17:59,280 --> 00:18:00,480 I want to pull all the MAC addresses 367 00:18:00,480 --> 00:18:02,180 that I was looking at for that time. 368 00:18:03,220 --> 00:18:04,440 I'm going to use Wireshark 369 00:18:04,440 --> 00:18:06,760 in order to figure out what those are. 370 00:18:06,840 --> 00:18:07,820 So we have an Apple device, 371 00:18:08,020 --> 00:18:10,540 we have a HTC Corporation device, 372 00:18:10,540 --> 00:18:12,600 and then we also have a Texans Instruments. 373 00:18:13,300 --> 00:18:14,980 So what this is doing is it's just taking 374 00:18:14,980 --> 00:18:16,100 the first three of the MAC address, 375 00:18:16,240 --> 00:18:17,620 which is registered with the IEEE, 376 00:18:18,200 --> 00:18:21,620 figuring out what device it is based on those characters. 377 00:18:23,920 --> 00:18:25,820 So if you actually do want to know 378 00:18:25,820 --> 00:18:29,200 what that actual epoch code was, 379 00:18:29,400 --> 00:18:30,820 you can use this script here. 380 00:18:31,040 --> 00:18:33,540 So what it's doing is it's taking the first 10, 381 00:18:33,660 --> 00:18:35,900 so that Linux isn't getting confused by the decimal point. 382 00:18:36,060 --> 00:18:39,040 Then you're piping it to xarcs, date, 383 00:18:39,040 --> 00:18:42,300 and tacr will go ahead and filter that out for you. 384 00:18:46,860 --> 00:18:50,840 This last one here is a script that essentially I wrote 385 00:18:50,840 --> 00:18:52,940 that when you go to Wireshark, 386 00:18:53,040 --> 00:18:56,040 you can pull down all the identifiers 387 00:18:56,040 --> 00:18:57,520 that they've found for Bluetooth, 388 00:18:58,340 --> 00:19:01,580 and you can pipe it into a file called maxlst. 389 00:19:02,040 --> 00:19:04,140 What you can do with that is then you can 390 00:19:04,140 --> 00:19:07,900 just grep through it and find other MACs based on that. 391 00:19:07,900 --> 00:19:09,960 So if you're looking for all your Apple devices that you found 392 00:19:09,960 --> 00:19:11,700 or you want to look at all your HTC devices, 393 00:19:12,020 --> 00:19:14,980 you can use this script and correlate it off of the Wireshark. 394 00:19:15,160 --> 00:19:17,060 Now, the reason I did this was because when I was talking 395 00:19:17,060 --> 00:19:19,440 to the guy that created Bluescan, Abraham, 396 00:19:19,900 --> 00:19:23,280 he was saying that he was using the IEEE database. 397 00:19:23,600 --> 00:19:25,000 So it's a little bit different than Wireshark. 398 00:19:25,120 --> 00:19:26,760 Wireshark does some other correlative stuff, 399 00:19:26,920 --> 00:19:30,040 and they pull from other data sets that they can possibly find. 400 00:19:30,360 --> 00:19:33,040 What's interesting, though, is that some of the MAC addresses 401 00:19:33,040 --> 00:19:34,780 for Bluetooth are actually private. 402 00:19:35,060 --> 00:19:37,180 So he would find Bluetooth out in the field, 403 00:19:37,180 --> 00:19:40,620 he'd take the IEEE, say, hey, what MAC address is this, 404 00:19:40,740 --> 00:19:42,700 you know, what device, and it would come back as private. 405 00:19:43,640 --> 00:19:45,680 So when he was conversing with them, 406 00:19:45,820 --> 00:19:48,860 they actually told him that there are dev Bluetooth devices 407 00:19:48,860 --> 00:19:51,780 that companies can register under a private name 408 00:19:51,780 --> 00:19:54,260 so that they don't disclose what it is they actually have, 409 00:19:54,360 --> 00:19:56,180 and then, of course, national security. 410 00:19:57,860 --> 00:19:59,740 So there are some of these that you won't find, 411 00:19:59,880 --> 00:20:01,520 and that's why I did the correlative to Wireshark, 412 00:20:01,580 --> 00:20:03,920 because they might have a little bit more in the database there. 413 00:20:05,500 --> 00:20:06,000 All right. 414 00:20:06,000 --> 00:20:09,240 So like I was saying, we don't actually have something 415 00:20:09,240 --> 00:20:12,080 where we can throw a whole bunch of Bluetooth MAC addresses 416 00:20:12,080 --> 00:20:16,480 and longitude and latitude data and get a very nice graph. 417 00:20:16,700 --> 00:20:18,880 So what I did was I took the JSON and I parsed it out 418 00:20:18,880 --> 00:20:20,660 in a way that has MAC addresses as the key, 419 00:20:21,080 --> 00:20:21,960 longitude and latitude, 420 00:20:22,220 --> 00:20:24,320 and it allows you to see it on Google Maps. 421 00:20:26,460 --> 00:20:29,680 So first thing we want to do is get our database. 422 00:20:29,960 --> 00:20:31,360 We want to export that database, 423 00:20:31,540 --> 00:20:33,940 and the current way that he does that is he has an email. 424 00:20:34,120 --> 00:20:35,840 So you just email to yourself, 425 00:20:37,100 --> 00:20:38,580 download it, and put it in a file. 426 00:20:38,980 --> 00:20:41,260 So I just used Vim here, piped it in there. 427 00:20:43,740 --> 00:20:45,240 Then you'll want to run the parser, 428 00:20:45,320 --> 00:20:46,780 and what the parser will do is it will grab 429 00:20:46,780 --> 00:20:48,160 all the longitude, latitude. 430 00:20:48,480 --> 00:20:50,420 It will also grab the MAC address 431 00:20:50,420 --> 00:20:53,080 and use that as a name identifier, 432 00:20:53,600 --> 00:20:55,580 and it will put it to an output.csv file. 433 00:20:57,700 --> 00:21:00,500 Google Maps has a way that you can actually upload data to it. 434 00:21:00,680 --> 00:21:02,800 So just go to Google Maps, go to My Maps, 435 00:21:02,960 --> 00:21:04,160 and hit Create. 436 00:21:05,020 --> 00:21:07,100 That will bring you up with a new screen here, 437 00:21:07,240 --> 00:21:09,380 which will allow you to kind of, you know, 438 00:21:09,380 --> 00:21:11,020 look and configure your data. 439 00:21:12,040 --> 00:21:13,120 Go ahead and click Import. 440 00:21:14,940 --> 00:21:17,300 Make sure that you upload it as a CSV. 441 00:21:17,440 --> 00:21:19,160 So if you, for some reason, change the file name, 442 00:21:19,240 --> 00:21:20,440 it needs to be CSV. 443 00:21:20,640 --> 00:21:22,740 Google gets confused for whatever reason. 444 00:21:22,820 --> 00:21:23,220 I don't know why. 445 00:21:24,020 --> 00:21:25,660 But once you upload it as a CSV, 446 00:21:25,900 --> 00:21:27,360 you'll get a new screen that says, 447 00:21:27,480 --> 00:21:28,760 okay, longitude, latitude, 448 00:21:29,300 --> 00:21:30,700 and you just want to select those. 449 00:21:31,160 --> 00:21:32,960 And I've already, with my script, 450 00:21:32,960 --> 00:21:33,940 I've put the headers in there, 451 00:21:34,020 --> 00:21:36,260 so you don't have to, you know, fiddle with that. 452 00:21:37,220 --> 00:21:38,320 Next thing you'll want to do... 453 00:21:38,320 --> 00:21:38,860 Whoops. Oh, sorry. 454 00:21:39,580 --> 00:21:41,620 You'll want to select the name. 455 00:21:41,740 --> 00:21:44,040 Just tell it, hey, I'm going to use the name field as the key. 456 00:21:44,440 --> 00:21:45,880 And then you'll want to probably give it a name. 457 00:21:45,960 --> 00:21:48,840 So for this one, I gave it Defcon WiFi Bluetooth Data. 458 00:21:49,820 --> 00:21:51,120 And then this is what it looks like. 459 00:21:52,080 --> 00:21:54,560 So here's Mandalay Bay, where I was at at Black Hat. 460 00:21:55,680 --> 00:21:59,560 And they have all these different Bluetooth pieces 461 00:21:59,560 --> 00:22:02,500 that I picked up, whether it be a Fitbit or Android 462 00:22:02,960 --> 00:22:03,500 or iPhone. 463 00:22:03,840 --> 00:22:06,400 And all these are now showing up in a graphical data. 464 00:22:07,540 --> 00:22:10,480 So it's actually accurate enough that I can see, 465 00:22:10,680 --> 00:22:13,420 okay, hey, these people were in the shops at Mandalay Bay. 466 00:22:14,160 --> 00:22:16,420 These other people were down by the Raffles Calf. 467 00:22:16,800 --> 00:22:19,900 So it's pretty accurate, actually, with the GPS, 468 00:22:19,980 --> 00:22:21,960 because it's using all the things that you have 469 00:22:21,960 --> 00:22:22,960 built in with your phone. 470 00:22:26,580 --> 00:22:30,700 So in addition to that, when I was flying, 471 00:22:30,940 --> 00:22:32,600 I was actually selecting... 472 00:22:33,080 --> 00:22:34,640 to do Bluetooth scans. 473 00:22:34,880 --> 00:22:36,140 So here's how we can do attribution. 474 00:22:36,440 --> 00:22:37,880 So there was a girl on her iPhone. 475 00:22:38,060 --> 00:22:39,340 I'm not going to show her face, of course, 476 00:22:39,420 --> 00:22:40,440 because that would just be creepy. 477 00:22:42,140 --> 00:22:45,060 But I saw that she was the only one with her iPhone out. 478 00:22:45,320 --> 00:22:47,680 So what I did was I fired up the Bluetooth, 479 00:22:47,780 --> 00:22:49,020 and I started collecting information. 480 00:22:49,820 --> 00:22:51,340 And here is that information. 481 00:22:52,300 --> 00:22:55,080 So now if I was to be walking through the airport, 482 00:22:56,340 --> 00:22:59,400 I've essentially met her once, and now I can be like, 483 00:22:59,500 --> 00:23:00,440 hey, I know you. 484 00:23:01,580 --> 00:23:01,960 . 485 00:23:03,940 --> 00:23:04,860 Not creepy at all. 486 00:23:07,560 --> 00:23:09,780 On a little more of a serious note, though, 487 00:23:10,320 --> 00:23:11,460 while I was at Black Hat, 488 00:23:11,660 --> 00:23:13,940 I noticed that there were some people in a detail. 489 00:23:14,360 --> 00:23:15,640 I'm not going to say what federal agency, 490 00:23:15,860 --> 00:23:17,640 and I've blacked out their faces because I don't want to get in trouble, 491 00:23:17,720 --> 00:23:18,760 and I don't want to get them in trouble. 492 00:23:19,700 --> 00:23:23,540 But they were all on their phones waiting for this person to come out. 493 00:23:25,160 --> 00:23:28,440 And so I was like, well, let me just go ahead and do some scanning 494 00:23:28,440 --> 00:23:29,060 and see what's up. 495 00:23:29,060 --> 00:23:34,900 So I was able to figure out, and there was about seven of them total. 496 00:23:35,060 --> 00:23:39,940 So you have the general here, you have two intel officers, 497 00:23:40,080 --> 00:23:41,500 and then some other people. 498 00:23:41,600 --> 00:23:44,580 This guy right here is how I figured out which agency it was 499 00:23:44,580 --> 00:23:45,860 because he had it on his name badge. 500 00:23:48,100 --> 00:23:52,460 So you can see over here I did kind of a double sweep. 501 00:23:52,660 --> 00:23:55,420 So this is a salt card. 502 00:23:56,280 --> 00:23:57,140 Actually, I'll tell you what. 503 00:23:58,100 --> 00:23:59,040 Let's hop over here for a second. 504 00:23:59,060 --> 00:24:00,460 I'll go over here first, and then I'll move back to that one. 505 00:24:00,760 --> 00:24:00,960 All right. 506 00:24:02,160 --> 00:24:10,320 So in the morning at around 1131, I found and did a whole bunch of scanning. 507 00:24:10,440 --> 00:24:11,340 So you can see that's really big. 508 00:24:11,540 --> 00:24:15,480 So I came back in the afternoon, and I happened to see the general walk by, 509 00:24:15,520 --> 00:24:16,800 and I was like, oh, they're still here. 510 00:24:17,820 --> 00:24:21,520 So what I did was I walked back over there, and I threw the Bluetooth out. 511 00:24:21,640 --> 00:24:25,260 And so now at 1513, I can't talk today, sorry, 512 00:24:26,680 --> 00:24:28,500 I was able to do a correlative. 513 00:24:29,060 --> 00:24:31,620 I figured out that that was his Galaxy gear. 514 00:24:31,900 --> 00:24:36,300 Now, earlier in the day, I actually saw them on the table putting their phones out, 515 00:24:36,380 --> 00:24:37,840 and it was actually a Galaxy phone. 516 00:24:38,020 --> 00:24:39,740 They also had their common BlackBerrys. 517 00:24:39,800 --> 00:24:42,620 So now I can actually correlate. 518 00:24:42,860 --> 00:24:45,720 Any time I'm walking around, if I see this MAC address again, 519 00:24:45,960 --> 00:24:48,180 I can know that that security detail is here. 520 00:24:50,320 --> 00:24:53,660 Most times, just from what I've heard and understand, 521 00:24:53,880 --> 00:24:58,720 the actual target themselves will probably have not as much of a digital footprint. 522 00:24:58,720 --> 00:25:03,140 But by profiling their detail and the lack of security that they're doing, 523 00:25:03,260 --> 00:25:05,860 I can now figure out that that person is in the vicinity. 524 00:25:06,580 --> 00:25:07,800 So that's kind of bad. 525 00:25:09,220 --> 00:25:11,240 The other thing that was kind of interesting, too, 526 00:25:11,400 --> 00:25:13,420 was I noticed that they were using what's called a salt card. 527 00:25:13,620 --> 00:25:16,720 So essentially what that does is if someone steals their phone, 528 00:25:16,920 --> 00:25:20,360 they've got that salt card in their wallet or another place on their person, 529 00:25:20,480 --> 00:25:21,940 and it automatically locks the phone. 530 00:25:22,100 --> 00:25:25,700 So just another piece of information that I can find out about kind of the infrastructure 531 00:25:25,700 --> 00:25:28,700 that they're using and if I see this as well. 532 00:25:28,700 --> 00:25:31,180 I can know that it's possibly them. 533 00:25:32,700 --> 00:25:34,240 All right, so tips for protection. 534 00:25:34,680 --> 00:25:36,040 Turn Bluetooth off when needed. 535 00:25:36,180 --> 00:25:41,880 If you're not using a headset or you're not using some kind of media center 536 00:25:41,880 --> 00:25:43,900 or you're not transferring files, just turn it off. 537 00:25:44,060 --> 00:25:45,820 It doesn't really need to be on. It's wasting your battery. 538 00:25:46,700 --> 00:25:48,320 The other thing is clean up your Wi-Fi. 539 00:25:48,500 --> 00:25:51,300 So if you haven't been to your friend's place in probably six months 540 00:25:51,300 --> 00:25:53,660 and you don't think you're going to be going back or they've moved, 541 00:25:53,820 --> 00:25:57,220 get rid of that access point because it's giving information about you away. 542 00:25:57,220 --> 00:26:00,600 Also beware of who's around you. 543 00:26:00,700 --> 00:26:05,460 So if there's a guy that's like looking really suspicious with his phone out 544 00:26:05,460 --> 00:26:09,200 or he's got a cable kind of like this poking out of his pocket, 545 00:26:10,380 --> 00:26:13,220 you might want to, you know, throw it in airplane mode. 546 00:26:13,360 --> 00:26:15,700 Also scan yourself. Know what you're transmitting. 547 00:26:15,840 --> 00:26:19,840 So I scan myself, and I also scan mine hours. 548 00:26:19,980 --> 00:26:23,840 So I recently went to Europe for work, and I was playing around with this. 549 00:26:24,020 --> 00:26:27,040 Unfortunately, the PCAPs were on the work computers, 550 00:26:27,040 --> 00:26:27,940 so I couldn't use them. 551 00:26:28,800 --> 00:26:33,580 But I noticed that my work SSID, even though it wasn't around, 552 00:26:33,760 --> 00:26:36,820 was being transmitted, and I was in another country, and that's bad. 553 00:26:37,060 --> 00:26:41,060 So one of the things that I'm now considering when I travel abroad 554 00:26:41,060 --> 00:26:45,840 is go ahead and delete the work laptop's SSIDs that I've used, 555 00:26:45,940 --> 00:26:47,800 you know, any guest or employee stuff. 556 00:26:48,600 --> 00:26:50,500 That way I'm not as much of a target. 557 00:26:50,700 --> 00:26:54,080 And so those are kinds of things that I'm employing to try and, you know, 558 00:26:54,080 --> 00:26:57,020 reduce, you know, the attack vectors that I have. 559 00:26:58,200 --> 00:27:00,200 So does anyone have any questions? 560 00:27:00,340 --> 00:27:03,340 I know I kind of probably moved through that a little bit fast, and... 561 00:27:03,340 --> 00:27:05,500 So there was a really good talk earlier yesterday 562 00:27:06,720 --> 00:27:09,480 about from a guy who hunts hackers. 563 00:27:09,680 --> 00:27:11,740 So what are the possible vulnerabilities in the tools that you could use? 564 00:27:13,060 --> 00:27:15,560 These tools? So I actually haven't fuzzed... 565 00:27:15,560 --> 00:27:16,800 Oh, yeah, sorry. 566 00:27:16,900 --> 00:27:19,940 So the question was, what kind of vulnerabilities 567 00:27:19,940 --> 00:27:21,700 are actually in these tools themselves? 568 00:27:24,700 --> 00:27:27,000 So I guess one of the vulnerabilities 569 00:27:27,020 --> 00:27:28,720 that I could think of off the top of my head is 570 00:27:28,720 --> 00:27:30,640 when you're uploading your Wiggle Wi-Fi stuff 571 00:27:30,640 --> 00:27:32,800 in order to be able to get it into Google, 572 00:27:33,000 --> 00:27:34,820 you're giving Google some of your data 573 00:27:34,820 --> 00:27:37,060 and also anyone else that uses Wiggle Wi-Fi. 574 00:27:37,200 --> 00:27:39,560 So potentially, if you are scanning 575 00:27:39,560 --> 00:27:41,400 and you have that in your data set, 576 00:27:41,520 --> 00:27:44,160 and it, you know, was probably the first ones that came up, 577 00:27:44,680 --> 00:27:47,720 someone could essentially, if they were able to, you know, 578 00:27:47,720 --> 00:27:49,180 figure out that that was the one that you uploaded, 579 00:27:49,380 --> 00:27:51,440 they now know who you are and what you're doing. 580 00:27:52,100 --> 00:27:53,560 So that's one off the top of my head. 581 00:27:53,640 --> 00:27:56,780 But as far as, like, fuzzing these or changing SSIDs, 582 00:27:57,460 --> 00:28:01,120 to be, like, any kind of weird stuff, 583 00:28:01,200 --> 00:28:02,220 I haven't actively done that. 584 00:28:02,600 --> 00:28:04,940 I guess another thing is you could put cross-site scripting 585 00:28:04,940 --> 00:28:06,480 or SQL injection in the SSID, 586 00:28:06,620 --> 00:28:09,080 and then these tools, once you upload them 587 00:28:09,080 --> 00:28:10,300 in whatever back-end database, 588 00:28:10,580 --> 00:28:12,280 you could possibly do some SQL injection 589 00:28:12,280 --> 00:28:13,660 or cross-site scripting. 590 00:28:13,800 --> 00:28:15,880 So those are two things I'm thinking off the top of my head. 591 00:28:15,940 --> 00:28:17,500 If anybody else has anything, feel free to jump in. 592 00:28:20,060 --> 00:28:21,180 All right, next question. 593 00:28:22,820 --> 00:28:23,600 Janitor in the back. 594 00:28:25,100 --> 00:28:26,560 Just two things. Yes. 595 00:28:27,560 --> 00:28:30,300 One, have you come across a lot of Apple Watches? 596 00:28:30,300 --> 00:28:32,420 Because I've been finding a lot of Apple Watches at a costo. 597 00:28:33,260 --> 00:28:36,240 So the question is, have I found a lot of Apple Watches? 598 00:28:36,240 --> 00:28:39,240 I honestly have not done correlative analysis 599 00:28:39,240 --> 00:28:41,540 in order to figure out whether it's an Apple Watch or not, 600 00:28:41,640 --> 00:28:43,380 but I'd be interested to see. 601 00:28:44,820 --> 00:28:47,280 Wiggle Bluetooth simply pops and says it is. 602 00:28:47,340 --> 00:28:49,420 It'll actually let you know the Apple device. 603 00:28:49,620 --> 00:28:53,380 Okay, so, yeah, so that was what Ramble was really good at. 604 00:28:53,560 --> 00:28:56,420 So their database on Wiggle was actually a little bit better. 605 00:28:56,480 --> 00:28:56,940 Is that what you're saying? 606 00:28:57,760 --> 00:29:00,500 It came up quite a bit in Air Force as I traveled a lot. 607 00:29:00,780 --> 00:29:01,960 Yeah, of course, yes. 608 00:29:02,380 --> 00:29:03,580 And you made a comment about, 609 00:29:04,240 --> 00:29:06,600 or protect yourself from putting your device in Air Force mode, 610 00:29:06,660 --> 00:29:07,800 which does work very well on the Apple, 611 00:29:07,880 --> 00:29:08,680 because it shuts everything off. 612 00:29:08,740 --> 00:29:08,960 Yes. 613 00:29:09,040 --> 00:29:11,420 On the Android, you can still do Bluetooth and Wi-Fi 614 00:29:11,420 --> 00:29:12,280 in Air Force mode. 615 00:29:12,500 --> 00:29:12,860 Correct. 616 00:29:12,860 --> 00:29:14,460 Yeah, so what he was saying was, 617 00:29:14,580 --> 00:29:17,240 if you have an iPhone and you throw it in Bluetooth, 618 00:29:18,080 --> 00:29:20,760 sorry, throw it in Air Plane mode, 619 00:29:21,320 --> 00:29:22,940 the Bluetooth will be shut off, 620 00:29:23,000 --> 00:29:25,600 but in Android, you can pop the Bluetooth back on. 621 00:29:25,600 --> 00:29:27,860 So, gentleman here. 622 00:29:28,060 --> 00:29:30,780 Yeah, and there are also tools that will, 623 00:29:31,860 --> 00:29:34,760 you can set it to turn your data on or off 624 00:29:34,760 --> 00:29:36,740 based on the cell phone towers that you're near. 625 00:29:36,960 --> 00:29:40,400 So, like, since I know I only use mine at home, 626 00:29:40,560 --> 00:29:43,380 whenever I go outside that particular cell phone tower, 627 00:29:43,520 --> 00:29:45,380 it automatically will turn on. 628 00:29:45,740 --> 00:29:47,560 Right, yeah, so what he was saying, 629 00:29:47,700 --> 00:29:48,760 for those of you that couldn't hear, 630 00:29:48,900 --> 00:29:51,220 that essentially there's apps that will figure out 631 00:29:51,220 --> 00:29:52,260 what cell phone tower you're in. 632 00:29:52,300 --> 00:29:54,460 At Wiggle Wi-Fi, you can actually see the cell phone tower 633 00:29:54,460 --> 00:29:58,540 or the SSID or BSSID of that, 634 00:29:59,560 --> 00:30:01,800 and you can also use other apps 635 00:30:01,800 --> 00:30:03,560 in order to do correlative stuff off of that. 636 00:30:03,660 --> 00:30:05,560 So, if I'm at home, turn on Bluetooth, 637 00:30:05,680 --> 00:30:08,300 then Wi-Fi, when I'm not in that range, 638 00:30:08,460 --> 00:30:09,380 then turn it off. 639 00:30:10,560 --> 00:30:12,200 One thing to note about the Wiggle Wi-Fi, 640 00:30:12,280 --> 00:30:13,240 because I did play with that, 641 00:30:13,400 --> 00:30:16,520 it doesn't really have a way to export it to another device 642 00:30:16,520 --> 00:30:18,500 or actually push it to Wiggle Wi-Fi. 643 00:30:18,620 --> 00:30:20,840 So, that was kind of why I admitted it here, 644 00:30:20,920 --> 00:30:22,700 but it is definitely another thing 645 00:30:22,700 --> 00:30:23,600 that you would want to try 646 00:30:23,600 --> 00:30:25,800 if you're trying to figure out what the device is 647 00:30:25,800 --> 00:30:27,720 and you don't have it in your data set for your database. 648 00:30:29,060 --> 00:30:30,920 Can you correlate multiple different things, 649 00:30:30,980 --> 00:30:32,540 Bluetooth to Wi-Fi and things like that? 650 00:30:32,780 --> 00:30:35,420 Yeah, so I actually, when I was doing the detail, 651 00:30:35,560 --> 00:30:37,700 I actually captured PCAP data, too. 652 00:30:38,060 --> 00:30:40,000 I just didn't have a chance to parse through that. 653 00:30:40,580 --> 00:30:43,040 So, what I could have done is I could have said, 654 00:30:43,120 --> 00:30:45,820 okay, I'm in this vicinity, I have these DBIs, 655 00:30:46,380 --> 00:30:51,100 or, see, these DBs for these particular items. 656 00:30:51,260 --> 00:30:53,140 I know that here's what I'm looking for, 657 00:30:53,140 --> 00:30:55,460 so the MAC address of Samsung Wi-Fi 658 00:30:55,460 --> 00:30:57,840 is also going to be similar, 659 00:30:58,020 --> 00:30:59,640 it's going to be a similar type of device, 660 00:30:59,780 --> 00:31:02,240 so then I could look at what is that connecting to. 661 00:31:02,360 --> 00:31:07,480 So, I might have been able to find FBI or DHS or CIA 662 00:31:07,480 --> 00:31:08,540 or something like that, 663 00:31:08,660 --> 00:31:11,760 and one of their public Wi-Fis that they had once connected to 664 00:31:11,760 --> 00:31:12,960 and then correlate for that. 665 00:31:13,880 --> 00:31:15,960 I do know that some of the Intel agencies 666 00:31:15,960 --> 00:31:19,680 are just using non-names that attribute to them 667 00:31:19,680 --> 00:31:21,500 while other companies do that, 668 00:31:21,500 --> 00:31:23,160 so it might not be as valuable. 669 00:31:25,840 --> 00:31:28,360 So, you're saying that NSA surveillance van 670 00:31:28,360 --> 00:31:29,980 wireless probably isn't... 671 00:31:30,370 --> 00:31:32,160 I hate to break it to you, but, yeah, 672 00:31:32,200 --> 00:31:34,840 NSA surveillance van is probably not them, 673 00:31:35,340 --> 00:31:37,280 but the FBI one is actually accurate. 674 00:31:41,300 --> 00:31:41,760 Awesome. 675 00:31:44,080 --> 00:31:45,240 Any other questions, comments? 676 00:31:45,760 --> 00:31:46,740 One back here. 677 00:31:46,920 --> 00:31:47,380 Oh. 678 00:31:47,640 --> 00:31:49,180 So, the guy, I don't know, 679 00:31:50,400 --> 00:31:52,160 correlating wireless to Bluetooth. 680 00:31:53,740 --> 00:31:58,060 Apple is kind of famous for going one up or one down. 681 00:31:58,260 --> 00:32:02,140 How can you do that with Mac versus the Wi-Fi Mac? 682 00:32:02,400 --> 00:32:05,020 So, a lot of times, one way or the other, 683 00:32:05,080 --> 00:32:07,660 you can just correlate that to your own. 684 00:32:09,160 --> 00:32:09,680 Wonderful. 685 00:32:09,780 --> 00:32:11,960 So, what he was saying back there is that 686 00:32:11,960 --> 00:32:16,780 Apple is infamous for using one up, one down Macs, 687 00:32:16,780 --> 00:32:18,540 so your Bluetooth might be 01, 688 00:32:18,540 --> 00:32:21,160 and then your Wi-Fi might be 02. 689 00:32:21,680 --> 00:32:24,580 So, if you see one and then you see the other, 690 00:32:24,680 --> 00:32:25,380 you can do correlation. 691 00:32:25,720 --> 00:32:27,260 The other thing that's interesting, too, 692 00:32:27,380 --> 00:32:30,380 and I'm not actually seeing it too much 693 00:32:30,380 --> 00:32:32,320 because I'm still able to pick up iPhones 694 00:32:33,460 --> 00:32:35,080 and those types of devices, 695 00:32:36,260 --> 00:32:39,320 Apple was actually trying to do randomized Macs. 696 00:32:39,320 --> 00:32:41,600 So, I guess they would have, like, a pool, 697 00:32:41,760 --> 00:32:46,360 and then this was as of, I believe, iOS 8. 698 00:32:46,880 --> 00:32:48,200 What they were doing is essentially, 699 00:32:48,200 --> 00:32:50,960 your Mac address would change on a regular basis. 700 00:32:51,240 --> 00:32:54,780 But if you had cell phone towers on, 701 00:32:55,080 --> 00:32:57,960 like if it wasn't in airplane mode, 702 00:32:58,140 --> 00:33:00,400 then it would still just go ahead and broadcast the right one. 703 00:33:00,580 --> 00:33:02,420 So, I'm not really sure exactly how that works. 704 00:33:02,500 --> 00:33:03,560 I've been playing with it a little bit more. 705 00:33:03,660 --> 00:33:04,480 I've read a few articles, 706 00:33:04,740 --> 00:33:06,300 but I haven't actually seen it in the wild. 707 00:33:06,340 --> 00:33:08,600 I've still been picking up Apple devices left and right. 708 00:33:18,200 --> 00:33:20,380 So, if it just kind of goes off, 709 00:33:21,660 --> 00:33:22,940 or the Wi-Fi, 710 00:33:23,120 --> 00:33:26,900 then it would actually either, like, 711 00:33:26,900 --> 00:33:27,640 reboot your phone. 712 00:33:29,020 --> 00:33:31,600 It doesn't have to do it, like, randomly or periodically. 713 00:33:32,300 --> 00:33:34,380 There's a whole, like, algorithm they do, 714 00:33:34,540 --> 00:33:35,880 whether it's, like, say, 715 00:33:35,920 --> 00:33:38,080 random one or not random one data. 716 00:33:38,420 --> 00:33:39,860 If you're plugged in, 717 00:33:39,860 --> 00:33:41,240 if you're, you know, 718 00:33:42,080 --> 00:33:43,580 normally what we see is 719 00:33:44,160 --> 00:33:46,660 it's just after you reboot your phone, 720 00:33:46,720 --> 00:33:48,020 you can replace it. 721 00:33:49,620 --> 00:33:50,100 Gotcha. 722 00:33:50,360 --> 00:33:52,100 Okay, so what he was saying is essentially 723 00:33:52,100 --> 00:33:54,960 the phone has to die or be turned off 724 00:33:54,960 --> 00:33:57,280 before it'll actually do the re-randomization. 725 00:33:57,660 --> 00:34:00,440 So, if people are good about keeping their phones on, 726 00:34:00,620 --> 00:34:01,880 I'm really bad about that, 727 00:34:01,980 --> 00:34:04,080 but it would essentially stay the same. 728 00:34:05,920 --> 00:34:08,580 But it's still going to be targeted as an Apple device, 729 00:34:08,700 --> 00:34:10,060 so you can do the correlation there. 730 00:34:14,320 --> 00:34:14,800 Yes? 731 00:34:15,320 --> 00:34:16,920 So, along with this, 732 00:34:17,400 --> 00:34:18,180 you're talking about, 733 00:34:18,200 --> 00:34:19,160 you're talking about creeping people, 734 00:34:19,340 --> 00:34:21,400 but the home security, 735 00:34:21,700 --> 00:34:24,980 I did put a high-gain 2.4 gigahertz antenna 736 00:34:24,980 --> 00:34:27,180 pointed to the alley in my backyard 737 00:34:27,180 --> 00:34:29,760 because I have kids that loiter really late at night. 738 00:34:29,900 --> 00:34:30,140 Ah. 739 00:34:30,340 --> 00:34:31,760 And we've had break-ins, 740 00:34:31,780 --> 00:34:33,280 so I've actually been able to track 741 00:34:33,280 --> 00:34:35,820 what kids have been walking in my alley 742 00:34:35,820 --> 00:34:37,020 and how often they do it. 743 00:34:37,100 --> 00:34:39,020 So it's really good for home security as well. 744 00:34:39,120 --> 00:34:39,580 Wonderful. 745 00:34:39,680 --> 00:34:40,940 So this gentleman over here just 746 00:34:40,940 --> 00:34:44,460 is able to track people based on a high-gain antenna. 747 00:34:44,540 --> 00:34:45,260 That's fantastic. 748 00:34:47,440 --> 00:34:51,100 Is that actually been able to lead to some prosecutions? 749 00:34:51,540 --> 00:34:53,360 Well, it hasn't been my house yet, 750 00:34:53,420 --> 00:34:53,920 and I don't share. 751 00:34:54,240 --> 00:34:54,660 Okay. 752 00:34:55,700 --> 00:34:57,460 If someone realizes there's an antenna 753 00:34:57,460 --> 00:34:58,460 pointing right in my alley, 754 00:34:58,540 --> 00:35:00,240 I'm sure someone will get curious. 755 00:35:00,740 --> 00:35:01,960 Yeah, that's going to be crazy. 756 00:35:02,200 --> 00:35:03,620 So, I'd be interested if that's, 757 00:35:03,640 --> 00:35:05,500 I would assume it's admissible in court, 758 00:35:05,620 --> 00:35:07,660 but, yeah, I mean. 759 00:35:07,760 --> 00:35:09,080 Provided if my house is broken. 760 00:35:09,260 --> 00:35:09,700 Absolutely. 761 00:35:09,960 --> 00:35:13,360 So, cool. 762 00:35:13,900 --> 00:35:14,520 All right. 763 00:35:14,520 --> 00:35:16,460 Well, I'll go ahead and give you guys your time back. 764 00:35:16,580 --> 00:35:17,620 So, thank you for coming.