WEBVTT

00:00.000 --> 00:01.420
Hello, hello.

00:01.420 --> 00:02.620
Can everyone hear me?

00:02.620 --> 00:03.740
All right.

00:03.740 --> 00:05.500
Welcome to our talk.

00:05.600 --> 00:07.340
The war never changes.

00:07.420 --> 00:12.560
Attack against or attacks against WPA's new open standard.

00:13.000 --> 00:20.700
Enhanced open or yeah, open wireless encryption or opportunistic wireless encryption.

00:20.700 --> 00:22.800
So this is Steve Derricott.

00:22.800 --> 00:26.300
He's the co-author, co-developer, co-parent of Sniff Glue.

00:27.720 --> 00:29.780
He's an amateur botanist.

00:29.840 --> 00:31.140
Always wearing shades.

00:31.160 --> 00:32.100
And yeah.

00:32.860 --> 00:34.760
I wrecked your bio, man.

00:36.740 --> 00:38.660
And this is Solstice.

00:38.660 --> 00:41.180
He made a crappy tool called ePammer.

00:41.860 --> 00:43.680
He wishes he could be a botanist.

00:43.680 --> 00:46.680
And everything he learns comes from Google.

00:48.440 --> 00:49.380
All right.

00:49.380 --> 00:51.000
So on to the talk.

00:51.400 --> 00:58.540
So we're here to talk about some of the new technology that's coming out with open technology on Wi-Fi networks.

00:59.160 --> 01:04.160
What we're currently familiar with is the standard that was released in 1999.

01:04.160 --> 01:07.760
Literally 20 years ago was when this technology came out.

01:09.000 --> 01:14.540
And obviously mass adopted by people because it was the new hotness.

01:14.540 --> 01:17.180
But then, you know, this stayed around.

01:17.180 --> 01:18.620
This stayed around for a while.

01:18.620 --> 01:19.760
We can go to the next one.

01:21.700 --> 01:24.360
We started off with WEP and Open.

01:24.360 --> 01:25.720
With those two initial standards.

01:25.720 --> 01:28.280
802.11a and 802.11b.

01:29.420 --> 01:37.520
And Open obviously seems less secure because WEP was wired equivalent privacy.

01:37.520 --> 01:40.460
So it was supposed to be encryption for the network.

01:40.460 --> 01:46.600
Because they knew that having an open network, anyone could passively receive those packets.

01:47.220 --> 01:51.900
So out of those two technologies, you know, Open is the only one that's still here today.

01:52.000 --> 01:52.780
Not WEP.

01:53.760 --> 01:57.080
And the reason for that... I can go ahead and go to the next one.

01:58.040 --> 01:58.380
Right?

01:58.380 --> 01:59.120
Why is that?

01:59.120 --> 02:01.800
Why is Open still around even though it's 20 years old?

02:01.800 --> 02:03.000
WEP has been replaced.

02:03.140 --> 02:05.940
WPA2 is soon to be replaced with WPA3.

02:06.640 --> 02:10.680
It's the battle we see every day in this industry of security versus convenience.

02:10.720 --> 02:14.320
If something is more convenient, people are going to be more willing to use it.

02:14.420 --> 02:16.420
If it's... they don't care if it's secure.

02:16.420 --> 02:20.500
They just want to get to Google and their Facebook and their Gmail.

02:20.500 --> 02:20.980
Right?

02:23.500 --> 02:25.440
So the fix actions.

02:25.440 --> 02:26.080
Right?

02:26.080 --> 02:29.860
Who here uses Zoom for conferences?

02:30.240 --> 02:30.840
Yeah.

02:30.840 --> 02:32.760
The web conferencing software Zoom.

02:32.760 --> 02:34.760
Remember there was a big issue with that.

02:34.760 --> 02:38.380
And if you use it on a MacBook and they weren't going to patch it.

02:38.380 --> 02:41.200
So Apple just took the nuclear option and patched it themselves.

02:41.200 --> 02:41.520
Right?

02:41.520 --> 02:45.700
They released a patch for that over Zoom and just said forget that.

02:45.700 --> 02:47.820
This is similar to what we saw on the internet.

02:47.840 --> 02:56.080
With open encryption or with open networks ubiquitous everywhere and people constantly using them, websites were aware of the vulnerability.

02:56.080 --> 03:07.020
So major vendors or major people, Google, Facebook, et cetera, started implementing HTTPS only to force people to use HTTPS.

03:10.560 --> 03:11.580
Right.

03:11.580 --> 03:15.600
So then we had that mass adoption of HTTPS everywhere.

03:15.980 --> 03:28.320
And that's similar to what we're seeing with open wireless or the OWE and the new enhanced open is that it's still going to be like going to Google.

03:28.320 --> 03:28.500
Right?

03:28.500 --> 03:29.640
There's no authentication.

03:29.640 --> 03:34.900
You don't have to log into Google to establish that initial HTTPS connection.

03:34.900 --> 03:37.160
It's just an encrypted handshake happens.

03:37.160 --> 03:37.840
Boom.

03:37.840 --> 03:39.680
The certificates are validated.

03:39.720 --> 03:40.720
You're there.

03:40.840 --> 03:44.340
This is going to be the same thing but for open networks.

03:44.340 --> 03:49.820
So there will be an exchange between the access point and the client.

03:50.200 --> 03:53.200
And that will encrypt the traffic between the two.

03:53.340 --> 03:59.560
So still no authentication needed to connect to an access point but you will have an encrypted session.

03:59.560 --> 04:05.720
Just like when you go to Google, no one can technically sniff your packets because they're encrypted with HTTPS.

04:05.720 --> 04:06.960
But yeah.

04:10.710 --> 04:11.350
Right.

04:11.350 --> 04:23.810
So because of this, this led to downgrade attacks where well, yeah, this is what forced Google and Facebook and all of them to enforce HTTPS only was the downgrade attacks that took place.

04:23.810 --> 04:35.290
So many people here in the wireless CTF or if you've ever messed around with wireless technology, you know, you can stand up evil twins, get people to connect to you and then you're the network administrator at that point.

04:35.290 --> 04:43.710
So you can do whatever an evil network admin would do like downgrade connections to redirect websites to HTTP versions.

04:43.710 --> 04:49.610
And that is why Google and other websites started forcing people to use HTTPS.

04:49.610 --> 04:50.250
But yeah.

04:50.250 --> 04:52.030
I'll hand it over to Gabe now.

04:53.430 --> 04:53.910
Yeah.

04:53.910 --> 05:05.810
So I mean, just to kind of like, you know, build off of what Derek was saying, imagine if every time that you went to go to like an encrypted website on the Internet and you had to type in a password.

05:06.270 --> 05:07.710
Can you guys actually hear me?

05:07.810 --> 05:08.210
Okay.

05:08.210 --> 05:09.010
Can you hear me better?

05:09.010 --> 05:09.250
Okay.

05:09.250 --> 05:10.830
I guess I have to tilt this.

05:11.310 --> 05:12.690
Is it shaky if I do this?

05:12.690 --> 05:13.430
Does this work better?

05:13.430 --> 05:13.890
Okay.

05:13.890 --> 05:14.490
Yeah.

05:14.490 --> 05:16.790
I'll give you that one back.

05:17.430 --> 05:17.770
Okay.

05:17.770 --> 05:19.190
So this mic is a little better.

05:19.630 --> 05:19.870
Yeah.

05:19.870 --> 05:23.070
So just rewind a little bit.

05:25.170 --> 05:31.970
So I mean, we mentioned that, you know, 802.11 came out, you know, circa like 1999 , right?

05:31.970 --> 05:36.510
And not long after that, people realized, oh, you can sniff passwords from open networks.

05:36.510 --> 05:47.230
And by 2002, we actually had the earliest documented use of rogue AP attacks, evil twin attacks specifically, to intercept traffic, which was like these middle attacks that Steve was talking about.

05:48.190 --> 05:59.630
You know, these attacks in combination with other techniques that started to emerge around that time period in the early 2000s, you know, such as ARP cache poisoning, et cetera, this led to the widespread adoption of HTTPS.

05:59.870 --> 06:07.810
You know, a lot of major, like, I guess like Internet-ish companies started, you know, actually just rigorously rolling this out.

06:08.410 --> 06:12.490
And this effectively ended the passive, you know, golden age of passive sniffing.

06:12.490 --> 06:17.790
Nowadays it's really difficult just to sniff stuff offline and get anywhere with that.

06:18.750 --> 06:28.630
It did put a dent in the effectiveness of evil twin attacks for a while, but it did resurface as a threat model in 2009 due to the discovery of the downgrade attack, as we mentioned, by Moxie Marlin spike.

06:29.310 --> 06:41.250
So essentially by doing this, you essentially kind of act as a malicious proxy of sorts, and you are able to downgrade encrypted HTTP connections, so HTTPS connections to HTTP.

06:42.790 --> 06:44.670
This was mitigated later on.

06:44.670 --> 06:47.070
So at this point you saw a resurgence of rogue AP attacks.

06:47.090 --> 06:51.230
This was mitigated later on by the introduction of HSTS and cert pinning.

06:51.510 --> 07:02.450
So essentially on paper, you know, this would have happened around 2012, although realistically , you know, widespread adoption of HSTS didn't take off until much later just because it's hard to roll out and it took some time to set up.

07:03.690 --> 07:06.990
It was like that transition page, kind of like what we're seeing now with WPA3.

07:07.850 --> 07:09.670
So what is HSTS?

07:09.670 --> 07:20.630
Essentially the way HSTS works is that the client, you know, when your web browser is going to request a resource from an HSTS enabled web server, this server is going to add a special header called an HSTS header to the response.

07:21.350 --> 07:24.030
This is actually down here kind of what this looks like.

07:24.030 --> 07:29.130
This header is going to tell the browser that it should always request content from the domain over HTTPS rather than HTTP.

07:29.290 --> 07:38.370
So if you attempt to use a downgrade attack, which at its core, there's some redirection involved where you redirect the victim's browser to the HTTP version of the site.

07:38.610 --> 07:49.570
The browser actually refused because it's been, you know, this domain has been added to a preload list essentially, or not preload, but an HSTS list that says this domain can only be loaded over HTTPS.

07:49.570 --> 07:59.710
So you'll get basically an internal, I believe it's a 309 redirect that the browser will issue to the HSTS version of the site and essentially the HTTP downgrade attack won't work.

08:00.970 --> 08:05.030
So there were some bypasses that came out for HSTS in 2014.

08:05.570 --> 08:07.770
One of the most notable ones is by Jose Selvey.

08:08.810 --> 08:17.150
So essentially HSTS headers, they have a max age parameter that dictates when the web browser should stop treating the header's origin domain as an HSTS site.

08:17.270 --> 08:21.810
Imagine if you accidentally set something as an HSTS site and you could never, ever undo it.

08:22.610 --> 08:36.010
So essentially what Selvey figured out is that unless unauthenticated NTP packets are cryptographically signed, it's possible to tamper with them and you can shift the victim's system clock forward past the max age set in the HSTS header.

08:36.010 --> 08:47.710
And by doing that, essentially you can expire the HSTS entries in their list and HSTS is bypassed at this point.

08:47.790 --> 08:58.730
But since his bypass technique came out, there are a lot of actual other ways that operating systems deal with, kind of deal with the threat.

08:58.730 --> 09:09.230
So for example, Windows, it has their directives that basically say you cannot shift the time forward past, you know, further than a certain delta of time.

09:09.230 --> 09:12.530
Because, you know, it would allow you to do this.

09:13.430 --> 09:27.050
The reason why I mention this though, if we look at the current wireless security threat model and examine how today's attackers use wireless attacks, they're primarily used for gaining initial network access to weekly configure WPA and WPA2 networks.

09:27.170 --> 09:33.870
Finding ways to get PSKs from WPA PSK networks and crack them.

09:34.610 --> 09:43.150
Or they're used for stealing active directory credentials or hostile portal attacks or you see people using them for social engineering attacks using captive portals.

09:43.150 --> 09:56.770
You don't really see, you know, if you do see attacks against open networks, they're really most effective because of this widespread use of HTTPS and also the widespread use of HSTS on the stuff that really matters and would be attractive to an attacker.

09:57.770 --> 10:12.090
You know, really if you want the most bang for your buck if you're attacking an open network, you're going to be doing, you're essentially going to be looking for static content or mixed content issues that will allow you to inject payloads that will eventually get loaded into the user's browser.

10:12.090 --> 10:24.150
So for example, you know, you start intercepting traffic, set up your interception attack, and you know, you're intercepting traffic and you notice that they're, you know, loading, you know, third party JavaScript code over HTTP.

10:24.150 --> 10:31.370
Well, you can replace that with your own JavaScript code, you know, that basically downloads a beef hook and then you own their browser and eventually their system.

10:31.370 --> 10:41.210
But, you know, really you don't see a lot of credential stealing attacks, you know, because most high value targets are using HSTS and cert pinning and defeating HSTS is difficult at best.

10:42.550 --> 10:45.190
And defeating cert pinning without social engineering is virtually impossible.

10:46.530 --> 10:51.770
And really doesn't make sense in light of other attack paths, you know, just if you're going to go to that length, you might as well just use spear phishing or something.

10:53.310 --> 11:02.070
As for passive sniffing, it honestly rarely works anymore, unless you're, I mean, occasionally you'll see like someone's logging to something over POP3 or something like that, but it's very rare.

11:04.250 --> 11:07.130
And this is kind of the reason why we bring up this background information.

11:07.130 --> 11:10.610
If we kind of go to, you know, look at OWE, right?

11:12.430 --> 11:13.690
You want to go for this part?

11:13.690 --> 11:14.310
You want me to go?

11:14.310 --> 11:14.750
Okay.

11:15.450 --> 11:31.730
So OWE, right, it kind of was introduced fairly recently and it's being rolled out kind of as we speak to kind of solve this problem of not being able to have unauthenticated Wi-Fi access, you know, without, you know, so essentially it's designed to give you encryption capabilities,

11:31.730 --> 11:36.610
you know, and act as if you were connected to an open network, but you don't need to authenticate.

11:36.610 --> 11:42.550
So, you know, how you connect to a HTTPS site over, you know, and you don't have to enter a password.

11:42.550 --> 11:45.590
OWE is supposed to work the same way with open networks.

11:45.990 --> 11:48.830
You know, the way it works is, you know, you start out with your typical association.

11:49.770 --> 11:55.990
And when this happens, the client AP are going to complete a Diffie-Hellman key exchange and create a paralyzed master key or PMK.

11:56.410 --> 12:05.790
After that, the AP is going to initiate a four-way handshake, kind of similar to what WPA does, but using that PMK, and you're going to generate a key encryption key or Keck and a bunch of other stuff.

12:06.530 --> 12:13.750
But at that point you do this four-way handshake and you end up with some encryption keys that are used to protect both unicast and broadcast data.

12:14.350 --> 12:16.510
But basically it's an open network with crypto.

12:18.890 --> 12:36.490
So as far as the actual discovery process, so, I mean, the way this works, right, and I'll load this up in Wireshark so you can get a better idea of what this is doing, but, you know, the way that OWA works is the access point is going to advertise its support for this protocol using an AKM suite selector.

12:36.510 --> 12:40.810
And it's basically an RSN element that's added to all beacon frames that are getting sent out from the AP.

12:41.010 --> 12:51.270
The client is going to discover that the AP is OWA compliant, because it's going to look in the beacon frames and see this RSN, and then it's going to, you know, kick off the authentication process with it.

12:51.270 --> 12:56.290
So to show you what I'm talking about, it's a little more clear if I do it this way.

12:56.390 --> 13:09.730
While he's pulling that up, Gabe just talked about a lot of attacks that you can do against open networks, from injecting your own code and all of these things, and passive sniffing is not something that we commonly use on our wireless pen tests.

13:09.730 --> 13:13.490
It rarely generates anything worth benefiting from.

13:13.490 --> 13:17.730
So OWE is fixing a problem that we weren't even concerned about.

13:17.730 --> 13:25.430
I didn't, I rarely am sniffing passive data to begin with, because everything is typically encrypted by major vendors such as Google and Facebook.

13:25.430 --> 13:29.550
So there's no reason for me to passively sniff open networks anyways.

13:33.270 --> 13:33.870
All right.

13:33.870 --> 13:37.530
So I'm going to, right now I've just launched an OWE access point.

13:37.530 --> 13:41.130
I'm using virtual wireless interfaces here.

13:43.250 --> 13:45.150
I'm just going to filter here for beacon frames.

13:45.150 --> 13:46.690
I hope you can actually see this.

13:48.170 --> 13:48.770
All right.

13:48.770 --> 13:49.710
So, cool.

13:49.710 --> 13:51.350
I have a bunch of beacon frames here.

13:52.210 --> 13:54.810
And the SSID is open WiFi, but it's not actually open WiFi.

13:54.810 --> 14:02.290
This is, if you look here, right, you scroll all the way down to the bottom.

14:02.290 --> 14:12.510
Actually, I'm going to minimize some of these tags here, because they're probably, I don't know why, you know, Wireshark by default, it just opens everything that you want to look at.

14:12.530 --> 14:18.730
It's not helpful, but... RSN.

14:18.730 --> 14:19.030
Okay.

14:19.030 --> 14:20.690
So tag, RSN information.

14:20.690 --> 14:21.390
Can everyone see this?

14:21.390 --> 14:22.990
Can anyone not see this in the back?

14:23.370 --> 14:24.450
It's probably really small.

14:25.830 --> 14:32.310
But, you know, feel free to ask us later if you want us to walk through this in person, because I have a feeling it might be hard to see on the screen.

14:32.610 --> 14:33.050
But okay.

14:33.050 --> 14:34.670
So there's a tag here, RSN information.

14:35.010 --> 14:38.430
And you can see here that, you know, this is coming from the AP.

14:38.430 --> 14:39.230
It's a beacon frame.

14:39.570 --> 14:50.470
And we have this off key management, AKM, and it will actually tell you that it's using opportunistic wireless encryption, and also have the RSN capabilities.

14:50.470 --> 14:54.410
So essentially everything you need to know about how this thing uses crypto, basically.

14:56.010 --> 14:58.210
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:13.190
So elements are actually, what you're seeing here in the Wireshark thing, these are what are known as elements, or information elements.

15:13.330 --> 15:15.990
And they're set between the client and the AP as requests and responses.

15:16.030 --> 15:20.790
And they're used to facilitate protocol agnostic communication between wireless devices.

15:21.450 --> 15:30.170
They're basically, elements are basically a type length value, which means that they're, a TLV is a data type that's comprised of three parts.

15:30.170 --> 15:33.530
It's going to have an element ID, which is identifying the element's data type.

15:33.650 --> 15:40.170
It's going to have a length, which is the element's length, and a value, which is basically, you know, this field is entirely dependent on the element's data type.

15:40.910 --> 15:49.510
So essentially, what this lets you do, is you can send something from the client to the AP, or the AP to the client, and the client doesn't have to really know what data type it's receiving.

15:50.170 --> 15:55.070
I talked to a guy who's into reverse engineering later, and this terrified him earlier.

15:55.250 --> 16:00.870
But essentially, it'll first check, basically the TLV, the element, is just a string of bytes.

16:01.130 --> 16:08.030
And your wireless device is going to look at the first, you know, the first bytes in it, and it's going to use that to determine the data type.

16:08.030 --> 16:10.690
Then it's going to grab the length from the next set of bytes.

16:10.950 --> 16:17.490
And then from there, it's just going to know how, basically how large the next field of bits is, or bytes.

16:18.730 --> 16:26.650
So, the reason why I mention this is that in 802.11, association requests and responses are constructed entirely by appending elements to one another.

16:26.650 --> 16:30.490
So you just get a bunch of these TLVs and start appending them off each other.

16:33.490 --> 16:35.550
And in this case , it's a Diffie-Hellman parameter element.

16:36.450 --> 16:41.330
And this is how the AP and the client give each other their public keys.

16:41.670 --> 16:54.390
So, you know, essentially, once you reach the association process, the client's going to send an association request to the AP, and it's going to have an element in, you know, kind of in the packet there that is going to contain its public key.

16:54.390 --> 17:00.990
The AP is then going to respond with the association response, and there's going to be an element, a Diffie-Hellman parameter element, that's going to have the AP's public key.

17:00.990 --> 17:05.150
And at this point, they've exchanged keys, and they proceed to the four-way handshake we talked about.

17:06.550 --> 17:13.330
So just to kind of show you how that works, so we have this OWE access point running right now.

17:14.430 --> 17:19.270
And I'm going to get this thing to authenticate.

17:20.790 --> 17:21.430
All right.

17:22.350 --> 17:24.470
So on the left, we're just using WPA supplicant.

17:24.730 --> 17:32.630
We're going to connect to this AP and go back to Wireshark.

17:34.430 --> 17:36.350
And at this point, I'm just going to start sniffing packets again.

17:36.350 --> 17:40.090
Actually, I might have to do this a second time because I missed it.

17:41.570 --> 17:42.330
Kill that.

17:42.330 --> 17:44.450
And then I'm going to start.

17:45.890 --> 17:47.490
That's going to associate.

17:49.230 --> 17:53.530
And I'm going to change this to say that I don't want any beacon packets because there are a lot of them, and they'll get in the way of what we're doing.

17:54.290 --> 17:54.650
Okay.

17:55.150 --> 18:03.030
So let me just figure out... Did I lose this thing here?

18:06.400 --> 18:12.610
Hey, man, do you know how to like... Oh, I got it.

18:12.610 --> 18:13.110
Never mind.

18:13.270 --> 18:13.570
Okay.

18:13.570 --> 18:14.010
Cool.

18:14.650 --> 18:18.070
So here we have... I'm going to try to find that.

18:18.210 --> 18:18.490
Okay.

18:18.490 --> 18:20.750
So here we have the probe request, probe response.

18:21.270 --> 18:22.670
We briefly talked about that.

18:22.670 --> 18:25.990
I'm going to scroll down until we see... Okay.

18:25.990 --> 18:29.070
Here's the association request that we talked about that's coming from the AP.

18:29.190 --> 18:30.310
Or I'm sorry, from the client device.

18:30.310 --> 18:35.030
And if you look in here, we have this extended tag, which is this element we were talking about.

18:35.030 --> 18:39.510
And it contains the public key from the client device that's being sent to the AP.

18:39.650 --> 18:42.670
Then you have an acknowledgment from the access point.

18:42.790 --> 18:47.610
And then below that, you have an association response that is, you know, literally the same thing.

18:47.610 --> 18:49.890
Here we have these OWE Diffie-Hellman parameters.

18:50.230 --> 18:53.870
And then that's going to get sent back to the client device there.

18:53.870 --> 18:55.450
So then the key exchange happens.

18:55.650 --> 18:58.470
And we have this little four-way handshake here.

18:58.470 --> 19:02.130
And then you have basically encrypted open Wi-Fi, which is what happens after that.

19:02.130 --> 19:02.250
Right.

19:02.250 --> 19:04.290
And all this would happen invisibly to you.

19:04.390 --> 19:08.950
If you just opened up your phone, looking at Wi-Fi networks, you would see an open network.

19:08.950 --> 19:10.010
You would connect to it.

19:10.010 --> 19:17.330
If your phone is capable of OWE, it would read that packet that... Or those OWE packets that Gabe was just pointing out.

19:17.390 --> 19:18.770
And then it would go through that process.

19:18.770 --> 19:21.330
If not, it would just connect to an open network normally.

19:22.190 --> 19:22.610
Yeah.

19:23.670 --> 19:24.750
Yeah, exactly.

19:24.850 --> 19:28.110
I mean, so... I guess the problem with OWE, right?

19:28.110 --> 19:29.470
I mean, it does some good things.

19:29.470 --> 19:33.090
It addresses the need to provide encryption for unauthenticated wireless connections.

19:33.530 --> 19:36.070
And also makes use of protected management frames.

19:36.370 --> 19:37.730
And makes them mandatory.

19:37.730 --> 19:39.990
We're going to go more into that a bit later.

19:41.450 --> 19:46.410
Unfortunately, the thing that it does not do is it does not provide a means of verifying the identity of the access point.

19:46.410 --> 19:48.390
We're not the first ones to point this out.

19:49.150 --> 19:50.970
You know, I mean, people have been kind of bringing this out.

19:50.970 --> 19:56.570
Even the authors are like, you know, in the RFC itself, there's actually a big disclaimer saying it does not do this.

19:56.970 --> 20:01.070
But, you know, just want to do a little thought experiment here.

20:01.790 --> 20:06.070
Imagine if HTTPS did not provide a means of verifying the identity of the web server.

20:06.130 --> 20:12.410
So, in other words, whenever you use HTTPS, everyone used self-signed certs and no warnings were issued for anything whatsoever.

20:12.950 --> 20:16.550
It would kind of negate the effectiveness of HTTPS, right?

20:16.550 --> 20:20.850
And that's kind of what OWE is like, you know.

20:23.850 --> 20:25.910
It's hilarious.

20:28.930 --> 20:32.950
So, yeah.

20:34.950 --> 20:43.850
So, OWE doesn't address any real threat or attack that you see in the wild today.

20:43.850 --> 20:55.070
It's only encrypting, you know, the traffic, which if I'm standing up my access point and you're connected to me, I'm a network admin at that point, I'm going to see your traffic regardless because I'm going to route it wherever I want.

20:55.210 --> 20:58.910
It doesn't matter if it's encrypted between your phone and my access point.

20:58.910 --> 21:01.830
Once it gets to my access point, I'm in control of the packets.

21:02.890 --> 21:03.330
Yeah.

21:03.330 --> 21:10.950
So, I mean, it really only succeeds in preventing malicious users from doing passive sniffing, which, as we mentioned, is kind of a fruitless exercise in the first place.

21:12.290 --> 21:14.470
So, yeah.

21:16.190 --> 21:17.850
So, all right.

21:17.850 --> 21:23.330
So, when we kind of embarked on it, we kind of a few months ago, we were like, hey, we should look into ways to attack OWE.

21:23.330 --> 21:25.790
And we thought it would be much more complicated than it actually was.

21:26.410 --> 21:28.870
And it turned out it's actually not really that hard.

21:32.870 --> 21:33.510
Right.

21:36.150 --> 21:45.510
So, I mean, the first thing, I mean, if you do want to, I mean, the first technique that we, I guess, I don't even want to say we came up with this because it's literally the same attack that people have been using for 20 years.

21:46.170 --> 21:49.990
But the first technique is just to stand up an OWE evil twin.

21:49.990 --> 21:55.390
You make an evil twin access point using your favorite rogue AP tool, like sniff glue.

21:58.050 --> 22:02.790
And then you, you know, do what you're going to do.

22:02.790 --> 22:06.590
So, which, I mean, we kind of demonstrated that works here.

22:06.590 --> 22:14.770
I mean, like, just to keep this simple, I'm just going to tell WPA supplicant to start probing for stuff.

22:15.850 --> 22:26.750
This is pretty much exactly what would happen if you were just wandering around somewhere and had your Wi-Fi on and someone stood up, like they essentially knew the network on your PNL and stood up their own access point.

22:26.970 --> 22:27.630
Right.

22:27.650 --> 22:30.330
As expected, it would connect.

22:32.590 --> 22:33.250
Yeah.

22:33.250 --> 22:37.010
I mean, that's, it's fairly straightforward.

22:37.010 --> 22:37.250
Right.

22:37.250 --> 22:38.910
That's a standard evil twin attack.

22:38.910 --> 22:40.170
Nothing new there.

22:40.310 --> 22:42.850
It just has OWE.

22:42.850 --> 22:44.110
It's really nothing novel.

22:44.110 --> 22:45.630
But that's the problem.

22:47.230 --> 22:48.230
I just, yeah.

22:48.230 --> 22:50.190
But this is the more surprising part.

22:51.130 --> 23:07.550
As it turns out, and we kind of just discovered this by accident, but, and this is probably like a, honestly, an implementation issue, but, you know, for WPA supplicant, for example, which is what you'll find on most Android phones, you know, well, check this out.

23:07.550 --> 23:07.690
Okay.

23:07.690 --> 23:14.410
So, instead of using an open, an OWE access point, or I'm going to create an open access point.

23:14.710 --> 23:20.770
So, here, I'm going to show you the config file we just, we just used to connect to that OWE access point.

23:22.030 --> 23:22.910
Right.

23:23.110 --> 23:25.390
And you can see, right, it's using key management OWE.

23:25.390 --> 23:29.790
This is an OWE config file we're passing to WPA supplicant.

23:30.790 --> 23:43.330
And then for ePammer, or whatever the tool you're using, trying to remain agnostic here, but, you know, what happens if we spin up an open access point instead?

23:43.650 --> 23:45.310
I mean, this shouldn't work.

23:45.730 --> 23:49.990
But, like, these two things should not be able to communicate with one another.

23:49.990 --> 23:52.210
I mean, unless it's in transition mode, which it's not.

23:55.530 --> 23:56.850
So, here we go.

23:56.850 --> 23:57.410
We've started.

23:57.410 --> 23:58.670
And, oh, what's this at the bottom of the screen?

23:58.670 --> 23:58.950
Okay.

23:58.950 --> 24:13.010
So, we've now have this thing that is configured to use OWE, but it's connected to this open access point, which, at least in this case, WPA supplicant, it looks like you can execute rogue AP attacks against stuff that is expecting an OWE network using open Wi-Fi.

24:13.010 --> 24:17.630
So, you don't even need the new, you know, retooled versions of all these rogue AP tools to do this.

24:17.630 --> 24:22.130
You can just use the same tools that you've been using for the past two decades as an open network.

24:22.130 --> 24:24.390
And in this case, it works.

24:26.290 --> 24:28.570
So,

24:32.720 --> 24:34.780
yeah, that's kind of what we thought about this, too.

24:36.640 --> 24:38.060
You want to talk about compatibility?

24:41.320 --> 24:42.760
Okay.

24:45.100 --> 24:49.420
So, compatibility mode or fast transition mode, I believe it's also called.

24:50.540 --> 25:03.300
What happens is within the beacon frames of an open network, it will have within an information element the a hidden SSID.

25:03.300 --> 25:08.820
So, it will be a BSSID, a MAC address associated to a hidden network that is doing OWE.

25:09.160 --> 25:21.760
So, invisibly to you, your device would connect to that network or receive that frame and notice, oh, hey, if I'm OWE capable, I'm going to look at this hidden network and connect to that instead.

25:22.080 --> 25:29.960
So, yeah, that it's when you're broadcasting frames like that, anyone can read that as well.

25:29.960 --> 25:39.040
So, we got the idea of, well, why can't we just look at that packet and spin up our own evil twin using that same BSSID that's in that same packet.

25:40.000 --> 25:52.260
And , yeah, to kind of illustrate how this works, you know, actually, so I'm going to spin up a, I'm going to wait for this event loop to stop because computers.

25:56.190 --> 26:02.250
So, here what I'm going to do is I'm going to set up this OWE transition mode AP, right?

26:02.650 --> 26:04.770
And what's going to happen, oh, okay.

26:05.230 --> 26:10.970
Did I spell something wrong?

26:14.140 --> 26:15.100
Give me a second.

26:20.690 --> 26:21.970
Oh, open, okay, yeah.

26:21.970 --> 26:24.630
So, that was typo on my part.

26:25.210 --> 26:30.330
So, right here I'm creating a, wouldn't have happened if I was using snip air.

26:31.130 --> 26:34.910
So, essentially we're going to launch this thing.

26:34.910 --> 26:42.030
We just created an OWE transition mode AP, which is kind of interesting because it's actually two APs, it's two BSSs being served off a single piece of hardware.

26:42.830 --> 26:47.690
So, if we go back to Wireshark really fast, and this time we actually do want to look at beacon frames again.

26:47.690 --> 26:49.310
So, I'm going to just kind of replace that.

26:51.210 --> 26:55.210
You'll see two SSIDs here.

26:55.530 --> 26:57.290
The first one is a wild card.

26:57.290 --> 26:58.690
So, this is a hidden SSID that we're seeing.

26:58.690 --> 26:59.730
We don't really know what this is.

26:59.730 --> 27:03.330
And then we see this open SSID.

27:03.730 --> 27:15.870
So, essentially what happens is, you know, the idea of the transition mode is that you're supposed to have a setup where no matter whether the device only supports open, whether it supports OWE or not, it can still connect to this network.

27:16.670 --> 27:23.450
So, what will happen is that the publicly visible SSID, right, it belongs to an open BSS.

27:23.510 --> 27:24.950
So, an open network.

27:26.550 --> 27:30.070
And then we see that here with this SSID that's visible.

27:32.210 --> 27:38.730
And if a device that only supports connecting to open networks, it doesn't support OWE, attempts to connect to this thing, that will be it.

27:38.730 --> 27:40.410
It will just use the open network.

27:40.410 --> 27:56.850
However, an OWE capable device, when it tries to connect, essentially it will look through these fields and grab the SSID of the hidden network that we see here, right.

27:56.850 --> 27:59.590
In this case it says, you know, that SSID is open WiFi.

28:00.010 --> 28:02.030
But it's usually just a random string of characters.

28:02.030 --> 28:05.030
It will grab that SSID and then reconnect.

28:05.030 --> 28:09.970
It will send a pro request for that SSID and then reconnect to the wild card one that we see here, right.

28:11.290 --> 28:14.970
So, just to kind of demonstrate that,

28:20.760 --> 28:23.380
I'm actually going to have to edit this really fast.

28:30.280 --> 28:35.140
I guess the default here is for it to use spelled backwards.

28:35.180 --> 28:35.880
So,

28:40.510 --> 28:42.250
there we go.

28:42.250 --> 28:42.730
Okay.

28:45.090 --> 28:50.430
So, here we have a device that's going to attempt to connect using open explicitly, right.

28:57.380 --> 28:58.880
And I can't type today.

29:04.660 --> 29:09.900
And you'll see here that it's connected to the public SSID, the one that's visible, right.

29:12.300 --> 29:16.820
And you know, all is expected.

29:17.540 --> 29:43.990
If we instead elect to use the config file that makes it look for an open, sorry, the OWE access point, it will first connect to the open WiFi, which you should see in a second.

29:47.200 --> 29:48.340
Come on, demo gods.

29:52.100 --> 29:53.080
That's a little weird.

29:53.080 --> 29:53.380
Okay.

29:53.380 --> 29:54.220
Hang on a minute.

30:09.610 --> 30:10.910
It should be right.

30:14.580 --> 30:15.460
Live demos.

30:15.460 --> 30:16.220
Got to love them.

30:17.500 --> 30:17.780
Yeah.

30:26.120 --> 30:29.060
I don't know.

30:31.480 --> 30:35.180
Well, good thing we have,

30:46.440 --> 30:47.040
all right.

30:47.040 --> 30:48.680
I'm going to try a different config really fast.

31:06.740 --> 31:07.180
Okay.

31:07.180 --> 31:07.600
All right.

31:07.600 --> 31:08.480
I see what I did.

31:08.700 --> 31:10.960
Try to specify the random SSID instead of the open one.

31:10.960 --> 31:11.480
Okay.

31:11.660 --> 31:12.300
Cool.

31:12.360 --> 31:13.320
So, this should work.

31:14.080 --> 31:17.100
So, yeah.

31:17.100 --> 31:33.340
So, you see here, it says try to authenticate with, so, despite the fact that we configured it to go for the visible network, right, which was this, it instead shifts over and tries to go for this randomly visible one.

31:33.340 --> 31:53.140
So, going back to Wireshark really fast, just to kind of show you what we're doing, we replaced the public SSID that's now open WiFi and the random one, the random hidden OWE SSID is this random string of characters there.

31:53.140 --> 31:53.780
It's not really random.

31:53.780 --> 31:56.260
I just mashed the keyboard a bit to get it.

31:56.260 --> 32:00.200
So, it's connected to the random one.

32:01.980 --> 32:03.400
So, that's how that works.

32:05.220 --> 32:06.020
Okay.

32:07.360 --> 32:08.620
And just did that.

32:10.080 --> 32:12.420
I think we just talked about this, basically.

32:12.420 --> 32:12.680
Yeah.

32:13.940 --> 32:16.900
So, this is just basically what we talked about.

32:16.900 --> 32:21.180
But if your client doesn't do OWE, then it's just going to connect to the open network.

32:21.180 --> 32:26.880
But if it does support OWE, then it's going to look for that hidden network and then associate to that one instead.

32:28.640 --> 32:33.800
So, we tried a number of techniques to attack this kind of network.

32:33.800 --> 32:35.840
The first is just creating an OWE evil twin.

32:35.900 --> 32:40.200
We figured just grab the SSID from that information element.

32:40.460 --> 32:50.260
It turns out this doesn't actually work because the client device, and actually, that's why the first demo failed is because we essentially tried to do that.

32:51.480 --> 32:59.500
You know, but if you just try to, you know, create an OWE evil twin using that random SSID, it's going to fail.

32:59.500 --> 33:07.140
However, what does work is that you just do an OWE transition evil twin.

33:08.100 --> 33:10.260
So, you match it exactly.

33:10.260 --> 33:15.340
You match both the public SSID and the private one.

33:16.840 --> 33:22.260
And the third technique that we figured out is just use an OWE evil twin.

33:22.260 --> 33:24.300
Surprisingly, that works as well.

33:24.360 --> 33:27.500
Because remember what we, and once again, that's likely

33:33.380 --> 33:35.520
just a implementation issue or something.

33:35.520 --> 33:37.940
It really isn't defined that way in the RFCs.

33:37.940 --> 33:39.720
But, oops, I locked myself out.

33:46.180 --> 34:01.320
For example, if we just create an open network here, even if this device is expecting OWE, for some reason, it will still connect to your open access point.

34:06.510 --> 34:07.850
Or at least it will try to.

34:09.930 --> 34:11.430
There's some weirdness going on there.

34:11.430 --> 34:12.470
Oh, there we go.

34:14.970 --> 34:16.630
Yeah, off failure.

34:23.320 --> 34:27.080
Well, anyways, it worked earlier.

34:30.580 --> 34:36.700
So, the one thing that I think actually OWE gets right is the use of PMF.

34:36.700 --> 34:39.060
I mean, oh.

34:39.880 --> 34:46.600
Yeah, with management frame protection, you're getting rid of deauths.

34:46.600 --> 34:56.020
So, that's one of the most common attacks that we see today 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:06.680
And that's one of the major features of WPA3 is that it's going to enforce all of that 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:23.780
It's not always possible to get something to connect to you, get a device to connect to your rogue AP simply by providing a superior signal.

35:23.780 --> 35:26.600
That's often actually harder than it looks.

35:27.340 --> 35:38.060
And when that happens, pretty much the go-to technique that people rely on is deauthenting the target access point 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:53.120
Because with management frame encryption, basically you encrypt all the management frames that are going between the client and the AP so you can't just inject deauthentication packets and get it to work that way.

35:56.720 --> 36:08.100
But the problem is that you can still just kind of go back and you know, if you're targeting a client that's like by itself, it's not connected to an AP, then this doesn't even bear any relevance.

36:08.140 --> 36:12.580
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:55.160
Okay, so likely this is a driver issue.

36:55.340 --> 36:57.100
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:33.260
Alright, yeah, so that worked.

37:33.260 --> 37:34.400
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:40.600
Okay, cool.

37:40.600 --> 37:46.620
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:51.440
I can't remember.

37:51.440 --> 37:52.260
Air replay.

37:52.980 --> 37:55.100
Just to specify the AP.

37:55.180 --> 37:57.120
Is it A?

37:57.140 --> 37:58.000
Okay.

38:00.480 --> 38:13.980
Alright, so I'm just going to specify the 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:26.400
And we're going to specify the MAC address of the client device, which in this case was what was it?

38:31.280 --> 38:32.560
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:55.630
So I'm just going to put my third WiFi interface into monitor mode really fast and bring it back up.

38:58.010 --> 38:58.570
And...

39:03.200 --> 39:09.100
Alright, so we're literally just spamming this thing with deauthentication packets right now.

39:09.320 --> 39:11.760
And, you know, nothing's happening.

39:14.060 --> 39:16.760
So you can see that those deauth attacks don't work anymore.

39:16.760 --> 39:20.480
One interesting thing to think about, though, is this.

39:20.540 --> 39:32.920
If we're pushing out protocols in which protected management frames are required, then that's inevitably going to lead to more devices supporting the use of protected management frames.

39:32.920 --> 39:39.420
Right now it's not that widely used because there's not a consistent support across hardware for this kind of thing.

39:40.660 --> 39:54.560
But something to think about, right, the way a lot of IDS systems or wireless intrusion protection systems work to contain these kinds of attacks that we're showing you, essentially if they see a rogue AP and they see one of their own devices connecting to it,

39:54.560 --> 39:56.020
they'll start deauthing it.

39:56.020 --> 40:01.880
Well, now you're going to have a situation where you're going to have widespread use of or support for PMF.

40:02.160 --> 40:07.140
And on top of that, you know, if you're an attacker, you can make use of that as well.

40:07.140 --> 40:24.060
So if you actually successfully execute an attack and get one of these devices to connect to you and you're using PMF yourself, regardless of whether or not you're using OWE, then you've kind of made yourself immune from, you know, what is essentially the standard containment method used by WIPs devices today.

40:24.060 --> 40:29.640
So that's going to be interesting to see how that plays out in terms of how people design those things.

40:30.780 --> 40:31.840
Any questions?

40:34.160 --> 40:38.080
If you have any questions, we're team WhatTheFreak over in the wireless CTF.

40:38.080 --> 40:40.360
If you want to come hang out, ask us stuff over there.

40:40.360 --> 40:41.360
We'll be over there.

40:42.440 --> 40:43.120
Thanks.

