1 00:00:00,000 --> 00:00:04,200 So we are now ready for our third presentation of the day, our third 2 00:00:04,200 --> 00:00:09,900 presentation of the day. Alex from, you're from Bulgaria, correct? 3 00:00:10,080 --> 00:00:16,780 From Bulgaria, right. So it is my pleasure to introduce to you, going to be giving a 4 00:00:16,780 --> 00:00:31,340 talk on WPAsec, Alex Donov. Thank you, guys. So today I will talk about the WPAsec, which 5 00:00:31,340 --> 00:00:39,280 is currently the largest known handshake, WPA handshake database. So what exactly is 6 00:00:39,280 --> 00:00:46,260 this? We are doing collection and processing of wireless network captures, which are 7 00:00:46,260 --> 00:00:46,600 submitted. 8 00:00:46,780 --> 00:00:53,780 By our users. Then we identify these handshakes. We maintain carefully crafted dictionaries 9 00:00:54,780 --> 00:01:02,820 to check it down. And there are contributors that are contributing their GPU power. So 10 00:01:02,820 --> 00:01:09,480 we can try to crack these handshakes and submit all the results in real time, which are available. 11 00:01:11,360 --> 00:01:15,660 So WPAsec works with several open source tools. 12 00:01:16,620 --> 00:01:23,060 WPAsec is also open source. And you can see over there, whenever you slide the live 13 00:01:23,060 --> 00:01:30,800 installation, and the GitHub repository for it. So we are using the HCX tools for handshake 14 00:01:30,800 --> 00:01:38,160 identification. HCX tools is a very interesting set of tools. It's pretty new, it's developed 15 00:01:38,160 --> 00:01:45,640 since one year, maybe a bit more. And the other is well known. It's called the WPAsec. 16 00:01:45,660 --> 00:01:47,160 It's really like an old gate. It's like an old 17 00:01:47,160 --> 00:01:50,640 It's done over in a very recent position on the PC. So we have a lot of work going on. 18 00:02:00,180 --> 00:02:01,940 CUDA,WPG. 19 00:02:01,940 --> 00:02:09,000 WordPress, you can also do a lot of work for our users. And we do this. We have a lot of work to do for our customers. 20 00:02:09,000 --> 00:02:16,160 location. So the brief stats about the service, we now have more than half a 21 00:02:16,160 --> 00:02:24,640 million handshakes submitted. As you see there, we're doing this since 2011, so 22 00:02:24,640 --> 00:02:31,840 this is a lot of, those are a lot of handshakes. You see the route capture data 23 00:02:31,840 --> 00:02:39,740 and our success is around 27 percent. No algorithm generation was 24 00:02:39,740 --> 00:02:46,080 hitting around 5 percent, but I'm sure we can do better there. And from our 25 00:02:46,080 --> 00:02:51,060 crafted dictionaries, it's around 10 percent of the case plates already cracked, 26 00:02:51,240 --> 00:02:58,840 because as you know, this is pretty greedy algorithm to crack and these are 27 00:02:58,840 --> 00:03:01,740 the good results there. Of course, we are striving 28 00:03:01,740 --> 00:03:10,380 for more. The geo distribution based on WeGO results, you can see that there is 29 00:03:10,380 --> 00:03:18,640 almost, there is no place where you can't have handshakes there. So a lot of 30 00:03:18,640 --> 00:03:27,780 people are submitting, our users are around 40,000. So this is pretty much 31 00:03:27,780 --> 00:03:31,680 very interesting to see how and what they're using in 32 00:03:31,680 --> 00:03:34,420 users using on different parts of the world. 33 00:03:35,660 --> 00:03:39,440 So, let's see what we're doing there. 34 00:03:40,770 --> 00:03:42,360 First, we have to get the handshake. 35 00:03:43,090 --> 00:03:45,880 We all know that how does this happen. 36 00:03:46,220 --> 00:03:49,020 We all have been using, back in time, 37 00:03:49,060 --> 00:03:52,560 the old-school AP attack to authenticate active clients 38 00:03:52,560 --> 00:03:53,840 and get the handshake, right? 39 00:03:56,310 --> 00:04:00,420 This is very good because we can extract the APBSCD 40 00:04:00,420 --> 00:04:03,000 and then we can geolocate that AP, 41 00:04:03,160 --> 00:04:07,420 but as you also know, in crowded areas, 42 00:04:08,280 --> 00:04:11,340 or do bad connections, transmission, et cetera, 43 00:04:12,020 --> 00:04:13,740 we maybe, in some places, 44 00:04:13,780 --> 00:04:16,300 have to apply the APNOS correction. 45 00:04:17,440 --> 00:04:21,700 Of course, we can do better and do APLS attack, 46 00:04:21,940 --> 00:04:23,820 so we can attack directly the client, 47 00:04:24,540 --> 00:04:28,120 which is also not so new thing, at least, 48 00:04:28,760 --> 00:04:30,400 and there is no need 49 00:04:30,400 --> 00:04:33,100 for an APNOS correction since we control the workflow 50 00:04:33,100 --> 00:04:36,940 with that client, and here, we have to be very fast. 51 00:04:37,540 --> 00:04:40,360 We have to work better and there is no need 52 00:04:40,360 --> 00:04:42,780 for APNOS correction, and of course, 53 00:04:42,800 --> 00:04:46,060 we can leverage some more interesting attacks 54 00:04:46,060 --> 00:04:47,140 on high levels. 55 00:04:48,540 --> 00:04:51,080 The tool that we are suggesting to use 56 00:04:51,640 --> 00:04:54,680 for submissions in WPSX is HCX dump tool, 57 00:04:54,780 --> 00:04:58,840 which is part of HCX tools, and since, 58 00:04:58,840 --> 00:05:03,140 last week, it have a lot of more interesting features. 59 00:05:04,080 --> 00:05:06,940 And of course, before submitting to the database, 60 00:05:07,340 --> 00:05:10,760 please don't clean, work on this, 61 00:05:10,980 --> 00:05:13,220 and do anything with these captures 62 00:05:13,220 --> 00:05:16,900 because you may destroy some valuable information 63 00:05:16,900 --> 00:05:17,960 that's in there. 64 00:05:19,960 --> 00:05:22,200 The cracking part is also very well known. 65 00:05:23,220 --> 00:05:28,560 You know, I don't think that I have to explain that, 66 00:05:28,840 --> 00:05:35,860 but basically, PBKDF2, it is HHA1, 67 00:05:37,900 --> 00:05:42,320 and after that, depending on the version of the WPA, 68 00:05:42,540 --> 00:05:45,500 we're using the HMAC-MD5, HMAC-HCA1, 69 00:05:46,120 --> 00:05:51,300 or with WPA2-CMAC, we're using OMAC. 70 00:05:51,780 --> 00:05:54,280 So this is all implemented in John the Ripper 71 00:05:54,560 --> 00:05:58,820 and Hashcat, and of course, it's implemented in WPA6, 72 00:05:58,820 --> 00:06:01,940 a server-side, so we can do it better. 73 00:06:04,210 --> 00:06:05,180 About the NANDs correction. 74 00:06:06,290 --> 00:06:08,040 We all know about the NANDs correction, 75 00:06:08,180 --> 00:06:10,980 and we are very much using it 76 00:06:10,980 --> 00:06:13,340 because we don't know to spend years 77 00:06:13,340 --> 00:06:16,900 or many GPU power to crack something 78 00:06:16,900 --> 00:06:19,100 that can be cracked in the end. 79 00:06:21,490 --> 00:06:25,500 We can also try to rely on replay counter feed, 80 00:06:25,640 --> 00:06:28,800 so we have to know what exactly is correct. 81 00:06:28,800 --> 00:06:35,680 the non-correction we'll use, but this is not a very good solution because often 82 00:06:35,680 --> 00:06:46,480 the APs keep the same play counter field. So from the database, around 5% of all 83 00:06:46,480 --> 00:06:50,440 these half a million handshakes that were cracked, because not 84 00:06:51,040 --> 00:06:56,920 every one of this half million was cracked of course, just 27%, so we needed 85 00:06:56,920 --> 00:07:02,700 the non-correction in 5% of these handshakes. The non-correction can be 86 00:07:02,700 --> 00:07:09,640 negative or positive if you see the persons, and can be implemented as a 87 00:07:09,640 --> 00:07:14,140 mathematics with the Bikendian and Lohinian. Here you see the results of 88 00:07:14,140 --> 00:07:20,140 course, a lot of the routers are MIPS based. So Bikendian, and it's normal to see 89 00:07:20,140 --> 00:07:26,780 around 90% of them. Now, again of course, the HCX tools can deal with the 90 00:07:26,780 --> 00:07:36,520 situations and can reduce this a lot. So, the new kit on the block, the PNKID, 91 00:07:41,180 --> 00:07:45,540 I believe Atom wrote on the forum post about that, and the last version of 92 00:07:47,160 --> 00:07:53,340 Hashcat has these additional modes. It was released just before DEVCON. So the 93 00:07:53,340 --> 00:07:59,200 idea here is that if you have networked with Roaming enabled and it 94 00:07:59,200 --> 00:08:07,520 computes in the I standards, we all have this PNKID which is part of 95 00:08:07,520 --> 00:08:15,820 erysen information element. Here you see the values that, that is, how is PNKID 96 00:08:15,820 --> 00:08:22,400 value calculated. So, here we just need the Mac AP 97 00:08:22,400 --> 00:08:23,320 macacd 98 00:08:23,320 --> 00:08:28,500 Mark STA, and which come from the association requests, 99 00:08:30,320 --> 00:08:32,920 the association request prop response, 100 00:08:33,220 --> 00:08:35,540 and you need the message one from the ear pool. 101 00:08:36,140 --> 00:08:40,580 So there is no need for all this 102 00:08:42,700 --> 00:08:47,600 heart to get parts of the handshakes like before. 103 00:08:47,860 --> 00:08:50,380 Of course, there is no need for loss correction, 104 00:08:50,380 --> 00:08:54,700 so if you get the PNKID, you'll be on the safe side 105 00:08:54,700 --> 00:08:58,140 that you're cracking if you have this dictionary, 106 00:08:58,400 --> 00:09:01,000 this password in the dictionary, you'll get it. 107 00:09:06,500 --> 00:09:08,340 So next part is the hardware, 108 00:09:08,480 --> 00:09:10,200 what we're using to collect that. 109 00:09:11,360 --> 00:09:15,340 Of course, everybody builds his favorite GURN. 110 00:09:17,600 --> 00:09:20,000 We're using Raspberry Pi's. 111 00:09:20,380 --> 00:09:24,980 Like this one, what you see here is A-ink display, 112 00:09:25,770 --> 00:09:29,020 e-paper display, that is not using 113 00:09:29,020 --> 00:09:32,200 any more power that we need. 114 00:09:32,520 --> 00:09:36,320 And with this, it's a rather big battery. 115 00:09:36,620 --> 00:09:40,600 We can run this for around two or three days, 116 00:09:41,170 --> 00:09:41,920 without stopping. 117 00:09:42,750 --> 00:09:46,920 The adapters we're using, these are running based, 118 00:09:47,630 --> 00:09:50,060 or anything that works better. 119 00:09:50,380 --> 00:09:53,740 On the ACX tools, you can see, you can find 120 00:09:56,340 --> 00:09:59,220 different types of adapters that we have tested 121 00:09:59,220 --> 00:10:00,680 and know that they're working. 122 00:10:01,880 --> 00:10:06,460 Here you see the OpenVRT-based device 123 00:10:06,460 --> 00:10:07,960 with hardware antenna mode. 124 00:10:08,240 --> 00:10:10,600 It's just a link battery power through the, 125 00:10:10,700 --> 00:10:13,040 all this is very cheap. 126 00:10:13,340 --> 00:10:18,140 And of course, here, it's again a Raspberry Pi-based 127 00:10:19,080 --> 00:10:19,700 solution. 128 00:10:20,380 --> 00:10:24,200 But with way better antenna, that gives us a lot more power. 129 00:10:24,840 --> 00:10:29,180 Of course, you can use whatever you want for this. 130 00:10:30,680 --> 00:10:34,100 So, when you already have the captures, 131 00:10:34,700 --> 00:10:37,020 and the first thing that you have to do 132 00:10:37,020 --> 00:10:40,120 is to issue your own WP-AXX key. 133 00:10:40,820 --> 00:10:44,900 There is no, some stride registration process. 134 00:10:45,000 --> 00:10:48,840 You just go, hit the issue key, and that's it. 135 00:10:50,380 --> 00:10:52,540 But with this key, you can access the results 136 00:10:52,540 --> 00:10:53,920 when they're cracked. 137 00:10:55,190 --> 00:10:57,220 On the server side, we're processing with the 138 00:10:57,220 --> 00:11:01,700 HDXP cap two, we check with duplicates. 139 00:11:02,900 --> 00:11:08,360 Of course, we're doing a lot more, like trying to crack 140 00:11:08,360 --> 00:11:13,260 via PNKey, so if we already have this network 141 00:11:15,280 --> 00:11:20,300 with this ESID, we will get the hit and, there is no need for 142 00:11:20,300 --> 00:11:24,080 for this whole thing to go to the crackers 143 00:11:24,080 --> 00:11:27,520 to exhaust their energy. 144 00:11:28,380 --> 00:11:30,740 We're doing the Wiggle APG location, 145 00:11:31,220 --> 00:11:34,920 and of course, if we are not having the results 146 00:11:35,140 --> 00:11:39,960 from router gig in PC, this goes to NG crackers. 147 00:11:41,660 --> 00:11:47,060 So, the guys that previously mined coins, 148 00:11:47,060 --> 00:11:49,980 or I don't know their favorite cryptocurrency, 149 00:11:52,040 --> 00:11:56,760 they can spend one of their GPUs to run a help crack. 150 00:11:57,610 --> 00:12:00,280 This downloads the handshakes and dictionaries 151 00:12:00,280 --> 00:12:01,360 and feeds them to cracker. 152 00:12:02,650 --> 00:12:05,220 It starts with the oldest handshakes 153 00:12:05,690 --> 00:12:10,000 and with those dictionaries that are with fewer words, 154 00:12:10,510 --> 00:12:14,700 and this gives some fair results for most people. 155 00:12:15,610 --> 00:12:16,700 What we're doing here, 156 00:12:17,060 --> 00:12:19,280 is because we have so much handshakes, 157 00:12:19,340 --> 00:12:22,640 we are doing the ESAD combined. 158 00:12:23,120 --> 00:12:26,520 So, we are fetching all networks 159 00:12:26,520 --> 00:12:29,020 that have one and the same ESAD. 160 00:12:29,600 --> 00:12:32,580 So, we are doing the heavy part, the PBTDF2, 161 00:12:33,500 --> 00:12:38,940 just once, and we are attacking with our dictionaries. 162 00:12:40,820 --> 00:12:43,740 The other part is automatic dictionary count, 163 00:12:43,840 --> 00:12:46,260 because if you have very powerful GPU, 164 00:12:47,060 --> 00:12:49,340 for one of these small dictionaries, 165 00:12:49,460 --> 00:12:53,540 that we see for our one million word count in it, 166 00:12:55,100 --> 00:13:00,220 you are spending around 30 seconds to initialize the GPU, 167 00:13:00,440 --> 00:13:03,940 and after that, for example, three or four seconds 168 00:13:04,500 --> 00:13:06,700 to push the full dictionary there. 169 00:13:07,460 --> 00:13:10,460 So, we are combining dictionaries automatically. 170 00:13:12,500 --> 00:13:16,440 So, it's scaling depending on the number of GPUs we have, 171 00:13:16,440 --> 00:13:20,120 and the GPU power. 172 00:13:22,580 --> 00:13:25,020 When something is cracked, 173 00:13:26,120 --> 00:13:31,420 you're accepting one or more PSK by hash of the network, 174 00:13:31,620 --> 00:13:33,400 or the BSAD. 175 00:13:33,960 --> 00:13:37,360 We are doing the validations as far as we can, 176 00:13:38,640 --> 00:13:44,160 and in real time, we generate these cracked TXTGZ dictionaries 177 00:13:44,920 --> 00:13:45,600 over there. 178 00:13:45,600 --> 00:13:49,060 Okay, it's over there, so it's real time. 179 00:13:49,220 --> 00:13:53,260 You can get every password that has been cracked there. 180 00:13:53,600 --> 00:13:55,340 And there is a separate dictionary 181 00:13:56,000 --> 00:14:01,000 that is for those that are coming from router KGN. 182 00:14:01,100 --> 00:14:04,000 They're separated because most of the time, 183 00:14:04,100 --> 00:14:07,520 they look very random things. 184 00:14:07,640 --> 00:14:09,040 Of course, they are not so random. 185 00:14:09,200 --> 00:14:12,500 That's why they get to the router KGN. 186 00:14:12,500 --> 00:14:15,920 But they are not really interesting 187 00:14:16,280 --> 00:14:18,040 if you want to use this dictionary 188 00:14:18,040 --> 00:14:20,020 for your own assessments. 189 00:14:22,080 --> 00:14:25,520 So, what we've learned up to now. 190 00:14:27,320 --> 00:14:32,560 There are a lot of vendors and ISPs 191 00:14:32,560 --> 00:14:36,180 that are still using default BSAD, 192 00:14:36,260 --> 00:14:37,700 SAD-based algorithms. 193 00:14:38,880 --> 00:14:41,680 In database, there are a lot of these hidden, 194 00:14:41,680 --> 00:14:43,740 and we hope to get them revealed. 195 00:14:45,780 --> 00:14:48,700 We'll identify this and continue with that. 196 00:14:50,740 --> 00:14:51,760 There is a lot of 197 00:14:55,200 --> 00:14:58,220 going to in this path. 198 00:14:58,540 --> 00:15:01,400 A lot of people get the router firmware, 199 00:15:01,760 --> 00:15:04,540 catch it, and try to find these default algorithms. 200 00:15:04,740 --> 00:15:10,960 And with this, with the WPA sec results, 201 00:15:10,960 --> 00:15:13,400 we are validating their results, 202 00:15:13,520 --> 00:15:16,220 and it gets pretty interesting. 203 00:15:16,600 --> 00:15:21,060 Of course, developing such a tool like HCX Tools, 204 00:15:22,520 --> 00:15:26,860 gets, we hit a lot of Linux kernel and driver bugs. 205 00:15:27,550 --> 00:15:32,360 We try to fill as much as possible bugs. 206 00:15:32,460 --> 00:15:35,400 A lot of them are already fixed. 207 00:15:35,760 --> 00:15:37,500 So, this is a good thing for everyone 208 00:15:37,500 --> 00:15:39,940 that is using such a hardware. 209 00:15:40,960 --> 00:15:43,020 We also identified some optimizations 210 00:15:43,700 --> 00:15:46,160 and improvements in the hashcat in Jam.Wripper. 211 00:15:47,100 --> 00:15:51,280 And the help you will get, it also does better. 212 00:15:51,840 --> 00:15:56,900 And in the end, WPA sec is very useful as an awesome source. 213 00:15:57,280 --> 00:16:02,140 Because, for example, you're doing a remote penetration test 214 00:16:02,820 --> 00:16:04,900 on some bank. 215 00:16:05,780 --> 00:16:09,800 You also can go on WPA sec and on Wiggle, 216 00:16:09,800 --> 00:16:11,940 see what are the networks there. 217 00:16:12,580 --> 00:16:14,820 After that, go to WPA sec and see 218 00:16:15,440 --> 00:16:19,400 if somebody already captured some network hash there. 219 00:16:19,920 --> 00:16:23,900 So, from now on, you will be, 220 00:16:24,820 --> 00:16:28,340 wait for until you already have something to work on 221 00:16:28,340 --> 00:16:31,880 and to try for password reuse, and et cetera. 222 00:16:32,400 --> 00:16:35,460 And, what's next with this project? 223 00:16:35,720 --> 00:16:39,100 It's running some years. 224 00:16:39,300 --> 00:16:39,780 Sorry. 225 00:16:39,780 --> 00:16:46,560 But I'm sure that there are a lot of more hidden algorithms, and we'll be very glad to check those out. 226 00:16:48,400 --> 00:16:54,300 The interesting thing about these default algorithms is that there is info on them, on different forums, wikis, etc. 227 00:16:54,700 --> 00:17:00,360 Very, very spread, and not really useful when you look for something. 228 00:17:00,520 --> 00:17:05,280 And I think this will be a nice place to collect them all and to improve it. 229 00:17:06,460 --> 00:17:12,020 Of course, the web interface, I really don't have a full screenshot because it's really awful. 230 00:17:12,340 --> 00:17:17,400 But this has to be gone from 19, so we have to do something better. 231 00:17:18,000 --> 00:17:28,920 Of course, it will be nice to introduce an API for dbQuery, so a lot of guys will have the possibility to dig in this database. 232 00:17:29,180 --> 00:17:32,980 But for now, if you have some ideas, I'll be very happy to discuss them. 233 00:17:33,100 --> 00:17:34,300 Just drop me a mail. 234 00:17:34,540 --> 00:17:35,260 And thanks. 235 00:17:35,280 --> 00:17:36,180 And we'll work it out. 236 00:17:37,020 --> 00:17:39,480 And, of course, prepare for WPA3. 237 00:17:39,720 --> 00:17:45,740 There are some speculations, and I'm sure that we will think of something. 238 00:17:45,920 --> 00:17:50,740 But let's see the first client implementations and server calls. 239 00:17:51,860 --> 00:17:54,580 So we'll see how this happens. 240 00:17:54,720 --> 00:18:02,860 But since in 2018, we still file out WEP and WPA, the first version. 241 00:18:02,900 --> 00:18:05,140 So I'm sure this will not go. 242 00:18:05,280 --> 00:18:07,680 Around soon. 243 00:18:09,400 --> 00:18:11,560 So thank you, guys. 244 00:18:11,840 --> 00:18:13,800 Thank you.