1 00:00:16,480 --> 00:00:22,140 Gabriel Ryan, I'm a security engineer at Gotham Digital Science. We do pen testing and secure 2 00:00:22,140 --> 00:00:26,780 source review, stuff like that. So we're going to be talking about two kinds of rogue AP 3 00:00:26,780 --> 00:00:30,200 attacks today. We're going to be talking about the evil twin attack and the karma attack. 4 00:00:31,660 --> 00:00:36,200 So let's talk about evil twin attacks. So suppose we're sitting downstairs, 5 00:00:36,820 --> 00:00:40,700 and we're all connected to one of the legitimate access points for DEF CON open network, 6 00:00:40,880 --> 00:00:49,100 you know, for example. And that access point is running on Channel 6, and it has an SSID set to 7 00:00:49,760 --> 00:00:56,660 DEF CON open Wi-Fi or whatever it is. If we were to spin up our own hotspot, and with the same 8 00:00:56,660 --> 00:01:00,860 SSID in the same channel, how would our connected laptops be able to tell the difference between 9 00:01:01,400 --> 00:01:04,720 the legitimate access point and the one we just created? Well, it's kind of a trick 10 00:01:04,720 --> 00:01:09,820 question because actually they can't. The factor that is used in that scenario is 11 00:01:11,820 --> 00:01:15,440 whatever access point has the better signal strength and the better signal-to-noise ratio, 12 00:01:16,100 --> 00:01:20,300 that is what gets connected to. So, you know, if we were to do this, 13 00:01:20,940 --> 00:01:26,340 and if we were to set up our own access point with the same SSID and channel and boost our TXOs just 14 00:01:26,660 --> 00:01:28,540 to slightly better than the legitimate access point, 15 00:01:29,080 --> 00:01:31,400 all these wireless clients would drop their connections 16 00:01:31,400 --> 00:01:32,840 from the legitimate one and connect to us. 17 00:01:33,460 --> 00:01:35,480 And when this happens, we essentially have the perfect. 18 00:01:42,820 --> 00:01:44,720 Create the access point and then route it out 19 00:01:44,720 --> 00:01:46,540 to the internet and capture everything in between. 20 00:01:49,400 --> 00:01:52,000 So there's some pretty obvious advantages to this attack. 21 00:01:52,180 --> 00:01:54,140 I mean, one of them is that it's really easy to perform. 22 00:01:54,140 --> 00:01:56,400 You just need something that's capable of making a hotspot. 23 00:01:57,600 --> 00:01:59,960 It's also really hard to detect, and we'll 24 00:01:59,960 --> 00:02:00,940 go over this a bit later. 25 00:02:01,540 --> 00:02:02,720 And it's also very targeted. 26 00:02:03,080 --> 00:02:04,340 If you're working in a red team situation 27 00:02:04,340 --> 00:02:06,280 and you only want to attack a specific network, 28 00:02:06,460 --> 00:02:09,040 this is really good because by default, this kind of attack 29 00:02:09,040 --> 00:02:11,780 only targets an access point on the network 30 00:02:11,780 --> 00:02:12,300 that you're intending to. 31 00:02:12,380 --> 00:02:15,200 So if your scope is limited to DEF CON open, for example, 32 00:02:15,680 --> 00:02:17,720 and you spin up a hotspot for DEF CON open, 33 00:02:17,880 --> 00:02:19,040 you're probably only going to get 34 00:02:19,040 --> 00:02:21,380 clients that are connected to the target that's in scope. 35 00:02:23,440 --> 00:02:23,800 Disadvantages. 36 00:02:23,800 --> 00:02:25,620 Well, I mean, for one thing, it doesn't work out 37 00:02:25,620 --> 00:02:27,720 of the box against protected networks. 38 00:02:27,800 --> 00:02:29,880 So if you have a WPA protected network or something like that, 39 00:02:30,980 --> 00:02:33,740 unless you have that pre-shared key, which presumably if you're 40 00:02:33,740 --> 00:02:34,640 doing this, you probably don't. 41 00:02:35,580 --> 00:02:36,600 Unless you have that pre-shared key, 42 00:02:36,680 --> 00:02:39,220 you're not actually going to have a lot of luck. 43 00:02:39,640 --> 00:02:43,060 The way you get around this is by basically, 44 00:02:43,540 --> 00:02:44,500 so we're in the wireless village. 45 00:02:45,620 --> 00:02:49,580 I'm assuming you guys, OK, so show of hands, 46 00:02:49,620 --> 00:02:50,380 who does not know how? 47 00:03:12,300 --> 00:03:13,520 I'm assuming the one thing that would happen 48 00:03:13,520 --> 00:03:14,780 is I'm not going to have a chance to ask for an answer. 49 00:03:14,780 --> 00:03:16,040 And I'm going to be able to get something out of it. 50 00:03:16,040 --> 00:03:16,720 I'm going to have to give a word to someone 51 00:03:16,720 --> 00:03:16,840 and try to answer their question properly. 52 00:03:16,840 --> 00:03:17,960 It's going to be a bit confusing to see 53 00:03:18,720 --> 00:03:20,160 if we're getting an answer out of that. 54 00:03:20,160 --> 00:03:20,500 because it could be that you're trying to get 55 00:03:20,500 --> 00:03:20,880 a little bit of information out of that. 56 00:03:20,880 --> 00:03:20,940 It could be that you're trying to get 57 00:03:20,940 --> 00:03:21,160 This could be something that you're using 58 00:03:21,160 --> 00:03:22,680 for using a particular network you're using on the network. 59 00:03:23,000 --> 00:03:23,780 So that's one issue. 60 00:03:23,780 --> 00:03:25,900 they are, you'll automatically connect to it. 61 00:03:26,280 --> 00:03:28,380 So what we can do in this situation 62 00:03:28,380 --> 00:03:31,400 is that we can sniff for packets, for per request 63 00:03:31,400 --> 00:03:33,260 packets, from devices that are currently 64 00:03:33,260 --> 00:03:34,160 connected to the target network. 65 00:03:34,700 --> 00:03:36,800 We can identify one that a lot of them have in common. 66 00:03:36,940 --> 00:03:39,320 Then we can deauth the target network while simultaneously 67 00:03:39,820 --> 00:03:44,580 running a rogue AP that matches that preferred network. 68 00:03:44,760 --> 00:03:46,480 And all these devices, when they drop off the deauth network, 69 00:03:46,720 --> 00:03:47,620 they'll connect to us instead. 70 00:03:48,080 --> 00:03:49,160 But it's a little more complicated, 71 00:03:49,300 --> 00:03:51,760 which is kind of why it's not so great 72 00:03:51,760 --> 00:03:52,960 against protecting networks. 73 00:03:54,220 --> 00:03:55,640 So how do we detect evil twin attacks? 74 00:03:56,300 --> 00:03:58,980 Well, I mean, for one thing, we can use whitelisting. 75 00:03:59,240 --> 00:04:02,220 So the standard way to do this is just 76 00:04:02,220 --> 00:04:05,580 to keep an inventory of what access points 77 00:04:05,580 --> 00:04:06,680 belong to your network. 78 00:04:25,980 --> 00:04:29,400 If you have a BSS ID that is not belonging to your whitelist, 79 00:04:29,440 --> 00:04:31,600 it's not on your whitelist, then at that point 80 00:04:31,600 --> 00:04:33,660 you know that something shady is going on. 81 00:04:34,100 --> 00:04:36,100 So for example, this guy is saying, 82 00:04:36,920 --> 00:04:39,980 I have the ESS ID Starbucks, and your IDS system 83 00:04:39,980 --> 00:04:41,960 picks this up and checks the whitelist. 84 00:04:42,040 --> 00:04:44,680 And it's not there, so the BSS ID is not there, 85 00:04:44,760 --> 00:04:46,440 so you just take action accordingly. 86 00:04:48,380 --> 00:04:51,340 So this doesn't always work, because a motivated attacker 87 00:04:51,340 --> 00:04:54,600 can simply use like arrow dump or something like that 88 00:04:54,600 --> 00:04:57,740 to create a list of all the, to basically figure out 89 00:04:57,740 --> 00:05:00,240 what are all the valid BSS IDs for your wireless network. 90 00:05:00,760 --> 00:05:03,740 So at that point, it's pretty easy to just spit up an AP 91 00:05:04,260 --> 00:05:07,220 that has the BSS ID matching one of your legitimate access 92 00:05:07,220 --> 00:05:09,540 points as well, not just the ESS ID and channel. 93 00:05:09,800 --> 00:05:12,060 So this actually makes evil twins really hard to detect. 94 00:05:13,060 --> 00:05:14,720 The way we get around this is by paying attention 95 00:05:14,720 --> 00:05:15,720 to signal strength, however. 96 00:05:16,300 --> 00:05:18,280 So if I have an access point sitting up here, 97 00:05:18,320 --> 00:05:20,820 like in the front of the room, and we have like a packet 98 00:05:20,820 --> 00:05:21,140 sniffer. 99 00:05:21,140 --> 00:05:22,960 Like it's, you know, chilling over there in the corner. 100 00:05:23,700 --> 00:05:27,360 The signal strength from my access point to that packet 101 00:05:27,360 --> 00:05:29,720 sniffer should not change very much. 102 00:05:29,920 --> 00:05:32,080 You know, it should stay like within a, provided, 103 00:05:32,240 --> 00:05:33,520 you know, and of course, you know, 104 00:05:33,540 --> 00:05:34,660 with like interference and stuff like this, 105 00:05:34,680 --> 00:05:35,500 this doesn't always hold true. 106 00:05:35,600 --> 00:05:39,640 But in most cases, it should stay within a certain threshold. 107 00:05:41,120 --> 00:05:43,980 So what this means is that, you know, 108 00:05:44,000 --> 00:05:49,120 if we establish a baseline TX value from our packet sniffer 109 00:05:49,120 --> 00:05:55,040 to our access point, you know, and then listen for probe 110 00:05:55,040 --> 00:05:57,520 requests, or probe responses, should I say, 111 00:05:58,260 --> 00:06:00,900 from the claim to come from our access point that 112 00:06:00,900 --> 00:06:04,200 have the BSS ID, ESS ID, and same channel as one 113 00:06:04,200 --> 00:06:05,460 of our legitimate access points, 114 00:06:05,580 --> 00:06:07,960 but there's a TX value that is really 115 00:06:07,960 --> 00:06:10,680 noticeably different from our legitimate access point, 116 00:06:10,780 --> 00:06:16,260 then we know that it's probably a rogue AP. 117 00:06:16,620 --> 00:06:18,980 So quick demo of how this works. 118 00:06:19,120 --> 00:06:22,640 I'm actually going to spin up, please don't sue me, DEF CON. 119 00:06:25,060 --> 00:06:28,340 So we're going to, right here, so I'm spinning up a server 120 00:06:28,340 --> 00:06:32,240 here, and there's going to be a web interface on here. 121 00:06:32,360 --> 00:06:34,420 And we're going to see like an alert pop up when this happens. 122 00:06:36,300 --> 00:06:37,960 And now we're starting up our packet sniffer. 123 00:06:39,080 --> 00:06:40,120 And it's just kind of chilling here. 124 00:06:40,440 --> 00:06:42,960 And if the demo gods are mergeable, 125 00:06:43,060 --> 00:06:47,280 when I spin up this pseudo rogue access point, 126 00:06:47,980 --> 00:06:49,040 we should see something. 127 00:06:50,660 --> 00:06:51,720 Ah, yes, here it is. 128 00:06:51,820 --> 00:06:52,900 So we have the alert show up on the screen. 129 00:06:53,160 --> 00:06:54,720 So this is like a really, really cheap way 130 00:06:54,720 --> 00:06:56,640 to easily spot these rogue AP attacks. 131 00:06:57,220 --> 00:07:01,460 And it literally can be done in a few lines of Python code. 132 00:07:01,660 --> 00:07:03,340 So I'm going to kill host APD really fast, 133 00:07:03,440 --> 00:07:04,600 because it's not quitting. 134 00:07:05,640 --> 00:07:06,140 All right. 135 00:07:07,380 --> 00:07:08,300 So, Karma attacks. 136 00:07:08,540 --> 00:07:09,960 So the second kind, and this is actually 137 00:07:09,960 --> 00:07:11,440 the later evolution of your rogue AP attack, 138 00:07:11,620 --> 00:07:12,540 is the Karma attack. 139 00:07:12,940 --> 00:07:15,940 Remember how we mentioned that all your 802.11 devices 140 00:07:17,400 --> 00:07:18,620 constantly send out probe requests? 141 00:07:23,080 --> 00:07:28,960 How many of them send out probing requests? 142 00:07:29,740 --> 00:07:30,040 Because we're trying to get to this point 143 00:07:30,040 --> 00:07:31,660 How many of them go about doing probe requests? 144 00:07:35,160 --> 00:07:36,400 Well, here's a couple. 145 00:07:39,920 --> 00:07:40,540 So some of these are called probe requests. 146 00:07:40,540 --> 00:07:40,640 And if they don't say probe requests, 147 00:07:40,740 --> 00:07:41,880 they're going to get to this batch right there. 148 00:07:41,880 --> 00:07:42,000 And this is the first one we're going 149 00:07:42,000 --> 00:07:42,900 to be doing, probably the next one. 150 00:07:43,220 --> 00:07:43,240 This is the first one we're going to be doing. 151 00:07:43,240 --> 00:07:48,100 So this is a very low full loadmentation 152 00:07:48,100 --> 00:07:49,080 if you're at the point that it's in the 802.11 network. 153 00:07:49,100 --> 00:07:53,720 access point or some kind of access point and just have it gratuitously respond to every 154 00:07:53,720 --> 00:07:54,840 single probe request that it receives. 155 00:07:55,340 --> 00:08:00,940 So for example, I'm the access point and some client over there sends out a probe request 156 00:08:00,940 --> 00:08:02,820 for Linksys. 157 00:08:03,200 --> 00:08:09,800 And if I see that and I respond saying, yeah, I'm Linksys, go ahead and connect, that device 158 00:08:09,800 --> 00:08:10,640 will automatically connect. 159 00:08:11,160 --> 00:08:16,400 And then if from the same access point we send out another probe, we receive another 160 00:08:16,400 --> 00:08:21,820 probe request for a different ASUS ID, AT&T Wi-Fi, and the rogue AP sends out a probe 161 00:08:21,820 --> 00:08:28,060 request, the rogue AP actually sends a response to that for AT&T Wi-Fi, then the second client 162 00:08:28,060 --> 00:08:28,660 will connect as well. 163 00:08:28,880 --> 00:08:32,920 So what you have is a situation where you have a single access point that is responding 164 00:08:32,920 --> 00:08:36,920 to every single probe request that it receives, regardless of whether or not it's a probe 165 00:08:36,920 --> 00:08:39,620 request for itself or some other thing. 166 00:08:42,680 --> 00:08:46,380 So this is the kind of tech that you often see with a lot of these, I can't really name 167 00:08:46,380 --> 00:08:50,860 brand names, but for example, these very fruity, kind of like tropical-looking fruit 168 00:08:50,860 --> 00:08:55,000 name devices that you tend to buy at security conferences. 169 00:08:55,340 --> 00:08:56,280 This is how they work. 170 00:08:56,440 --> 00:09:00,800 You just set one up, and then you just listen for requests and respond to all of them. 171 00:09:01,000 --> 00:09:03,980 And then the device thinks that it's a legitimate AP and connects. 172 00:09:05,200 --> 00:09:08,240 And as those of you who may have purchased these devices, you may know it's a relatively 173 00:09:08,240 --> 00:09:08,960 automatic process. 174 00:09:09,160 --> 00:09:12,420 You turn it on, the script runs, and you just start pwning the shit out of everything nearby. 175 00:09:14,180 --> 00:09:15,180 So they're fast. 176 00:09:15,400 --> 00:09:16,240 There's minimal supervision. 177 00:09:16,240 --> 00:09:17,040 Supervision or recon required. 178 00:09:17,880 --> 00:09:19,900 And you can still target nearby APs. 179 00:09:20,180 --> 00:09:23,120 The problem with these kinds of attacks is that they're really easy to spot. 180 00:09:23,420 --> 00:09:27,140 And because I've been in Vegas all week and I've been in a lot of bars, let me use a bar 181 00:09:27,140 --> 00:09:27,380 analogy. 182 00:09:28,420 --> 00:09:32,560 So suppose that you walk into a bar, and you're looking for this dude named Jake. 183 00:09:32,680 --> 00:09:35,640 So you walk into the bar, and you say, hey, is anyone here named Jake? 184 00:09:35,760 --> 00:09:39,020 And then some sketchy dude with a ski mask and a DEF CON badge stands up in the back 185 00:09:39,020 --> 00:09:40,560 and is like, yeah, yeah, I'm Jake. 186 00:09:40,800 --> 00:09:44,280 So you might be actually inclined to believe him, because why would this guy be making 187 00:09:44,280 --> 00:09:44,580 this up? 188 00:09:44,580 --> 00:09:49,040 Well, let's rewind a bit, and suppose that we're in the business of bullshit detection. 189 00:09:51,860 --> 00:09:55,160 So this time we have a little notepad, a pen and paper with us. 190 00:09:55,200 --> 00:09:57,420 We walk into the bar and say, hey, is anybody here named Jake? 191 00:09:58,040 --> 00:10:00,960 Sketchy guy in a DEF CON badge stands up and asserts that his name is Jake. 192 00:10:01,060 --> 00:10:03,300 You write down, OK, yeah, that guy says his name is Jake. 193 00:10:03,700 --> 00:10:06,660 Immediately step back out of the bar, and you step back into the bar and say, is anybody 194 00:10:06,660 --> 00:10:07,180 here named Katie? 195 00:10:07,360 --> 00:10:09,280 And Jake now is saying that he's Katie. 196 00:10:10,000 --> 00:10:12,880 Well, the same principle can be applied to rogue access points. 197 00:10:13,000 --> 00:10:13,140 You know? 198 00:10:13,140 --> 00:10:20,180 If you see, if you send out a probe request for some random hash string and you get a 199 00:10:20,180 --> 00:10:23,220 response, well, I mean, that itself should tell you that something shady is going on. 200 00:10:23,760 --> 00:10:24,240 You know? 201 00:10:24,280 --> 00:10:28,300 Like if I'm looking for ESS ID, oh, whatever that says on the, yeah. 202 00:10:28,580 --> 00:10:31,280 I probably shouldn't receive a probe response for it. 203 00:10:31,340 --> 00:10:32,000 But suppose we do. 204 00:10:32,140 --> 00:10:33,160 OK, we can go with that. 205 00:10:33,760 --> 00:10:36,320 We send another one for a second randomized hash string. 206 00:10:37,320 --> 00:10:42,400 Well, I mean, when that happens, if we get a single BSS ID, a single piece of hardware, 207 00:10:43,300 --> 00:10:47,640 responding for both of these, that's probably a good indication that, you know, it resembles 208 00:10:47,640 --> 00:10:50,840 one of these citrus-like devices that we've been seeing a lot. 209 00:10:52,000 --> 00:10:55,620 And in that case, you can try to locate it or de-auth it or whatever. 210 00:10:57,580 --> 00:10:59,760 So for the sake of time, I'm going to skip the demo for that one. 211 00:10:59,980 --> 00:11:00,960 Also, I don't have a pineapple. 212 00:11:01,720 --> 00:11:02,180 Can't say that. 213 00:11:03,320 --> 00:11:04,080 Yeah, you know what I mean. 214 00:11:04,220 --> 00:11:04,640 With me. 215 00:11:06,100 --> 00:11:08,920 But let's talk about some, like, existing solutions to, like, you know, preventing and 216 00:11:08,920 --> 00:11:09,660 detecting rogue AP attacks. 217 00:11:10,680 --> 00:11:12,460 So Aruba Networks makes this thing called an airwave. 218 00:11:12,740 --> 00:11:13,120 Last time I talked about it. 219 00:11:13,140 --> 00:11:13,740 I checked the price list. 220 00:11:13,820 --> 00:11:14,920 It's, like, $3,000. 221 00:11:15,280 --> 00:11:16,220 And it's awesome. 222 00:11:16,340 --> 00:11:17,700 And it can detect a lot of this stuff. 223 00:11:19,100 --> 00:11:23,220 Unfortunately, it's a little out of the reach of the kind of network admin that is going 224 00:11:23,220 --> 00:11:24,140 to be the target of this. 225 00:11:24,260 --> 00:11:28,320 You know, if I want to steal, like, 50 credit card numbers or 500 credit card numbers, I'm 226 00:11:28,320 --> 00:11:30,040 not going to be going after Enterprise Network. 227 00:11:30,220 --> 00:11:35,360 I'm going to be sitting up in a coffee shop, you know, in Harlem or something like that 228 00:11:35,360 --> 00:11:40,320 and seeing who are on the subway and seeing, like, you know, who I can actually ensnare 229 00:11:40,320 --> 00:11:40,640 that way. 230 00:11:41,660 --> 00:11:42,100 You know. 231 00:11:42,100 --> 00:11:44,700 Cisco makes another really, really awesome product. 232 00:11:44,860 --> 00:11:48,060 Actually in the references of these slides, which I'm going to be releasing online, there's 233 00:11:48,060 --> 00:11:52,280 a reference to their slick sheet about, like, how these things work. 234 00:11:52,420 --> 00:11:53,080 And it's frankly genius. 235 00:11:53,260 --> 00:11:57,860 But they're also, like, probably out of the price range of the kind of network admin 236 00:11:57,860 --> 00:12:01,840 that's going to be working on a network that's going to be the target of this kind of thing. 237 00:12:02,000 --> 00:12:07,380 So the same is true with the other example of this, you know, Fluke Networks. 238 00:12:07,380 --> 00:12:09,960 They have an analyzer that is, like, $4,000 for a software license. 239 00:12:10,280 --> 00:12:11,200 It's great, once again. 240 00:12:11,200 --> 00:12:18,020 But it's not really something that, you know, your typical network admin is going to be 241 00:12:18,020 --> 00:12:18,520 able to afford. 242 00:12:19,940 --> 00:12:24,600 So I think what we can do is to ask ourselves, what are the bare minimum resources needed 243 00:12:24,600 --> 00:12:25,600 for effective rogue AP mitigation? 244 00:12:25,860 --> 00:12:31,360 So if you have to run an open Wi-Fi network, case in point, actually, we did this at B-Sides 245 00:12:31,900 --> 00:12:32,660 earlier in the week. 246 00:12:32,740 --> 00:12:34,500 This is pretty much how we handle our wireless security. 247 00:12:34,820 --> 00:12:39,600 But if you have to run an effective, you know, if you have to open... 248 00:12:39,600 --> 00:12:41,180 If you have to open... 249 00:12:41,200 --> 00:12:48,480 If you have to run an open Wi-Fi network and, you know, you need to provide rogue AP protection, 250 00:12:49,100 --> 00:12:50,800 you know, how do you do this? 251 00:12:50,820 --> 00:12:51,920 What is the minimum cost here? 252 00:12:52,840 --> 00:12:57,720 And frankly, you know, using these algorithms that we just described, you can do this with, 253 00:12:57,760 --> 00:13:03,920 you know, just a Raspberry Pi and, you know, about 500 lines of Python code, a little more 254 00:13:03,920 --> 00:13:08,140 if you want to get into fancy client-server stuff, and just, like, a cheap, like, $10 255 00:13:08,140 --> 00:13:08,820 TP-Link adapter. 256 00:13:09,060 --> 00:13:10,880 And that should pretty much cover it. 257 00:13:12,500 --> 00:13:16,600 So that brings the cost of rogue AP protection down to about 45 bucks, you know, per unit. 258 00:13:17,560 --> 00:13:18,720 So if you... 259 00:13:19,440 --> 00:13:20,680 Another thing, I mean, this... 260 00:13:20,680 --> 00:13:24,860 If you know math, statistics, or physics really well, that TX single strength thing that we 261 00:13:24,860 --> 00:13:29,740 did earlier, I mean, it works pretty well, but, like, it's not great. 262 00:13:29,920 --> 00:13:31,600 It was built using pretty much hacker math. 263 00:13:33,000 --> 00:13:38,680 But if you know math math and want to contribute to this project, you know, feel free to send 264 00:13:38,680 --> 00:13:40,880 out an email to research at GDSsecurity.com. 265 00:13:41,200 --> 00:13:47,040 Because we'd love to actually have someone who can do math helping with this. 266 00:13:48,160 --> 00:13:52,180 And if you want to mess around with the source code, it's at github.com slash solstice slash 267 00:13:52,180 --> 00:13:52,620 sentrygun. 268 00:13:52,720 --> 00:13:57,920 And you can get the server, which the client thing he's talked to, at solstice slash sentryguns 269 00:13:57,920 --> 00:13:58,660 dash server. 270 00:14:00,060 --> 00:14:01,860 And there will be a read me up there in an hour. 271 00:14:04,580 --> 00:14:05,840 And that's it, basically. 272 00:14:08,000 --> 00:14:08,400 Any... 273 00:14:08,400 --> 00:14:09,180 Thanks. 274 00:14:10,780 --> 00:14:11,180 Thanks. 275 00:14:13,320 --> 00:14:14,200 Any questions? 276 00:14:24,400 --> 00:14:35,200 So the TP-Link TLWN722N is an external Wi-Fi adapter that you can get on Amazon. 277 00:14:35,380 --> 00:14:36,800 It's just one of many that pretty much do the same thing. 278 00:14:36,920 --> 00:14:39,360 But it's basically an external network adapter that can... 279 00:14:39,360 --> 00:14:41,180 It's really good at sniffing packets. 280 00:14:42,000 --> 00:14:42,500 What's up, dude? 281 00:14:51,720 --> 00:14:55,920 So when we started working on this initially, I kind of thought that you'd need two separate 282 00:14:55,920 --> 00:14:57,040 cards for sniffing a D off. 283 00:14:57,200 --> 00:14:57,980 Turns out you don't. 284 00:14:59,700 --> 00:15:00,940 With the Atheros cards. 285 00:15:01,300 --> 00:15:04,540 With the ones I plugged in right here, actually you do. 286 00:15:04,660 --> 00:15:06,340 And I don't know why. 287 00:15:11,540 --> 00:15:12,320 It's multi-channel. 288 00:15:12,860 --> 00:15:13,980 See, this guy knows Wi-Fi. 289 00:15:14,120 --> 00:15:14,820 I know Python. 290 00:15:15,000 --> 00:15:15,440 So it's... 291 00:15:17,900 --> 00:15:18,440 What's up, dude? 292 00:15:18,720 --> 00:15:21,080 Could you do this one with a Mac? 293 00:15:21,260 --> 00:15:22,620 Like, the filtered... 294 00:15:23,640 --> 00:15:24,340 With the... 295 00:15:25,040 --> 00:15:25,940 Leave me on OSX? 296 00:15:26,340 --> 00:15:27,080 Diagnostic and stuff. 297 00:15:28,900 --> 00:15:29,580 I don't know. 298 00:15:29,700 --> 00:15:30,600 I mean, most of this is hand rolled. 299 00:15:30,740 --> 00:15:31,560 It's running on Linux. 300 00:15:31,900 --> 00:15:33,520 I don't... 301 00:15:33,520 --> 00:15:34,300 I don't think so. 302 00:15:34,500 --> 00:15:35,600 But don't quote me on it. 303 00:15:37,440 --> 00:15:38,400 Any other questions? 304 00:15:39,400 --> 00:15:39,860 What's up? 305 00:15:40,120 --> 00:15:41,160 From the Carvon team. 306 00:15:41,160 --> 00:15:41,980 Q. 307 00:15:41,980 --> 00:15:43,580 Why don't you just change your BSSID in the second one? 308 00:15:43,920 --> 00:15:44,640 Because you have a new one. 309 00:15:45,200 --> 00:15:45,640 A new one. 310 00:15:45,740 --> 00:15:45,800 Q. 311 00:15:45,800 --> 00:15:47,140 Why don't you change the BSSID? 312 00:15:47,400 --> 00:15:48,080 Good question. 313 00:15:48,180 --> 00:15:48,680 Good question. 314 00:15:48,760 --> 00:15:51,060 So, and this question comes up a lot. 315 00:15:51,200 --> 00:15:54,380 So the question he asked, and it's a really good one, is why don't you just change your 316 00:15:54,380 --> 00:15:56,580 BSSID between probe requests or probe response? 317 00:15:56,780 --> 00:16:02,600 And you can do that, but remember that if the entire attack revolves around you spinning 318 00:16:02,600 --> 00:16:06,980 up a rogue access point and somebody connecting to you, in order to maintain that connection, 319 00:16:07,240 --> 00:16:10,820 in order to actually have a valid AP, you need a valid BSSID. 320 00:16:11,160 --> 00:16:20,680 So if you're constantly changing your BSS ID, this kind of becomes a problem because how do you, you know, handle all these people connecting to you and then you can only have a BSS ID up for more than, you know, a little bit. 321 00:16:20,800 --> 00:16:32,120 And, you know, not to mention each time that you change your BSS ID, you pretty much have to like take the, you know, you pretty much have to bring the whole network interface down, change it, restart the software, bring it back up again. 322 00:16:32,240 --> 00:16:35,480 And, you know, it's just kind of like pretty much unfeasible. 323 00:16:35,740 --> 00:16:40,060 You know, I had someone actually tell me that it sounds as if like there's probably a way to do it with STR. 324 00:16:40,060 --> 00:16:41,400 I don't know because I don't know STR. 325 00:16:42,860 --> 00:17:01,800 But, you know, as of right now, like it's pretty much, if you want to go down that route, a better approach would be to just kind of like, you know, actually go with the evil twin and just try to like intelligently, you know, find a bunch of pretty much like a common network that a lot of people nearby have connected to. 326 00:17:01,920 --> 00:17:03,340 And it will pretty much have a similar effect. 327 00:17:04,940 --> 00:17:05,500 Anything else? 328 00:17:07,260 --> 00:17:07,820 What's up, man? 329 00:17:29,100 --> 00:17:37,740 So, you mean have some way of, so have an evil twin that is able to figure out what the threshold. 330 00:17:38,180 --> 00:17:38,400 Yeah. 331 00:17:39,120 --> 00:17:39,600 Yeah. 332 00:17:41,420 --> 00:17:41,780 Yeah. 333 00:17:44,340 --> 00:17:45,480 That is the problem. 334 00:17:45,720 --> 00:17:52,980 So, you know, for example, if you do want to look for it this way, if you start, so there is this calibration phase that this thing has to use. 335 00:17:53,240 --> 00:18:00,160 And if you're able to, you know, send out your own packets during that thing, yeah, it's going to mess it up. 336 00:18:02,260 --> 00:18:02,620 Yeah. 337 00:18:05,860 --> 00:18:06,220 Right. 338 00:18:06,800 --> 00:18:10,040 So, it actually becomes a bit of like a physical security problem. 339 00:18:10,060 --> 00:18:18,260 At that point, you know, if you're, for example, like what we did at B-Sides, the whole building was pretty much closed off, you know, we calibrated it and then let everybody in. 340 00:18:18,360 --> 00:18:22,580 But if you're not able to do that, you know, you can't really do it on the fly. 341 00:18:23,020 --> 00:18:35,940 One thing that's been talked about is instead of like using, you know, like establishing a statistical norm to like maybe use, you know, like some kind of machine learning or something like that to kind of figure it out. 342 00:18:36,000 --> 00:18:39,720 But then again, I mean, machine learning algorithms are still, you know, prone to poisoning. 343 00:18:39,720 --> 00:18:41,680 So, that's another issue. 344 00:18:41,940 --> 00:18:43,320 So, awesome question. 345 00:18:44,140 --> 00:18:44,620 What's up? 346 00:18:56,560 --> 00:18:57,920 That's also a really good idea. 347 00:19:00,100 --> 00:19:01,600 Actually, do you want to? 348 00:19:01,620 --> 00:19:06,780 So, what he asked is why not send a known good packet out and then listen for that and then you know the transmit. 349 00:19:07,740 --> 00:19:09,700 And you can kind of like listen for the packet. 350 00:19:09,720 --> 00:19:11,600 That you just send out and record that. 351 00:19:11,840 --> 00:19:13,420 And this is an open source project. 352 00:19:13,540 --> 00:19:14,360 So, if you want to add that. 353 00:19:18,360 --> 00:19:19,160 Anything else? 354 00:19:20,220 --> 00:19:20,720 What's up? 355 00:19:25,520 --> 00:19:26,640 I never feel safe. 356 00:19:33,200 --> 00:19:34,260 Any other questions? 357 00:19:37,140 --> 00:19:39,140 Am I missing or is that it? 358 00:19:41,060 --> 00:19:41,660 All right. 359 00:19:41,780 --> 00:19:43,260 Well, yeah. 360 00:19:43,340 --> 00:19:43,540 That's.