start	end	text
0	4820	Sofron is here to talk to us a little bit about hacking Wi-Fi.
13420	14920	All right.
15600	16940	Hello, everyone.
16940	19620	Hope you are having fun at DEF CON so far.
20600	23820	I am Sofron, George Hadji Sofroniou.
24040	27640	The presentation is about breaking Wi-Fi easy connect.
28060	30280	It's a quite theoretical topic, I should say, right?
30280	32660	So we don't have a lot of implementations here.
32660	42040	It's about attacking an abstract protocol, a popular protocol, and a lot of theoretical ideas around it.
43100	45500	So a few things about me.
45660	53360	I have conducted manual security tests, penetration tests for multiple Fortune 500 companies across the world.
53780	58720	I've been focusing on Wi-Fi security for more than ten years now.
58980	61820	I have published some novel association techniques.
61820	64120	These are Wi-Fi association techniques.
64120	69180	These are usually techniques that enable an attacker to gain a money in the middle position in Wi-Fi.
69500	71100	So think of Karma, for example.
71340	73100	How many of you know the Karma attack?
73100	74040	Raise your hand.
75060	76240	I see some hands here.
76240	82200	So the Karma attack, coincidentally, that was 20 years ago when it was first released, it no longer works.
83020	86700	So devices will no longer send these directed probe requests.
87160	90480	But there are other techniques that work, such as known beacons, for example.
90880	101600	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.
103180	103880	All right.
103880	105620	So what is the talk about today?
105620	110900	It's about breaking a Wi-Fi protocol, a new Wi-Fi protocol called Wi-Fi as a Connect.
111800	115760	Wi-Fi as a Connect, the purpose is to replace WPS.
115760	117340	How many of you guys know WPS?
117340	118660	Please raise your hand.
118940	119300	Okay.
119300	120020	Most of you do.
120020	120700	Perfect.
121420	125040	So in simple terms, right, what is the purpose of Wi-Fi as a Connect?
125040	132220	The idea is that passwords are too complex to remember for Wi-Fi networks, right?
132860	135760	They're too, yeah, or we're too lazy to remember them.
135760	139340	So let's make this easier, and that's what Wi-Fi as a Connect aims to achieve.
140380	146320	Instead of remembering the passwords, let's scan a QR code to connect to a device, to a network.
146420	149560	Let's use Bluetooth or NFC.
149640	150920	That's the main idea.
150920	156020	We don't want to remember the password of the WPA2 network, so let's use something easier.
156820	164980	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.
166180	172880	So think of Wi-Fi as a Connect as a layer on top of your existing WPA2 infrastructure, right?
172880	184740	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.
186040	191340	It supports multiple bootstrapping methods with this guy, like scanning a QR code, NFC, Bluetooth.
192540	200420	Now at the same time, this is a very usable protocol, but supposedly it introduces some security features.
200600	205440	It adds security, enhances security, at least compared to WPS.
205440	207120	That's the idea, right?
207120	210080	In theory that was the idea of it.
210340	216440	It is based on the protocol behind, let's say Wi-Fi as a Connect technically is the certification, right?
216440	221040	So you have the certification and the underlying protocol is device provisioning protocol.
221040	229460	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?
229460	231260	So it's the same protocol, same idea.
231260	236020	When I say Wi-Fi as a Connect or device provisioning protocol, I mean the same thing.
236600	243720	Now we use public key cryptography, elliptic curve cryptography for all of the cryptographic operations for Wi-Fi as a Connect.
244280	246680	The certification is currently limited, right?
246680	253120	We have 32 certified devices last month that I checked, it was only 32 certified devices across 12 vendors.
253300	260480	But this is a popular protocol that is supposed to replace WPS, so we are expecting more vendors to implement this in the future.
260820	266040	The same way as we expect people to move from WPA2 to WPA3, right?
266040	271780	And it's the same organization, it's Wi-Fi Alliance that introduces both protocols, WPA3 and Wi-Fi as a Connect.
271820	281240	As of now, we see Wi-Fi as a Connect mostly used in Android devices and partial implementation as you say, right?
281240	283860	It's the initiator mode only.
284260	286840	Now we will discuss what initiator mode is.
287140	291660	So there's some basic theory that we will have to cover, right, before digging into the attacks.
291660	293040	The attacks are fairly simple, right?
293040	299880	The challenge is understanding how the protocol works, understanding the specification, deciphering the specification.
299880	302920	That was one of the challenges, right, for discovering these attacks.
304620	309340	So we have three different pairs, pair of roles here, right?
310220	317460	And a Wi-Fi entity can have three distinct roles from these three pairs, like at the same time simultaneously.
318020	323580	So to the left we have the typical IEEE 802.11 roles, which is the station and the access point.
323580	327900	The station can be your mobile device, your laptop, anything that connects to Wi-Fi.
327920	333180	And the access point obviously can be your wireless router, right, what provides access to a Wi-Fi network.
333260	335460	And the idea is that the station connects to the access point.
335460	338760	This is pretty basic knowledge for Wi-Fi networks.
338760	343320	Now to the right we have the set of roles that are specific to Wi-Fi as you connect.
343840	346280	So we have the initiator and responder roles.
346600	349720	And this is basically who speaks first, right?
349720	350960	Is it the device?
350960	352840	Is it the access point who speaks first?
352940	355560	So Wi-Fi as you connect supports both options.
356660	360540	And then to the right we have the configurator and the enrollee.
360540	372160	The configurator is the entity, the Wi-Fi entity that provides the credentials, the WPA2 credentials to the enrollee.
372160	374260	Because again, that's the idea here.
374260	376340	We don't want to remember the WPA2 password.
376340	381340	We are looking for a way to exchange the WPA2 password without remembering it.
381340	384100	So it's stored somewhere on the access point side.
384140	389220	And we want to transmit it in an encrypted fashion without having to type it.
389520	389660	Right?
389660	391320	That's the idea here.
391440	397320	So the configurator is the entity that provides these credentials to the enrollee.
398080	399860	And again, we can have multiple combinations.
399860	403400	We can have a station that is a responder and an enrollee for example.
405180	407760	Now, what are the phases of Wi-Fi as you connect?
407760	411320	We start with the bootstrapping to establish some trust.
412280	413240	And this is what we said earlier.
413240	414920	We have different bootstrapping methods.
414920	427020	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.
427980	429420	That works like that.
429420	432560	We exchange public keys and that's the idea.
432560	439800	The purpose of the bootstrapping phase is for the two entities to receive each other's public key.
439800	445440	So the initiator will receive the public key from the responder, the responder will receive the public key from the initiator.
445780	446200	Right?
446200	447780	These are not the credentials.
448420	456360	These are the public keys that they will use in the next phase, in the authentication phase, to authenticate each other.
456700	463800	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.
463800	475240	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.
476160	479660	So after they received each other's public key, they proceed with the authentication.
479660	484520	They basically leverage the public keys to establish a symmetric key.
484520	486080	And that's a very common practice, right?
486080	489920	If you are familiar with SSL, that's what we're doing in cryptography.
489920	495020	We're using a symmetric cryptography to establish a symmetric key for efficiency.
495940	506780	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.
507520	512620	And this is, you know, a sub-protocol within the actual Wi-Fi as you connect protocol.
512620	525280	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.
525920	526880	So that's the idea.
526880	531820	These are the four sub-protocols within the Wi-Fi as you connect protocol.
532960	538160	All right, now, regarding our methodology today, right, we have three steps.
538660	539980	Reconnaissance phase.
539980	544460	We want to be able to identify valid Wi-Fi as you connect networks.
545080	549760	And at the same time, we want to know the stations that connect to this Wi-Fi as you connect network.
549760	550740	And that's the reconnaissance phase.
550740	551920	That should be pretty easy.
552120	555440	Right, I would say that the difficulty is incremented here.
555440	558040	So the reconnaissance is probably the easiest step, right?
558080	560940	So then, how can we access a Wi-Fi as you connect network?
560940	563160	That will be our second challenge for this talk.
564220	566480	And finally, owning the Wi-Fi as you connect network.
566480	568020	Now, what's the difference, right?
568020	570580	If we access the network, have we owned the network too?
570580	571240	Well, no.
571240	573240	That's not how it works in Wi-Fi networks.
573640	578880	Owning a Wi-Fi network means that we are becoming the access point.
578880	580660	We are becoming the configurator.
580660	586180	We are able to get money in the middle position for all the devices connected to that network.
586180	588300	That's what owning a network means.
588300	601600	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?
601600	602980	We are the router, basically.
602980	604040	We are the configurator.
604040	605360	We are provisioning the credentials.
605360	606560	That's what own means.
606560	608800	Which is obviously the most difficult task.
609820	615820	All right, let's start with the reconnaissance for discovering active Wi-Fi as you connect networks.
616620	623720	The easiest way is sniffing beacon frames or probe responses so they are advertising the DPP AKM, right?
623720	629280	So that's a fairly simple way to identify valid Wi-Fi as you connect networks.
629600	636600	Now, for identifying the stations, right, that connect to this Wi-Fi as you connect network, this is a little bit more challenging.
636980	644100	And the reason is that Wi-Fi as you connect includes a private introduction protocol, a privacy enabling protocol.
644200	645120	Which is cool, right?
645120	659480	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.
659480	666920	It's not obvious and it's not something that an attacker can sniff the traffic and identify that, oh, this connection is happening.
667000	668380	So let's see a little bit how this works.
668380	671380	So now we have these four sub protocols that I went through earlier.
672000	679560	This particular attack that we will be discussing is on the network access phase of the Wi-Fi as you connect protocol.
679880	694120	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.
694160	701400	And if that works, the connector that includes the credentials for the network will be transmitted encrypted, right?
701400	704120	Again, very cool feature from Wi-Fi Alliance.
704120	709480	We want this type of privacy when we're connecting to Wi-Fi networks.
709980	715360	Now the problem here, right, and that's a very simple attack, is that an attacker can block this message.
716140	716800	Right?
716920	725540	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?
725540	737980	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.
738180	746480	By doing that, we are enforcing the less secure, the less private protocol, a typical peer discovery request.
746500	757020	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?
757020	765680	Most of the data here is encrypted, but as you can see, the SSID, the network that the station tries to connect, is unencrypted.
766220	766700	Right ?
766920	774060	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.
774700	780060	Are you guys curious what Wi-Fi Lens responded to this finding when I disclosed this to them?
780060	780920	Let's see.
781960	784000	So they consider this an acceptable risk.
784000	791720	Apparently, you know, circumventing the private introduction protocol is basically privacy exposing.
792600	793300	Whoa.
793680	794200	Right?
794200	794920	Good for them.
794920	797080	I mean, they are willing to take risks in life.
799200	799980	All right.
799980	801420	What we are recommending.
801420	808060	We are recommending that future versions of the specification should validate the preferences, right, in subsequent exchanges.
808060	821900	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.
822280	822840	Right?
822840	824280	And the access point says, hey, really?
824280	830100	Because I received a message that you wanted to connect with a simple non-encrypted protocol.
830260	835760	That means that someone was manning the middle of our connection, right, and aborted the connection.
835900	838940	It's a very simple remediation control.
840800	841940	All right.
842240	844380	And that's all we have to say about reconnaissance, right?
844380	858480	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.
859360	863900	Now, let's discuss a little bit about how we can access Wi-Fi as a connect network.
865860	868740	And for that, we will go to the bootstrapping phase of the protocol.
868740	871260	As a reminder, we have multiple bootstrapping methods.
871260	874400	We have Bluetooth, we have NFC, we have QR code.
874580	878840	Well, there is one called PKX that I briefly discussed earlier.
879060	883240	This is a Wi-Fi sub-protocol within Wi-Fi as a connect .
883560	887540	Again, the idea of Wi-Fi as a connect is that we're too lazy to remember long passwords .
887540	891440	So the PKX is using short numeric codes, right?
891440	893940	It's kind of like WPS pin, if you remember that.
893940	897600	Just short numeric codes instead of a long, complex password.
897600	902520	And this is irony right here because I don't think it's really hard to remember long passwords.
903600	905540	And we're using elliptic curve here.
905540	915120	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.
916180	919460	That's a set of points, right, for elliptic curves.
919460	922440	They need to agree on the elliptic curve that they want to use.
922840	924420	And that's the first thing that they're doing.
924420	927640	Before they start doing any cryptographic operations, they need to agree on a group.
927960	933620	So the initiator originally has a list of preferred groups, right, with an order of preference.
934140	945960	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.
946160	947160	Here's how it works, right.
947160	950820	So you can see to the left the list of preferred groups for the initiator .
950820	953140	You can see the list of preferred groups for the responder.
953200	958760	So the initiator will start with the first preferred group on the list, right, which is group 26.
959060	960380	So it will ask group 26.
960380	964720	The responder does not support group 26, as you can see.
964840	972140	So it will propose their own preferred group instead, which is group 30, right.
972340	974680	And the initiator does support group 30.
974680	978220	So they will agree on group 30 here, if everything goes well.
978680	979900	Here's what could go wrong here.
979900	991800	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.
991800	996080	Now this impersonation works because we're in the very early phase of the protocol.
996080	998180	They haven't exchanged public keys yet.
998760	1001440	So all of these messages are unencrypted.
1001440	1009720	It's possible for the attacker to impersonate the responder because they have not established any trust yet, right.
1009740	1024500	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.
1024880	1035740	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.
1037300	1044180	So what we have here is that the group negotiation lacks cryptographic safeguards.
1044180	1049340	We have seen these safeguards in WPA3, but they don't exist in Wi-Fi as a connect .
1049480	1055280	A weak group selection means weaker Diffie-Hellman exchange, which also means an easier brute forcing.
1055680	1065100	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.
1066000	1072860	But in all honesty, right, in a typical Wi-Fi penetration testing, exploiting a weaker group is quite uncommon.
1072880	1079720	So this is mostly applicable for, you know, strong adversaries, nation state threat actors.
1080680	1086220	But it's still something for a protocol that is supposed to be widely used, this is quite important.
1087400	1092340	Wi-Fi Alliance said that it will take this matter under discussion to decide a group of action.
1092340	1097220	I haven't heard back from them, but yeah, hopefully they will decide to fix this.
1097220	1099100	It's not like the fix is difficult, right?
1099100	1116340	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?
1116340	1120020	So why did we end up using that least preferred group?
1120200	1121540	That's all it takes, right?
1121540	1124640	It's not something more complex than that.
1124960	1134420	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?
1136100	1136620	Right.
1136620	1142580	Again, that's not very easy to be conducted in a typical Wi-Fi penetration testing, right?
1142580	1144220	So we're looking for something easier here.
1144220	1147340	And for that, let's go to the authentication phase of the protocol.
1147820	1150360	Now they have established, they have exchanged some public keys.
1150360	1152280	Let's see how this authentication protocol works.
1152280	1162100	What I found out after reading and reading and reading the specification, is that apparently Wi-Fi Easy Connect is supporting mixed authentication.
1162100	1167740	And that was quite surprising, I'm telling you, because it wasn't clear, right?
1167780	1182020	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.
1182120	1183760	It was something that I had to decipher.
1183760	1187840	And again, that's the challenge when we're reviewing these Wi-Fi protocols and specification.
1188020	1192720	The challenge is deciphering what Wi-Fi Alliance is trying to say.
1193700	1204000	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.
1205620	1209940	And we can have system administrators, network operators, that enable multi-provision mode.
1209940	1214700	So you can have QR code and PKEX for the same Wi-Fi Easy Network at the same time.
1215160	1218740	And that would be fine if they would provide the same level of security, but they are not, right?
1218740	1220620	They provide different level of security.
1220620	1223720	Some provisioning methods skip mutual authentication.
1224600	1226840	So you can have mixed authentication modes.
1226960	1233080	So that means that we can have an initiator that is having the typical mutual authentication method, right?
1233080	1237600	But we can have another initiator that only has responder authentication.
1237980	1240820	The initiator is never being authenticated.
1242100	1250500	And the one bootstrapping method that is vulnerable, right, that only supports single factor authentication is the QR code.
1250500	1263760	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.
1263760	1265260	But that's not the case.
1265460	1268820	There is no authentication for your device.
1268820	1276160	When you are scanning a QR code, your device is never being authenticated.
1276420	1280920	You can use that QR code and enroll as many devices as you want.
1281760	1290440	The responder, the configurator, the access point will never know which device is connecting to their network.
1290440	1292860	You just have an open door there.
1292860	1295560	As soon as you have that QR code, you have an open door.
1299060	1301940	So the idea here is locating that QR code.
1301940	1307820	And locating that QR code can happen with sniffing the DPP authentication requests.
1308500	1312180	There is a way to conduct Wi-Fi triangulation.
1312180	1316100	So if you are doing red teaming, for example, you want to locate that.
1316100	1317640	Sometimes this QR code is very visible.
1319340	1322780	Organizations, they sometimes hang it on a wall somewhere.
1323600	1326200	And it's very trivial to locate that QR code.
1326200	1327800	And that's an open door again.
1327820	1330480	There is no authentication from the station side.
1330480	1336760	You can enroll as many devices as you want, as long as you have this QR code.
1337360	1345080	But in case this QR code is somewhere hidden, you can use triangulation techniques to identify the physical location of that QR code.
1346440	1350060	So that's an interesting outcome from this.
1350060	1353540	The QR code method is basically an open door.
1354340	1360360	And the reply for Wi-Fi Alliance is that yes, this is a policy decision for the deployed enrollee.
1360360	1367080	Which means that Wi-Fi Alliance seems to be aware of this in a way and they seem to accept the risk.
1367180	1368300	But that's a problem.
1368860	1374360	Intended mixed authorization modes might help for flexibility, but flexibility can backfire.
1375600	1396700	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.
1396700	1400980	So you could have a network that supports both PKEX and QR code.
1400980	1406480	Well, the QR code circumvents the mutual authentication, while PKEX is not.
1407140	1410000	So what we're looking for here is a strict mutual authentication mode.
1410000	1412900	When we're saying mutual authentication, we mean mutual authentication.
1412900	1424900	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.
1427880	1428460	All right.
1428460	1429800	And that's for gaining access, right?
1429800	1432200	If we find a QR code, we can't get into the network.
1432200	1436380	But now the most challenging is how can we own a Wi-Fi as you connect network?
1436380	1444760	How can we actually force wireless devices to connect to our own malicious configurator?
1445840	1449860	Let's go back to bootstrapping and we're still staying on the QR code method here.
1449860	1452940	One way is to simply do a QR code.
1454220	1457500	Because you cannot authenticate a piece of paper.
1457500	1468120	If they rely on a piece of paper to connect to a conference Wi-Fi, that can be very easily duplicated by an attacker.
1469140	1471480	And you cannot know which one is the valid one.
1471580	1473060	So that's a very trivial method.
1473060	1480020	You cannot rely on a piece of paper or a device for authenticating to a Wi-Fi as you connect network.
1481920	1487080	Another way, PKEX code reuse exploitation.
1488500	1493000	And here that was also something that was found on host APD.
1493000	1495380	We have a CVE for this.
1495800	1506240	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.
1507480	1513720	And what we found is that these codes, they should not be reused, right?
1514160	1516800	But on host APD, they were not deleted.
1516800	1522480	They would keep using the same code for many different devices that want to connect to the Wi-Fi as you connect network.
1523020	1528000	They would use the same public key, the same code for different public keys that were generated.
1528740	1532260	And that's a way for an attacker to masquerade as a legit responder.
1532260	1534280	So let's see how this works.
1534540	1538220	For PKEX, they will generate an ephemeral key pair.
1538220	1543320	So capital X is the public key, lower case X is the private key.
1544820	1548240	And they will encrypt the public key, right?
1548240	1552260	The responder needs to receive that capital X, that public key.
1552420	1554020	They will encrypt it.
1554660	1557000	That's what addition does in elliptic curves, right?
1557000	1558320	With the hash of the code.
1558320	1560840	They already have exchanged the code out of bound, right?
1560840	1561660	That's the idea.
1561660	1564840	That short numeric code, they both know that short numeric code.
1564860	1579140	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.
1579280	1584740	What could go wrong here is that an attacker can block that message from reaching the target.
1585440	1591800	And again, they haven't established any trust yet so the attacker can impersonate the responder as needed.
1592640	1598800	So they will retrieve the value X, the public key.
1598940	1607220	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?
1607880	1611500	And they will proceed with the rest of the protocol, authentication, configuration, network access.
1611500	1615600	So we can say that this is like a PKEX evil twin type of attack.
1617120	1619800	Now, this is not a specification issue.
1619800	1630500	That's just something that we expect vendors to implement it wrongly, let's say, like HostAPD did that.
1630800	1635940	But this is expected that other vendors might implement it wrong for usability reasons.
1635940	1640400	Also, users tend to reuse codes all the time.
1640760	1644440	So that's a technique for misconfigured networks.
1644440	1647500	Not exactly an attack against the specification.
1649600	1650480	All right.
1650480	1651980	Still not easy, right?
1651980	1667360	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.
1667840	1673320	But also, that later technique, we need to know the code, right?
1673960	1683720	It has a little bit of technique regarding reacting faster than the legitimate responder.
1683720	1687380	But we're looking for something better that doesn't rely on PKEX only.
1687380	1692820	So for that we will have to go to the configuration sub-protocol of WiFi Easy Connect.
1696660	1705400	And the way that this works is that we have done the DPP bootstrapping, so both entities have exchanged their public keys.
1706300	1717500	We have done the DPP authentication, so using this exchange certificates they have established a symmetric key, in this case called symmetric KE.
1719380	1730080	And the enrollee, right, for the configuration protocol, the enrollee will send a DPP configuration request where they include their role, right?
1730080	1744520	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.
1745300	1747660	And the configurator will happily provide that.
1747660	1749640	The configurator will happily say, okay, here you go.
1749640	1754860	And all of these are encrypted with a symmetric key that they have established in the previous phase.
1755800	1757920	What could go wrong here?
1762460	1772720	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.
1772720	1776500	Because this is something that is supported by the WiFi Easy Connect protocol.
1776500	1781260	It is possible to have multiple configurators in a WiFi Easy Connect protocol.
1781260	1785220	Think of a WiFi Easy Connect that's quite large in a conference like DEF CON.
1785340	1787520	You can have multiple configurators.
1787720	1796660	So it is possible for a malicious enrollee, right, to pretend that they are a configurator, not an enrollee.
1796660	1800060	All they need to do is to change that value, the net role value.
1800200	1809260	And instead of, you know, asking configuration data as they are an enrollee, they are asking configuration data as they are a configurator.
1809960	1815820	And in this case, the configurator will reply back with the DPP envelope data.
1815820	1819820	Now all these are encrypted with that symmetric key, but they have established that symmetric key, right?
1819820	1834400	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.
1836340	1848220	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.
1848460	1854660	It is used for having multiple configurators in a WiFi Easy Connect DPP network.
1855460	1864180	Its management is vendor specific, so, you know, this could be stored locally in some cases or can be stored in memory.
1865240	1871920	And the idea is that it's using a typical password-derived key encryption, symmetric encryption, right?
1871920	1874620	So you can decrypt this envelope and own the network.
1874620	1880380	And you can do that by conducting a very typical offline brute force attack.
1880700	1883140	Now this is, if you ask me, this is ridiculous, right?
1883140	1892540	In 2025, having a protocol, a WiFi protocol that is susceptible to an offline brute force attack, right, should not be the case.
1893360	1902040	You would guess that we would have learned our lesson from WPS, from web, from all these previous protocols, but apparently we haven't.
1902060	1916500	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.
1917520	1920820	And the brute force can work, you know, very easily as part of a dictionary attack.
1920820	1929160	So you basically iterate through a list of passwords, you calculate the hash method is PPKTF2, but it is an offline brute force attack.
1929160	1930620	You can easily do that.
1931160	1940420	And if you decrypt that message, if you decrypt that package, you will gain access to something called the privacy protection key.
1941400	1943460	And this is the key to own everything.
1943460	1948560	Like this key will make you the equivalent of domain admin in a Windows domain, for example.
1948760	1958600	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.
1959040	1967660	So by getting this key, you can actually issue fake network configurations for all the clients, right?
1967660	1977720	And basically own all the clients in a Wi-Fi ZConnect network and send them push fake rogue configuration files to all of them.
1978340	1984400	And you have one bad configurator that's a global compromise for the rest of the Wi-Fi ZConnect network.
1984400	1995260	So simply by impersonating and configuring and changing that value, you can do a global compromise of the Wi-Fi ZConnect network.
1996580	1998800	This is the Wi-Fi Alliance response, right?
1998800	2007320	Wi-Fi Alliance will consider other methods because right now that envelope data, that very sensitive file is only protected by a password.
2007400	2014660	So they will consider other methods in addition to the password method, which is considered an acceptable risk, right?
2014660	2015740	Crazy.
2017520	2023540	What we are recommending here, obviously we don't believe that this is an efficient fix in any way, right?
2023540	2033040	Again, in 2025 there should not be any wireless protocol, any Wi-Fi protocol that is susceptible to an offline brute force attack.
2034800	2046680	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.
2046680	2049720	So what we are recommending here is very trivial, right?
2049720	2051240	Authorization checks.
2051600	2055740	When someone says that they are a configurator, don't believe them, right?
2055740	2058480	They might be an enrollee acting as a configurator.
2058480	2059280	It's very simple.
2059280	2062260	So we want an authorization logic, not authentication.
2062260	2067640	We are past the authentication phase and we are looking for authorization here.
2067780	2070000	We want the configurators to authorize.
2070000	2074120	Are you truly a configurator or are you playing with me?
2074480	2076100	That's what we ask here, right?
2076520	2080780	Validating the enrollee identity against some policy based control.
2082280	2089520	The other thing, right now we have the PPK, the privacy protection key, which is a single point of failure.
2089540	2095900	Accessing this key, like with the exploit that I just presented, owns the whole network.
2096080	2097340	And that's not going to work.
2097340	2101900	We should have different separate configurator keys for each configurator.
2101900	2103700	Not a single point of failure.
2104500	2110080	And another thing that is not mentioned on the slide is that this key cannot be revoked, right?
2110080	2112860	So you have lifetime access to the network.
2113300	2123520	Even if you change the WPA2 or WPA3 password that you are basically trying to protect, right, the PPK remains static.
2123520	2124960	It's a static key, right?
2124960	2127100	You will still have lifetime access, right?
2127100	2138660	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.
2138660	2140240	It's a single point of failure.
2141120	2147600	So what we're looking for here is also revocation methods for the privacy protection key.
2151060	2160940	All right, so we discussed a number of different attacks here that were targeting different faces of the Wi-Fi's connect protocol.
2162900	2182500	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.
2183360	2193180	And I think that's interesting because what I believe is happening is that vendors are keep pushing for more usability oriented features.
2193340	2198500	So the vendors will ask and ask for more usability features.
2198540	2200820	Like let's make things easier for everyone.
2200820	2203140	Let's make things easier for the user.
2203420	2205940	And that's exactly the problem here, right?
2205940	2220300	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.
2220660	2224180	So some of the attacks like the configurator impersonation that we just discussed, right?
2224180	2227460	A very simple technique to own the network.
2227660	2231600	That was introduced in a later phase of the protocol.
2232140	2240400	And our understanding is that this happened because vendors are keep pushing for more features that favor usability.
2240400	2243640	It is always this delegate balance between usability and security.
2243640	2251080	Particularly in these type of protocols that, you know, try to make things easier for everyone.
2253220	2255360	All right, conclusions.
2256460	2263380	We have several protocol level vulnerabilities that are specific to the DPP design, right?
2263380	2267660	Again, this is a very theoretical research at this point.
2267700	2281160	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?
2281160	2286800	If they follow this specification, they will be vulnerable to the attacks that we discussed today.
2288040	2295240	Now the migration from WPS to device provisioning to Wi-Fi as you connect, does it really make things more secure?
2295240	2296760	Doesn't seem so.
2297280	2302960	What I'm seeing is that we are shifting the burden to network operators.
2302960	2306940	The risk management is now up to the network operators.
2306940	2314140	They are the ones that will design, decide, sorry, what provisioning methods they want to support.
2314140	2321340	They will decide I want the PKEX method, I want the Bluetooth method, without even knowing that these provide different levels of security.
2321560	2324960	Or for example, how they're going to distribute their QR codes.
2324960	2326280	That's really up to them.
2326280	2330720	How they're going to protect these QR codes.
2330720	2336240	Because as we said, these are an open door that you can easily access the Wi-Fi as you connect network.
2336400	2345940	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.
2347440	2350020	We have a lot of usability driven enhancements what we discussed.
2350720	2355920	Subsequent versions of the protocol have weakened the protocol's security posture.
2357040	2365820	New vectors for abuse, mixed authentication modes, particularly when this is something that is not clear after reading the specification.
2365820	2374160	It's not clear that mixed authentication modes are possible in Wi-Fi as you connect network if you deploy multiple provisioning methods.
2375480	2377580	Lack of revocation mechanisms.
2377620	2381140	That PPK is a single point of failure and you cannot even revoke it.
2381140	2384720	You will have to reboot the whole protocol, right?
2384720	2390760	But without having the proper knowledge and understanding of how the protocol works, why would you do that?
2391800	2393180	That's super important, right?
2393180	2404760	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.
2406340	2411200	And then as we said, right, we don't have the required training.
2411420	2417680	We need the required training for protocol adoption for our network operators, for the Wi-Fi operators.
2417680	2420300	And clear provisioning policies too, right?
2420300	2431920	So if someone claims that they are a configurator, we need to be able to authorize this request based on a policy.
2432680	2435680	Is this station really a configurator or not?
2435680	2437940	That's the question here.
2439560	2441060	That was everything I had.
2441060	2441980	Hope you enjoyed the talk.
2441980	2443480	Thank you very much for listening.
