[00:00.000 --> 00:07.340] Hello, hello. Can everyone hear me? All right. Welcome to our talk. The war never changes. [00:07.420 --> 00:17.400] Attack against or attacks against WPA's new open standard. Enhanced open or yeah, open [00:17.400 --> 00:20.700] wireless encryption or opportunistic wireless encryption. [00:20.700 --> 00:28.380] So this is Steve Derricott. He's the co-author, co-developer, co-parent of Sniff Glue. He's [00:28.380 --> 00:34.760] an amateur botanist. Always wearing shades. And yeah. I wrecked your bio, man. [00:36.740 --> 00:43.680] And this is Solstice. He made a crappy tool called ePammer. He wishes he could be a botanist. [00:43.680 --> 00:51.000] And everything he learns comes from Google. All right. So on to the talk. [00:51.400 --> 00:57.260] So we're here to talk about some of the new technology that's coming out with open technology [00:57.260 --> 01:03.300] on Wi-Fi networks. What we're currently familiar with is the standard that was released in [01:03.300 --> 01:10.860] 1999. Literally 20 years ago was when this technology came out. And obviously mass adopted [01:10.860 --> 01:17.320] by people because it was the new hotness. But then, you know, this stayed around. This [01:17.320 --> 01:19.760] stayed around for a while. We can go to the next one. [01:21.700 --> 01:28.280] We started off with WEP and Open. With those two initial standards. 802.11a and 802.11b. [01:29.420 --> 01:37.800] And Open obviously seems less secure because WEP was wired equivalent privacy. So it was [01:37.800 --> 01:43.820] supposed to be encryption for the network. Because they knew that having an open network, [01:43.820 --> 01:49.800] anyone could passively receive those packets. So out of those two technologies, you know, [01:49.800 --> 01:55.520] Open is the only one that's still here today. Not WEP. And the reason for that... I can go [01:55.520 --> 02:00.820] ahead and go to the next one. Right? Why is that? Why is Open still around even though it's 20 [02:00.820 --> 02:07.820] years old? WEP has been replaced. WPA2 is soon to be replaced with WPA3. It's the battle [02:07.820 --> 02:12.220] we see every day in this industry of security versus convenience. If something is more convenient, [02:12.220 --> 02:16.420] people are going to be more willing to use it. If it's... they don't care if it's secure. [02:16.420 --> 02:20.980] They just want to get to Google and their Facebook and their Gmail. Right? [02:23.500 --> 02:31.640] So the fix actions. Right? Who here uses Zoom for conferences? Yeah. The web conferencing [02:31.640 --> 02:36.940] software Zoom. Remember there was a big issue with that. And if you use it on a MacBook and [02:36.940 --> 02:41.200] they weren't going to patch it. So Apple just took the nuclear option and patched it themselves. [02:41.200 --> 02:46.320] Right? They released a patch for that over Zoom and just said forget that. This is similar to [02:46.320 --> 02:51.240] what we saw on the internet. With open encryption or with open networks ubiquitous everywhere [02:51.240 --> 02:57.060] and people constantly using them, websites were aware of the vulnerability. So major vendors [02:57.060 --> 03:04.500] or major people, Google, Facebook, et cetera, started implementing HTTPS only to force people [03:04.500 --> 03:17.080] to use HTTPS. Right. So then we had that mass adoption of HTTPS everywhere. And that's [03:17.080 --> 03:23.120] similar to what we're seeing with open wireless or the OWE and the new enhanced open is that [03:23.120 --> 03:29.880] it's still going to be like going to Google. Right? There's no authentication. You don't [03:29.880 --> 03:35.940] have to log into Google to establish that initial HTTPS connection. It's just an encrypted [03:35.940 --> 03:41.940] handshake happens. Boom. The certificates are validated. You're there. This is going to be [03:41.940 --> 03:48.660] the same thing but for open networks. So there will be an exchange between the access point and [03:48.660 --> 03:55.440] the client. And that will encrypt the traffic between the two. So still no authentication [03:55.440 --> 03:59.960] needed to connect to an access point but you will have an encrypted session. Just like when you [03:59.960 --> 04:05.720] go to Google, no one can technically sniff your packets because they're encrypted with HTTPS. [04:05.720 --> 04:18.110] But yeah. Right. So because of this, this led to downgrade attacks where well, yeah, this is [04:18.110 --> 04:22.950] what forced Google and Facebook and all of them to enforce HTTPS only was the downgrade attacks [04:22.950 --> 04:28.090] that took place. So many people here in the wireless CTF or if you've ever messed around with [04:28.090 --> 04:32.510] wireless technology, you know, you can stand up evil twins, get people to connect to you and [04:32.510 --> 04:37.530] then you're the network administrator at that point. So you can do whatever an evil network [04:37.530 --> 04:44.110] admin would do like downgrade connections to redirect websites to HTTP versions. And that is [04:44.110 --> 04:50.810] why Google and other websites started forcing people to use HTTPS. But yeah. I'll hand it [04:50.810 --> 04:52.030] over to Gabe now. [04:53.430 --> 04:58.610] Yeah. So I mean, just to kind of like, you know, build off of what Derek was saying, imagine [04:58.610 --> 05:04.830] if every time that you went to go to like an encrypted website on the Internet and you had to [05:04.830 --> 05:09.370] type in a password. Can you guys actually hear me? Okay. Can you hear me better? Okay. I [05:09.370 --> 05:14.490] guess I have to tilt this. Is it shaky if I do this? Does this work better? Okay. Yeah. [05:14.490 --> 05:22.390] I'll give you that one back. Okay. So this mic is a little better. Yeah. So just rewind a [05:22.390 --> 05:31.170] little bit. So I mean, we mentioned that, you know, 802.11 came out, you know, circa like [05:31.170 --> 05:35.870] 1999, right? And not long after that, people realized, oh, you can sniff passwords from [05:35.870 --> 05:39.930] open networks. And by 2002, we actually had the earliest documented use of rogue AP [05:39.930 --> 05:44.770] attacks, evil twin attacks specifically, to intercept traffic, which was like these middle [05:44.770 --> 05:51.250] attacks that Steve was talking about. You know, these attacks in combination with other [05:51.250 --> 05:55.150] techniques that started to emerge around that time period in the early 2000s, you know, such [05:55.150 --> 06:00.630] as ARP cache poisoning, et cetera, this led to the widespread adoption of HTTPS. You know, a [06:00.630 --> 06:05.510] lot of major, like, I guess like Internet-ish companies started, you know, actually just [06:06.110 --> 06:11.630] rigorously rolling this out. And this effectively ended the passive, you know, golden age of [06:11.630 --> 06:16.950] passive sniffing. Nowadays it's really difficult just to sniff stuff offline and get anywhere [06:16.950 --> 06:22.750] with that. It did put a dent in the effectiveness of evil twin attacks for a while, but it did [06:22.750 --> 06:26.310] resurface as a threat model in 2009 due to the discovery of the downgrade attack, as we [06:26.310 --> 06:33.210] mentioned, by Moxie Marlin spike. So essentially by doing this, you essentially kind of act as a [06:33.210 --> 06:39.010] malicious proxy of sorts, and you are able to downgrade encrypted HTTP connections, so [06:39.010 --> 06:45.690] HTTPS connections to HTTP. This was mitigated later on. So at this point you saw a [06:45.690 --> 06:50.510] resurgence of rogue AP attacks. This was mitigated later on by the introduction of HSTS [06:50.510 --> 06:55.950] and cert pinning. So essentially on paper, you know, this would have happened around 2012, [06:55.950 --> 06:58.930] although realistically, you know, widespread adoption of HSTS didn't take off until much later [06:58.930 --> 07:04.930] just because it's hard to roll out and it took some time to set up. It was like that transition [07:04.930 --> 07:10.770] page, kind of like what we're seeing now with WPA3. So what is HSTS? Essentially the way HSTS [07:10.770 --> 07:14.890] works is that the client, you know, when your web browser is going to request a resource from [07:14.890 --> 07:19.690] an HSTS enabled web server, this server is going to add a special header called an HSTS header to [07:19.690 --> 07:24.670] the response. This is actually down here kind of what this looks like. This header is going to [07:24.670 --> 07:28.410] tell the browser that it should always request content from the domain over HTTPS rather than [07:28.410 --> 07:33.950] HTTP. So if you attempt to use a downgrade attack, which at its core, there's some redirection [07:33.950 --> 07:38.990] involved where you redirect the victim's browser to the HTTP version of the site. The browser [07:38.990 --> 07:44.270] actually refused because it's been, you know, this domain has been added to a preload list [07:44.270 --> 07:48.790] essentially, or not preload, but an HSTS list that says this domain can only be loaded over [07:48.790 --> 07:53.730] HTTPS. So you'll get basically an internal, I believe it's a 309 redirect that the browser [07:53.730 --> 07:59.030] will issue to the HSTS version of the site and essentially the HTTP downgrade attack won't [07:59.030 --> 08:06.130] work. So there were some bypasses that came out for HSTS in 2014. One of the most notable [08:06.130 --> 08:12.670] ones is by Jose Selvey. So essentially HSTS headers, they have a max age parameter that [08:12.670 --> 08:17.150] dictates when the web browser should stop treating the header's origin domain as an HSTS site. [08:17.270 --> 08:22.970] Imagine if you accidentally set something as an HSTS site and you could never, ever undo it. So [08:22.970 --> 08:27.930] essentially what Selvey figured out is that unless unauthenticated NTP packets are [08:27.930 --> 08:32.090] cryptographically signed, it's possible to tamper with them and you can shift the victim's [08:32.090 --> 08:39.150] system clock forward past the max age set in the HSTS header. And by doing that, essentially [08:39.150 --> 08:48.690] you can expire the HSTS entries in their list and HSTS is bypassed at this point. But since [08:48.690 --> 08:54.090] his bypass technique came out, there are a lot of actual other ways that operating systems [08:54.090 --> 09:02.410] deal with, kind of deal with the threat. So for example, Windows, it has their directives [09:02.410 --> 09:07.690] that basically say you cannot shift the time forward past, you know, further than a certain [09:07.690 --> 09:14.450] delta of time. Because, you know, it would allow you to do this. The reason why I mention [09:14.450 --> 09:19.790] this though, if we look at the current wireless security threat model and examine how today's [09:19.790 --> 09:24.510] attackers use wireless attacks, they're primarily used for gaining initial network access to [09:24.510 --> 09:32.810] weekly configure WPA and WPA2 networks. Finding ways to get PSKs from WPA PSK networks and [09:32.810 --> 09:38.890] crack them. Or they're used for stealing active directory credentials or hostile portal attacks [09:38.890 --> 09:43.470] or you see people using them for social engineering attacks using captive portals. You don't [09:43.470 --> 09:48.450] really see, you know, if you do see attacks against open networks, they're really most [09:48.450 --> 09:53.650] effective because of this widespread use of HTTPS and also the widespread use of HSTS on [09:53.650 --> 09:59.410] the stuff that really matters and would be attractive to an attacker. You know, really if [09:59.410 --> 10:04.030] you want the most bang for your buck if you're attacking an open network, you're going to be [10:04.030 --> 10:06.990] doing, you're essentially going to be looking for static content or mixed content issues that [10:06.990 --> 10:12.090] will allow you to inject payloads that will eventually get loaded into the user's browser. [10:12.090 --> 10:18.150] So for example, you know, you start intercepting traffic, set up your interception attack, and [10:18.950 --> 10:22.290] you know, you're intercepting traffic and you notice that they're, you know, loading, you [10:22.290 --> 10:25.130] know, third party JavaScript code over HTTP. Well, you can replace that with your own [10:25.130 --> 10:29.450] JavaScript code, you know, that basically downloads a beef hook and then you own their [10:29.450 --> 10:33.630] browser and eventually their system. But, you know, really you don't see a lot of [10:33.630 --> 10:38.570] credential stealing attacks, you know, because most high value targets are using HSTS and [10:38.570 --> 10:43.390] cert pinning and defeating HSTS is difficult at best. And defeating cert pinning without [10:43.390 --> 10:47.870] social engineering is virtually impossible. And really doesn't make sense in light of other [10:47.870 --> 10:50.630] attack paths, you know, just if you're going to go to that length, you might as well just use [10:50.630 --> 10:56.190] spear phishing or something. As for passive sniffing, it honestly rarely works anymore, [10:56.190 --> 10:59.530] unless you're, I mean, occasionally you'll see like someone's logging to something over POP3 [10:59.530 --> 11:06.130] or something like that, but it's very rare. And this is kind of the reason why we bring up [11:06.130 --> 11:13.010] this background information. If we kind of go to, you know, look at OWE, right? You want to go [11:13.010 --> 11:19.170] for this part? You want me to go? Okay. So OWE, right, it kind of was introduced fairly [11:19.170 --> 11:23.490] recently and it's being rolled out kind of as we speak to kind of solve this problem of not [11:23.490 --> 11:28.710] being able to have unauthenticated Wi-Fi access, you know, without, you know, so [11:28.710 --> 11:33.410] essentially it's designed to give you encryption capabilities, you know, and act as if you [11:33.410 --> 11:37.410] were connected to an open network, but you don't need to authenticate. So, you know, how you [11:37.410 --> 11:42.950] connect to a HTTPS site over, you know, and you don't have to enter a password. OWE is [11:42.950 --> 11:47.170] supposed to work the same way with open networks. You know, the way it works is, you know, you [11:47.170 --> 11:51.470] start out with your typical association. And when this happens, the client AP are going to [11:51.470 --> 11:56.990] complete a Diffie-Hellman key exchange and create a paralyzed master key or PMK. After that, [11:56.990 --> 12:00.990] the AP is going to initiate a four-way handshake, kind of similar to what WPA does, but using [12:00.990 --> 12:05.130] that PMK, and you're going to generate a key encryption key or Keck and a bunch of other [12:05.130 --> 12:10.570] stuff. But at that point you do this four-way handshake and you end up with some encryption [12:10.570 --> 12:15.490] keys that are used to protect both unicast and broadcast data. But basically it's an open [12:15.490 --> 12:25.410] network with crypto. So as far as the actual discovery process, so, I mean, the way this [12:25.410 --> 12:28.970] works, right, and I'll load this up in Wireshark so you can get a better idea of what this is [12:28.970 --> 12:32.650] doing, but, you know, the way that OWA works is the access point is going to advertise its [12:32.650 --> 12:37.610] support for this protocol using an AKM suite selector. And it's basically an RSN element [12:37.890 --> 12:41.570] that's added to all beacon frames that are getting sent out from the AP. The client is [12:41.570 --> 12:47.470] going to discover that the AP is OWA compliant, because it's going to look in the beacon [12:47.470 --> 12:50.330] frames and see this RSN, and then it's going to, you know, kick off the authentication [12:50.330 --> 12:55.410] process with it. So to show you what I'm talking about, it's a little more clear if I do it [12:55.410 --> 12:56.290] this way. [12:56.390 --> 13:00.790] While he's pulling that up, Gabe just talked about a lot of attacks that you can do against [13:00.790 --> 13:06.650] open networks, from injecting your own code and all of these things, and passive sniffing [13:06.650 --> 13:12.050] is not something that we commonly use on our wireless pen tests. It rarely generates anything [13:12.050 --> 13:17.730] worth benefiting from. So OWE is fixing a problem that we weren't even concerned about. [13:17.730 --> 13:21.990] I didn't, I rarely am sniffing passive data to begin with, because everything is typically [13:21.990 --> 13:26.790] encrypted by major vendors such as Google and Facebook. So there's no reason for me [13:26.790 --> 13:29.550] to passively sniff open networks anyways. [13:33.270 --> 13:37.750] All right. So I'm going to, right now I've just launched an OWE access point. I'm using [13:37.750 --> 13:45.170] virtual wireless interfaces here. I'm just going to filter here for beacon frames. I [13:45.170 --> 13:50.730] hope you can actually see this. All right. So, cool. I have a bunch of beacon frames [13:50.730 --> 13:57.450] here. And the SSID is open WiFi, but it's not actually open WiFi. This is, if you look [13:57.450 --> 14:02.930] here, right, you scroll all the way down to the bottom. Actually, I'm going to minimize [14:02.930 --> 14:10.770] some of these tags here, because they're probably, I don't know why, you know, Wireshark by default, [14:10.770 --> 14:19.030] it just opens everything that you want to look at. It's not helpful, but... RSN. Okay. [14:19.030 --> 14:22.990] So tag, RSN information. Can everyone see this? Can anyone not see this in the back? [14:23.370 --> 14:27.990] It's probably really small. But, you know, feel free to ask us later if you want us to [14:27.990 --> 14:32.310] walk through this in person, because I have a feeling it might be hard to see on the screen. [14:32.610 --> 14:37.670] But okay. So there's a tag here, RSN information. And you can see here that, you know, this [14:37.670 --> 14:43.670] is coming from the AP. It's a beacon frame. And we have this off key management, AKM, [14:43.670 --> 14:49.010] and it will actually tell you that it's using opportunistic wireless encryption, and also [14:49.010 --> 14:53.030] have the RSN capabilities. So essentially everything you need to know about how this [14:53.030 --> 14:58.210] thing uses crypto, basically. Let me go back to these slides. [14:59.410 --> 15:05.870] So an interesting thing, in case you're not aware, so a little background information. [15:06.210 --> 15:10.430] So elements are actually, what you're seeing here in the Wireshark thing, these are what [15:10.430 --> 15:14.390] are known as elements, or information elements. And they're set between the client and the [15:14.390 --> 15:18.790] AP as requests and responses. And they're used to facilitate protocol agnostic communication [15:19.230 --> 15:25.690] between wireless devices. They're basically, elements are basically a type length value, [15:25.690 --> 15:30.330] which means that they're, a TLV is a data type that's comprised of three parts. It's [15:30.330 --> 15:34.130] going to have an element ID, which is identifying the element's data type. It's going to have [15:34.230 --> 15:38.090] a length, which is the element's length, and a value, which is basically, you know, this [15:38.090 --> 15:42.550] field is entirely dependent on the element's data type. So essentially, what this lets [15:42.550 --> 15:46.650] you do, is you can send something from the client to the AP, or the AP to the client, [15:46.650 --> 15:51.230] and the client doesn't have to really know what data type it's receiving. I talked to [15:51.410 --> 15:56.510] a guy who's into reverse engineering later, and this terrified him earlier. But essentially, [15:56.510 --> 16:01.970] it'll first check, basically the TLV, the element, is just a string of bytes. And your [16:01.970 --> 16:06.350] wireless device is going to look at the first, you know, the first bytes in it, and it's [16:06.350 --> 16:09.170] going to use that to determine the data type. Then it's going to grab the length from the [16:09.170 --> 16:14.070] next set of bytes. And then from there, it's just going to know how, basically how large [16:14.630 --> 16:22.810] the next field of bits is, or bytes. So, the reason why I mention this is that in 802.11, [16:22.810 --> 16:26.650] association requests and responses are constructed entirely by appending elements to one another. [16:26.650 --> 16:33.950] So you just get a bunch of these TLVs and start appending them off each other. And in [16:33.950 --> 16:39.250] this case, it's a Diffie-Hellman parameter element. And this is how the AP and the client [16:39.750 --> 16:45.350] give each other their public keys. So, you know, essentially, once you reach the association [16:45.350 --> 16:49.690] process, the client's going to send an association request to the AP, and it's going to have [16:49.690 --> 16:53.890] an element in, you know, kind of in the packet there that is going to contain its public [16:53.890 --> 16:57.430] key. The AP is then going to respond with the association response, and there's going [16:57.430 --> 17:00.570] to be an element, a Diffie-Hellman parameter element, that's going to have the AP's public [17:00.570 --> 17:04.150] key. And at this point, they've exchanged keys, and they proceed to the four-way handshake [17:04.150 --> 17:12.050] we talked about. So just to kind of show you how that works, so we have this OWE access [17:12.050 --> 17:22.710] point running right now. And I'm going to get this thing to authenticate. All right. So [17:22.710 --> 17:31.750] on the left, we're just using WPA supplicant. We're going to connect to this AP and go back [17:31.750 --> 17:36.510] to Wireshark. And at this point, I'm just going to start sniffing packets again. Actually, [17:36.510 --> 17:42.690] I might have to do this a second time because I missed it. Kill that. And then I'm going [17:43.610 --> 17:51.010] to start. That's going to associate. And I'm going to change this to say that I don't want [17:51.010 --> 17:53.030] any beacon packets because there are a lot of them, and they'll get in the way of what [17:53.030 --> 18:06.820] we're doing. Okay. So let me just figure out... Did I lose this thing here? Hey, man, do you [18:06.820 --> 18:17.250] know how to like... Oh, I got it. Never mind. Okay. Cool. So here we have... I'm going to [18:17.250 --> 18:21.590] try to find that. Okay. So here we have the probe request, probe response. We briefly [18:21.590 --> 18:26.610] talked about that. I'm going to scroll down until we see... Okay. Here's the association [18:26.610 --> 18:29.930] request that we talked about that's coming from the AP. Or I'm sorry, from the client [18:29.930 --> 18:34.230] device. And if you look in here, we have this extended tag, which is this element we were [18:34.230 --> 18:38.830] talking about. And it contains the public key from the client device that's being sent to [18:38.830 --> 18:44.190] the AP. Then you have an acknowledgment from the access point. And then below that, you [18:44.190 --> 18:48.090] have an association response that is, you know, literally the same thing. Here we have [18:48.090 --> 18:53.150] these OWE Diffie-Hellman parameters. And then that's going to get sent back to the client [18:53.150 --> 18:57.770] device there. So then the key exchange happens. And we have this little four-way handshake [18:57.770 --> 19:02.130] here. And then you have basically encrypted open Wi-Fi, which is what happens after that. [19:02.130 --> 19:06.510] Right. And all this would happen invisibly to you. If you just opened up your phone, [19:06.510 --> 19:10.210] looking at Wi-Fi networks, you would see an open network. You would connect to it. If [19:10.210 --> 19:15.790] your phone is capable of OWE, it would read that packet that... Or those OWE packets that [19:15.790 --> 19:19.430] Gabe was just pointing out. And then it would go through that process. If not, it would [19:19.430 --> 19:26.990] just connect to an open network normally. Yeah. Yeah, exactly. I mean, so... I guess [19:26.990 --> 19:30.410] the problem with OWE, right? I mean, it does some good things. It addresses the need to [19:30.410 --> 19:34.670] provide encryption for unauthenticated wireless connections. And also makes use of [19:34.670 --> 19:38.770] protected management frames. And makes them mandatory. We're going to go more into that [19:38.990 --> 19:44.390] a bit later. Unfortunately, the thing that it does not do is it does not provide a means [19:44.390 --> 19:48.390] of verifying the identity of the access point. We're not the first ones to point this out. [19:49.150 --> 19:52.250] You know, I mean, people have been kind of bringing this out. Even the authors are like, [19:52.250 --> 19:56.570] you know, in the RFC itself, there's actually a big disclaimer saying it does not do this. [19:56.970 --> 20:03.430] But, you know, just want to do a little thought experiment here. Imagine if HTTPS did not [20:03.430 --> 20:07.050] provide a means of verifying the identity of the web server. So, in other words, whenever [20:07.050 --> 20:11.610] you use HTTPS, everyone used self-signed certs and no warnings were issued for anything [20:11.610 --> 20:17.470] whatsoever. It would kind of negate the effectiveness of HTTPS, right? And that's kind of what [20:17.470 --> 20:40.610] OWE is like, you know. It's hilarious. So, yeah. So, OWE doesn't address any real threat or [20:40.610 --> 20:46.770] attack that you see in the wild today. It's only encrypting, you know, the traffic, which [20:46.770 --> 20:51.110] if I'm standing up my access point and you're connected to me, I'm a network admin at that [20:51.110 --> 20:55.070] point, I'm going to see your traffic regardless because I'm going to route it wherever I want. [20:55.210 --> 20:59.670] It doesn't matter if it's encrypted between your phone and my access point. Once it gets to my [20:59.670 --> 21:04.570] access point, I'm in control of the packets. Yeah. So, I mean, it really only succeeds in [21:04.570 --> 21:09.330] preventing malicious users from doing passive sniffing, which, as we mentioned, is kind of a [21:09.330 --> 21:19.670] fruitless exercise in the first place. So, yeah. So, all right. So, when we kind of embarked on [21:19.670 --> 21:23.370] it, we kind of a few months ago, we were like, hey, we should look into ways to attack OWE. And [21:23.370 --> 21:27.090] we thought it would be much more complicated than it actually was. And it turned out it's [21:27.090 --> 21:38.730] actually not really that hard. Right. So, I mean, the first thing, I mean, if you do want to, I [21:38.730 --> 21:42.610] mean, the first technique that we, I guess, I don't even want to say we came up with this [21:42.610 --> 21:47.570] because it's literally the same attack that people have been using for 20 years. But the first [21:47.570 --> 21:53.210] technique is just to stand up an OWE evil twin. You make an evil twin access point using your [21:53.210 --> 22:02.790] favorite rogue AP tool, like sniff glue. And then you, you know, do what you're going to do. [22:02.790 --> 22:10.350] So, which, I mean, we kind of demonstrated that works here. I mean, like, just to keep this [22:10.350 --> 22:16.770] simple, I'm just going to tell WPA supplicant to start probing for stuff. This is pretty much [22:16.770 --> 22:19.970] exactly what would happen if you were just wandering around somewhere and had your Wi-Fi on [22:19.970 --> 22:25.610] and someone stood up, like they essentially knew the network on your PNL and stood up their own [22:25.610 --> 22:35.990] access point. Right. As expected, it would connect. Yeah. I mean, that's, it's fairly [22:35.990 --> 22:41.350] straightforward. Right. That's a standard evil twin attack. Nothing new there. It just has [22:42.050 --> 22:49.090] OWE. It's really nothing novel. But that's the problem. I just, yeah. But this is the more [22:49.090 --> 22:55.250] surprising part. As it turns out, and we kind of just discovered this by accident, but, and [22:56.050 --> 23:01.550] this is probably like a, honestly, an implementation issue, but, you know, for WPA [23:01.550 --> 23:06.910] supplicant, for example, which is what you'll find on most Android phones, you know, well, [23:06.910 --> 23:13.050] check this out. Okay. So, instead of using an open, an OWE access point, or I'm going to [23:13.050 --> 23:18.330] create an open access point. So, here, I'm going to show you the config file we just, we just [23:18.330 --> 23:24.450] used to connect to that OWE access point. Right. And you can see, right, it's using key [23:24.450 --> 23:32.050] management OWE. This is an OWE config file we're passing to WPA supplicant. And then for [23:32.050 --> 23:40.850] ePammer, or whatever the tool you're using, trying to remain agnostic here, but, you know, [23:40.850 --> 23:45.310] what happens if we spin up an open access point instead? I mean, this shouldn't work. [23:45.730 --> 23:50.470] But, like, these two things should not be able to communicate with one another. I mean, unless [23:50.470 --> 23:57.970] it's in transition mode, which it's not. So, here we go. We've started. And, oh, what's this [23:57.970 --> 24:01.590] at the bottom of the screen? Okay. So, we've now have this thing that is configured to use [24:01.590 --> 24:06.050] OWE, but it's connected to this open access point, which, at least in this case, WPA [24:06.050 --> 24:10.630] supplicant, it looks like you can execute rogue AP attacks against stuff that is expecting an [24:10.630 --> 24:16.110] OWE network using open Wi-Fi. So, you don't even need the new, you know, retooled versions of [24:16.110 --> 24:19.430] all these rogue AP tools to do this. You can just use the same tools that you've been using [24:19.430 --> 24:33.140] for the past two decades as an open network. And in this case, it works. So, yeah, that's [24:33.140 --> 24:38.060] kind of what we thought about this, too. You want to talk about compatibility? [24:41.320 --> 24:51.760] Okay. So, compatibility mode or fast transition mode, I believe it's also called. What happens [24:51.760 --> 25:00.020] is within the beacon frames of an open network, it will have within an information element [25:00.020 --> 25:07.120] the a hidden SSID. So, it will be a BSSID, a MAC address associated to a hidden network [25:07.120 --> 25:13.520] that is doing OWE. So, invisibly to you, your device would connect to that network or receive [25:13.520 --> 25:20.200] that frame and notice, oh, hey, if I'm OWE capable, I'm going to look at this hidden network [25:20.200 --> 25:28.540] and connect to that instead. So, yeah, that it's when you're broadcasting frames like that, [25:28.540 --> 25:33.620] anyone can read that as well. So, we got the idea of, well, why can't we just look at that [25:33.620 --> 25:39.040] packet and spin up our own evil twin using that same BSSID that's in that same packet. [25:40.000 --> 25:44.720] And, yeah, to kind of illustrate how this works, you know, actually, so I'm going to [25:44.720 --> 25:58.410] spin up a, I'm going to wait for this event loop to stop because computers. So, here what [25:58.410 --> 26:02.990] I'm going to do is I'm going to set up this OWE transition mode AP, right? And what's [26:02.990 --> 26:21.970] going to happen, oh, okay. Did I spell something wrong? Give me a second. Oh, open, okay, yeah. [26:21.970 --> 26:29.310] So, that was typo on my part. So, right here I'm creating a, wouldn't have happened if [26:29.310 --> 26:35.330] I was using snip air. So, essentially we're going to launch this thing. We just created [26:35.330 --> 26:39.330] an OWE transition mode AP, which is kind of interesting because it's actually two APs, [26:39.330 --> 26:44.110] it's two BSSs being served off a single piece of hardware. So, if we go back to Wireshark [26:44.110 --> 26:47.850] really fast, and this time we actually do want to look at beacon frames again. So, I'm [26:47.850 --> 26:57.030] going to just kind of replace that. You'll see two SSIDs here. The first one is a wild [26:57.030 --> 26:59.730] card. So, this is a hidden SSID that we're seeing. We don't really know what this is. [26:59.730 --> 27:06.490] And then we see this open SSID. So, essentially what happens is, you know, the idea of the [27:06.490 --> 27:10.590] transition mode is that you're supposed to have a setup where no matter whether the device [27:10.590 --> 27:15.870] only supports open, whether it supports OWE or not, it can still connect to this network. [27:16.670 --> 27:22.590] So, what will happen is that the publicly visible SSID, right, it belongs to an open [27:22.590 --> 27:32.650] BSS. So, an open network. And then we see that here with this SSID that's visible. And [27:32.650 --> 27:36.810] if a device that only supports connecting to open networks, it doesn't support OWE, [27:36.810 --> 27:40.410] attempts to connect to this thing, that will be it. It will just use the open network. [27:40.410 --> 27:46.350] However, an OWE capable device, when it tries to connect, essentially it will look through [27:46.350 --> 27:57.350] these fields and grab the SSID of the hidden network that we see here, right. In this case [27:57.350 --> 28:02.030] it says, you know, that SSID is open WiFi. But it's usually just a random string of characters. [28:02.030 --> 28:06.630] It will grab that SSID and then reconnect. It will send a pro request for that SSID and [28:06.630 --> 28:12.670] then reconnect to the wild card one that we see here, right. So, just to kind of demonstrate [28:12.670 --> 28:32.120] that, I'm actually going to have to edit this really fast. I guess the default here is for [28:32.120 --> 28:46.350] it to use spelled backwards. So, there we go. Okay. So, here we have a device that's [28:46.350 --> 29:05.360] going to attempt to connect using open explicitly, right. And I can't type today. And you'll [29:05.360 --> 29:14.400] see here that it's connected to the public SSID, the one that's visible, right. And you [29:14.400 --> 29:30.130] know, all is expected. If we instead elect to use the config file that makes it look for [29:30.130 --> 29:42.250] an open, sorry, the OWE access point, it will first connect to the open WiFi, which you [29:42.250 --> 29:54.220] should see in a second. Come on, demo gods. That's a little weird. Okay. Hang on a minute. [30:09.610 --> 30:33.180] It should be right. Live demos. Got to love them. Yeah. I don't know. Well, good thing [30:33.180 --> 31:07.820] we have, all right. I'm going to try a different config really fast. Okay. All right. I see [31:07.820 --> 31:12.640] what I did. Try to specify the random SSID instead of the open one. Okay. Cool. So, this [31:12.640 --> 31:21.020] should work. So, yeah. So, you see here, it says try to authenticate with, so, despite [31:21.520 --> 31:30.320] the fact that we configured it to go for the visible network, right, which was this, it [31:30.320 --> 31:33.840] instead shifts over and tries to go for this randomly visible one. So, going back to [31:33.840 --> 31:44.460] Wireshark really fast, just to kind of show you what we're doing, we replaced the public SSID [31:44.460 --> 31:52.320] that's now open WiFi and the random one, the random hidden OWE SSID is this random string [31:52.320 --> 31:56.260] of characters there. It's not really random. I just mashed the keyboard a bit to get it. [31:56.260 --> 32:08.020] So, it's connected to the random one. So, that's how that works. Okay. And just did [32:08.020 --> 32:15.900] that. I think we just talked about this, basically. Yeah. So, this is just basically what we [32:15.900 --> 32:20.420] talked about. But if your client doesn't do OWE, then it's just going to connect to the [32:20.420 --> 32:24.900] open network. But if it does support OWE, then it's going to look for that hidden network [32:24.900 --> 32:33.260] and then associate to that one instead. So, we tried a number of techniques to attack this [32:33.260 --> 32:36.960] kind of network. The first is just creating an OWE evil twin. We figured just grab the [32:37.920 --> 32:43.000] SSID from that information element. It turns out this doesn't actually work because the [32:45.960 --> 32:49.040] client device, and actually, that's why the first demo failed is because we essentially [32:49.040 --> 32:56.560] tried to do that. You know, but if you just try to, you know, create an OWE evil twin [32:56.560 --> 33:04.900] using that random SSID, it's going to fail. However, what does work is that you just do [33:04.900 --> 33:12.640] an OWE transition evil twin. So, you match it exactly. You match both the public SSID [33:12.640 --> 33:22.260] and the private one. And the third technique that we figured out is just use an OWE evil twin. [33:22.260 --> 33:27.500] Surprisingly, that works as well. Because remember what we, and once again, that's likely [33:33.380 --> 33:37.940] just a implementation issue or something. It really isn't defined that way in the RFCs. [33:37.940 --> 33:53.420] But, oops, I locked myself out. For example, if we just create an open network here, even if [33:55.140 --> 34:01.320] this device is expecting OWE, for some reason, it will still connect to your open access point. [34:06.510 --> 34:12.470] Or at least it will try to. There's some weirdness going on there. Oh, there we go. [34:14.970 --> 34:33.800] Yeah, off failure. Well, anyways, it worked earlier. So, the one thing that I think actually [34:33.800 --> 34:43.620] OWE gets right is the use of PMF. I mean, oh. Yeah, with management frame protection, [34:43.620 --> 34:49.540] you're getting rid of deauths. So, that's one of the most common attacks that we see today [34:49.540 --> 34:56.020] is knocking people off a network and then recording the transaction of when they connect right back to that access point. [34:56.080 --> 35:00.680] And that's one of the major features of WPA3 is that it's going to enforce all of that [35:01.960 --> 35:06.680] protected management frames so that deauths is going to be no longer a thing to worry about. [35:06.680 --> 35:11.480] All these guys walking around at cons with their deauthers, it won't matter anymore at that point. [35:11.480 --> 35:14.960] And this also relates to the rogue AP attacks, the issues we were talking about earlier. [35:15.120 --> 35:21.620] It's not always possible to get something to connect to you, get a device to connect to your rogue AP [35:21.620 --> 35:26.600] simply by providing a superior signal. That's often actually harder than it looks. [35:27.340 --> 35:33.100] And when that happens, pretty much the go-to technique that people rely on is deauthenting the target access point [35:33.900 --> 35:38.060] to kind of force the connected client devices to roam somewhere else. [35:38.580 --> 35:42.780] And I think what it does get right is it does prevent you from doing that. [35:42.940 --> 35:49.120] Because with management frame encryption, basically you encrypt all the management frames that are going between the client and the AP [35:49.120 --> 35:53.120] so you can't just inject deauthentication packets and get it to work that way. [35:56.720 --> 35:59.980] But the problem is that you can still just kind of go back and [35:59.980 --> 36:06.160] you know, if you're targeting a client that's like by itself, it's not connected to an AP, [36:06.160 --> 36:12.580] then this doesn't even bear any relevance. Because, yeah, you wouldn't have to deauth at that point. [36:14.140 --> 36:16.340] But just to kind of show you what I mean by that. [36:20.590 --> 36:25.790] So, you know, say I create this OWE access point, right? [36:29.120 --> 36:32.380] And then I connect this supplicant to it. [36:40.470 --> 36:44.810] Well, provided this can actually authenticate, because it was having some weirdness earlier. [36:45.330 --> 36:49.310] But, well then. [36:52.860 --> 36:57.100] Okay, so likely this is a driver issue. I'm using virtual Wi-Fi drivers. [36:57.200 --> 37:00.680] So what I'm going to do is I'm just going to reload them really fast. [37:00.800 --> 37:04.220] Do rm mod connect 802.11. [37:06.060 --> 37:07.860] That's why you don't do live demos, folks. [37:07.860 --> 37:12.300] But we decided to be a little bold about it. [37:19.210 --> 37:21.290] Set radios to 5. [37:21.370 --> 37:23.230] Alright, this should work now. [37:32.020 --> 37:34.400] Alright, yeah, so that worked. It was a driver issue. [37:35.940 --> 37:38.340] Let me just take a look at my MAC addresses really fast. [37:39.760 --> 37:46.620] Okay, cool. So just to show you what we kind of mean by this. [37:47.080 --> 37:48.260] We do air replay. [37:49.800 --> 37:52.260] I can't remember. Air replay. [37:52.980 --> 37:55.100] Just to specify the AP. [37:55.180 --> 37:58.000] Is it A? Okay. [38:00.480 --> 38:03.440] Alright, so I'm just going to specify the [38:04.660 --> 38:13.980] BSSID of the access point, which is just 00.11.22.33.44. [38:14.220 --> 38:17.280] I believe it was 55, if I remember correctly. [38:17.280 --> 38:18.440] No, it was 00. [38:19.460 --> 38:25.180] And we're going to specify the MAC address of the client device, which in this case was [38:25.180 --> 38:32.560] what was it? It was this thing right here. [38:32.560 --> 38:33.640] Okay, cool. [38:38.480 --> 38:40.080] We've got to give it an interface. [38:48.730 --> 38:51.970] So I'm just going to put my third WiFi interface [38:51.970 --> 38:55.630] into monitor mode really fast and bring it back up. [38:58.010 --> 38:58.570] And... [39:03.200 --> 39:07.000] Alright, so we're literally just spamming this thing [39:07.000 --> 39:10.920] with deauthentication packets right now. And, you know, nothing's [39:10.920 --> 39:14.980] happening. So you can [39:14.980 --> 39:19.020] see that those deauth attacks don't work anymore. One interesting thing to think about, though, [39:19.020 --> 39:22.800] is this. If we're pushing out protocols [39:22.800 --> 39:27.620] in which protected management frames are required, [39:27.620 --> 39:31.420] then that's inevitably going to lead to more devices supporting [39:31.420 --> 39:34.700] the use of protected management frames. Right now it's not that widely used because there's [39:34.700 --> 39:39.420] not a consistent support across hardware for this kind of thing. [39:40.660 --> 39:43.500] But something to think about, right, the way a lot of [39:43.500 --> 39:46.500] IDS systems or wireless intrusion protection systems work [39:47.020 --> 39:51.420] to contain these kinds of attacks that we're showing you, essentially if they [39:51.420 --> 39:56.020] see a rogue AP and they see one of their own devices connecting to it, they'll start deauthing it. [39:56.020 --> 39:59.780] Well, now you're going to have a situation where you're going to have widespread use of [39:59.780 --> 40:03.980] or support for PMF. And on top of that, [40:03.980 --> 40:07.800] you know, if you're an attacker, you can make use of that as well. So if you actually [40:07.800 --> 40:10.720] successfully execute an attack and get one of these devices to connect to you [40:11.940 --> 40:16.380] and you're using PMF yourself, regardless of whether or not you're using OWE, [40:16.860 --> 40:19.660] then you've kind of made yourself immune from, you know, [40:19.660 --> 40:24.060] what is essentially the standard containment method used by WIPs devices today. [40:24.060 --> 40:27.740] So that's going to be interesting to see how that plays out in terms of [40:27.740 --> 40:31.840] how people design those things. Any questions? [40:34.160 --> 40:36.300] If you have any questions, we're team WhatTheFreak [40:36.300 --> 40:40.360] over in the wireless CTF. If you want to come hang out, ask us stuff over there. [40:40.360 --> 40:43.120] We'll be over there. Thanks.