1 00:00:00,000 --> 00:00:08,280 Today we will be looking at WPA Enterprise Hacking, basically creating honeypots for WPA, WPA2, PSK networks. 2 00:00:09,340 --> 00:00:12,300 Before we begin, just a quick introduction about us. 3 00:00:13,120 --> 00:00:19,160 I started as a programmer and an architect, worked with Cisco Systems, found a bunch of Wi-Fi attacks. 4 00:00:20,640 --> 00:00:27,080 I run SecurityTube.net and Pentester Academy, written a bunch of books. 5 00:00:30,540 --> 00:00:36,300 And we're actually releasing a new book at our DEF CON vendor booth called Make Your Own Hacker Gadget. 6 00:00:36,800 --> 00:00:41,260 I'm probably giving out a couple of these for free, you know, based on questions I ask and who can answer it. 7 00:00:44,660 --> 00:00:49,140 Hi, I'm Thomas. You probably already know me by the nickname Mr. X. 8 00:00:49,300 --> 00:00:50,760 I'm the guy behind CrackNG. 9 00:00:51,300 --> 00:00:56,920 Also, I have another project. Unfortunately, I haven't had much time to work on it, which is open webs, open source. 10 00:00:57,080 --> 00:00:57,800 Wireless IPS. 11 00:00:58,780 --> 00:01:07,140 And I created the off-set Waifu, which is known these days as Wireless Attacks. 12 00:01:07,560 --> 00:01:12,140 I spoke at a bunch of conventions in the US, in Mexico, in Belgium. 13 00:01:13,000 --> 00:01:15,160 And I work for a company called MainNerve. 14 00:01:21,560 --> 00:01:25,740 We are actually doing a lot of talks at Black Hat and DEF CON combined. 15 00:01:26,540 --> 00:01:27,060 Today. 16 00:01:27,080 --> 00:01:33,480 at 3 o'clock, I'm also doing a Wi-Fi IDS talk for Windows called Chellum. I'll actually 17 00:01:33,480 --> 00:01:38,100 use Chellum and see how you can do a little bit of protection today. Tomorrow, a network-based 18 00:01:38,100 --> 00:01:43,680 IDS, which actually uses SQL at its center to go ahead and run arbitrary queries. That's 19 00:01:43,680 --> 00:01:49,300 something we are doing tomorrow. And also, another village talk here of how you can script 20 00:01:49,300 --> 00:01:56,880 your own Wi-Fi attack tools in Python using WPA supplicants, WPA control, and Dbus API. 21 00:01:57,300 --> 00:02:03,260 I don't know if anybody's ever used it. Okay, it's quite powerful for automation. And we 22 00:02:03,260 --> 00:02:11,860 also have a booth in the vendor area. So just go directly to the slides for WPA enterprise. 23 00:02:27,420 --> 00:02:34,420 Okay. At a very high level, when you look at WPA enterprise, there are three entities. 24 00:02:34,800 --> 00:02:40,440 One, you have the client or the supplicant which is providing authentication information. 25 00:02:41,080 --> 00:02:46,860 Then you have the access point which is basically just an in-between proxy for all practical 26 00:02:46,860 --> 00:02:47,280 purposes. 27 00:02:48,040 --> 00:02:49,280 And you also have the client or the supplicant which is providing authentication information. 28 00:02:49,280 --> 00:02:54,740 have the authentication server which is typically radius which in turn can 29 00:02:54,740 --> 00:02:58,520 probably talk to LDAP or something else to you know go ahead and authenticate 30 00:02:58,520 --> 00:03:07,320 the user based on the EAP mechanism being used the most popular radius 31 00:03:07,320 --> 00:03:12,300 server is free radius any of you have used free radius for this okay couple of 32 00:03:12,300 --> 00:03:19,400 guys which supports a ton of EAP techniques now free radius 33 00:03:19,400 --> 00:03:24,300 unfortunately is a very well behaved radius server right it's actually used 34 00:03:24,300 --> 00:03:30,600 in enterprises it has a very legitimate use for that matter now when we go ahead 35 00:03:30,600 --> 00:03:36,700 and want to use it for our purposes and create honeypots we would have to patch 36 00:03:36,700 --> 00:03:41,620 the free radius server and that patch which is available right now is called 37 00:03:41,620 --> 00:03:42,200 the wireless 38 00:03:42,200 --> 00:03:48,620 spanish edition right from Joshua right now what does this patch actually do very 39 00:03:48,620 --> 00:03:55,020 simply put it actually logs things like the MS chap v2 challenge responses and a 40 00:03:55,020 --> 00:03:59,920 lot of other inner authentication which goes in the tunnel which we create right 41 00:03:59,920 --> 00:04:04,280 so that we can pick these inner odd details and then we can go and start 42 00:04:04,280 --> 00:04:11,600 cracking them now if we look at WP and WPA2 43 00:04:11,600 --> 00:04:11,960 enterprise 44 00:04:11,960 --> 00:04:18,220 enterprise, we have peep, ttls, tls, a bunch of others, some of which might not be used 45 00:04:18,220 --> 00:04:27,620 anymore. Why is peep so popular? Peep is the only EAP mechanism which Windows supports 46 00:04:27,620 --> 00:04:34,960 out of the box. That kind of made it de facto the one with the highest amount of usage. 47 00:04:37,900 --> 00:04:46,340 So let's try and understand peep at a very high level. The best analogy which I can use 48 00:04:46,340 --> 00:04:53,560 is SSL. How many of you here know how SSL works at a very high level, not the crypto 49 00:04:53,560 --> 00:04:58,200 protocols and all of that? Okay. So I'll just go ahead and repeat some of the essential 50 00:04:58,840 --> 00:05:04,340 aspects of SSL. We create an encrypted tunnel, and within that 51 00:05:04,340 --> 00:05:04,940 encrypted tunnel, there is the SSL. And in that encrypted tunnel, there is the SSL. So 52 00:05:04,940 --> 00:05:11,180 tunnel we send data, right? Which otherwise would have gone in plain text. Now, in the case of peep, 53 00:05:11,300 --> 00:05:20,280 the exact same process is followed. Phase one is creating the encrypted tunnel. In peep, this also 54 00:05:20,280 --> 00:05:29,000 happens using server-side certificates, just like in SSL. So once the tunnel is created, using the 55 00:05:29,000 --> 00:05:34,680 server-side certificate, which in the case of peep is the radius server, we go ahead and send 56 00:05:34,680 --> 00:05:41,640 the inner authentication credentials, right? In the case of peep, the de facto inner auth is MS 57 00:05:41,640 --> 00:05:48,480 CHAP V2, simple challenge response protocol. MS CHAP V2 itself is known to be broken 100%. 58 00:05:48,480 --> 00:05:53,580 I think two or three years back, Moxie did a talk as well where I think they'd use GPU 59 00:05:53,580 --> 00:05:58,860 infrastructures and a couple of things to go ahead and prove that you can crack 60 00:05:58,860 --> 00:06:07,120 it 100% of the times. So if you're thinking, why MS CHAP V2 is being used? Well, the whole 61 00:06:07,120 --> 00:06:13,920 security here is maintained by ensuring the integrity of the tunnel itself, just like SSL. 62 00:06:14,320 --> 00:06:20,420 So if you're logging into Gmail or Google, the same username and password goes through, 63 00:06:20,580 --> 00:06:26,780 but it goes inside the encrypted SSL tunnel. If someone compromised that encrypted SSL tunnel 64 00:06:26,780 --> 00:06:28,240 by doing an MITM attack, 65 00:06:28,860 --> 00:06:33,740 or an SSL strip attack, then, of course, the username, password, or whatever gets sent 66 00:06:33,740 --> 00:06:40,040 inside the tunnel is also going to be available in plain text for the attacker doing the MITM. 67 00:06:41,220 --> 00:06:48,360 The exact same principle applies when we create MITM setups for WPA Enterprise. 68 00:06:50,860 --> 00:06:56,340 Now if you look at clients, in the case of Wi-Fi, you actually see very heterogeneous 69 00:06:56,340 --> 00:06:56,800 behavior. 70 00:06:57,380 --> 00:06:58,620 In what a client 71 00:06:58,860 --> 00:07:07,020 does, or what is the default configuration of that client. So when you get an SSL popup, 72 00:07:07,120 --> 00:07:12,000 right, says there is a certificate issue, how many of you have at least clicked OK 73 00:07:12,000 --> 00:07:25,380 once in your lifetime? Couple of guys, OK. Never, never. Never? OK. Now keep in mind, 74 00:07:25,380 --> 00:07:28,840 if you say never, that actually means you cannot log into your own security experts. 75 00:07:28,840 --> 00:07:35,060 appliances because all of them use self-signed certificates, right? Quite unusual, but pretty 76 00:07:35,060 --> 00:07:39,560 much all your firewalls, IDSs, anything you're running locally has self-signed certs. So 77 00:07:39,560 --> 00:07:45,460 you must have at least clicked once, unless of course you've never used one of those devices. 78 00:07:46,960 --> 00:07:47,440 Unencrypted. 79 00:07:47,760 --> 00:07:48,240 Unencrypted. 80 00:07:48,240 --> 00:07:48,460 Unencrypted. 81 00:07:48,460 --> 00:08:00,700 Unencrypted. Okay, so when we look at Wi-Fi clients, there are broadly three different 82 00:08:00,700 --> 00:08:08,100 behaviors which can happen, right? Behavior one, the client has a very strict configuration, 83 00:08:08,440 --> 00:08:16,180 and the configuration enforces that if there is any certificate mismatch of any kind, silently 84 00:08:16,180 --> 00:08:17,340 drop the connection. 85 00:08:17,340 --> 00:08:24,540 Do not prompt the user to accept new certificates, which might kind of go ahead and lead to, 86 00:08:24,600 --> 00:08:31,080 once again, the SSL MITM happening. That's possibility one. The second possibility is 87 00:08:31,080 --> 00:08:36,740 clients are misconfigured. This is something you'll actually find out of the box on most 88 00:08:36,740 --> 00:08:43,100 Android devices. How many of you have Android phones on you right now? Okay. Very, very 89 00:08:43,100 --> 00:08:47,320 notorious to actually have super bad configs out of the box. 90 00:08:47,320 --> 00:08:47,880 Right? 91 00:08:49,140 --> 00:08:55,380 The simple reason is your Android vendor is not interested in maintaining the software 92 00:08:55,380 --> 00:08:59,460 and keeping things up to date. They just want the very first time you connect to a 93 00:08:59,460 --> 00:09:06,620 wireless network, whether that is open or has peep, you should probably just connect 94 00:09:06,620 --> 00:09:10,800 to it immediately. If the connection breaks the very first time, you might actually think 95 00:09:10,800 --> 00:09:14,980 there's something wrong with your device, right? So make it kind of fail open out of 96 00:09:14,980 --> 00:09:15,320 the box. 97 00:09:15,960 --> 00:09:16,520 Right? 98 00:09:16,520 --> 00:09:21,580 And we'll see that in the demo once we do it. How many of you have laptops here to kind 99 00:09:21,580 --> 00:09:27,380 of do the demos along with us in the second part? Okay. Okay. Perfect. So we have a bunch 100 00:09:27,380 --> 00:09:33,240 of access points. People who don't have, you can even share with guys who have. But we'll 101 00:09:33,240 --> 00:09:37,520 actually cover everything conceptually in the first half, so folks who don't have a laptop 102 00:09:37,520 --> 00:09:44,160 can then probably, you know, find something else interesting to look at. The third Wi-Fi 103 00:09:44,160 --> 00:09:46,500 client behavior is to be able to connect to a wireless network. This is something that's 104 00:09:46,500 --> 00:09:51,660 typically what you see in the case of the browser world, right? We get a pop-up. So 105 00:09:51,660 --> 00:09:57,380 the client actually tells you that, hey, there is a certificate problem. Do you want to accept 106 00:09:57,380 --> 00:10:04,660 this? Go ahead with this, right? One of three possibilities. It depends on the version. 107 00:10:04,760 --> 00:10:11,220 As an example of Android, it depends on devices and operating systems. For example, iOS has 108 00:10:11,220 --> 00:10:16,480 a completely different interesting behavior, which you shall see. And your endpoint is, 109 00:10:16,500 --> 00:10:17,740 mirror points and what they're configured for. 110 00:10:23,500 --> 00:10:33,380 Okay. So how does SSL, man in the middle, attack work? Now let's assume that I'm the 111 00:10:33,380 --> 00:10:41,460 attacker. Gmail is the server the client is trying to access. Probably, I mean, Thomas 112 00:10:41,460 --> 00:10:44,640 is the author of Herc record. I can't point to him and say he's the wonderful client, 113 00:10:44,700 --> 00:10:44,880 right? 114 00:10:49,000 --> 00:10:51,200 So he's the vulnerable client. 115 00:10:51,560 --> 00:10:54,640 I'm the attacker creating the MITM setup. 116 00:10:54,920 --> 00:10:56,060 And then you have Gmail. 117 00:10:56,400 --> 00:11:01,500 So when Thomas tries to access Gmail in a typical SSL MITM, 118 00:11:01,760 --> 00:11:05,660 I send my own self-signed fake certificate to Thomas. 119 00:11:07,380 --> 00:11:11,000 Assuming Thomas clicks OK or the client goes ahead 120 00:11:11,000 --> 00:11:13,600 and accepts the certificate because it's misconfigured, 121 00:11:13,600 --> 00:11:17,300 the encrypted tunnel between Thomas and me 122 00:11:17,920 --> 00:11:19,680 happens using my certificate. 123 00:11:20,320 --> 00:11:21,940 Now, of course, Gmail isn't going 124 00:11:21,940 --> 00:11:23,640 to accept that same encrypted data. 125 00:11:24,240 --> 00:11:26,660 So I'm going to create an encrypted tunnel 126 00:11:27,040 --> 00:11:29,520 between me, the attacker, and Gmail 127 00:11:29,520 --> 00:11:30,940 using Gmail certificate. 128 00:11:31,660 --> 00:11:32,020 Right? 129 00:11:32,360 --> 00:11:35,440 So in an SSL MITM, there are really 130 00:11:35,440 --> 00:11:38,340 two separate encrypted tunnels, one 131 00:11:38,340 --> 00:11:40,400 between the attacker and the victim 132 00:11:40,400 --> 00:11:42,580 and the other between the attacker 133 00:11:42,820 --> 00:11:43,580 and the final user. 134 00:11:43,600 --> 00:11:50,720 destination server, right? The attacker encrypts, decrypts, puts it here, again encrypts it, 135 00:11:50,780 --> 00:11:57,120 sends it to Gmail, and all the data flows back and forth. When we create a honeypot for a 136 00:11:57,120 --> 00:12:03,680 peep-based network, the principle is exactly the same. I, as an attacker, I'm going to go ahead, 137 00:12:03,820 --> 00:12:10,860 spin up my VM, advertise a network with the same SSID as that of your enterprise. 138 00:12:10,860 --> 00:12:19,040 At the back end, I'm going to be running my own fake radius server, which has its own self-signed 139 00:12:19,040 --> 00:12:26,500 certificate. So let's say, you know, Thomas now sends out probe requests, and I create a honeypot 140 00:12:26,500 --> 00:12:32,960 with the exact same name, you know, at an airport or any other location, and Thomas connects to my 141 00:12:32,960 --> 00:12:40,440 setup. Now, peep typically is network logon. So Thomas, if this is the first time he's connecting, 142 00:12:40,440 --> 00:12:45,660 which wouldn't be the case because he's sending probe requests, most clients automatically try to 143 00:12:45,660 --> 00:12:51,620 do a connection, right? They might not even prompt you. During the demos you do, well, you will be 144 00:12:51,620 --> 00:12:56,960 prompted because the network isn't there in your preferred network list yet, right? This is your 145 00:12:56,960 --> 00:13:03,880 first connection. So when Thomas connects to me, at that point, a fake certificate would be sent 146 00:13:03,880 --> 00:13:10,080 to him. Now, everything depends on how his wireless client software behaves, right? 147 00:13:10,440 --> 00:13:16,060 Possibility one, silently accepts. Android devices do that, and you'll see that during the demo. 148 00:13:16,760 --> 00:13:24,100 Possibility two, the device goes ahead and shows him a certificate mismatch, and he may have to accept 149 00:13:24,100 --> 00:13:33,280 it, right? iOS devices would do that. Possibility three, a very strong policy where the device 150 00:13:33,280 --> 00:13:38,720 automatically rejects. Very few devices, some which have been configured, typically after our 151 00:13:38,720 --> 00:13:39,420 Black Hat classes. 152 00:13:42,560 --> 00:13:48,660 So here's what I'm going to do. I'm going to create the setup. Just try to give me a minute or two, and I'll show you how it works. 153 00:13:52,960 --> 00:14:00,960 Okay. Do you guys have any questions so far? 154 00:14:04,120 --> 00:14:08,240 I have a question. Why a virtual machine? Could that be a physical machine? 155 00:14:09,140 --> 00:14:10,240 So the question was? 156 00:14:10,440 --> 00:14:18,280 Why a virtual machine? Yes, it could be a physical machine, too. Just convenient. We have the slides on one machine, and we need a Linux machine to do that. 157 00:14:19,060 --> 00:14:19,460 Okay. 158 00:14:55,780 --> 00:14:56,620 So I have a question, and I'm going to give you a minute or two. 159 00:14:56,620 --> 00:14:59,460 Possibility one, I'm going to give you a minute or two. Why a virtual machine? 160 00:15:00,140 --> 00:15:01,620 Because it's a virtual machine. 161 00:15:02,080 --> 00:15:03,280 Possibility two, the device goes ahead and shows him a certificate mismatch, and he may have to accept it. 162 00:15:04,700 --> 00:15:05,100 Right? 163 00:15:05,920 --> 00:15:08,420 So I have a question. Why a virtual machine? 164 00:15:08,420 --> 00:15:08,440 Because it's a physical machine. 165 00:15:08,460 --> 00:15:08,820 What's the difference? 166 00:15:08,820 --> 00:15:10,400 Possibility one, I'm going to give you a minute or two. Why a virtual machine? 167 00:15:10,400 --> 00:15:11,540 Because it's a physical machine. 168 00:15:12,420 --> 00:15:15,900 Is there anybody that could explain the Café Latte attack? 169 00:15:16,220 --> 00:15:19,020 So there's a book for the person who can answer that. 170 00:15:19,680 --> 00:15:24,700 So you're going to ask some questions about different wireless attacks while I'm setting it up, and you can answer it? 171 00:15:24,820 --> 00:15:25,380 You got a free book? 172 00:15:26,160 --> 00:15:26,440 Yeah. 173 00:15:27,420 --> 00:15:30,040 Can somebody describe the Café Latte attack? 174 00:15:34,000 --> 00:15:39,140 Possibility one, I'm going to give you a minute or two. 175 00:15:39,820 --> 00:15:40,380 Why a virtual machine? 176 00:15:40,400 --> 00:15:41,340 Why a virtual machine? 177 00:15:45,040 --> 00:15:49,840 How does Café Latte...I'll be very, very specific...how does Café Latte go ahead? 178 00:15:50,160 --> 00:15:53,240 So Café Latte is AP-less webcracking, right? 179 00:15:53,300 --> 00:15:55,900 The very first attacks which I found. 180 00:15:56,560 --> 00:15:59,700 And Café Latte does something very very interesting 181 00:15:59,700 --> 00:16:02,480 with the initial AARP packet which comes in. 182 00:16:03,020 --> 00:16:04,860 So what does it exactly do? 183 00:16:05,420 --> 00:16:07,480 The other, alternate questions are 184 00:16:07,480 --> 00:16:09,560 are, how does the corec attack work? 185 00:16:10,680 --> 00:16:12,340 Anyone heard of the corec attack? 186 00:16:14,000 --> 00:16:15,600 Or the chop-chop attack? 187 00:16:29,200 --> 00:16:33,200 OK, does anyone want to explain how WPA-PSK cracking works? 188 00:16:33,920 --> 00:16:34,840 OK, there you go. 189 00:16:45,640 --> 00:16:47,160 So I'll give this a shot. 190 00:16:47,420 --> 00:16:50,220 Basically, when you're connecting to a wireless 191 00:16:50,540 --> 00:16:55,740 router, you have to send your information about who you are 192 00:16:56,100 --> 00:17:01,600 and what your physical device is so that you can establish 193 00:17:01,600 --> 00:17:03,020 this connection with the server. 194 00:17:03,260 --> 00:17:06,380 And there's a four-way handshake that occurs where 195 00:17:06,380 --> 00:17:06,980 you're sending 196 00:17:06,980 --> 00:17:08,320 information to the router. 197 00:17:08,420 --> 00:17:09,740 It sends information back. 198 00:17:09,900 --> 00:17:12,020 You send more information to the router. 199 00:17:12,160 --> 00:17:14,380 And finally, it sends more information back. 200 00:17:14,780 --> 00:17:18,480 And in the process of that four-way handshake, one of the 201 00:17:18,480 --> 00:17:26,420 things that's being transferred is the hash of the WPA access 202 00:17:26,420 --> 00:17:29,480 point, the passphrase or whatever authentication it's 203 00:17:29,480 --> 00:17:34,400 using, so you can extract that hash from the packets and then 204 00:17:34,400 --> 00:17:36,060 use it to brute force the password. 205 00:17:37,900 --> 00:17:39,200 Yeah, very good. 206 00:17:39,520 --> 00:17:40,000 Thanks. 207 00:17:41,220 --> 00:17:41,980 Thank you. 208 00:17:42,160 --> 00:17:42,540 Nice job. 209 00:17:47,200 --> 00:17:51,560 Can you crack WPA-PSK without an access point being 210 00:17:51,560 --> 00:17:56,820 around, which is AP-less WPA, WPA2-PSK cracking? 211 00:17:57,080 --> 00:17:59,840 How do you create such a setup, and how would that work? 212 00:18:18,600 --> 00:18:19,080 Anybody? 213 00:18:19,600 --> 00:18:19,940 Yes. 214 00:18:20,120 --> 00:18:23,560 I mean, with all the cracking, you've got to get the handshake 215 00:18:23,560 --> 00:18:23,840 packets. 216 00:18:24,900 --> 00:18:29,780 If people are already associated, you have to de-off them and re-establish, or force 217 00:18:29,780 --> 00:18:32,040 the clients to reconnect . 218 00:18:32,540 --> 00:18:33,980 But I think the question is different. 219 00:18:33,980 --> 00:18:34,360 Yeah. 220 00:18:34,460 --> 00:18:37,800 How do we deal with when we don't have the access point around? 221 00:18:40,240 --> 00:18:41,820 Can we fake an access point? 222 00:18:42,060 --> 00:18:44,520 You could pretend you're an access point. 223 00:18:44,760 --> 00:18:44,900 Yes. 224 00:18:44,900 --> 00:18:46,600 You're on the right track. 225 00:18:47,600 --> 00:18:49,960 There are tools to... 226 00:18:49,960 --> 00:18:50,840 Pineapple? 227 00:18:50,920 --> 00:18:51,140 Yeah. 228 00:18:51,240 --> 00:18:51,500 Pineapple? 229 00:18:51,840 --> 00:18:52,360 Yeah. 230 00:18:52,660 --> 00:18:55,160 There's a tool in Aircrack that can do... 231 00:18:55,160 --> 00:18:55,220 Or Airmon? 232 00:18:55,220 --> 00:18:55,300 Yeah. 233 00:18:55,340 --> 00:18:57,380 Airmon and G can become a software thing? 234 00:18:57,600 --> 00:19:01,440 Airmon is just for creating or stopping monitor mode interfaces. 235 00:19:01,860 --> 00:19:01,980 Oh, I know. 236 00:19:02,440 --> 00:19:03,780 Airmon and G can become a software thing? 237 00:19:03,780 --> 00:19:03,860 Airmon is just for creating or stopping monitor mode interfaces. 238 00:19:03,860 --> 00:19:03,960 Oh, I know. 239 00:19:05,860 --> 00:19:07,800 Airmon is just for creating or stopping monitor mode interfaces. 240 00:19:07,800 --> 00:19:07,960 Yeah. 241 00:19:08,240 --> 00:19:09,060 That's one answer. 242 00:19:09,160 --> 00:19:10,780 There's another tool in Aircrack. 243 00:19:11,880 --> 00:19:12,700 Airmon is just for creating or stopping monitor mode interfaces. 244 00:19:12,700 --> 00:19:13,180 Yeah. 245 00:19:17,000 --> 00:19:19,080 Airmon is just for creating or stopping monitor mode interfaces. 246 00:19:20,440 --> 00:19:20,520 Okay. 247 00:19:21,480 --> 00:19:23,200 So, managed to get the setup ready. 248 00:19:24,480 --> 00:19:29,600 The very first thing which you're going to create is the fake access point, right? 249 00:19:29,660 --> 00:19:32,880 Which has the same SSID as the enterprise AP. 250 00:19:33,120 --> 00:19:33,960 So, you want to get the access point. 251 00:19:33,960 --> 00:19:35,140 So, here is what we are trying to do. 252 00:19:36,420 --> 00:19:40,200 Create an enterprise access point with the same SSID as yours. 253 00:19:40,640 --> 00:19:47,040 When the client connects to it, our fake AP will talk to the radius server which we've 254 00:19:47,040 --> 00:19:48,740 set up with the self-signed certificate. 255 00:19:49,880 --> 00:19:54,460 As soon as the connection happens, the self-signed cert is sent to the client. 256 00:19:54,760 --> 00:20:00,340 The client now has a choice, as I said, one of those three, assuming it accepts the encrypted 257 00:20:00,340 --> 00:20:03,940 tunnel which gets created is with the fake radius server. 258 00:20:03,960 --> 00:20:04,380 So, the first thing we do is create the service certificate. 259 00:20:04,700 --> 00:20:06,460 Now, if you can see, the server certificate, just like SSL, man in the middle attack. 260 00:20:07,020 --> 00:20:13,360 Once that happens, the MSCHEP V2 challenge response pair inside gets sent and we can 261 00:20:13,360 --> 00:20:14,060 easily cache it. 262 00:20:14,240 --> 00:20:15,740 So, I'll go through the whole process. 263 00:20:18,620 --> 00:20:22,480 The first step is actually to create the host APD config. 264 00:20:23,180 --> 00:20:28,520 Host APD is a good choice because it can work with ePAL packets, right? 265 00:20:28,640 --> 00:20:31,540 That is a requirement for any software-based access point. 266 00:20:32,000 --> 00:20:33,940 All hardware APs can do that. 267 00:20:33,940 --> 00:20:43,860 that. So here is the WPA enterprise configuration for host APD. We have the interface, we have 268 00:20:43,860 --> 00:20:50,860 the hardware mode, the channel, the driver, SSID. WPA enterprise is always open authentication. 269 00:20:51,360 --> 00:20:59,540 You selected WPA2 and key management is going to be EAP and we are using CCMP so that it's 270 00:20:59,540 --> 00:21:10,040 WPA2 enterprise. 802.1X is set to on. I am running the radius server on the same machine, 271 00:21:10,300 --> 00:21:18,400 so that I can actually use the loopback interface. And my access point using host APD is actually 272 00:21:18,400 --> 00:21:29,340 going to be on my client card. This is a TP-Link WN722N. It's a fantastic 273 00:21:29,540 --> 00:21:35,140 card, has an Atheros based chip set. Highly recommend purchasing one. When we checked 274 00:21:35,140 --> 00:21:40,120 during our black hat class, it was retailing at $12 on Amazon. Probably want to buy 10 275 00:21:40,120 --> 00:21:46,540 of them. It's difficult to, they run out of stock very fast and it's difficult to get 276 00:21:46,540 --> 00:21:52,180 your hands on them. We did a class of 40-50 people and took quite some time to actually 277 00:21:52,180 --> 00:21:54,740 get that many cards. So highly recommend buying one. 278 00:21:54,940 --> 00:21:55,540 Q&A Q&A 279 00:21:57,100 --> 00:21:58,580 TP-Link WN722N. 280 00:21:59,520 --> 00:22:06,260 TP-Link WN722N. 7-2-2-N. OK. 281 00:22:09,820 --> 00:22:15,560 Q&A Ok so. 282 00:22:16,280 --> 00:22:29,360 I am going to go ahead and start the fake access point. And again I'm going to start 283 00:22:29,520 --> 00:22:49,140 the radius server. And now I'm actually going to go ahead and connect my client to it. I 284 00:22:49,140 --> 00:22:53,760 know most of you already have your alpha cards out to deauth the AP. Just give me a couple 285 00:22:53,760 --> 00:22:55,940 of minutes and then you can deauth as much as you like. 286 00:22:57,540 --> 00:23:02,200 So, as soon as I try to connect, it shows me a username and password prompt. It realizes 287 00:23:02,200 --> 00:23:13,660 it's WP enterprise. I'm going to just put in, let's say, Vivek demo123. Hit join. Now, 288 00:23:13,700 --> 00:23:19,580 on iOS devices, this actually shows me a certificate, right? At this point, this is the default 289 00:23:19,580 --> 00:23:25,920 bootstrap certificate. So, kind of looks completely easy to detect. It says example search. And 290 00:23:25,940 --> 00:23:30,840 we could actually change it to something which looks more legitimate. Once we accept 291 00:23:30,840 --> 00:23:36,780 the cert, of course, we get an incorrect username and password. But if we go back and look at 292 00:23:38,440 --> 00:23:47,660 the log files, just started this. Here we go, right? Let me go ahead and do this once 293 00:23:47,660 --> 00:23:55,860 again. And there you go, right? Here is something you can try. Using your own mobile devices, 294 00:23:56,540 --> 00:24:02,420 try connecting to this network and see if you actually get a certificate error. Don't 295 00:24:02,420 --> 00:24:04,000 worry, no malware will be served. 296 00:24:06,120 --> 00:24:06,680 Today. 297 00:24:07,200 --> 00:24:07,760 Right? 298 00:24:07,840 --> 00:24:08,040 Today. 299 00:24:09,460 --> 00:24:13,620 I'm sorry, yeah. The SSID of the network is… 300 00:24:13,620 --> 00:24:15,360 WP, demo. 301 00:24:16,760 --> 00:24:22,920 Hyphen ENT demos. The deauth guys in the room, just a couple of more seconds and then you 302 00:24:22,920 --> 00:24:23,520 can play with it. 303 00:24:23,660 --> 00:24:23,980 Okay. 304 00:24:24,580 --> 00:24:24,680 Okay. 305 00:24:27,140 --> 00:24:33,020 And everyone who's trying, you know, try not to be too profane about what you put in as the username. 306 00:24:34,340 --> 00:24:34,740 Right? 307 00:24:34,780 --> 00:24:38,020 We all understand we should be hacked, but, yeah, there you go. 308 00:24:42,240 --> 00:24:47,920 I hope you're a woman writing this. 309 00:24:51,640 --> 00:24:52,240 That's better. 310 00:24:53,820 --> 00:24:55,620 Well, I'd agree to that, as I said. 311 00:24:55,940 --> 00:24:56,700 Only if you're a woman. 312 00:25:01,680 --> 00:25:05,620 People who are trying, how many of you got a certificate error? 313 00:25:05,880 --> 00:25:07,140 An actual certificate error. 314 00:25:07,200 --> 00:25:07,640 iOS device? 315 00:25:08,400 --> 00:25:08,920 Okay. 316 00:25:09,560 --> 00:25:10,080 Androids? 317 00:25:10,100 --> 00:25:11,160 Anyone tried with Androids? 318 00:25:12,120 --> 00:25:13,780 Did not get a certificate error, right? 319 00:25:13,820 --> 00:25:14,220 There you go. 320 00:25:14,720 --> 00:25:19,360 Now, if this was your enterprise network, an actual enterprise network configured, 321 00:25:20,280 --> 00:25:24,320 your device would just automatically connect to it without you even knowing 322 00:25:24,320 --> 00:25:25,920 when you're in the proximity of it. 323 00:25:25,940 --> 00:25:26,200 Right? 324 00:25:28,080 --> 00:25:31,000 And Androids are very, very notorious for this. 325 00:25:31,060 --> 00:25:31,480 It's unbelievable. 326 00:25:31,840 --> 00:25:34,740 I get to do this demo almost for the last three years now. 327 00:25:35,780 --> 00:25:36,220 Right? 328 00:25:36,300 --> 00:25:38,040 Nothing much has changed. 329 00:25:40,080 --> 00:25:42,820 Now, can you go ahead and fix this on Android? 330 00:25:43,020 --> 00:25:43,540 Yes, you can. 331 00:25:44,100 --> 00:25:48,600 Deep down in the settings, you have to figure out the place which says validate certificate. 332 00:25:51,800 --> 00:25:52,240 Right? 333 00:25:52,620 --> 00:25:55,920 If you manage to figure that out, where it is, depending on the version of Android, 334 00:25:55,940 --> 00:25:58,080 hey, you are protected. 335 00:25:59,140 --> 00:26:03,360 To begin with, there are a couple of other interesting hacks which we can do as well, 336 00:26:03,900 --> 00:26:05,340 which I'll just show you in a bit. 337 00:26:06,520 --> 00:26:09,920 People who are trying, anyone else Android device or any other devices, 338 00:26:10,100 --> 00:26:10,780 the Windows phone? 339 00:26:11,840 --> 00:26:13,080 Anyone with a Windows phone? 340 00:26:14,040 --> 00:26:15,580 Okay, that shows market share. 341 00:26:21,000 --> 00:26:22,660 Yeah, Windows is... 342 00:26:22,660 --> 00:26:25,740 The good thing about Windows to some extent now is, 343 00:26:25,740 --> 00:26:30,380 is because the entire Wi-Fi stack and the security has evolved along with the OS itself, 344 00:26:30,760 --> 00:26:33,720 most of what you see on the phone is just that getting ported. 345 00:26:34,100 --> 00:26:37,900 So, Androids are bad. 346 00:26:38,200 --> 00:26:39,060 Really bad. 347 00:26:40,380 --> 00:26:45,420 Now, for people using iOS devices, there isn't much to celebrate immediately. 348 00:26:45,880 --> 00:26:46,080 Right? 349 00:26:46,100 --> 00:26:47,100 This is a tech audience. 350 00:26:47,520 --> 00:26:49,960 The certificate name is a dead giveaway. 351 00:26:50,360 --> 00:26:51,180 Example cert. 352 00:26:52,020 --> 00:26:55,160 But how many non-technical folks in a company, 353 00:26:55,740 --> 00:26:59,140 when we can actually make the certificate look extremely legit, 354 00:27:00,040 --> 00:27:02,140 would go ahead and not click OK to that? 355 00:27:02,420 --> 00:27:02,820 Right? 356 00:27:02,840 --> 00:27:05,720 If we actually said, okay, this is ABC Corp. 357 00:27:05,900 --> 00:27:07,700 You know, put in all the details as well. 358 00:27:08,800 --> 00:27:12,840 All iOS also says is, hey, do you want to go ahead and accept this certificate? 359 00:27:13,520 --> 00:27:17,260 iOS isn't specifically warning you what can happen if you do it. 360 00:27:18,060 --> 00:27:18,460 Right? 361 00:27:18,620 --> 00:27:21,860 So, it's great, at least that it does it to begin with. 362 00:27:21,920 --> 00:27:22,980 But hey, there are no warnings. 363 00:27:23,080 --> 00:27:24,340 It just says this is a new certificate. 364 00:27:24,500 --> 00:27:25,280 Do you want to accept it? 365 00:27:25,740 --> 00:27:28,480 Now, the problem is, if you accept it, it's cached forever. 366 00:27:29,300 --> 00:27:29,860 Why? 367 00:27:30,020 --> 00:27:34,660 Because on iOS, the only time you can remove a network is when you're in its vicinity. 368 00:27:35,740 --> 00:27:36,720 Do you notice that? 369 00:27:36,820 --> 00:27:41,040 You can never remove preferred networks on iOS devices. 370 00:27:41,680 --> 00:27:46,080 Unless you jailbreak it, find the right SQLite DB where all of that is stored, 371 00:27:46,240 --> 00:27:49,320 and actually run a SQL delete command for all rows. 372 00:27:50,040 --> 00:27:50,600 OK. 373 00:27:57,440 --> 00:27:58,740 I haven't checked with that. 374 00:27:58,860 --> 00:27:59,600 Just let me know. 375 00:28:00,200 --> 00:28:01,500 I have my email at the end. 376 00:28:01,580 --> 00:28:03,360 So, if the reset networking does that. 377 00:28:03,700 --> 00:28:06,360 Even worse, iCloud keychain synchronizes. 378 00:28:06,420 --> 00:28:06,700 Yeah. 379 00:28:07,360 --> 00:28:07,760 Yes. 380 00:28:08,180 --> 00:28:08,580 Yes. 381 00:28:08,980 --> 00:28:13,500 So, all of your cached passwords and things like that, including, of course, the wireless 382 00:28:13,500 --> 00:28:15,260 ones, are all in the keychain. 383 00:28:15,460 --> 00:28:18,500 I think the file name was keychain-2.db or something. 384 00:28:19,100 --> 00:28:21,420 The last time I kind of jailbroke and had a look at it. 385 00:28:22,360 --> 00:28:23,720 Just the SQLite DB. 386 00:28:23,780 --> 00:28:23,980 Yeah. 387 00:28:24,000 --> 00:28:25,720 Is this an encrypted SQLite DB? 388 00:28:26,000 --> 00:28:31,540 But you can decrypt it very easily using the machine key which is there on the iOS device. 389 00:28:31,800 --> 00:28:33,700 So, once you jailbreak it, you can recover it. 390 00:28:33,940 --> 00:28:35,120 There was another question. 391 00:28:35,280 --> 00:28:35,520 Question. 392 00:28:36,360 --> 00:28:36,880 . 393 00:28:43,640 --> 00:28:48,100 When you connect to the network and use a user name and password, does it silently 394 00:28:48,100 --> 00:28:48,520 fail? 395 00:28:48,900 --> 00:28:49,420 No. 396 00:28:49,460 --> 00:28:49,920 It didn't. 397 00:28:50,200 --> 00:28:51,520 It didn't get rejected. 398 00:28:52,420 --> 00:28:52,940 OK. 399 00:28:53,240 --> 00:28:55,720 So, that is an example of probably a strong network. 400 00:28:55,720 --> 00:28:59,120 It's a strong policy, just like Chrome does for its browser, so great. 401 00:28:59,360 --> 00:28:59,820 Yeah. 402 00:29:00,600 --> 00:29:01,380 That's fantastic. 403 00:29:02,080 --> 00:29:06,740 So, just so you guys know, iOS has reset network settings. 404 00:29:06,900 --> 00:29:07,140 OK. 405 00:29:07,320 --> 00:29:07,460 Right? 406 00:29:07,680 --> 00:29:12,240 But if you do that, instead, it won't prompt you for the search that you want. 407 00:29:12,860 --> 00:29:13,340 Wow. 408 00:29:14,220 --> 00:29:14,700 Wow. 409 00:29:14,900 --> 00:29:15,840 So, yeah. 410 00:29:15,900 --> 00:29:16,300 It's still there. 411 00:29:16,960 --> 00:29:22,560 Because, I mean, I think maybe logically what happens is you accept a certificate that probably 412 00:29:22,560 --> 00:29:23,380 goes elsewhere. 413 00:29:23,600 --> 00:29:23,980 Somewhere else. 414 00:29:24,280 --> 00:29:24,940 You know? 415 00:29:25,720 --> 00:29:29,900 Like a system-wide certificate database or system-wide certificate bank, rather than 416 00:29:29,900 --> 00:29:33,100 being stored as part of the config of the network profile. 417 00:29:33,460 --> 00:29:39,120 So, that could probably be a logical assumption as to why resetting networking isn't solving 418 00:29:39,120 --> 00:29:39,600 the problem. 419 00:29:43,500 --> 00:29:44,060 Right? 420 00:29:44,160 --> 00:29:47,060 How many of you have tried and not gotten certificate errors? 421 00:29:47,660 --> 00:29:48,220 OK. 422 00:29:48,380 --> 00:29:49,540 Android device is notorious. 423 00:29:50,200 --> 00:29:55,040 You can actually change it if you go deep down in the settings somewhere. 424 00:29:55,040 --> 00:29:56,360 But it's quite painful to do that. 425 00:29:56,600 --> 00:30:01,860 Now, what is the biggest worry with WPA Enterprise? 426 00:30:03,280 --> 00:30:10,400 In the case when you are actually cracking WPA, WPA2, PSK, what you are getting is at 427 00:30:10,400 --> 00:30:15,080 most a network key, which the admin can change or make it very, very extremely difficult 428 00:30:15,560 --> 00:30:16,360 to actually crack. 429 00:30:17,760 --> 00:30:23,280 In the case of Enterprise, if you do a parking lot attack or probably roam around in the nearest 430 00:30:23,280 --> 00:30:23,960 coffee shop. 431 00:30:23,960 --> 00:30:30,160 Near the Enterprise, assuming they have a couple of Android devices on their employees, 432 00:30:30,460 --> 00:30:32,660 this is something quite easy to pick up. 433 00:30:33,260 --> 00:30:35,960 Keep in mind that all you needed was a quick exchange. 434 00:30:36,260 --> 00:30:40,300 This doesn't require unlike something like web for thousands of different packets to 435 00:30:40,300 --> 00:30:40,720 pass by. 436 00:30:40,840 --> 00:30:40,940 Right? 437 00:30:41,280 --> 00:30:45,080 This whole exchange is probably under 60 packets, 50 to 60 packets. 438 00:30:46,320 --> 00:30:52,940 At the very same time, the interesting part is once you crack the challenge response pair, 439 00:30:52,940 --> 00:30:57,760 I'll show you what tools are available, and online there are even infrastructures which 440 00:30:57,760 --> 00:30:59,880 you can use, what do you finally get? 441 00:31:00,300 --> 00:31:03,420 You actually get the user's credentials. 442 00:31:04,020 --> 00:31:08,200 The user name actually goes in plain text in the EAP packet itself. 443 00:31:08,720 --> 00:31:15,040 So if you actually just ran Wireshark and put a filter on EAP logon, you would be able 444 00:31:15,040 --> 00:31:18,420 to harvest user names on an Enterprise network anyway. 445 00:31:18,620 --> 00:31:22,520 This has nothing to do with it going inside the encrypted tunnel. 446 00:31:22,520 --> 00:31:23,680 It's also available outside. 447 00:31:24,000 --> 00:31:28,420 So you can just run a scanner near an Enterprise and do user name harvesting. 448 00:31:29,780 --> 00:31:35,940 Once you get the password, what you can actually do is logon on that network as that user. 449 00:31:36,920 --> 00:31:42,280 Because anyone using peep actually has network logon associated with it, right? 450 00:31:42,400 --> 00:31:46,020 The radius server talks to the LDAP and just logs you on as the current user. 451 00:31:47,040 --> 00:31:52,040 What that means is once you do that, you have access to the common shared file systems, 452 00:31:52,640 --> 00:31:53,160 right? 453 00:31:53,160 --> 00:32:01,100 The best way from here to go to root is most companies actually also have webmail, and 454 00:32:01,100 --> 00:32:05,180 because they have single sign-on available, you can actually just find the webmail URL 455 00:32:05,180 --> 00:32:10,360 and log into his email using the same user name and password, right? 456 00:32:10,560 --> 00:32:15,820 And then if you have one of those interesting little PDF attacks where you can package in 457 00:32:15,820 --> 00:32:19,940 some goodies, you could actually send an internal email to all of his colleagues. 458 00:32:21,120 --> 00:32:22,500 The email system won't do that. 459 00:32:22,520 --> 00:32:24,480 You won't reject it because it isn't fake email, right? 460 00:32:24,560 --> 00:32:27,420 It's actually legitimate email from one to the other. 461 00:32:28,020 --> 00:32:33,200 So this could be a very good starting point for, and now this is when everybody appreciates 462 00:32:33,200 --> 00:32:35,860 the talk, an APT, right? 463 00:32:35,900 --> 00:32:37,160 Advanced Persistent Threat. 464 00:32:38,540 --> 00:32:46,140 So a very easy illustration of how you can move from just Wi-Fi to network credentials 465 00:32:46,140 --> 00:32:51,260 and then trying to see how many more users you can attack on the Enterprise network. 466 00:32:52,060 --> 00:32:52,520 Right? 467 00:32:53,380 --> 00:32:53,840 Questions? 468 00:32:54,420 --> 00:32:54,640 Questions? 469 00:33:03,780 --> 00:33:04,980 It's MSChap v2. 470 00:33:05,160 --> 00:33:08,660 So MSChap v2 is well documented of how the challenge response pairs are created. 471 00:33:09,080 --> 00:33:11,940 You can probably dig up some documentation and share it with you. 472 00:33:13,420 --> 00:33:15,800 Now MSChap v2 itself is known to be broken. 473 00:33:16,440 --> 00:33:20,760 Previously we used to use AS Leap to run a dictionary attack on it, which is what I can 474 00:33:20,760 --> 00:33:21,240 show you right now. 475 00:33:21,260 --> 00:33:25,660 But I think three years back Moxie and David Hulton, right? 476 00:33:25,980 --> 00:33:27,060 Moxie and David Hulton? 477 00:33:27,160 --> 00:33:33,080 They did a talk where how you can actually crack MSChap v2 using a cloud or a GPU infrastructure 478 00:33:33,080 --> 00:33:34,420 100% of the times. 479 00:33:34,700 --> 00:33:35,600 It's a DEF CON talk. 480 00:33:35,800 --> 00:33:36,380 You can see it. 481 00:33:36,880 --> 00:33:42,360 I think they even released some sample code along with it and they have a website called 482 00:33:42,360 --> 00:33:49,460 cloudcracking.com or something where, cloudcracker.com where you can pay $17 and save yourself a 483 00:33:49,460 --> 00:33:50,960 lot of time, right? 484 00:33:50,960 --> 00:33:54,420 I mean in case you're doing a pen test upon a per hash basis. 485 00:33:56,860 --> 00:33:57,300 Okay. 486 00:34:00,880 --> 00:34:02,960 So how do you protect against this? 487 00:34:07,520 --> 00:34:13,060 All of this is going to be even more worrisome as the internet of things and all of that 488 00:34:13,060 --> 00:34:16,020 comes in and everything uses Wi-Fi, right? 489 00:34:16,080 --> 00:34:20,000 IoT devices almost always use Wi-Fi as the way to connect to the internet. 490 00:34:20,000 --> 00:34:24,240 Some of them use 3G networks as well, but most of them. 491 00:34:25,400 --> 00:34:25,900 Okay. 492 00:34:25,960 --> 00:34:28,580 So let's actually go ahead and look at the secure configuration. 493 00:34:30,120 --> 00:34:33,280 Depending on your client device, you have to validate certificate. 494 00:34:34,020 --> 00:34:36,680 You have to make it idiot proof, right? 495 00:34:36,720 --> 00:34:40,480 Do not prompt user to authorize new servers or trusted CAs. 496 00:34:41,800 --> 00:34:43,540 Unbelievably, Microsoft has this. 497 00:34:44,520 --> 00:34:45,020 Right? 498 00:34:45,040 --> 00:34:46,920 They have it in their config which you can turn on. 499 00:34:47,080 --> 00:34:47,540 Right? 500 00:34:47,540 --> 00:34:49,440 So that's how you secure it. 501 00:34:52,140 --> 00:34:53,780 No, that is in the default state. 502 00:34:54,080 --> 00:34:55,460 But is this secure? 503 00:34:56,240 --> 00:34:57,860 I mean you just took my word for it. 504 00:34:58,920 --> 00:35:03,640 This is actually more insecure than the last one. 505 00:35:04,160 --> 00:35:10,540 And the interesting thing is that when we used to do a lot of audits, the only thing 506 00:35:10,540 --> 00:35:15,180 I did when I had to do WP enterprise auditing was just have them open up this setting. 507 00:35:16,200 --> 00:35:16,680 Right? 508 00:35:16,680 --> 00:35:19,120 And the moment I see this, well, it's game over already. 509 00:35:19,360 --> 00:35:23,700 And now I can actually do a whole network-wide attack without even having to worry about 510 00:35:23,700 --> 00:35:24,880 a certificate pop-up. 511 00:35:25,280 --> 00:35:25,300 Right? 512 00:35:25,900 --> 00:35:26,260 Yeah. 513 00:35:26,500 --> 00:35:28,340 Can you repeat the statement at the start of this part? 514 00:35:28,560 --> 00:35:29,080 Okay. 515 00:35:29,380 --> 00:35:36,360 So if you look at the entire attack which we discussed, we said the problem is certificate 516 00:35:36,360 --> 00:35:41,460 validation probably isn't turned on by default on most client devices. 517 00:35:41,620 --> 00:35:41,820 Right? 518 00:35:42,180 --> 00:35:46,660 So here is a config where certificate validation is not turned on by default on most client 519 00:35:46,680 --> 00:35:46,860 devices. 520 00:35:47,300 --> 00:35:52,520 We've kind of made it kind of user proof, which is do not prompt the user to authorize 521 00:35:52,520 --> 00:35:58,080 new servers, which means there are going to be no pop-ups asking the user to accept a 522 00:35:58,080 --> 00:35:59,320 new certificate from a network. 523 00:36:00,460 --> 00:36:01,840 So this is fantastic. 524 00:36:02,140 --> 00:36:04,040 And actually many networks have exactly this. 525 00:36:04,780 --> 00:36:08,080 But this is way more easier to beat than the previous case. 526 00:36:08,820 --> 00:36:11,060 And if I see this, it's like game over already. 527 00:36:11,300 --> 00:36:13,360 Of course, I bill the client still for seven days. 528 00:36:15,940 --> 00:36:16,420 Right? 529 00:36:17,020 --> 00:36:24,200 Roam around, you know, with my interns, trying to look all stressed out when all we're actually 530 00:36:24,200 --> 00:36:26,540 doing is playing a game against each other. 531 00:36:26,620 --> 00:36:26,740 Right? 532 00:36:26,900 --> 00:36:27,900 A video game. 533 00:36:28,080 --> 00:36:29,580 And that's the reason why we're stressed out. 534 00:36:29,780 --> 00:36:33,760 And then after seven days, we come back and here you go. 535 00:36:34,000 --> 00:36:34,920 This was difficult. 536 00:36:36,080 --> 00:36:40,820 No, no, no, we, we never do that in case you're probably thinking of hiring us. 537 00:36:45,340 --> 00:36:45,780 So. 538 00:36:45,960 --> 00:36:46,400 Okay. 539 00:36:46,400 --> 00:36:46,420 Anyone? 540 00:36:46,980 --> 00:36:48,860 This goes out one book. 541 00:36:49,700 --> 00:36:51,020 Why is this insecure? 542 00:36:52,380 --> 00:36:52,860 Yeah. 543 00:36:56,280 --> 00:36:56,760 Okay. 544 00:36:56,900 --> 00:36:58,580 But how would I find the legitimate cert? 545 00:36:58,760 --> 00:37:01,760 I mean, the sense, how would I know what is a legitimate cert for the enterprise? 546 00:37:04,340 --> 00:37:04,820 Okay. 547 00:37:06,640 --> 00:37:07,120 Okay. 548 00:37:07,200 --> 00:37:07,700 Very good. 549 00:37:07,820 --> 00:37:10,780 So one of, here you go, clap. 550 00:37:14,300 --> 00:37:16,160 So one of the things you've probably 551 00:37:16,160 --> 00:37:21,420 noticed is the admin forgot to add connect to these servers and there are no domain names 552 00:37:21,420 --> 00:37:22,060 mentioned here. 553 00:37:22,260 --> 00:37:26,660 So all that means is you need a valid certificate from one of these CAs, right? 554 00:37:26,700 --> 00:37:31,640 What is an example on most of your windows systems, you would actually find a couple 555 00:37:31,640 --> 00:37:36,820 of dozen CAs and you can purchase a certificate from any one of them, use it in your radius 556 00:37:36,820 --> 00:37:37,160 server. 557 00:37:37,340 --> 00:37:40,420 And now that is a valid certificate, right? 558 00:37:40,700 --> 00:37:42,820 For the chain of trust, which you have. 559 00:37:43,880 --> 00:37:44,320 So. 560 00:37:44,320 --> 00:37:47,400 So this is a very common mistake in enterprises. 561 00:37:47,880 --> 00:37:55,100 Now the best part is once your fake AP and radius server uses a valid cert, all your 562 00:37:55,100 --> 00:37:56,620 devices would happily connect. 563 00:37:57,260 --> 00:38:01,160 I mean, because we are playing by the rules now, right? 564 00:38:01,220 --> 00:38:06,320 Easiest case and this configuration super easy to abuse. 565 00:38:08,440 --> 00:38:12,860 Unfortunately nobody wants to go through the pain of setting up PKI and all of that locally, 566 00:38:13,040 --> 00:38:13,640 right? 567 00:38:13,640 --> 00:38:16,920 And even people who do are always worried of what they could break. 568 00:38:17,020 --> 00:38:23,560 So they don't try to really constrain it by the FQDNs and domain names and all of that. 569 00:38:24,620 --> 00:38:29,080 You actually need a very good experienced PKI team to get all of this right. 570 00:38:29,900 --> 00:38:32,760 And not many enterprises invest in that. 571 00:38:32,820 --> 00:38:37,740 Of course, some of them have secure configs and this is something you can check in your 572 00:38:37,740 --> 00:38:39,320 enterprise to begin with. 573 00:38:39,400 --> 00:38:41,200 How many of you use WP enterprise? 574 00:38:41,520 --> 00:38:42,000 PEEP? 575 00:38:42,000 --> 00:38:42,820 TTLS? 576 00:38:42,860 --> 00:38:43,060 Okay. 577 00:38:43,460 --> 00:38:47,440 You can check on your laptops or on your devices, right? 578 00:38:49,960 --> 00:38:53,360 On Windows 10 I still haven't opened this up and checked it yet. 579 00:38:55,880 --> 00:39:01,020 The only way is Microsoft would have to go ahead and prompt you at this point when you 580 00:39:01,020 --> 00:39:07,760 click okay, that you've forgotten to mention, you know, which domain names for which this 581 00:39:07,760 --> 00:39:09,480 should be valid, right? 582 00:39:09,520 --> 00:39:10,280 That's the only way. 583 00:39:11,420 --> 00:39:11,880 So. 584 00:39:11,880 --> 00:39:18,860 Now that we've looked at the attack part of it, and I'll show you the ASLEAP part later 585 00:39:18,860 --> 00:39:22,440 because that part is quite insignificant to do, it's just a command line tool. 586 00:39:23,860 --> 00:39:26,380 How do you protect against such attacks? 587 00:39:29,280 --> 00:39:35,420 So how can you protect yourself from someone who just created a fake AP with the same SSID? 588 00:39:37,040 --> 00:39:37,520 Okay. 589 00:39:37,820 --> 00:39:39,360 So that is really where. 590 00:39:39,540 --> 00:39:39,780 Uh. 591 00:39:39,780 --> 00:39:46,560 Just to give you a sneak preview of the antidote, I created Chellum, which is my DEF CON main 592 00:39:46,560 --> 00:39:47,920 stage talk today at 3 o'clock. 593 00:39:48,160 --> 00:39:49,560 So in case you get interested. 594 00:39:49,740 --> 00:39:55,600 But I'll show you how many of these can be mitigated using a Wi-Fi firewall locally. 595 00:39:57,480 --> 00:40:04,920 So Chellum, at least in my humble view, is the world's first pure Wi-Fi firewall IDS 596 00:40:05,980 --> 00:40:07,400 for Windows endpoints. 597 00:40:07,640 --> 00:40:09,520 You can extrapolate the same concept. 598 00:40:09,520 --> 00:40:09,960 Uh. 599 00:40:10,440 --> 00:40:16,520 To any operating system, we're already working on a Linux version of it, but Windows is actually 600 00:40:16,520 --> 00:40:22,420 more difficult to work on simply because it is quite restrictive of what you can get from 601 00:40:22,420 --> 00:40:23,140 the different APIs. 602 00:40:24,000 --> 00:40:29,500 Also the only way in Windows now that you can go ahead and do really good quality sniffing 603 00:40:29,500 --> 00:40:34,900 and packet monitoring, if you write your own call out intermediate drivers, uh, something 604 00:40:34,900 --> 00:40:36,500 which we are working on for version two. 605 00:40:37,220 --> 00:40:38,520 So let me run Chellum. 606 00:40:39,540 --> 00:40:44,880 It starts with a cool looking Ninja, the Ninja changes color, uh, I have four different 607 00:40:44,880 --> 00:40:47,620 colors, kind of go around it every time it starts. 608 00:40:48,320 --> 00:40:48,860 Uh. 609 00:40:49,270 --> 00:40:50,440 How does Chellum work? 610 00:40:50,680 --> 00:40:58,700 It actually reconstructs how the access point beacon would look like using different Windows 611 00:40:58,700 --> 00:40:59,720 APIs, right? 612 00:40:59,920 --> 00:41:05,440 So we look at the Wi-Fi subsystem in Windows and pull out a ton of data from that. 613 00:41:05,760 --> 00:41:08,960 And then I reconstruct how a beacon frame would look like. 614 00:41:09,620 --> 00:41:15,300 Once I do that, we can actually see the AP's beacon frame and try to see what we can fingerprint. 615 00:41:17,940 --> 00:41:26,520 Now, uh, Chellum has out of the box detection for attack networks for some of them, fingerprinted. 616 00:41:27,140 --> 00:41:32,520 Uh, I think actually someone is running Airways NG with an SSID default. 617 00:41:33,240 --> 00:41:34,080 Anyone here? 618 00:41:35,040 --> 00:41:35,600 Okay. 619 00:41:35,680 --> 00:41:36,660 It's actually picked it up. 620 00:41:37,160 --> 00:41:37,720 Uh. 621 00:41:37,900 --> 00:41:40,120 Come to how that does it in a little later. 622 00:41:40,480 --> 00:41:40,880 Uh. 623 00:41:41,100 --> 00:41:42,320 Here is another as well. 624 00:41:42,420 --> 00:41:43,960 So you're going to see a lot of pop-ups today. 625 00:41:44,420 --> 00:41:50,380 So it actually shows you that, uh, Lothar coffee as an example, uh, is actually created 626 00:41:50,380 --> 00:41:55,800 using a fake AP or probably this is Airbase responding to probe responses and one of them 627 00:41:55,800 --> 00:42:00,180 got picked up, uh, come to this a little later. 628 00:42:00,300 --> 00:42:03,900 Let me actually go to the settings and pull down at least some of the alerts. 629 00:42:05,900 --> 00:42:07,580 So Chellum begins with. 630 00:42:07,720 --> 00:42:10,940 Trying to be a better wireless scanner. 631 00:42:11,560 --> 00:42:12,060 Uh. 632 00:42:12,620 --> 00:42:17,580 What I did is I saw a lot of tools like insider, but I wasn't happy personally with the way 633 00:42:17,580 --> 00:42:19,060 they were handling a lot of the data. 634 00:42:19,480 --> 00:42:22,200 Now, windows does something very, very funny. 635 00:42:22,340 --> 00:42:26,120 My Defcon dog is going to be quite noisy, which means people can project stuff and 636 00:42:26,120 --> 00:42:26,860 all that. 637 00:42:27,060 --> 00:42:34,240 Uh, so what Chellum does is it actually looks at the different APIs and unfortunately, 638 00:42:34,440 --> 00:42:36,100 windows is wireless manager. 639 00:42:36,740 --> 00:42:40,340 Doesn't give you a lot of this information, right? 640 00:42:40,420 --> 00:42:42,120 It just gives you the SSIDs. 641 00:42:42,120 --> 00:42:42,740 That's about it. 642 00:42:43,500 --> 00:42:53,080 Chellum can actually pick up the individual SSIDs and look at the actual BSSIDs behind 643 00:42:53,080 --> 00:42:53,400 them. 644 00:42:54,480 --> 00:42:57,900 Not just that, it can actually pull out a ton of other information. 645 00:42:59,280 --> 00:43:00,920 Example, the frequency, the auth. 646 00:43:01,320 --> 00:43:05,640 This is going to be a completely free tool, which I'll be releasing today. 647 00:43:05,640 --> 00:43:10,900 Uh, anyone can download and use it after my main talk at Defcon. 648 00:43:11,780 --> 00:43:17,400 So, actually gives you a lot of information, depending on what you'd like to look at. 649 00:43:18,000 --> 00:43:23,140 Uh, it can actually even show you, yep, Chellum found me. 650 00:43:24,940 --> 00:43:25,420 Okay. 651 00:43:26,040 --> 00:43:26,980 Who tried that? 652 00:43:27,460 --> 00:43:27,940 Okay. 653 00:43:28,160 --> 00:43:29,820 Maybe I deserve a little clap for that. 654 00:43:30,460 --> 00:43:33,300 So you tried a black box kind of thing in the sense I didn't know. 655 00:43:33,740 --> 00:43:34,220 Uh. 656 00:43:35,920 --> 00:43:39,400 So, you can actually figure out fake APs. 657 00:43:39,680 --> 00:43:41,540 You can actually write your own fingerprints. 658 00:43:42,080 --> 00:43:45,540 This one has an older one, I think for Airbase and a couple of other tools. 659 00:43:45,640 --> 00:43:47,600 But you could write your own fingerprints if you wanted. 660 00:43:48,280 --> 00:43:51,540 Uh, but Chellum does both blacklisting and whitelisting. 661 00:43:51,720 --> 00:43:53,140 That's kind of the more interesting part. 662 00:43:53,400 --> 00:43:54,800 Blacklists will never work eventually. 663 00:43:55,300 --> 00:43:58,860 It's always going to be a game where, you know, you're trying to fingerprint the latest 664 00:43:58,860 --> 00:43:59,660 version of a tool. 665 00:44:01,240 --> 00:44:02,560 So, that wouldn't help. 666 00:44:02,660 --> 00:44:03,580 So how does Chellum work? 667 00:44:03,580 --> 00:44:06,900 Uh, we reconstruct the beacon frames. 668 00:44:08,820 --> 00:44:16,420 So if I click on details, what I've actually done is using the APIs, we reconstruct how 669 00:44:16,420 --> 00:44:17,640 the beacon frame looks like. 670 00:44:17,700 --> 00:44:20,420 All the different information elements and all of that stuff. 671 00:44:20,720 --> 00:44:23,780 Now keep in mind, I am not sniffing. 672 00:44:24,340 --> 00:44:26,820 This does not require custom drivers. 673 00:44:27,200 --> 00:44:29,900 This does not require custom hardware. 674 00:44:30,780 --> 00:44:33,420 This will work on any Windows system. 675 00:44:33,420 --> 00:44:35,640 Uh, Windows 7 and above. 676 00:44:36,900 --> 00:44:37,380 Right? 677 00:44:37,440 --> 00:44:38,540 And compatible hardware. 678 00:44:38,840 --> 00:44:42,480 So you could actually plug in any card and this would work. 679 00:44:43,640 --> 00:44:44,120 Right? 680 00:44:44,140 --> 00:44:47,640 That was one of the design goals I had in mind when I started working on this. 681 00:44:48,520 --> 00:44:52,700 Is, you know, I didn't want people to kind of find the right hardware. 682 00:44:53,780 --> 00:44:54,260 Right? 683 00:44:54,640 --> 00:44:56,960 Uh, so Chellum shows me all of this. 684 00:44:57,100 --> 00:45:02,620 Now, let me actually show you how we could go ahead and create a firewall. 685 00:45:09,640 --> 00:45:16,340 So, once we can actually look at the different beacon frames, or rather reconstruct the 686 00:45:16,340 --> 00:45:24,440 different beacon frames, we should be able to create a signature for an access point. 687 00:45:24,740 --> 00:45:26,380 Now, how would that actually work? 688 00:45:26,380 --> 00:45:27,980 Mmm. 689 00:45:31,160 --> 00:45:32,560 Mmm. 690 00:45:55,860 --> 00:45:58,400 Is that your attack tool complaining about Chillum? 691 00:45:59,080 --> 00:46:02,620 Someone already built in a little alarm saying Chillum's around? 692 00:46:06,900 --> 00:46:11,680 So, how do we go ahead and fingerprint a network, right? 693 00:46:11,800 --> 00:46:13,420 Unfortunately, I'm sorry about the pop-ups. 694 00:46:13,700 --> 00:46:14,880 I will disable it. 695 00:46:15,400 --> 00:46:18,900 So, what we actually do is once we reconstruct the beacon frame, 696 00:46:19,120 --> 00:46:23,000 I can actually pick up the different IEs from the beacon 697 00:46:23,000 --> 00:46:26,260 and start fingerprinting how my home AP looks like. 698 00:46:26,740 --> 00:46:28,380 Now, how do wireless IPs, 699 00:46:28,400 --> 00:46:29,000 attackers work? 700 00:46:29,480 --> 00:46:32,000 You sniff the air, you look at probe requests, 701 00:46:32,180 --> 00:46:35,180 and you create fake APs with the same SSID, right? 702 00:46:35,320 --> 00:46:40,380 At an airport, no one can know the different IEs 703 00:46:40,380 --> 00:46:43,540 or at least some of them which your home AP uses. 704 00:46:44,080 --> 00:46:47,800 No one can know the BSSID of your access point, right? 705 00:46:48,000 --> 00:46:52,360 So, Chillum allows you to go ahead and create a rule set based on that. 706 00:46:53,040 --> 00:46:55,900 How difficult is it to create the rule set? 707 00:46:56,540 --> 00:46:57,420 Quite easy. 708 00:46:58,740 --> 00:47:02,240 You can actually go down, find the right network. 709 00:47:02,400 --> 00:47:08,380 So, I have a little network in here called OpenSysAim somewhere. 710 00:47:16,460 --> 00:47:18,480 Chillum can also find hidden SSID networks. 711 00:47:18,840 --> 00:47:21,580 That's why you see a lot of the hidden SSID stuff up there. 712 00:47:23,140 --> 00:47:23,980 Okay, here it is. 713 00:47:24,300 --> 00:47:26,300 So, let's say this is my home network. 714 00:47:26,780 --> 00:47:28,380 Now, if I wanted to create... 715 00:47:28,400 --> 00:47:31,180 If I wanted to create a rule to whitelist this home network, 716 00:47:31,360 --> 00:47:33,740 all I would have to do is right-click and say create rule. 717 00:47:34,540 --> 00:47:37,820 Now, what this does is it will pick up all the different IEs 718 00:47:37,820 --> 00:47:41,940 which are now recreated based on what I got from the Wi-Fi subsystems 719 00:47:41,940 --> 00:47:42,660 and the different APIs. 720 00:47:44,020 --> 00:47:47,580 And this actually creates quite an interesting rule. 721 00:47:47,680 --> 00:47:48,880 Let me dismiss this real quick. 722 00:47:50,880 --> 00:47:54,320 Okay, one of the things is the tool just refreshes. 723 00:47:55,300 --> 00:47:55,960 There you go. 724 00:47:56,480 --> 00:47:57,400 So, now... 725 00:47:57,400 --> 00:47:58,320 So, now... 726 00:47:58,320 --> 00:48:02,020 So, now, this actually allows you to create your own Wi-Fi firewall rule. 727 00:48:02,460 --> 00:48:04,940 At least to the best of my knowledge, this is the world's first. 728 00:48:06,680 --> 00:48:07,160 Right? 729 00:48:07,980 --> 00:48:09,420 How do we work with this? 730 00:48:09,540 --> 00:48:10,660 We can actually create a rule. 731 00:48:17,680 --> 00:48:18,160 So... 732 00:48:18,160 --> 00:48:18,240 So, now... 733 00:48:18,240 --> 00:48:19,140 So, now... 734 00:48:19,140 --> 00:48:20,040 So, now... 735 00:48:27,340 --> 00:48:28,300 So, now... 736 00:48:28,300 --> 00:48:32,500 So, now, unlike a wide-side IDS, what I figured out in the case of wireless, 737 00:48:32,820 --> 00:48:37,160 there are two times roughly when you probably want to find something wrong is going on. 738 00:48:37,440 --> 00:48:40,380 The first is when you're connecting to a network. 739 00:48:40,600 --> 00:48:46,420 And the second is there is an attack network with the same SSID as ones you're probing for. 740 00:48:46,920 --> 00:48:47,440 Right? 741 00:48:47,580 --> 00:48:53,180 So, you can tell Shellum to check at both or one of those stages. 742 00:48:53,280 --> 00:48:54,700 Let's go for both right now. 743 00:48:58,300 --> 00:49:00,900 Now, Shellum has automatically filled up a lot of the info. 744 00:49:01,000 --> 00:49:02,240 For example, the BSSID. 745 00:49:02,780 --> 00:49:05,220 And this can actually be multiple ones as well. 746 00:49:05,300 --> 00:49:06,600 I apologize for the pop-ups. 747 00:49:06,680 --> 00:49:10,220 You know, if I were to change the code to quickly kind of make that change. 748 00:49:11,500 --> 00:49:13,900 And we can actually say, can this change or not? 749 00:49:14,000 --> 00:49:15,400 No, the BSSID can't change. 750 00:49:15,540 --> 00:49:16,780 No, this will always be infrastructure. 751 00:49:17,620 --> 00:49:21,020 No, this is going to have this exact same physical layer. 752 00:49:21,560 --> 00:49:24,540 And if I'm on a fixed channel, no, this can't change as well. 753 00:49:25,020 --> 00:49:28,280 Now, one of the other interesting things which I figured out... 754 00:49:28,280 --> 00:49:31,600 ...is the attacker can never figure out your neighboring APs. 755 00:49:33,200 --> 00:49:36,740 So, I also go ahead and create a list of the neighboring APs. 756 00:49:37,400 --> 00:49:42,420 And you can tell Shellum that at least one of them or more of them have to be around... 757 00:49:42,420 --> 00:49:44,640 ...any time you see open CISAM. 758 00:49:46,040 --> 00:49:46,480 Okay? 759 00:49:47,860 --> 00:49:50,740 The attacker in the wild would never be able to figure this out. 760 00:49:51,400 --> 00:49:55,640 So, if those APs aren't around, then Shellum knows something is wrong. 761 00:49:55,780 --> 00:49:57,440 Or it's probably 3 a.m. in the night, right? 762 00:49:58,800 --> 00:50:02,200 So, you can configure that if you want or you can just let it be. 763 00:50:02,380 --> 00:50:04,120 Right now, I can just say, okay, it's fine. 764 00:50:04,260 --> 00:50:07,580 Simply because people are running stuff and many of these APs might not be around. 765 00:50:08,140 --> 00:50:12,400 Then you have capability information and then you have all of the beacon frame information. 766 00:50:13,240 --> 00:50:13,680 Right? 767 00:50:14,060 --> 00:50:20,160 And I can actually tell Shellum that this is the only set of beacon IEs which may be allowed. 768 00:50:20,780 --> 00:50:25,360 So, I can actually say, well, new IE elements cannot be present. 769 00:50:25,440 --> 00:50:26,860 If it is, then that's an anomaly. 770 00:50:26,860 --> 00:50:31,620 So, now I go back and I can say create rule. 771 00:50:32,600 --> 00:50:33,200 Okay? 772 00:50:33,200 --> 00:50:33,860 Rule created. 773 00:50:34,680 --> 00:50:38,040 Now, I can go back to my attacker setup. 774 00:50:49,400 --> 00:50:50,000 Yes. 775 00:50:50,360 --> 00:50:54,680 The entire parameter is something you can completely configure. 776 00:50:54,820 --> 00:50:56,840 Now, keep in mind, an attacker in the wild... 777 00:50:56,860 --> 00:50:58,740 The wild can never guess all the parameters correctly. 778 00:50:59,000 --> 00:50:59,700 It's just impossible. 779 00:51:01,400 --> 00:51:03,440 How do you know all the parameters in the IE? 780 00:51:03,580 --> 00:51:08,100 How do you know the BSS ID of the fake... of my home AP? 781 00:51:10,600 --> 00:51:11,940 Oh, but you're at the airport. 782 00:51:12,300 --> 00:51:16,860 And I'm talking about my home AP and my access point at my office. 783 00:51:18,440 --> 00:51:18,920 Right? 784 00:51:19,940 --> 00:51:23,700 Actually, even if you slip all the parameters and create an identical replica, 785 00:51:23,900 --> 00:51:25,280 still Shellum has some intelligence. 786 00:51:25,500 --> 00:51:26,240 I'll get to that. 787 00:51:26,400 --> 00:51:26,840 It has... 788 00:51:26,840 --> 00:51:28,100 It has something to do with clock skews. 789 00:51:29,000 --> 00:51:30,280 So, that's probably... 790 00:51:30,280 --> 00:51:30,420 Was that? 791 00:51:30,580 --> 00:51:31,740 It's possible, but it's not a problem. 792 00:51:32,180 --> 00:51:32,620 Yeah. 793 00:51:33,440 --> 00:51:38,280 It's possible and that could be the case when someone actually follows you to your home 794 00:51:38,280 --> 00:51:39,460 and clones your AP. 795 00:51:39,600 --> 00:51:43,300 Then you have bigger problems than Wi-Fi issues, right? 796 00:51:47,240 --> 00:51:52,060 So, what do you do for the point that you can have an enterprise network? 797 00:51:52,420 --> 00:51:52,860 Yes. 798 00:51:54,040 --> 00:51:54,480 Yes. 799 00:51:54,660 --> 00:51:54,920 Yes. 800 00:51:55,060 --> 00:51:56,280 So, what I did is... 801 00:51:56,280 --> 00:52:00,640 When I architected it, I actually made all the rules and everything go inside a SQLite 802 00:52:00,640 --> 00:52:00,940 database. 803 00:52:01,540 --> 00:52:05,820 So, you can just copy the rules.db to any machine, start Shellum and automatically picks 804 00:52:05,820 --> 00:52:06,380 up those rules. 805 00:52:07,380 --> 00:52:11,480 Maybe later on, if people like the tool, want to use it, we might spend more time, 806 00:52:11,500 --> 00:52:14,280 you know, kind of refining and creating a front-end tool. 807 00:52:14,360 --> 00:52:15,640 Right now, this is complete freeware. 808 00:52:18,900 --> 00:52:19,300 Okay. 809 00:52:19,400 --> 00:52:23,280 So, now let me go ahead and create a fake access point with the same name. 810 00:52:44,020 --> 00:52:50,200 So, it takes a couple of, probably a minute or so, simply because Windows only scans once 811 00:52:50,200 --> 00:52:52,520 per minute and that's when we get the results. 812 00:52:52,740 --> 00:52:55,200 Windows also caches results from time to time. 813 00:52:55,420 --> 00:52:56,260 So, we might... 814 00:52:56,260 --> 00:52:57,780 We might not get the AP immediately. 815 00:52:58,220 --> 00:52:59,540 Might take a couple of seconds. 816 00:52:59,720 --> 00:53:04,420 And now, I don't have host APD's signature in Shellum. 817 00:53:04,820 --> 00:53:05,800 But there you go. 818 00:53:06,000 --> 00:53:07,300 Do you notice Shellum actually found it? 819 00:53:07,900 --> 00:53:12,660 And it says that, hey, looks like a rule set was hit, opens his aim and this was the 820 00:53:12,660 --> 00:53:12,980 issue. 821 00:53:14,500 --> 00:53:16,380 Now, Shellum does something interesting. 822 00:53:16,600 --> 00:53:19,780 This is the part which is still a little buggy from a view perspective. 823 00:53:20,020 --> 00:53:21,720 So, I apologize if you just see a crash. 824 00:53:22,060 --> 00:53:26,240 But you can actually view and Shellum will tell you what was done. 825 00:53:45,220 --> 00:53:51,480 So, Shellum tells you, hey, you configured me and told me that when you see open SysAim, 826 00:53:51,560 --> 00:53:55,060 you should actually see all of those IEs as well with certain values. 827 00:53:55,400 --> 00:53:56,240 But I don't know. 828 00:53:56,240 --> 00:54:00,440 I don't see those when I see open SysAim right now at the airport, right? 829 00:54:00,500 --> 00:54:01,120 Or at DEF CON. 830 00:54:01,860 --> 00:54:08,680 So, this definitely is not the AP you are typically used to connecting to, right? 831 00:54:08,940 --> 00:54:12,660 Personally, I think it's going to be very, very hard to beat something like this. 832 00:54:13,220 --> 00:54:17,680 The only way is if you have complete full knowledge of the access points you're cloning 833 00:54:18,360 --> 00:54:20,300 or trying to create fake AP against. 834 00:54:20,400 --> 00:54:22,680 Of course, apart from software bugs, right? 835 00:54:22,780 --> 00:54:25,460 Here, I'm talking about conceptually the idea itself. 836 00:54:27,000 --> 00:54:30,000 There's more value to this, you know, some of the great static, 837 00:54:30,160 --> 00:54:32,900 enterprise-level things than if you are mobile. 838 00:54:34,080 --> 00:54:34,520 Right. 839 00:54:35,400 --> 00:54:35,840 Right. 840 00:54:35,900 --> 00:54:38,600 So, basically, what is the design goal, really? 841 00:54:39,320 --> 00:54:41,080 It's there in my DEF CON slides. 842 00:54:41,200 --> 00:54:43,940 But I can just pull up what was my design goal behind it. 843 00:54:45,040 --> 00:54:47,740 Just kind of go ahead and stop Shellum for a second. 844 00:54:48,280 --> 00:54:49,840 I have too many alerts right now. 845 00:54:54,300 --> 00:54:54,740 Okay. 846 00:54:55,240 --> 00:54:56,220 My first design goal. 847 00:54:56,220 --> 00:54:59,160 My design goal when I started was to build a better wireless scanner. 848 00:54:59,380 --> 00:55:01,420 I wasn't happy with what was there, at least on Windows. 849 00:55:02,680 --> 00:55:08,200 And a lot of people, at least who aren't very Linux aware, unfortunately don't know 850 00:55:08,200 --> 00:55:11,600 how to go ahead and use something like AeroDump or some of these other tools. 851 00:55:12,120 --> 00:55:17,060 This can actually even run on your Surface Pro or any of those devices as well. 852 00:55:17,200 --> 00:55:17,520 Right? 853 00:55:17,540 --> 00:55:18,380 Any Windows system. 854 00:55:19,280 --> 00:55:23,780 The second thing which I wanted was that it should be able to learn networks you connect to. 855 00:55:24,080 --> 00:55:24,520 Right? 856 00:55:24,520 --> 00:55:30,320 Similar to most IDSs, you have to decide what the baseline is, which is the first time you connect to your home network. 857 00:55:30,660 --> 00:55:33,580 You actually say, hey, this is the one which is whitelisted. 858 00:55:33,780 --> 00:55:35,340 You decide what to whitelist. 859 00:55:37,040 --> 00:55:38,740 The same goes for Office as well. 860 00:55:39,480 --> 00:55:44,700 Can Shellum tell you, look at a new network, a Starbucks, and tell you, is this good or bad? 861 00:55:44,880 --> 00:55:45,060 No. 862 00:55:45,240 --> 00:55:48,700 It's the same thing as you can't look at an EXE and say if it's malware or not. 863 00:55:49,260 --> 00:55:52,220 I mean, you can run your heuristics, but you're as good as what you have. 864 00:55:53,580 --> 00:55:54,500 However, you can run your heuristics, but you're as good as what you have. 865 00:55:54,500 --> 00:56:01,100 You can go to your nearby Starbucks for the first time and actually go ahead and add a rule set for your home Starbucks. 866 00:56:02,000 --> 00:56:02,520 Right? 867 00:56:02,900 --> 00:56:09,440 So after that, if someone does create a Starbucks, Shellum can actually tell you this isn't the Starbucks you're used to. 868 00:56:09,740 --> 00:56:15,800 Now, Shellum can actually even deal with multiple BSS IDs or multiple values. 869 00:56:16,000 --> 00:56:24,260 I'm going to shut it down, but you can right-click, create a rule on just an SSID, and it will automatically pick up many of the BSS IDs. 870 00:56:24,260 --> 00:56:24,940 It sees around. 871 00:56:25,660 --> 00:56:30,960 So this rule would actually be like an aggregate rule for multiple SSID BSS ID combinations. 872 00:56:33,020 --> 00:56:33,540 Right? 873 00:56:33,700 --> 00:56:45,760 Of course, the only time that would work is if most of those APs are similar, or else you would be significantly diluting the rule by having to ignore the differences between different APs. 874 00:56:46,120 --> 00:56:50,660 If you have a wireless controller as in an enterprise, this won't be a problem at all. 875 00:56:50,720 --> 00:56:53,260 Because you have the exact same characteristics. 876 00:56:53,260 --> 00:56:57,160 Characteristics kind of push to all the endpoints or all the access points. 877 00:56:57,740 --> 00:56:58,380 Right? 878 00:57:00,860 --> 00:57:03,100 Any other question about this? 879 00:57:06,080 --> 00:57:06,720 Yeah. 880 00:57:10,420 --> 00:57:11,800 That's a very good question. 881 00:57:12,100 --> 00:57:17,380 So what do we depend on right now is the wireless subsystems. 882 00:57:17,640 --> 00:57:18,740 So let me... 883 00:57:18,740 --> 00:57:19,960 This could be interesting. 884 00:57:21,300 --> 00:57:22,900 This is more of the architecture. 885 00:57:23,260 --> 00:57:24,000 Of the tool. 886 00:57:32,920 --> 00:57:37,740 Just going to start with a clean slate just so that everyone can see how that changes. 887 00:57:47,360 --> 00:57:47,800 Okay. 888 00:57:48,060 --> 00:57:49,180 Now, what do we do? 889 00:57:49,240 --> 00:57:50,900 We do not sniff the air. 890 00:57:51,540 --> 00:57:52,940 At least for version one. 891 00:57:53,260 --> 00:57:53,740 Okay? 892 00:57:55,020 --> 00:58:01,720 So we look at the entire Wi-Fi subsystem and pull all of that data out from Wi-Fi APIs. 893 00:58:02,320 --> 00:58:05,240 Little events happening on the network subsystem. 894 00:58:05,400 --> 00:58:09,800 So if I actually go in here, you'll automatically notice Chellam gives you a scan complete. 895 00:58:10,020 --> 00:58:11,840 WLAN notifications scan complete. 896 00:58:12,320 --> 00:58:14,200 WLAN notification network available. 897 00:58:14,480 --> 00:58:14,720 Right? 898 00:58:14,820 --> 00:58:21,200 So in Windows, all of these different subsystems are continuously interacting, raising events, sending stuff to each other. 899 00:58:22,200 --> 00:58:24,160 I'll disable the alerts for a second. 900 00:58:26,120 --> 00:58:33,560 And we can actually go and configure which exact events of the subsystem you want Chellam to monitor. 901 00:58:34,600 --> 00:58:35,040 Right? 902 00:58:35,060 --> 00:58:39,800 So when I was building it, I wasn't very sure about what events give me what data. 903 00:58:39,940 --> 00:58:42,200 Each of these events actually gives me a ton of data. 904 00:58:42,820 --> 00:58:47,520 So then I had to go on and parse all of those event data logs and look at, okay, you know, this is interesting. 905 00:58:47,600 --> 00:58:48,120 This isn't. 906 00:58:48,400 --> 00:58:51,180 But then we finally went ahead and kind of created this. 907 00:58:51,180 --> 00:58:54,240 We created an interface where you could select the events you want to log. 908 00:58:54,940 --> 00:58:59,520 So at this point, some of these events have happened per se. 909 00:58:59,640 --> 00:59:02,080 And that's the reason why we have it on scanning mode. 910 00:59:02,400 --> 00:59:08,200 So if you are connected to an access point, once we get an event which says connected, you're already connected. 911 00:59:08,520 --> 00:59:11,080 We could disable the interface and disconnect you. 912 00:59:11,280 --> 00:59:14,980 But the Windows subsystem informs us that it has happened. 913 00:59:15,820 --> 00:59:17,980 What are we doing in Chellam version 2? 914 00:59:19,000 --> 00:59:25,960 I'm actually writing an intermediate driver which will sit above the mini port just below the protocol driver. 915 00:59:26,640 --> 00:59:32,160 And this will actually look at all the packets which basically go up and down from the mini port to the protocol. 916 00:59:32,860 --> 00:59:38,120 So when we go ahead and say that, hey, this is the AP beacon we would like to whitelist, 917 00:59:39,200 --> 00:59:46,040 then the intermediate driver sitting down below sees an attack traffic for the same SSID 918 00:59:46,040 --> 00:59:47,960 and automatically drops it. 919 00:59:47,980 --> 00:59:53,880 Exactly the same way as wired side personal firewalls work today, right? 920 00:59:53,900 --> 00:59:55,760 They have a kernel mode component which does this. 921 00:59:56,060 --> 01:00:01,720 So we would do the exact same thing and all you would see is a little alert saying the threat was mitigated. 922 01:00:02,000 --> 01:00:05,940 But the only way is going to be a callout driver or an intermediate driver. 923 01:00:06,920 --> 01:00:09,600 Microsoft's recommended way right now is to write a callout driver. 924 01:00:10,100 --> 01:00:12,200 There isn't any documentation at all. 925 01:00:12,280 --> 01:00:14,260 So it kind of takes some time to find it out. 926 01:00:14,680 --> 01:00:17,600 Second, once I had the initial driver ready, 927 01:00:17,600 --> 01:00:23,320 what I figured is it has to be co-signed by Microsoft now for Windows 10 and above. 928 01:00:23,560 --> 01:00:26,540 So the co-signing might take us some amount of time to achieve. 929 01:00:26,720 --> 01:00:31,980 But in the next four months, you should probably see the callout driver version available as well. 930 01:00:32,220 --> 01:00:36,140 Of course, it takes some time to even check the drivers are stable or not, right? 931 01:00:36,240 --> 01:00:38,060 If the driver crashes, your system crashes. 932 01:00:38,840 --> 01:00:42,040 Right now, Chellum can run comfortably. 933 01:00:42,380 --> 01:00:46,400 You can even disable your wireless and Chellum wouldn't crash or complain, 934 01:00:46,580 --> 01:00:47,580 simply because it depends on your system. 935 01:00:47,600 --> 01:00:48,760 It depends on the event-based systems. 936 01:00:51,100 --> 01:00:52,100 Any questions? 937 01:00:55,780 --> 01:00:57,420 This will be complete freeware. Yeah. 938 01:01:00,360 --> 01:01:00,860 Yeah. 939 01:01:09,380 --> 01:01:11,220 You have to enable validate certificates. 940 01:01:11,860 --> 01:01:14,400 From what I've seen, if you don't enable validate certificates, 941 01:01:15,860 --> 01:01:17,820 regardless of whatever servers you've mentioned, 942 01:01:18,660 --> 01:01:19,820 should kind of allow you. 943 01:01:20,220 --> 01:01:23,940 I mean, at least in Windows 7, I had checked that when I initially tried it. 944 01:01:24,020 --> 01:01:24,800 But you can try it out. 945 01:01:25,260 --> 01:01:27,800 Logically, unless you enforce validate certificate, 946 01:01:28,280 --> 01:01:29,660 well, everything else is insecure, 947 01:01:30,300 --> 01:01:32,200 regardless of whether you have the names in or not. 948 01:01:38,660 --> 01:01:39,580 Yeah. Yeah. 949 01:01:39,860 --> 01:01:43,100 You just have to go ahead and add your certificate in there and remove the rest. 950 01:01:43,880 --> 01:01:44,320 Right? 951 01:01:44,440 --> 01:01:49,200 Actually, a lot of enterprise firewalls do deep packet inspection using exactly that technique. 952 01:01:49,780 --> 01:01:55,100 They would add the firewall certificate as like a root CA certificate on your list of certs. 953 01:01:55,260 --> 01:02:00,200 And then that transparently issues certificates for any of the domains you're trying to access. 954 01:02:00,500 --> 01:02:02,600 And then they can actually look inside the packet. 955 01:02:02,740 --> 01:02:03,380 So, yes. 956 01:02:03,460 --> 01:02:04,940 And you have to just remove the rest of them. 957 01:02:06,820 --> 01:02:07,680 You could do that. 958 01:02:12,040 --> 01:02:12,480 Questions? 959 01:02:19,560 --> 01:02:20,260 Okay. Great. 960 01:02:21,060 --> 01:02:22,620 So, we have around 20 minutes. 961 01:02:22,780 --> 01:02:26,600 And let's do a quick demo for people who are around. 962 01:02:26,700 --> 01:02:27,860 And then we can help out. 963 01:02:28,700 --> 01:02:31,440 If you have any other questions, you can ask us. 964 01:02:32,360 --> 01:02:35,260 WPA, WPA Enterprise, or anything related to Wi-Fi security. 965 01:02:35,620 --> 01:02:36,920 Here is the resident expert. 966 01:02:37,800 --> 01:02:39,320 Any questions of AeroDump? 967 01:02:39,460 --> 01:02:42,960 I mean, every single time Thomas demos AeroDump in the classes we teach together, 968 01:02:43,180 --> 01:02:44,360 I learn some new stuff. 969 01:02:44,600 --> 01:02:46,680 Some new interesting feature which I never knew about. 970 01:02:47,160 --> 01:02:47,580 So, hey. 971 01:02:47,900 --> 01:02:50,180 You know, if you had AeroDump questions, he's your guy. 972 01:02:52,080 --> 01:02:52,520 Okay. 973 01:02:52,600 --> 01:02:54,380 So, we'll start the labs. 974 01:02:56,100 --> 01:02:57,800 Does everyone have a Kali VM? 975 01:02:58,020 --> 01:02:59,980 Whoever wants to do the labs live. 976 01:03:00,160 --> 01:03:02,840 And then I can go through the processes step by step. 977 01:03:04,120 --> 01:03:07,640 And as I said, I'm doing a 3 o'clock talk today. 978 01:03:07,640 --> 01:03:14,820 And I'm doing a 12 o'clock talk tomorrow in DEF CON on creating your own network IDS 979 01:03:15,440 --> 01:03:21,500 by taking PCAP files, converting the packets into SQLite database tables, 980 01:03:21,740 --> 01:03:23,640 and then running arbitrary queries on them. 981 01:03:24,060 --> 01:03:29,580 So, if you always thought of how you could begin with network forensics for Wi-Fi, 982 01:03:29,720 --> 01:03:31,240 that talk can be interesting. 983 01:03:32,200 --> 01:03:32,700 Right? 984 01:03:32,820 --> 01:03:34,200 But beware, things may crash. 985 01:03:34,480 --> 01:03:36,180 I mean, looking at the kind of traffic I see, 986 01:03:37,040 --> 01:03:38,800 my tool is really being tested. 987 01:03:39,160 --> 01:03:41,300 So, but I have videos. 988 01:03:42,940 --> 01:03:45,160 So, just in case everything crashes and burns. 989 01:03:45,880 --> 01:03:46,300 Okay. 990 01:03:46,620 --> 01:03:47,580 Let's start the labs. 991 01:03:54,880 --> 01:03:55,300 Okay. 992 01:04:04,000 --> 01:04:06,060 How many of you want to try out the labs? 993 01:04:06,980 --> 01:04:07,340 Okay. 994 01:04:07,700 --> 01:04:09,800 Can everyone just move to this side? 995 01:04:09,980 --> 01:04:12,380 It's just easier for us to probably move around and help you out. 996 01:04:13,540 --> 01:04:18,440 And you can just raise your hand so that we know you have a laptop and you want to do the labs. 997 01:04:18,500 --> 01:04:18,660 Right? 998 01:04:20,620 --> 01:04:24,880 1, 2, 3, 4, 5, 6, 7. 999 01:04:27,400 --> 01:04:27,760 Okay. 1000 01:04:28,080 --> 01:04:29,740 So, we have 7 people here. 1001 01:04:36,180 --> 01:04:38,920 I think they're not going to do anything. 1002 01:04:39,120 --> 01:04:39,640 Can I get my laptop back? 1003 01:04:39,900 --> 01:04:40,260 Right here. 1004 01:04:40,680 --> 01:04:45,000 So, I can get out my laptop. 1005 01:04:45,000 --> 01:04:45,820 Oh, it's already been sold. 1006 01:04:45,940 --> 01:04:46,180 Okay. 1007 01:04:48,120 --> 01:04:50,680 I probably will only go after my decks . 1008 01:04:52,020 --> 01:04:53,500 What if we wanted to participate? 1009 01:04:55,180 --> 01:04:55,660 Okay. 1010 01:04:56,360 --> 01:04:57,780 Let's give this out to Beth. 1011 01:04:57,920 --> 01:04:58,660 Oh, sure. 1012 01:05:00,480 --> 01:05:05,400 And if you're in the vendor area, if you're giving out the hacker gadget and the Linux 1013 01:05:05,400 --> 01:05:06,160 Forensic Booktrap, or if you've included that, you're giving out the hacker gadget and the Linux 1014 01:05:06,160 --> 01:05:12,260 together at $40. So the Hacker Gadget book is really how to create your own supercharged 1015 01:05:12,260 --> 01:05:19,140 Wi-Fi pineapple using OpenWrt. So you can actually go ahead and install OpenWrt, port 1016 01:05:19,140 --> 01:05:24,040 all the packages and all of that on it, and then you can create your own pineapple if 1017 01:05:24,040 --> 01:05:29,500 you want. Or you can just plug on the pineapple and enjoy, whatever you like to do. 1018 01:05:33,460 --> 01:05:58,120 So, yeah. Okay. So I'm going to start the labs, given we have 1019 01:05:59,500 --> 01:06:00,520 less amount of time. 1020 01:06:36,280 --> 01:06:36,980 Okay. 1021 01:07:10,340 --> 01:07:14,320 Okay. So there are two ways to go ahead and 1022 01:07:14,820 --> 01:07:23,000 create an access point using either an external access point, such as the TP-Link one which 1023 01:07:23,000 --> 01:07:28,740 you have, or you can create an internal one using host APD like the one which I did, right? 1024 01:07:29,500 --> 01:07:33,140 Both of them are pretty much equivalent, so we'll use the external one because we don't 1025 01:07:33,140 --> 01:07:35,140 have enough wireless cards for all of you. 1026 01:07:47,960 --> 01:07:48,360 Okay. 1027 01:07:52,660 --> 01:07:53,060 Okay. 1028 01:07:53,540 --> 01:07:53,940 Okay. 1029 01:07:54,240 --> 01:07:54,420 Okay. 1030 01:07:54,520 --> 01:07:54,860 Okay. 1031 01:07:55,980 --> 01:07:56,380 Okay. 1032 01:07:56,660 --> 01:07:56,800 Okay. 1033 01:07:56,800 --> 01:07:56,880 Okay. 1034 01:07:56,880 --> 01:07:56,960 Okay. 1035 01:07:56,960 --> 01:07:57,040 Okay. 1036 01:07:58,580 --> 01:07:58,980 Okay. 1037 01:07:59,080 --> 01:07:59,400 Okay. 1038 01:08:08,240 --> 01:08:09,640 Okay. 1039 01:08:12,780 --> 01:08:14,180 Okay. 1040 01:08:27,460 --> 01:08:27,820 Okay. 1041 01:08:29,280 --> 01:08:29,480 Okay. 1042 01:08:40,760 --> 01:08:49,560 Okay, so in the case that you have a real access point, the setup would work like this, 1043 01:08:49,660 --> 01:08:49,780 right? 1044 01:08:49,880 --> 01:08:57,980 I have my Kali VM running inside VirtualBox and I have my network connection which is 1045 01:08:57,980 --> 01:09:01,320 bridged to my wired adapter, okay? 1046 01:09:01,980 --> 01:09:06,760 This is important because we want the access point to be able to talk to the Radius server 1047 01:09:06,760 --> 01:09:07,240 directly. 1048 01:09:08,240 --> 01:09:09,560 So you have to bridge it. 1049 01:09:10,300 --> 01:09:16,120 At the very same time, the TP link which you've been given has a switch on the side and sure 1050 01:09:16,120 --> 01:09:18,120 it is set to 3G, 4G. 1051 01:09:18,240 --> 01:09:19,420 That's the default config. 1052 01:09:19,960 --> 01:09:24,280 I know most of us when we see a switch, we have to toggle it. 1053 01:09:24,280 --> 01:09:29,540 But if you change it from 3G, 4G to anything else, the DHCP server will stop. 1054 01:09:30,700 --> 01:09:31,680 Oh, thanks. 1055 01:10:00,140 --> 01:10:03,580 Now, once you do that, you can start your Kali VM. 1056 01:10:07,760 --> 01:10:12,380 Ensure you plug in the Ethernet connection of the access point as well. 1057 01:10:13,740 --> 01:10:14,220 Okay. 1058 01:10:17,200 --> 01:10:17,680 Okay. 1059 01:10:18,260 --> 01:10:18,320 Okay. 1060 01:10:20,360 --> 01:10:20,840 Okay. 1061 01:10:21,460 --> 01:10:21,940 Okay. 1062 01:10:22,540 --> 01:10:22,660 Okay. 1063 01:10:23,360 --> 01:10:23,840 Okay. 1064 01:10:23,880 --> 01:10:24,060 Okay. 1065 01:10:24,060 --> 01:10:24,160 Okay. 1066 01:10:37,680 --> 01:10:39,080 Okay. 1067 01:10:40,100 --> 01:10:41,500 Okay. 1068 01:10:42,080 --> 01:10:43,360 Okay. 1069 01:10:44,220 --> 01:10:44,900 Okay. 1070 01:10:45,760 --> 01:10:47,160 Okay. 1071 01:10:47,900 --> 01:10:47,980 Okay. 1072 01:10:47,980 --> 01:10:49,080 Okay. 1073 01:10:49,200 --> 01:10:49,400 Okay. 1074 01:10:52,720 --> 01:10:54,120 Okay. 1075 01:10:54,120 --> 01:10:54,140 Okay. 1076 01:11:00,620 --> 01:11:03,420 Thank you. 1077 01:11:54,060 --> 01:11:54,120 Thank you. 1078 01:12:21,340 --> 01:12:24,140 Thank you. 1079 01:12:32,180 --> 01:12:34,980 Thank you. 1080 01:12:59,860 --> 01:13:04,480 Okay, if any of you do not have Free Radius D installed, 1081 01:13:05,040 --> 01:13:06,540 then I'm just passing a USB. 1082 01:13:06,680 --> 01:13:08,440 You can just copy it inside your VM, right? 1083 01:13:08,580 --> 01:13:09,760 You can copy it and pass it around. 1084 01:13:12,360 --> 01:13:14,420 The process actually is quite simple 1085 01:13:15,020 --> 01:13:17,560 to configure and install Free Radius. 1086 01:13:18,080 --> 01:13:19,840 You can just have a look on the screen 1087 01:13:19,840 --> 01:13:21,800 while the USB is being passed around. 1088 01:13:24,160 --> 01:13:24,500 Yeah. 1089 01:13:27,120 --> 01:13:30,460 So once you go ahead and unzip the USB, 1090 01:13:31,180 --> 01:13:32,440 sorry, unzip the file, 1091 01:13:32,540 --> 01:13:34,200 wifi-class.zip on the USB, 1092 01:13:34,920 --> 01:13:38,660 you can go to a directory called wpaent for enterprise. 1093 01:13:42,580 --> 01:13:49,280 And there is a little file in here called kali.txt. 1094 01:13:49,920 --> 01:13:53,760 This just contains very simple commands to untar, 1095 01:13:53,760 --> 01:14:00,160 patch, and compile and install Free Radius WPE. 1096 01:14:04,920 --> 01:14:05,980 Yeah, yeah. 1097 01:14:07,120 --> 01:14:09,960 I think this, this, do you remember who wrote this patch? 1098 01:14:11,240 --> 01:14:13,600 No, I have an updated patch somewhere. 1099 01:14:13,880 --> 01:14:14,640 Okay, okay. 1100 01:14:17,620 --> 01:14:18,980 I will post it soon. 1101 01:14:24,060 --> 01:14:26,160 And you can just run the file. 1102 01:14:26,300 --> 01:14:31,400 I mean, and it should automatically compile and install Free Radius D. 1103 01:14:32,080 --> 01:14:32,560 Okay. 1104 01:14:57,100 --> 01:14:57,500 . 1105 01:15:02,980 --> 01:15:03,380 Okay. 1106 01:15:04,620 --> 01:15:06,560 If you have the USB, you can pass it around. 1107 01:15:06,740 --> 01:15:09,200 Or if you have Radio SD already installed with you. 1108 01:15:10,220 --> 01:15:10,620 . 1109 01:15:13,840 --> 01:15:14,240 . 1110 01:15:17,000 --> 01:15:17,400 . 1111 01:15:17,400 --> 01:15:17,980 . 1112 01:15:17,980 --> 01:15:18,160 . 1113 01:15:18,160 --> 01:15:18,340 . 1114 01:15:18,340 --> 01:15:18,560 . 1115 01:15:18,560 --> 01:15:19,100 . 1116 01:15:19,100 --> 01:15:19,140 . 1117 01:15:19,140 --> 01:15:19,180 . 1118 01:15:19,180 --> 01:15:19,200 . 1119 01:15:19,200 --> 01:15:19,240 . 1120 01:15:35,320 --> 01:15:37,500 Thank you. 1121 01:15:53,760 --> 01:15:56,200 You can just run the .slash Kali.txt. 1122 01:15:56,640 --> 01:15:59,400 These are just shell commands, so it will automatically run it. 1123 01:15:59,460 --> 01:16:00,720 You don't have to type any of those in. 1124 01:16:04,420 --> 01:16:09,760 Once you have the zip file, you could just run it as a bash script. 1125 01:16:09,960 --> 01:16:12,000 I've called it a .txt, but it would just run. 1126 01:16:14,620 --> 01:16:18,080 It just untars the FreeRadius server, patches it, 1127 01:16:18,200 --> 01:16:22,440 and just does the regular make, make, install, and ldconfig 1128 01:16:22,440 --> 01:16:25,620 just to ensure all the libraries are immediately available for use. 1129 01:16:44,900 --> 01:16:45,300 Okay. 1130 01:16:46,160 --> 01:16:48,360 So because we are so close to running out of time, 1131 01:16:48,460 --> 01:16:52,240 I'll just show you how to go through the process just after this. 1132 01:17:10,240 --> 01:17:14,000 So once you do that, the process is actually quite straightforward. 1133 01:17:14,280 --> 01:17:15,300 It isn't complicated at all. 1134 01:17:15,420 --> 01:17:20,180 So just have a look at the screen and can try it out in case we run out of time. 1135 01:17:22,020 --> 01:17:22,420 Once you do that, the process is actually quite straightforward. 1136 01:17:22,440 --> 01:17:24,600 Once you download, install, and compile this, 1137 01:17:25,280 --> 01:17:28,520 you just have to configure your Radius server 1138 01:17:29,280 --> 01:17:32,920 on both the access point, first to begin with. 1139 01:17:33,320 --> 01:17:39,580 So the default IP address of the AP is 192.168.0.254, 1140 01:17:39,680 --> 01:17:42,720 the one you have, or later on, whichever one you use. 1141 01:17:44,020 --> 01:17:48,660 And you can find the WPA settings 1142 01:17:50,140 --> 01:17:51,380 by going to Wireless. 1143 01:18:06,780 --> 01:18:10,640 And then you can fill up the appropriate IP address. 1144 01:18:10,920 --> 01:18:17,200 You can easily find what IP address you have through the Kali VM. 1145 01:18:18,160 --> 01:18:21,700 And if you notice, the IP address given to me by the router, 1146 01:18:21,820 --> 01:18:22,420 because I have the IP address given to me by the router, 1147 01:18:22,420 --> 01:18:23,900 I've kind of bridged the interfaces, 1148 01:18:24,720 --> 01:18:27,900 is 198.168.0.101. 1149 01:18:28,660 --> 01:18:31,060 Pretty much all of you should have that as well, 1150 01:18:31,200 --> 01:18:33,820 because that's the first IP address to be handed out in the range. 1151 01:18:35,980 --> 01:18:38,400 So we can put in that IP address. 1152 01:18:39,600 --> 01:18:43,460 The Radius port 1812 is always the same, 1153 01:18:43,480 --> 01:18:45,460 unless you've changed it for some reason in the config. 1154 01:18:46,060 --> 01:18:48,960 And then you have something called the Radius password. 1155 01:18:49,580 --> 01:18:52,400 So let's actually figure out how to set this up. 1156 01:18:55,620 --> 01:18:59,900 So we have to go to the Radius server config directory, 1157 01:19:00,100 --> 01:19:05,620 which is at user-local-atc-rad-db. 1158 01:19:06,880 --> 01:19:08,360 user-local-atc-rad-db. 1159 01:19:08,360 --> 01:19:09,480 user-local-atc-rad-db. 1160 01:19:09,560 --> 01:19:13,160 user-local-atc-rad-db. 1161 01:19:13,160 --> 01:19:15,940 user-local-atc-rad-db. 1162 01:19:15,940 --> 01:19:18,540 user-local-atc-rad-db. 1163 01:19:19,880 --> 01:19:21,480 Now this contains 1164 01:19:21,480 --> 01:19:22,380 all the IP address settings. 1165 01:19:22,380 --> 01:19:23,960 of your radius server 1166 01:19:23,960 --> 01:19:25,020 config files 1167 01:19:25,020 --> 01:19:28,220 the certificate which you generate and all 1168 01:19:28,220 --> 01:19:29,980 of that. So we can generate 1169 01:19:29,980 --> 01:19:32,260 a temporary certificate if we 1170 01:19:32,260 --> 01:19:32,700 wanted to 1171 01:19:34,180 --> 01:19:36,080 by going inside 1172 01:19:36,080 --> 01:19:38,120 certs and then just 1173 01:19:38,120 --> 01:19:39,800 typing . slash bootstrap 1174 01:19:52,540 --> 01:19:53,100 and 1175 01:19:55,180 --> 01:19:56,680 once you do that 1176 01:19:57,420 --> 01:19:59,600 we can then finally go to a file called 1177 01:19:59,600 --> 01:20:00,560 clients.conf 1178 01:20:03,420 --> 01:20:04,820 where we have to give 1179 01:20:04,820 --> 01:20:07,900 a range for the client 1180 01:20:07,900 --> 01:20:09,620 to the radius server. The access 1181 01:20:09,620 --> 01:20:11,420 point is the radius server's client 1182 01:20:12,940 --> 01:20:13,500 right? 1183 01:20:13,560 --> 01:20:14,640 So we can actually go in there 1184 01:20:14,640 --> 01:20:16,320 and this should be 1185 01:20:17,900 --> 01:20:19,020 line 196 1186 01:20:21,820 --> 01:20:23,260 in the clients.conf 1187 01:20:23,260 --> 01:20:25,580 and you can just uncomment 1188 01:20:25,580 --> 01:20:26,160 this section. 1189 01:20:33,420 --> 01:20:35,460 So as you can notice the shared secret 1190 01:20:35,460 --> 01:20:37,480 is testing 123-1 1191 01:20:38,840 --> 01:20:39,520 which is 1192 01:20:39,520 --> 01:20:41,520 this here. You already set 1193 01:20:41,520 --> 01:20:41,740 it. 1194 01:20:56,800 --> 01:20:59,860 Then you can save your settings, 1195 01:21:01,240 --> 01:21:03,340 restart your router if it prompts you 1196 01:21:06,440 --> 01:21:09,500 and at the other end, you can 1197 01:21:09,520 --> 01:21:09,780 just keep the local IP address for your client. 1198 01:21:09,780 --> 01:21:11,620 Now all you have to do is start the radius 1199 01:21:11,620 --> 01:21:11,960 server 1200 01:21:13,340 --> 01:21:15,420 with the hyphen s hyphen x option. 1201 01:21:24,300 --> 01:21:26,780 So once you do that, when a client 1202 01:21:26,780 --> 01:21:28,180 connects to the access point 1203 01:21:28,800 --> 01:21:31,180 the AP will start talking over 1204 01:21:31,180 --> 01:21:32,740 EAP to the radius server. 1205 01:21:33,780 --> 01:21:35,540 And all of those messages would be 1206 01:21:35,540 --> 01:21:39,360 encapsulated, go back and forth. The fakes are 1207 01:21:39,360 --> 01:21:43,320 certificate would be put out and then the attack would be conducted. I'll just show 1208 01:21:43,320 --> 01:21:58,040 you that in a bit. Okay, so I'll just show you the last step and, you know, we've kind 1209 01:21:58,040 --> 01:22:03,780 of finished our time, but you can set your laptops up at the back and we can help you 1210 01:22:03,780 --> 01:22:21,960 or people who would like to do the demos, right? Okay, thank you. Okay guys, thank you, 1211 01:22:21,980 --> 01:22:25,320 thank you very much and if you want to do the demos, you can just set it up in the back 1212 01:22:25,320 --> 01:22:27,560 and we'll be there to help you. Thanks.