WEBVTT

00:00.000 --> 00:04.820
Sofron is here to talk to us a little bit about hacking Wi-Fi.

00:13.420 --> 00:14.920
All right.

00:15.600 --> 00:16.940
Hello, everyone.

00:16.940 --> 00:19.620
Hope you are having fun at DEF CON so far.

00:20.600 --> 00:23.820
I am Sofron, George Hadji Sofroniou.

00:24.040 --> 00:27.640
The presentation is about breaking Wi-Fi easy connect.

00:28.060 --> 00:30.280
It's a quite theoretical topic, I should say, right?

00:30.280 --> 00:32.660
So we don't have a lot of implementations here.

00:32.660 --> 00:42.040
It's about attacking an abstract protocol, a popular protocol, and a lot of theoretical ideas around it.

00:43.100 --> 00:45.500
So a few things about me.

00:45.660 --> 00:53.360
I have conducted manual security tests, penetration tests for multiple Fortune 500 companies across the world.

00:53.780 --> 00:58.720
I've been focusing on Wi-Fi security for more than ten years now.

00:58.980 --> 01:01.820
I have published some novel association techniques.

01:01.820 --> 01:04.120
These are Wi-Fi association techniques.

01:04.120 --> 01:09.180
These are usually techniques that enable an attacker to gain a money in the middle position in Wi-Fi.

01:09.500 --> 01:11.100
So think of Karma, for example.

01:11.340 --> 01:13.100
How many of you know the Karma attack?

01:13.100 --> 01:14.040
Raise your hand.

01:15.060 --> 01:16.240
I see some hands here.

01:16.240 --> 01:22.200
So the Karma attack, coincidentally, that was 20 years ago when it was first released, it no longer works.

01:23.020 --> 01:26.700
So devices will no longer send these directed probe requests.

01:27.160 --> 01:30.480
But there are other techniques that work, such as known beacons, for example.

01:30.880 --> 01:41.600
I'm also the author of a quite popular framework, open source framework, that combines Wi-Fi association techniques with some phishing strategies called Wi-Fi Phisher.

01:43.180 --> 01:43.880
All right.

01:43.880 --> 01:45.620
So what is the talk about today?

01:45.620 --> 01:50.900
It's about breaking a Wi-Fi protocol, a new Wi-Fi protocol called Wi-Fi as a Connect.

01:51.800 --> 01:55.760
Wi-Fi as a Connect, the purpose is to replace WPS.

01:55.760 --> 01:57.340
How many of you guys know WPS?

01:57.340 --> 01:58.660
Please raise your hand.

01:58.940 --> 01:59.300
Okay.

01:59.300 --> 02:00.020
Most of you do.

02:00.020 --> 02:00.700
Perfect.

02:01.420 --> 02:05.040
So in simple terms, right, what is the purpose of Wi-Fi as a Connect?

02:05.040 --> 02:12.220
The idea is that passwords are too complex to remember for Wi-Fi networks, right?

02:12.860 --> 02:15.760
They're too, yeah, or we're too lazy to remember them.

02:15.760 --> 02:19.340
So let's make this easier, and that's what Wi-Fi as a Connect aims to achieve.

02:20.380 --> 02:26.320
Instead of remembering the passwords, let's scan a QR code to connect to a device, to a network.

02:26.420 --> 02:29.560
Let's use Bluetooth or NFC.

02:29.640 --> 02:30.920
That's the main idea.

02:30.920 --> 02:36.020
We don't want to remember the password of the WPA2 network, so let's use something easier.

02:36.820 --> 02:44.980
And that's what Wi-Fi as a Connect is trying to solve, and as you can imagine, right, there is this balance between usability and security that comes into play.

02:46.180 --> 02:52.880
So think of Wi-Fi as a Connect as a layer on top of your existing WPA2 infrastructure, right?

02:52.880 --> 03:04.740
So you still have your WPA2 network, password-protected network, and Wi-Fi as a Connect is a layer on top of it that facilitates some easier onboarding for devices.

03:06.040 --> 03:11.340
It supports multiple bootstrapping methods with this guy, like scanning a QR code, NFC, Bluetooth.

03:12.540 --> 03:20.420
Now at the same time, this is a very usable protocol, but supposedly it introduces some security features.

03:20.600 --> 03:25.440
It adds security, enhances security, at least compared to WPS.

03:25.440 --> 03:27.120
That's the idea, right?

03:27.120 --> 03:30.080
In theory that was the idea of it.

03:30.340 --> 03:36.440
It is based on the protocol behind, let's say Wi-Fi as a Connect technically is the certification, right?

03:36.440 --> 03:41.040
So you have the certification and the underlying protocol is device provisioning protocol.

03:41.040 --> 03:49.460
Now in this presentation, I will be using these terms, Wi-Fi as a Connect, DPP, device provisioning protocol, as they mean the same thing, right?

03:49.460 --> 03:51.260
So it's the same protocol, same idea.

03:51.260 --> 03:56.020
When I say Wi-Fi as a Connect or device provisioning protocol, I mean the same thing.

03:56.600 --> 04:03.720
Now we use public key cryptography, elliptic curve cryptography for all of the cryptographic operations for Wi-Fi as a Connect.

04:04.280 --> 04:06.680
The certification is currently limited, right?

04:06.680 --> 04:13.120
We have 32 certified devices last month that I checked, it was only 32 certified devices across 12 vendors.

04:13.300 --> 04:20.480
But this is a popular protocol that is supposed to replace WPS, so we are expecting more vendors to implement this in the future.

04:20.820 --> 04:26.040
The same way as we expect people to move from WPA2 to WPA3, right?

04:26.040 --> 04:31.780
And it's the same organization, it's Wi-Fi Alliance that introduces both protocols, WPA3 and Wi-Fi as a Connect.

04:31.820 --> 04:41.240
As of now, we see Wi-Fi as a Connect mostly used in Android devices and partial implementation as you say, right?

04:41.240 --> 04:43.860
It's the initiator mode only.

04:44.260 --> 04:46.840
Now we will discuss what initiator mode is.

04:47.140 --> 04:51.660
So there's some basic theory that we will have to cover, right, before digging into the attacks.

04:51.660 --> 04:53.040
The attacks are fairly simple, right?

04:53.040 --> 04:59.880
The challenge is understanding how the protocol works, understanding the specification, deciphering the specification.

04:59.880 --> 05:02.920
That was one of the challenges, right, for discovering these attacks.

05:04.620 --> 05:09.340
So we have three different pairs, pair of roles here, right?

05:10.220 --> 05:17.460
And a Wi-Fi entity can have three distinct roles from these three pairs, like at the same time simultaneously.

05:18.020 --> 05:23.580
So to the left we have the typical IEEE 802.11 roles, which is the station and the access point.

05:23.580 --> 05:27.900
The station can be your mobile device, your laptop, anything that connects to Wi-Fi.

05:27.920 --> 05:33.180
And the access point obviously can be your wireless router, right, what provides access to a Wi-Fi network.

05:33.260 --> 05:35.460
And the idea is that the station connects to the access point.

05:35.460 --> 05:38.760
This is pretty basic knowledge for Wi-Fi networks.

05:38.760 --> 05:43.320
Now to the right we have the set of roles that are specific to Wi-Fi as you connect.

05:43.840 --> 05:46.280
So we have the initiator and responder roles.

05:46.600 --> 05:49.720
And this is basically who speaks first, right?

05:49.720 --> 05:50.960
Is it the device?

05:50.960 --> 05:52.840
Is it the access point who speaks first?

05:52.940 --> 05:55.560
So Wi-Fi as you connect supports both options.

05:56.660 --> 06:00.540
And then to the right we have the configurator and the enrollee.

06:00.540 --> 06:12.160
The configurator is the entity, the Wi-Fi entity that provides the credentials, the WPA2 credentials to the enrollee.

06:12.160 --> 06:14.260
Because again, that's the idea here.

06:14.260 --> 06:16.340
We don't want to remember the WPA2 password.

06:16.340 --> 06:21.340
We are looking for a way to exchange the WPA2 password without remembering it.

06:21.340 --> 06:24.100
So it's stored somewhere on the access point side.

06:24.140 --> 06:29.220
And we want to transmit it in an encrypted fashion without having to type it.

06:29.520 --> 06:29.660
Right?

06:29.660 --> 06:31.320
That's the idea here.

06:31.440 --> 06:37.320
So the configurator is the entity that provides these credentials to the enrollee.

06:38.080 --> 06:39.860
And again, we can have multiple combinations.

06:39.860 --> 06:43.400
We can have a station that is a responder and an enrollee for example.

06:45.180 --> 06:47.760
Now, what are the phases of Wi-Fi as you connect?

06:47.760 --> 06:51.320
We start with the bootstrapping to establish some trust.

06:52.280 --> 06:53.240
And this is what we said earlier.

06:53.240 --> 06:54.920
We have different bootstrapping methods.

06:54.920 --> 07:07.020
We have the QR code, we have NFC, we can have Bluetooth or we can have something called PKEX which is a Wi-Fi sub-protocol within the Wi-Fi as you connect protocol.

07:07.980 --> 07:09.420
That works like that.

07:09.420 --> 07:12.560
We exchange public keys and that's the idea.

07:12.560 --> 07:19.800
The purpose of the bootstrapping phase is for the two entities to receive each other's public key.

07:19.800 --> 07:25.440
So the initiator will receive the public key from the responder, the responder will receive the public key from the initiator.

07:25.780 --> 07:26.200
Right?

07:26.200 --> 07:27.780
These are not the credentials.

07:28.420 --> 07:36.360
These are the public keys that they will use in the next phase, in the authentication phase, to authenticate each other.

07:36.700 --> 07:43.800
Now, this whole process as we go through the phases of Wi-Fi as you connect, this can happen in milliseconds or it can happen after hours.

07:43.800 --> 07:55.240
Maybe they have done the bootstrapping phase and then after hours they decide to authenticate so you can have a configurator basically providing credentials to an enrollee afterwards.

07:56.160 --> 07:59.660
So after they received each other's public key, they proceed with the authentication.

07:59.660 --> 08:04.520
They basically leverage the public keys to establish a symmetric key.

08:04.520 --> 08:06.080
And that's a very common practice, right?

08:06.080 --> 08:09.920
If you are familiar with SSL, that's what we're doing in cryptography.

08:09.920 --> 08:15.020
We're using a symmetric cryptography to establish a symmetric key for efficiency.

08:15.940 --> 08:26.780
So when they have established a symmetric key, the next phase is the configuration which is basically agreeing which will be the configurator and which one will be the enrollee.

08:27.520 --> 08:32.620
And this is, you know, a sub-protocol within the actual Wi-Fi as you connect protocol.

08:32.620 --> 08:45.280
After they agree on that, they will be, the configurator will be sending something called the connector that includes the credentials for the WPA2 or WPA3 network.

08:45.920 --> 08:46.880
So that's the idea.

08:46.880 --> 08:51.820
These are the four sub-protocols within the Wi-Fi as you connect protocol.

08:52.960 --> 08:58.160
All right, now, regarding our methodology today, right, we have three steps.

08:58.660 --> 08:59.980
Reconnaissance phase.

08:59.980 --> 09:04.460
We want to be able to identify valid Wi-Fi as you connect networks.

09:05.080 --> 09:09.760
And at the same time, we want to know the stations that connect to this Wi-Fi as you connect network.

09:09.760 --> 09:10.740
And that's the reconnaissance phase.

09:10.740 --> 09:11.920
That should be pretty easy.

09:12.120 --> 09:15.440
Right, I would say that the difficulty is incremented here.

09:15.440 --> 09:18.040
So the reconnaissance is probably the easiest step, right?

09:18.080 --> 09:20.940
So then, how can we access a Wi-Fi as you connect network?

09:20.940 --> 09:23.160
That will be our second challenge for this talk.

09:24.220 --> 09:26.480
And finally, owning the Wi-Fi as you connect network.

09:26.480 --> 09:28.020
Now, what's the difference, right?

09:28.020 --> 09:30.580
If we access the network, have we owned the network too?

09:30.580 --> 09:31.240
Well, no.

09:31.240 --> 09:33.240
That's not how it works in Wi-Fi networks.

09:33.640 --> 09:38.880
Owning a Wi-Fi network means that we are becoming the access point.

09:38.880 --> 09:40.660
We are becoming the configurator.

09:40.660 --> 09:46.180
We are able to get money in the middle position for all the devices connected to that network.

09:46.180 --> 09:48.300
That's what owning a network means.

09:48.300 --> 10:01.600
So we don't only want to compromise, like, access the network, but we also want to force all wireless clients to connect to us, right?

10:01.600 --> 10:02.980
We are the router, basically.

10:02.980 --> 10:04.040
We are the configurator.

10:04.040 --> 10:05.360
We are provisioning the credentials.

10:05.360 --> 10:06.560
That's what own means.

10:06.560 --> 10:08.800
Which is obviously the most difficult task.

10:09.820 --> 10:15.820
All right, let's start with the reconnaissance for discovering active Wi-Fi as you connect networks.

10:16.620 --> 10:23.720
The easiest way is sniffing beacon frames or probe responses so they are advertising the DPP AKM, right?

10:23.720 --> 10:29.280
So that's a fairly simple way to identify valid Wi-Fi as you connect networks.

10:29.600 --> 10:36.600
Now, for identifying the stations, right, that connect to this Wi-Fi as you connect network, this is a little bit more challenging.

10:36.980 --> 10:44.100
And the reason is that Wi-Fi as you connect includes a private introduction protocol, a privacy enabling protocol.

10:44.200 --> 10:45.120
Which is cool, right?

10:45.120 --> 10:59.480
It's very cool that Wi-Fi Alliance decided to implement this privacy enabling feature so that when a station connects to a Wi-Fi as you connect network, that's not, you know, apparent to all the nearby devices.

10:59.480 --> 11:06.920
It's not obvious and it's not something that an attacker can sniff the traffic and identify that, oh, this connection is happening.

11:07.000 --> 11:08.380
So let's see a little bit how this works.

11:08.380 --> 11:11.380
So now we have these four sub protocols that I went through earlier.

11:12.000 --> 11:19.560
This particular attack that we will be discussing is on the network access phase of the Wi-Fi as you connect protocol.

11:19.880 --> 11:34.120
So what happens here, the private introduction protocol, the initiator will send a private peer introduction message and the responder will reply if the responder supports this privacy enabling feature with a private peer introduction notify message.

11:34.160 --> 11:41.400
And if that works, the connector that includes the credentials for the network will be transmitted encrypted, right?

11:41.400 --> 11:44.120
Again, very cool feature from Wi-Fi Alliance.

11:44.120 --> 11:49.480
We want this type of privacy when we're connecting to Wi-Fi networks.

11:49.980 --> 11:55.360
Now the problem here, right, and that's a very simple attack, is that an attacker can block this message.

11:56.140 --> 11:56.800
Right?

11:56.920 --> 12:05.540
And here I want to, you know, let you guys know in case you're not very familiar with Wi-Fi security, blocking messages, it's quite simple, right?

12:05.540 --> 12:17.980
Using commodity hardware, using techniques such as reactive jamming, it's very trivial for an attacker to block a Wi-Fi frame, a wireless frame, right, from reaching the destination.

12:18.180 --> 12:26.480
By doing that, we are enforcing the less secure, the less private protocol, a typical peer discovery request.

12:26.500 --> 12:37.020
And the responder will reply with a peer discovery response and they will use the unencrypted protocol, which as you can see here , that's how a connector looks like, right?

12:37.020 --> 12:45.680
Most of the data here is encrypted, but as you can see, the SSID, the network that the station tries to connect, is unencrypted.

12:46.220 --> 12:46.700
Right ?

12:46.920 --> 12:54.060
So even though it's very cool that Wi-Fi Lens introduced this protocol, the way to bypass and circumvent this control is very, very trivial.

12:54.700 --> 13:00.060
Are you guys curious what Wi-Fi Lens responded to this finding when I disclosed this to them?

13:00.060 --> 13:00.920
Let's see.

13:01.960 --> 13:04.000
So they consider this an acceptable risk.

13:04.000 --> 13:11.720
Apparently, you know, circumventing the private introduction protocol is basically privacy exposing.

13:12.600 --> 13:13.300
Whoa.

13:13.680 --> 13:14.200
Right?

13:14.200 --> 13:14.920
Good for them.

13:14.920 --> 13:17.080
I mean, they are willing to take risks in life.

13:19.200 --> 13:19.980
All right.

13:19.980 --> 13:21.420
What we are recommending.

13:21.420 --> 13:28.060
We are recommending that future versions of the specification should validate the preferences, right, in subsequent exchanges.

13:28.060 --> 13:41.900
So basically, we want these two entities, after they finish this first interaction, right, we want the station to say, hey, I originally wanted to connect with you using this private protocol.

13:42.280 --> 13:42.840
Right?

13:42.840 --> 13:44.280
And the access point says, hey, really?

13:44.280 --> 13:50.100
Because I received a message that you wanted to connect with a simple non-encrypted protocol.

13:50.260 --> 13:55.760
That means that someone was manning the middle of our connection, right, and aborted the connection.

13:55.900 --> 13:58.940
It's a very simple remediation control.

14:00.800 --> 14:01.940
All right.

14:02.240 --> 14:04.380
And that's all we have to say about reconnaissance, right?

14:04.380 --> 14:18.480
By downgrading to the weaker, simple protocol, we can identify valid stations and we can also, you know, just easy identify Wi-Fi as a connect network by looking at the advertised DPP AKM.

14:19.360 --> 14:23.900
Now, let's discuss a little bit about how we can access Wi-Fi as a connect network.

14:25.860 --> 14:28.740
And for that, we will go to the bootstrapping phase of the protocol.

14:28.740 --> 14:31.260
As a reminder, we have multiple bootstrapping methods.

14:31.260 --> 14:34.400
We have Bluetooth, we have NFC, we have QR code.

14:34.580 --> 14:38.840
Well, there is one called PKX that I briefly discussed earlier.

14:39.060 --> 14:43.240
This is a Wi-Fi sub-protocol within Wi-Fi as a connect .

14:43.560 --> 14:47.540
Again, the idea of Wi-Fi as a connect is that we're too lazy to remember long passwords .

14:47.540 --> 14:51.440
So the PKX is using short numeric codes, right?

14:51.440 --> 14:53.940
It's kind of like WPS pin, if you remember that.

14:53.940 --> 14:57.600
Just short numeric codes instead of a long, complex password.

14:57.600 --> 15:02.520
And this is irony right here because I don't think it's really hard to remember long passwords.

15:03.600 --> 15:05.540
And we're using elliptic curve here.

15:05.540 --> 15:15.120
So the thing is that in order for PKX to work, right, the initiator and the responder, they need to agree on a cryptographic group.

15:16.180 --> 15:19.460
That's a set of points, right, for elliptic curves.

15:19.460 --> 15:22.440
They need to agree on the elliptic curve that they want to use.

15:22.840 --> 15:24.420
And that's the first thing that they're doing.

15:24.420 --> 15:27.640
Before they start doing any cryptographic operations, they need to agree on a group.

15:27.960 --> 15:33.620
So the initiator originally has a list of preferred groups, right, with an order of preference.

15:34.140 --> 15:45.960
The initiator will propose a cryptographic group and the responder can either accept the group if they also are willing to use that group or they can propose a different group, downgrade to a different group if it doesn't support the proposed one.

15:46.160 --> 15:47.160
Here's how it works, right.

15:47.160 --> 15:50.820
So you can see to the left the list of preferred groups for the initiator .

15:50.820 --> 15:53.140
You can see the list of preferred groups for the responder.

15:53.200 --> 15:58.760
So the initiator will start with the first preferred group on the list, right, which is group 26.

15:59.060 --> 16:00.380
So it will ask group 26.

16:00.380 --> 16:04.720
The responder does not support group 26, as you can see.

16:04.840 --> 16:12.140
So it will propose their own preferred group instead, which is group 30, right.

16:12.340 --> 16:14.680
And the initiator does support group 30.

16:14.680 --> 16:18.220
So they will agree on group 30 here, if everything goes well.

16:18.680 --> 16:19.900
Here's what could go wrong here.

16:19.900 --> 16:31.800
An attacker can block that message from the responder for group 30 and instead impersonate the responder and send a message that they want group 27.

16:31.800 --> 16:36.080
Now this impersonation works because we're in the very early phase of the protocol.

16:36.080 --> 16:38.180
They haven't exchanged public keys yet.

16:38.760 --> 16:41.440
So all of these messages are unencrypted.

16:41.440 --> 16:49.720
It's possible for the attacker to impersonate the responder because they have not established any trust yet, right.

16:49.740 --> 17:04.500
So the attacker blocks the message using reactive jamming techniques that we discussed, right, and then sent a different group, group 27, that both initiator and the responder have in their list, but it's their least preference option.

17:04.880 --> 17:15.740
So that's a group downgrade attack here by forcing them, you know, because the initiator will say, yeah, I have group 27 and they will agree on group 27, which is their least preferred option here.

17:17.300 --> 17:24.180
So what we have here is that the group negotiation lacks cryptographic safeguards.

17:24.180 --> 17:29.340
We have seen these safeguards in WPA3, but they don't exist in Wi-Fi as a connect .

17:29.480 --> 17:35.280
A weak group selection means weaker Diffie-Hellman exchange, which also means an easier brute forcing.

17:35.680 --> 17:45.100
And there are also reasons for someone, right, some very paranoid users , they want to avoid certain groups, certain cares because they believe they have been backdoored, for example.

17:46.000 --> 17:52.860
But in all honesty, right, in a typical Wi-Fi penetration testing, exploiting a weaker group is quite uncommon.

17:52.880 --> 17:59.720
So this is mostly applicable for, you know, strong adversaries, nation state threat actors.

18:00.680 --> 18:06.220
But it's still something for a protocol that is supposed to be widely used, this is quite important.

18:07.400 --> 18:12.340
Wi-Fi Alliance said that it will take this matter under discussion to decide a group of action.

18:12.340 --> 18:17.220
I haven't heard back from them, but yeah, hopefully they will decide to fix this.

18:17.220 --> 18:19.100
It's not like the fix is difficult, right?

18:19.100 --> 18:36.340
What we're recommending is that in a later phase, in a commit reveal phase, they just verify, you know, they initiate on the responder, they share their preferred groups and say, hey, I wanted to connect, I wanted us to use that group, right?

18:36.340 --> 18:40.020
So why did we end up using that least preferred group?

18:40.200 --> 18:41.540
That's all it takes, right?

18:41.540 --> 18:44.640
It's not something more complex than that.

18:44.960 --> 18:54.420
And if there is a protocol, if there's a mismatch, then the protocol needs to be aborted because someone is conducting an attack in this wireless range, in the wireless range, right?

18:56.100 --> 18:56.620
Right.

18:56.620 --> 19:02.580
Again, that's not very easy to be conducted in a typical Wi-Fi penetration testing, right?

19:02.580 --> 19:04.220
So we're looking for something easier here.

19:04.220 --> 19:07.340
And for that, let's go to the authentication phase of the protocol.

19:07.820 --> 19:10.360
Now they have established, they have exchanged some public keys.

19:10.360 --> 19:12.280
Let's see how this authentication protocol works.

19:12.280 --> 19:22.100
What I found out after reading and reading and reading the specification, is that apparently Wi-Fi Easy Connect is supporting mixed authentication.

19:22.100 --> 19:27.740
And that was quite surprising, I'm telling you, because it wasn't clear, right?

19:27.780 --> 19:42.020
When I was reading the specification, it wasn't clearly stated that Wi-Fi Easy Connect supports a mixed authentication, that different provisioning methods provide different level of security.

19:42.120 --> 19:43.760
It was something that I had to decipher.

19:43.760 --> 19:47.840
And again, that's the challenge when we're reviewing these Wi-Fi protocols and specification.

19:48.020 --> 19:52.720
The challenge is deciphering what Wi-Fi Alliance is trying to say.

19:53.700 --> 20:04.000
So what we have here is that some of the devices obviously support only have partial implementation, like we discussed about Android, right, that only have the initiator mode.

20:05.620 --> 20:09.940
And we can have system administrators, network operators, that enable multi-provision mode.

20:09.940 --> 20:14.700
So you can have QR code and PKEX for the same Wi-Fi Easy Network at the same time.

20:15.160 --> 20:18.740
And that would be fine if they would provide the same level of security, but they are not, right?

20:18.740 --> 20:20.620
They provide different level of security.

20:20.620 --> 20:23.720
Some provisioning methods skip mutual authentication.

20:24.600 --> 20:26.840
So you can have mixed authentication modes.

20:26.960 --> 20:33.080
So that means that we can have an initiator that is having the typical mutual authentication method, right?

20:33.080 --> 20:37.600
But we can have another initiator that only has responder authentication.

20:37.980 --> 20:40.820
The initiator is never being authenticated.

20:42.100 --> 20:50.500
And the one bootstrapping method that is vulnerable, right, that only supports single factor authentication is the QR code.

20:50.500 --> 21:03.760
So when you are scanning a QR code to connect to a network using Wi-Fi Easy Connect, you would expect that, you know, the client, that your mobile device uses a certificate from the secure enclave part of your phone, for example.

21:03.760 --> 21:05.260
But that's not the case.

21:05.460 --> 21:08.820
There is no authentication for your device.

21:08.820 --> 21:16.160
When you are scanning a QR code, your device is never being authenticated.

21:16.420 --> 21:20.920
You can use that QR code and enroll as many devices as you want.

21:21.760 --> 21:30.440
The responder, the configurator, the access point will never know which device is connecting to their network.

21:30.440 --> 21:32.860
You just have an open door there.

21:32.860 --> 21:35.560
As soon as you have that QR code, you have an open door.

21:39.060 --> 21:41.940
So the idea here is locating that QR code.

21:41.940 --> 21:47.820
And locating that QR code can happen with sniffing the DPP authentication requests.

21:48.500 --> 21:52.180
There is a way to conduct Wi-Fi triangulation.

21:52.180 --> 21:56.100
So if you are doing red teaming, for example, you want to locate that.

21:56.100 --> 21:57.640
Sometimes this QR code is very visible.

21:59.340 --> 22:02.780
Organizations, they sometimes hang it on a wall somewhere.

22:03.600 --> 22:06.200
And it's very trivial to locate that QR code.

22:06.200 --> 22:07.800
And that's an open door again.

22:07.820 --> 22:10.480
There is no authentication from the station side.

22:10.480 --> 22:16.760
You can enroll as many devices as you want, as long as you have this QR code.

22:17.360 --> 22:25.080
But in case this QR code is somewhere hidden, you can use triangulation techniques to identify the physical location of that QR code.

22:26.440 --> 22:30.060
So that's an interesting outcome from this.

22:30.060 --> 22:33.540
The QR code method is basically an open door.

22:34.340 --> 22:40.360
And the reply for Wi-Fi Alliance is that yes, this is a policy decision for the deployed enrollee.

22:40.360 --> 22:47.080
Which means that Wi-Fi Alliance seems to be aware of this in a way and they seem to accept the risk.

22:47.180 --> 22:48.300
But that's a problem.

22:48.860 --> 22:54.360
Intended mixed authorization modes might help for flexibility, but flexibility can backfire.

22:55.600 --> 23:16.700
And if we rely on the network operators that they don't have the proper security training, they don't have the proper knowledge to do threat modeling, for example, then it's very expected, I should say, to have misconfigured Wi-Fi as you connect networks.

23:16.700 --> 23:20.980
So you could have a network that supports both PKEX and QR code.

23:20.980 --> 23:26.480
Well, the QR code circumvents the mutual authentication, while PKEX is not.

23:27.140 --> 23:30.000
So what we're looking for here is a strict mutual authentication mode.

23:30.000 --> 23:32.900
When we're saying mutual authentication, we mean mutual authentication.

23:32.900 --> 23:44.900
That means that the clients connecting to the Wi-Fi as you connect network, they should send a certificate that is now stored on the other side and is expected every time they connect.

23:47.880 --> 23:48.460
All right.

23:48.460 --> 23:49.800
And that's for gaining access, right?

23:49.800 --> 23:52.200
If we find a QR code, we can't get into the network.

23:52.200 --> 23:56.380
But now the most challenging is how can we own a Wi-Fi as you connect network?

23:56.380 --> 24:04.760
How can we actually force wireless devices to connect to our own malicious configurator?

24:05.840 --> 24:09.860
Let's go back to bootstrapping and we're still staying on the QR code method here.

24:09.860 --> 24:12.940
One way is to simply do a QR code.

24:14.220 --> 24:17.500
Because you cannot authenticate a piece of paper.

24:17.500 --> 24:28.120
If they rely on a piece of paper to connect to a conference Wi-Fi, that can be very easily duplicated by an attacker.

24:29.140 --> 24:31.480
And you cannot know which one is the valid one.

24:31.580 --> 24:33.060
So that's a very trivial method.

24:33.060 --> 24:40.020
You cannot rely on a piece of paper or a device for authenticating to a Wi-Fi as you connect network.

24:41.920 --> 24:47.080
Another way, PKEX code reuse exploitation.

24:48.500 --> 24:53.000
And here that was also something that was found on host APD.

24:53.000 --> 24:55.380
We have a CVE for this.

24:55.800 --> 25:06.240
And the idea here is that PKEX codes, right, again as a reminder, PKEX is one of the bootstrapping methods along with Bluetooth, along with NFC.

25:07.480 --> 25:13.720
And what we found is that these codes, they should not be reused, right?

25:14.160 --> 25:16.800
But on host APD, they were not deleted.

25:16.800 --> 25:22.480
They would keep using the same code for many different devices that want to connect to the Wi-Fi as you connect network.

25:23.020 --> 25:28.000
They would use the same public key, the same code for different public keys that were generated.

25:28.740 --> 25:32.260
And that's a way for an attacker to masquerade as a legit responder.

25:32.260 --> 25:34.280
So let's see how this works.

25:34.540 --> 25:38.220
For PKEX, they will generate an ephemeral key pair.

25:38.220 --> 25:43.320
So capital X is the public key, lower case X is the private key.

25:44.820 --> 25:48.240
And they will encrypt the public key, right?

25:48.240 --> 25:52.260
The responder needs to receive that capital X, that public key.

25:52.420 --> 25:54.020
They will encrypt it.

25:54.660 --> 25:57.000
That's what addition does in elliptic curves, right?

25:57.000 --> 25:58.320
With the hash of the code.

25:58.320 --> 26:00.840
They already have exchanged the code out of bound, right?

26:00.840 --> 26:01.660
That's the idea.

26:01.660 --> 26:04.840
That short numeric code, they both know that short numeric code.

26:04.860 --> 26:19.140
So the initiator will send a PKEX exchange request with the encrypted now public key and the responder will, as they know the code, they can generate the hash, they will subtract it and they can get that public key.

26:19.280 --> 26:24.740
What could go wrong here is that an attacker can block that message from reaching the target.

26:25.440 --> 26:31.800
And again, they haven't established any trust yet so the attacker can impersonate the responder as needed.

26:32.640 --> 26:38.800
So they will retrieve the value X, the public key.

26:38.940 --> 26:47.220
They will reply back as normal as the responder continuing the bootstrapping as an attacker would do because the attacker also knows the code at this point, right?

26:47.880 --> 26:51.500
And they will proceed with the rest of the protocol, authentication, configuration, network access.

26:51.500 --> 26:55.600
So we can say that this is like a PKEX evil twin type of attack.

26:57.120 --> 26:59.800
Now, this is not a specification issue.

26:59.800 --> 27:10.500
That's just something that we expect vendors to implement it wrongly, let's say, like HostAPD did that.

27:10.800 --> 27:15.940
But this is expected that other vendors might implement it wrong for usability reasons.

27:15.940 --> 27:20.400
Also, users tend to reuse codes all the time.

27:20.760 --> 27:24.440
So that's a technique for misconfigured networks.

27:24.440 --> 27:27.500
Not exactly an attack against the specification.

27:29.600 --> 27:30.480
All right.

27:30.480 --> 27:31.980
Still not easy, right?

27:31.980 --> 27:47.360
Because the techniques that we discussed for owning the network QR code, duplicating a piece of paper, that requires some user interaction, some social engineering to enforce the victim's users to actually scan that QR code.

27:47.840 --> 27:53.320
But also, that later technique, we need to know the code, right?

27:53.960 --> 28:03.720
It has a little bit of technique regarding reacting faster than the legitimate responder.

28:03.720 --> 28:07.380
But we're looking for something better that doesn't rely on PKEX only.

28:07.380 --> 28:12.820
So for that we will have to go to the configuration sub-protocol of WiFi Easy Connect.

28:16.660 --> 28:25.400
And the way that this works is that we have done the DPP bootstrapping, so both entities have exchanged their public keys.

28:26.300 --> 28:37.500
We have done the DPP authentication, so using this exchange certificates they have established a symmetric key, in this case called symmetric KE.

28:39.380 --> 28:50.080
And the enrollee, right, for the configuration protocol, the enrollee will send a DPP configuration request where they include their role, right?

28:50.080 --> 29:04.520
The enrollee will say, hey, configurator, I am actually an enrollee and I would like to get some configuration, right, with all the data that I need, all the configuration data that I need to connect to that WiFi Easy Connect network.

29:05.300 --> 29:07.660
And the configurator will happily provide that.

29:07.660 --> 29:09.640
The configurator will happily say, okay, here you go.

29:09.640 --> 29:14.860
And all of these are encrypted with a symmetric key that they have established in the previous phase.

29:15.800 --> 29:17.920
What could go wrong here?

29:22.460 --> 29:32.720
The attacker, who has already exchanged public keys, can lie and say, hey, I'm not actually an enrollee, I'm a configurator, like you.

29:32.720 --> 29:36.500
Because this is something that is supported by the WiFi Easy Connect protocol.

29:36.500 --> 29:41.260
It is possible to have multiple configurators in a WiFi Easy Connect protocol.

29:41.260 --> 29:45.220
Think of a WiFi Easy Connect that's quite large in a conference like DEF CON.

29:45.340 --> 29:47.520
You can have multiple configurators.

29:47.720 --> 29:56.660
So it is possible for a malicious enrollee, right, to pretend that they are a configurator, not an enrollee.

29:56.660 --> 30:00.060
All they need to do is to change that value, the net role value.

30:00.200 --> 30:09.260
And instead of, you know, asking configuration data as they are an enrollee, they are asking configuration data as they are a configurator.

30:09.960 --> 30:15.820
And in this case, the configurator will reply back with the DPP envelope data.

30:15.820 --> 30:19.820
Now all these are encrypted with that symmetric key, but they have established that symmetric key, right?

30:19.820 --> 30:34.400
So we're talking about a malicious enrollee here, someone who has already joined the network, right, and they want to do what we call in security, right, privilege escalation, elevate their privileges to configurator.

30:36.340 --> 30:48.220
So the DPP envelope data that the malicious enrollee will receive is a very interesting file that is used for backing and restoring configurator credentials.

30:48.460 --> 30:54.660
It is used for having multiple configurators in a WiFi Easy Connect DPP network.

30:55.460 --> 31:04.180
Its management is vendor specific, so, you know, this could be stored locally in some cases or can be stored in memory.

31:05.240 --> 31:11.920
And the idea is that it's using a typical password-derived key encryption, symmetric encryption, right?

31:11.920 --> 31:14.620
So you can decrypt this envelope and own the network.

31:14.620 --> 31:20.380
And you can do that by conducting a very typical offline brute force attack.

31:20.700 --> 31:23.140
Now this is, if you ask me, this is ridiculous, right?

31:23.140 --> 31:32.540
In 2025, having a protocol, a WiFi protocol that is susceptible to an offline brute force attack, right, should not be the case.

31:33.360 --> 31:42.040
You would guess that we would have learned our lesson from WPS, from web, from all these previous protocols, but apparently we haven't.

31:42.060 --> 31:56.500
So it is possible to capture that DPP envelope data because we, the enrollee will pretend that they are a configurator, they will receive the DPP envelope data and conduct a typical offline brute force attack.

31:57.520 --> 32:00.820
And the brute force can work, you know, very easily as part of a dictionary attack.

32:00.820 --> 32:09.160
So you basically iterate through a list of passwords, you calculate the hash method is PPKTF2, but it is an offline brute force attack.

32:09.160 --> 32:10.620
You can easily do that.

32:11.160 --> 32:20.420
And if you decrypt that message, if you decrypt that package, you will gain access to something called the privacy protection key.

32:21.400 --> 32:23.460
And this is the key to own everything.

32:23.460 --> 32:28.560
Like this key will make you the equivalent of domain admin in a Windows domain, for example.

32:28.760 --> 32:38.600
Because the privacy protection key is the key that's shared across configurators, and this is the one that is used for signing these connectors that include the Wi-Fi credentials.

32:39.040 --> 32:47.660
So by getting this key, you can actually issue fake network configurations for all the clients, right?

32:47.660 --> 32:57.720
And basically own all the clients in a Wi-Fi ZConnect network and send them push fake rogue configuration files to all of them.

32:58.340 --> 33:04.400
And you have one bad configurator that's a global compromise for the rest of the Wi-Fi ZConnect network.

33:04.400 --> 33:15.260
So simply by impersonating and configuring and changing that value, you can do a global compromise of the Wi-Fi ZConnect network.

33:16.580 --> 33:18.800
This is the Wi-Fi Alliance response, right?

33:18.800 --> 33:27.320
Wi-Fi Alliance will consider other methods because right now that envelope data, that very sensitive file is only protected by a password.

33:27.400 --> 33:34.660
So they will consider other methods in addition to the password method, which is considered an acceptable risk, right?

33:34.660 --> 33:35.740
Crazy.

33:37.520 --> 33:43.540
What we are recommending here, obviously we don't believe that this is an efficient fix in any way, right?

33:43.540 --> 33:53.040
Again, in 2025 there should not be any wireless protocol, any Wi-Fi protocol that is susceptible to an offline brute force attack.

33:54.800 --> 34:06.680
And as long as the password method is still supported, the envelope data remains at risk and the privacy protection key that is included in that envelope data remains at risk.

34:06.680 --> 34:09.720
So what we are recommending here is very trivial, right?

34:09.720 --> 34:11.240
Authorization checks.

34:11.600 --> 34:15.740
When someone says that they are a configurator, don't believe them, right?

34:15.740 --> 34:18.480
They might be an enrollee acting as a configurator.

34:18.480 --> 34:19.280
It's very simple.

34:19.280 --> 34:22.260
So we want an authorization logic, not authentication.

34:22.260 --> 34:27.640
We are past the authentication phase and we are looking for authorization here.

34:27.780 --> 34:30.000
We want the configurators to authorize.

34:30.000 --> 34:34.120
Are you truly a configurator or are you playing with me?

34:34.480 --> 34:36.100
That's what we ask here, right?

34:36.520 --> 34:40.780
Validating the enrollee identity against some policy based control.

34:42.280 --> 34:49.520
The other thing, right now we have the PPK, the privacy protection key, which is a single point of failure.

34:49.540 --> 34:55.900
Accessing this key, like with the exploit that I just presented, owns the whole network.

34:56.080 --> 34:57.340
And that's not going to work.

34:57.340 --> 35:01.900
We should have different separate configurator keys for each configurator.

35:01.900 --> 35:03.700
Not a single point of failure.

35:04.500 --> 35:10.080
And another thing that is not mentioned on the slide is that this key cannot be revoked, right?

35:10.080 --> 35:12.860
So you have lifetime access to the network.

35:13.300 --> 35:23.520
Even if you change the WPA2 or WPA3 password that you are basically trying to protect, right, the PPK remains static.

35:23.520 --> 35:24.960
It's a static key, right?

35:24.960 --> 35:27.100
You will still have lifetime access, right?

35:27.100 --> 35:38.660
If you have that Wi-Fi network for 10 years and you have a policy to change this for every year, for example, well, the privacy protection key remains static.

35:38.660 --> 35:40.240
It's a single point of failure.

35:41.120 --> 35:47.600
So what we're looking for here is also revocation methods for the privacy protection key.

35:51.060 --> 36:00.940
All right, so we discussed a number of different attacks here that were targeting different faces of the Wi-Fi's connect protocol.

36:02.900 --> 36:22.500
What is also interesting in my opinion is that some of these attacks are applied to the initial release, can work against the initial release of the specification, but can also work to the, some of them were introduced, I should say, in subsequent versions of the protocol.

36:23.360 --> 36:33.180
And I think that's interesting because what I believe is happening is that vendors are keep pushing for more usability oriented features.

36:33.340 --> 36:38.500
So the vendors will ask and ask for more usability features.

36:38.540 --> 36:40.820
Like let's make things easier for everyone.

36:40.820 --> 36:43.140
Let's make things easier for the user.

36:43.420 --> 36:45.940
And that's exactly the problem here, right?

36:45.940 --> 37:00.300
Because Wi-Fi Alliance will eventually have to sacrifice some of the promises that they originally made, they will have to sacrifice some of the assumptions that they made on their threat model in order to satisfy these vendors.

37:00.660 --> 37:04.180
So some of the attacks like the configurator impersonation that we just discussed, right?

37:04.180 --> 37:07.460
A very simple technique to own the network.

37:07.660 --> 37:11.600
That was introduced in a later phase of the protocol.

37:12.140 --> 37:20.400
And our understanding is that this happened because vendors are keep pushing for more features that favor usability.

37:20.400 --> 37:23.640
It is always this delegate balance between usability and security.

37:23.640 --> 37:31.080
Particularly in these type of protocols that, you know, try to make things easier for everyone.

37:33.220 --> 37:35.360
All right, conclusions.

37:36.460 --> 37:43.380
We have several protocol level vulnerabilities that are specific to the DPP design, right?

37:43.380 --> 37:47.660
Again, this is a very theoretical research at this point.

37:47.700 --> 38:01.160
The idea is that this is a specification that all vendors that want to implement and get this certification from Wi-Fi Alliance, they will implement this specification and they will be vulnerable automatically, right?

38:01.160 --> 38:06.800
If they follow this specification, they will be vulnerable to the attacks that we discussed today.

38:08.040 --> 38:15.240
Now the migration from WPS to device provisioning to Wi-Fi as you connect, does it really make things more secure?

38:15.240 --> 38:16.760
Doesn't seem so.

38:17.280 --> 38:22.960
What I'm seeing is that we are shifting the burden to network operators.

38:22.960 --> 38:26.940
The risk management is now up to the network operators.

38:26.940 --> 38:34.140
They are the ones that will design, decide, sorry, what provisioning methods they want to support.

38:34.140 --> 38:41.340
They will decide I want the PKEX method, I want the Bluetooth method, without even knowing that these provide different levels of security.

38:41.560 --> 38:44.960
Or for example, how they're going to distribute their QR codes.

38:44.960 --> 38:46.280
That's really up to them.

38:46.280 --> 38:50.720
How they're going to protect these QR codes.

38:50.720 --> 38:56.240
Because as we said, these are an open door that you can easily access the Wi-Fi as you connect network.

38:56.400 --> 39:05.940
So we're relying now on network operators who they don't have the proper security training for the deployment of Wi-Fi as you connect networks.

39:07.440 --> 39:10.020
We have a lot of usability driven enhancements what we discussed.

39:10.720 --> 39:15.920
Subsequent versions of the protocol have weakened the protocol's security posture.

39:17.040 --> 39:25.820
New vectors for abuse, mixed authentication modes, particularly when this is something that is not clear after reading the specification.

39:25.820 --> 39:34.160
It's not clear that mixed authentication modes are possible in Wi-Fi as you connect network if you deploy multiple provisioning methods.

39:35.480 --> 39:37.580
Lack of revocation mechanisms.

39:37.620 --> 39:41.140
That PPK is a single point of failure and you cannot even revoke it.

39:41.140 --> 39:44.720
You will have to reboot the whole protocol, right?

39:44.720 --> 39:50.760
But without having the proper knowledge and understanding of how the protocol works, why would you do that?

39:51.800 --> 39:53.180
That's super important, right?

39:53.180 --> 40:04.760
For critical keys like the privacy protection key that allows you to issue configuration files for all the devices, revocation mechanisms is very surprising that they're missing for this critical key pair.

40:06.340 --> 40:11.200
And then as we said, right, we don't have the required training.

40:11.420 --> 40:17.680
We need the required training for protocol adoption for our network operators, for the Wi-Fi operators.

40:17.680 --> 40:20.300
And clear provisioning policies too, right?

40:20.300 --> 40:31.920
So if someone claims that they are a configurator, we need to be able to authorize this request based on a policy.

40:32.680 --> 40:35.680
Is this station really a configurator or not?

40:35.680 --> 40:37.940
That's the question here.

40:39.560 --> 40:41.060
That was everything I had.

40:41.060 --> 40:41.980
Hope you enjoyed the talk.

40:41.980 --> 40:43.480
Thank you very much for listening.

