start	end	text
0	7340	Hello, hello. Can everyone hear me? All right. Welcome to our talk. The war never changes.
7420	17400	Attack against or attacks against WPA's new open standard. Enhanced open or yeah, open
17400	20700	wireless encryption or opportunistic wireless encryption.
20700	28380	So this is Steve Derricott. He's the co-author, co-developer, co-parent of Sniff Glue. He's
28380	34760	an amateur botanist. Always wearing shades. And yeah. I wrecked your bio, man.
36740	43680	And this is Solstice. He made a crappy tool called ePammer. He wishes he could be a botanist.
43680	51000	And everything he learns comes from Google. All right. So on to the talk.
51400	57260	So we're here to talk about some of the new technology that's coming out with open technology
57260	63300	on Wi-Fi networks. What we're currently familiar with is the standard that was released in
63300	70860	1999. Literally 20 years ago was when this technology came out. And obviously mass adopted
70860	77320	by people because it was the new hotness. But then, you know, this stayed around. This
77320	79760	stayed around for a while. We can go to the next one.
81700	88280	We started off with WEP and Open. With those two initial standards. 802.11a and 802.11b.
89420	97800	And Open obviously seems less secure because WEP was wired equivalent privacy. So it was
97800	103820	supposed to be encryption for the network. Because they knew that having an open network,
103820	109800	anyone could passively receive those packets. So out of those two technologies, you know,
109800	115520	Open is the only one that's still here today. Not WEP. And the reason for that... I can go
115520	120820	ahead and go to the next one. Right? Why is that? Why is Open still around even though it's 20
120820	127820	years old? WEP has been replaced. WPA2 is soon to be replaced with WPA3. It's the battle
127820	132220	we see every day in this industry of security versus convenience. If something is more convenient,
132220	136420	people are going to be more willing to use it. If it's... they don't care if it's secure.
136420	140980	They just want to get to Google and their Facebook and their Gmail. Right?
143500	151640	So the fix actions. Right? Who here uses Zoom for conferences? Yeah. The web conferencing
151640	156940	software Zoom. Remember there was a big issue with that. And if you use it on a MacBook and
156940	161200	they weren't going to patch it. So Apple just took the nuclear option and patched it themselves.
161200	166320	Right? They released a patch for that over Zoom and just said forget that. This is similar to
166320	171240	what we saw on the internet. With open encryption or with open networks ubiquitous everywhere
171240	177060	and people constantly using them, websites were aware of the vulnerability. So major vendors
177060	184500	or major people, Google, Facebook, et cetera, started implementing HTTPS only to force people
184500	197080	to use HTTPS. Right. So then we had that mass adoption of HTTPS everywhere. And that's
197080	203120	similar to what we're seeing with open wireless or the OWE and the new enhanced open is that
203120	209880	it's still going to be like going to Google. Right? There's no authentication. You don't
209880	215940	have to log into Google to establish that initial HTTPS connection. It's just an encrypted
215940	221940	handshake happens. Boom. The certificates are validated. You're there. This is going to be
221940	228660	the same thing but for open networks. So there will be an exchange between the access point and
228660	235440	the client. And that will encrypt the traffic between the two. So still no authentication
235440	239960	needed to connect to an access point but you will have an encrypted session. Just like when you
239960	245720	go to Google, no one can technically sniff your packets because they're encrypted with HTTPS.
245720	258110	But yeah. Right. So because of this, this led to downgrade attacks where well, yeah, this is
258110	262950	what forced Google and Facebook and all of them to enforce HTTPS only was the downgrade attacks
262950	268090	that took place. So many people here in the wireless CTF or if you've ever messed around with
268090	272510	wireless technology, you know, you can stand up evil twins, get people to connect to you and
272510	277530	then you're the network administrator at that point. So you can do whatever an evil network
277530	284110	admin would do like downgrade connections to redirect websites to HTTP versions. And that is
284110	290810	why Google and other websites started forcing people to use HTTPS. But yeah. I'll hand it
290810	292030	over to Gabe now.
293430	298610	Yeah. So I mean, just to kind of like, you know, build off of what Derek was saying, imagine
298610	304830	if every time that you went to go to like an encrypted website on the Internet and you had to
304830	309370	type in a password. Can you guys actually hear me? Okay. Can you hear me better? Okay. I
309370	314490	guess I have to tilt this. Is it shaky if I do this? Does this work better? Okay. Yeah.
314490	322390	I'll give you that one back. Okay. So this mic is a little better. Yeah. So just rewind a
322390	331170	little bit. So I mean, we mentioned that, you know, 802.11 came out, you know, circa like
331170	335870	1999, right? And not long after that, people realized, oh, you can sniff passwords from
335870	339930	open networks. And by 2002, we actually had the earliest documented use of rogue AP
339930	344770	attacks, evil twin attacks specifically, to intercept traffic, which was like these middle
344770	351250	attacks that Steve was talking about. You know, these attacks in combination with other
351250	355150	techniques that started to emerge around that time period in the early 2000s, you know, such
355150	360630	as ARP cache poisoning, et cetera, this led to the widespread adoption of HTTPS. You know, a
360630	365510	lot of major, like, I guess like Internet-ish companies started, you know, actually just
366110	371630	rigorously rolling this out. And this effectively ended the passive, you know, golden age of
371630	376950	passive sniffing. Nowadays it's really difficult just to sniff stuff offline and get anywhere
376950	382750	with that. It did put a dent in the effectiveness of evil twin attacks for a while, but it did
382750	386310	resurface as a threat model in 2009 due to the discovery of the downgrade attack, as we
386310	393210	mentioned, by Moxie Marlin spike. So essentially by doing this, you essentially kind of act as a
393210	399010	malicious proxy of sorts, and you are able to downgrade encrypted HTTP connections, so
399010	405690	HTTPS connections to HTTP. This was mitigated later on. So at this point you saw a
405690	410510	resurgence of rogue AP attacks. This was mitigated later on by the introduction of HSTS
410510	415950	and cert pinning. So essentially on paper, you know, this would have happened around 2012,
415950	418930	although realistically, you know, widespread adoption of HSTS didn't take off until much later
418930	424930	just because it's hard to roll out and it took some time to set up. It was like that transition
424930	430770	page, kind of like what we're seeing now with WPA3. So what is HSTS? Essentially the way HSTS
430770	434890	works is that the client, you know, when your web browser is going to request a resource from
434890	439690	an HSTS enabled web server, this server is going to add a special header called an HSTS header to
439690	444670	the response. This is actually down here kind of what this looks like. This header is going to
444670	448410	tell the browser that it should always request content from the domain over HTTPS rather than
448410	453950	HTTP. So if you attempt to use a downgrade attack, which at its core, there's some redirection
453950	458990	involved where you redirect the victim's browser to the HTTP version of the site. The browser
458990	464270	actually refused because it's been, you know, this domain has been added to a preload list
464270	468790	essentially, or not preload, but an HSTS list that says this domain can only be loaded over
468790	473730	HTTPS. So you'll get basically an internal, I believe it's a 309 redirect that the browser
473730	479030	will issue to the HSTS version of the site and essentially the HTTP downgrade attack won't
479030	486130	work. So there were some bypasses that came out for HSTS in 2014. One of the most notable
486130	492670	ones is by Jose Selvey. So essentially HSTS headers, they have a max age parameter that
492670	497150	dictates when the web browser should stop treating the header's origin domain as an HSTS site.
497270	502970	Imagine if you accidentally set something as an HSTS site and you could never, ever undo it. So
502970	507930	essentially what Selvey figured out is that unless unauthenticated NTP packets are
507930	512090	cryptographically signed, it's possible to tamper with them and you can shift the victim's
512090	519150	system clock forward past the max age set in the HSTS header. And by doing that, essentially
519150	528690	you can expire the HSTS entries in their list and HSTS is bypassed at this point. But since
528690	534090	his bypass technique came out, there are a lot of actual other ways that operating systems
534090	542410	deal with, kind of deal with the threat. So for example, Windows, it has their directives
542410	547690	that basically say you cannot shift the time forward past, you know, further than a certain
547690	554450	delta of time. Because, you know, it would allow you to do this. The reason why I mention
554450	559790	this though, if we look at the current wireless security threat model and examine how today's
559790	564510	attackers use wireless attacks, they're primarily used for gaining initial network access to
564510	572810	weekly configure WPA and WPA2 networks. Finding ways to get PSKs from WPA PSK networks and
572810	578890	crack them. Or they're used for stealing active directory credentials or hostile portal attacks
578890	583470	or you see people using them for social engineering attacks using captive portals. You don't
583470	588450	really see, you know, if you do see attacks against open networks, they're really most
588450	593650	effective because of this widespread use of HTTPS and also the widespread use of HSTS on
593650	599410	the stuff that really matters and would be attractive to an attacker. You know, really if
599410	604030	you want the most bang for your buck if you're attacking an open network, you're going to be
604030	606990	doing, you're essentially going to be looking for static content or mixed content issues that
606990	612090	will allow you to inject payloads that will eventually get loaded into the user's browser.
612090	618150	So for example, you know, you start intercepting traffic, set up your interception attack, and
618950	622290	you know, you're intercepting traffic and you notice that they're, you know, loading, you
622290	625130	know, third party JavaScript code over HTTP. Well, you can replace that with your own
625130	629450	JavaScript code, you know, that basically downloads a beef hook and then you own their
629450	633630	browser and eventually their system. But, you know, really you don't see a lot of
633630	638570	credential stealing attacks, you know, because most high value targets are using HSTS and
638570	643390	cert pinning and defeating HSTS is difficult at best. And defeating cert pinning without
643390	647870	social engineering is virtually impossible. And really doesn't make sense in light of other
647870	650630	attack paths, you know, just if you're going to go to that length, you might as well just use
650630	656190	spear phishing or something. As for passive sniffing, it honestly rarely works anymore,
656190	659530	unless you're, I mean, occasionally you'll see like someone's logging to something over POP3
659530	666130	or something like that, but it's very rare. And this is kind of the reason why we bring up
666130	673010	this background information. If we kind of go to, you know, look at OWE, right? You want to go
673010	679170	for this part? You want me to go? Okay. So OWE, right, it kind of was introduced fairly
679170	683490	recently and it's being rolled out kind of as we speak to kind of solve this problem of not
683490	688710	being able to have unauthenticated Wi-Fi access, you know, without, you know, so
688710	693410	essentially it's designed to give you encryption capabilities, you know, and act as if you
693410	697410	were connected to an open network, but you don't need to authenticate. So, you know, how you
697410	702950	connect to a HTTPS site over, you know, and you don't have to enter a password. OWE is
702950	707170	supposed to work the same way with open networks. You know, the way it works is, you know, you
707170	711470	start out with your typical association. And when this happens, the client AP are going to
711470	716990	complete a Diffie-Hellman key exchange and create a paralyzed master key or PMK. After that,
716990	720990	the AP is going to initiate a four-way handshake, kind of similar to what WPA does, but using
720990	725130	that PMK, and you're going to generate a key encryption key or Keck and a bunch of other
725130	730570	stuff. But at that point you do this four-way handshake and you end up with some encryption
730570	735490	keys that are used to protect both unicast and broadcast data. But basically it's an open
735490	745410	network with crypto. So as far as the actual discovery process, so, I mean, the way this
745410	748970	works, right, and I'll load this up in Wireshark so you can get a better idea of what this is
748970	752650	doing, but, you know, the way that OWA works is the access point is going to advertise its
752650	757610	support for this protocol using an AKM suite selector. And it's basically an RSN element
757890	761570	that's added to all beacon frames that are getting sent out from the AP. The client is
761570	767470	going to discover that the AP is OWA compliant, because it's going to look in the beacon
767470	770330	frames and see this RSN, and then it's going to, you know, kick off the authentication
770330	775410	process with it. So to show you what I'm talking about, it's a little more clear if I do it
775410	776290	this way.
776390	780790	While he's pulling that up, Gabe just talked about a lot of attacks that you can do against
780790	786650	open networks, from injecting your own code and all of these things, and passive sniffing
786650	792050	is not something that we commonly use on our wireless pen tests. It rarely generates anything
792050	797730	worth benefiting from. So OWE is fixing a problem that we weren't even concerned about.
797730	801990	I didn't, I rarely am sniffing passive data to begin with, because everything is typically
801990	806790	encrypted by major vendors such as Google and Facebook. So there's no reason for me
806790	809550	to passively sniff open networks anyways.
813270	817750	All right. So I'm going to, right now I've just launched an OWE access point. I'm using
817750	825170	virtual wireless interfaces here. I'm just going to filter here for beacon frames. I
825170	830730	hope you can actually see this. All right. So, cool. I have a bunch of beacon frames
830730	837450	here. And the SSID is open WiFi, but it's not actually open WiFi. This is, if you look
837450	842930	here, right, you scroll all the way down to the bottom. Actually, I'm going to minimize
842930	850770	some of these tags here, because they're probably, I don't know why, you know, Wireshark by default,
850770	859030	it just opens everything that you want to look at. It's not helpful, but... RSN. Okay.
859030	862990	So tag, RSN information. Can everyone see this? Can anyone not see this in the back?
863370	867990	It's probably really small. But, you know, feel free to ask us later if you want us to
867990	872310	walk through this in person, because I have a feeling it might be hard to see on the screen.
872610	877670	But okay. So there's a tag here, RSN information. And you can see here that, you know, this
877670	883670	is coming from the AP. It's a beacon frame. And we have this off key management, AKM,
883670	889010	and it will actually tell you that it's using opportunistic wireless encryption, and also
889010	893030	have the RSN capabilities. So essentially everything you need to know about how this
893030	898210	thing uses crypto, basically. Let me go back to these slides.
899410	905870	So an interesting thing, in case you're not aware, so a little background information.
906210	910430	So elements are actually, what you're seeing here in the Wireshark thing, these are what
910430	914390	are known as elements, or information elements. And they're set between the client and the
914390	918790	AP as requests and responses. And they're used to facilitate protocol agnostic communication
919230	925690	between wireless devices. They're basically, elements are basically a type length value,
925690	930330	which means that they're, a TLV is a data type that's comprised of three parts. It's
930330	934130	going to have an element ID, which is identifying the element's data type. It's going to have
934230	938090	a length, which is the element's length, and a value, which is basically, you know, this
938090	942550	field is entirely dependent on the element's data type. So essentially, what this lets
942550	946650	you do, is you can send something from the client to the AP, or the AP to the client,
946650	951230	and the client doesn't have to really know what data type it's receiving. I talked to
951410	956510	a guy who's into reverse engineering later, and this terrified him earlier. But essentially,
956510	961970	it'll first check, basically the TLV, the element, is just a string of bytes. And your
961970	966350	wireless device is going to look at the first, you know, the first bytes in it, and it's
966350	969170	going to use that to determine the data type. Then it's going to grab the length from the
969170	974070	next set of bytes. And then from there, it's just going to know how, basically how large
974630	982810	the next field of bits is, or bytes. So, the reason why I mention this is that in 802.11,
982810	986650	association requests and responses are constructed entirely by appending elements to one another.
986650	993950	So you just get a bunch of these TLVs and start appending them off each other. And in
993950	999250	this case, it's a Diffie-Hellman parameter element. And this is how the AP and the client
999750	1005350	give each other their public keys. So, you know, essentially, once you reach the association
1005350	1009690	process, the client's going to send an association request to the AP, and it's going to have
1009690	1013890	an element in, you know, kind of in the packet there that is going to contain its public
1013890	1017430	key. The AP is then going to respond with the association response, and there's going
1017430	1020570	to be an element, a Diffie-Hellman parameter element, that's going to have the AP's public
1020570	1024150	key. And at this point, they've exchanged keys, and they proceed to the four-way handshake
1024150	1032050	we talked about. So just to kind of show you how that works, so we have this OWE access
1032050	1042710	point running right now. And I'm going to get this thing to authenticate. All right. So
1042710	1051750	on the left, we're just using WPA supplicant. We're going to connect to this AP and go back
1051750	1056510	to Wireshark. And at this point, I'm just going to start sniffing packets again. Actually,
1056510	1062690	I might have to do this a second time because I missed it. Kill that. And then I'm going
1063610	1071010	to start. That's going to associate. And I'm going to change this to say that I don't want
1071010	1073030	any beacon packets because there are a lot of them, and they'll get in the way of what
1073030	1086820	we're doing. Okay. So let me just figure out... Did I lose this thing here? Hey, man, do you
1086820	1097250	know how to like... Oh, I got it. Never mind. Okay. Cool. So here we have... I'm going to
1097250	1101590	try to find that. Okay. So here we have the probe request, probe response. We briefly
1101590	1106610	talked about that. I'm going to scroll down until we see... Okay. Here's the association
1106610	1109930	request that we talked about that's coming from the AP. Or I'm sorry, from the client
1109930	1114230	device. And if you look in here, we have this extended tag, which is this element we were
1114230	1118830	talking about. And it contains the public key from the client device that's being sent to
1118830	1124190	the AP. Then you have an acknowledgment from the access point. And then below that, you
1124190	1128090	have an association response that is, you know, literally the same thing. Here we have
1128090	1133150	these OWE Diffie-Hellman parameters. And then that's going to get sent back to the client
1133150	1137770	device there. So then the key exchange happens. And we have this little four-way handshake
1137770	1142130	here. And then you have basically encrypted open Wi-Fi, which is what happens after that.
1142130	1146510	Right. And all this would happen invisibly to you. If you just opened up your phone,
1146510	1150210	looking at Wi-Fi networks, you would see an open network. You would connect to it. If
1150210	1155790	your phone is capable of OWE, it would read that packet that... Or those OWE packets that
1155790	1159430	Gabe was just pointing out. And then it would go through that process. If not, it would
1159430	1166990	just connect to an open network normally. Yeah. Yeah, exactly. I mean, so... I guess
1166990	1170410	the problem with OWE, right? I mean, it does some good things. It addresses the need to
1170410	1174670	provide encryption for unauthenticated wireless connections. And also makes use of
1174670	1178770	protected management frames. And makes them mandatory. We're going to go more into that
1178990	1184390	a bit later. Unfortunately, the thing that it does not do is it does not provide a means
1184390	1188390	of verifying the identity of the access point. We're not the first ones to point this out.
1189150	1192250	You know, I mean, people have been kind of bringing this out. Even the authors are like,
1192250	1196570	you know, in the RFC itself, there's actually a big disclaimer saying it does not do this.
1196970	1203430	But, you know, just want to do a little thought experiment here. Imagine if HTTPS did not
1203430	1207050	provide a means of verifying the identity of the web server. So, in other words, whenever
1207050	1211610	you use HTTPS, everyone used self-signed certs and no warnings were issued for anything
1211610	1217470	whatsoever. It would kind of negate the effectiveness of HTTPS, right? And that's kind of what
1217470	1240610	OWE is like, you know. It's hilarious. So, yeah. So, OWE doesn't address any real threat or
1240610	1246770	attack that you see in the wild today. It's only encrypting, you know, the traffic, which
1246770	1251110	if I'm standing up my access point and you're connected to me, I'm a network admin at that
1251110	1255070	point, I'm going to see your traffic regardless because I'm going to route it wherever I want.
1255210	1259670	It doesn't matter if it's encrypted between your phone and my access point. Once it gets to my
1259670	1264570	access point, I'm in control of the packets. Yeah. So, I mean, it really only succeeds in
1264570	1269330	preventing malicious users from doing passive sniffing, which, as we mentioned, is kind of a
1269330	1279670	fruitless exercise in the first place. So, yeah. So, all right. So, when we kind of embarked on
1279670	1283370	it, we kind of a few months ago, we were like, hey, we should look into ways to attack OWE. And
1283370	1287090	we thought it would be much more complicated than it actually was. And it turned out it's
1287090	1298730	actually not really that hard. Right. So, I mean, the first thing, I mean, if you do want to, I
1298730	1302610	mean, the first technique that we, I guess, I don't even want to say we came up with this
1302610	1307570	because it's literally the same attack that people have been using for 20 years. But the first
1307570	1313210	technique is just to stand up an OWE evil twin. You make an evil twin access point using your
1313210	1322790	favorite rogue AP tool, like sniff glue. And then you, you know, do what you're going to do.
1322790	1330350	So, which, I mean, we kind of demonstrated that works here. I mean, like, just to keep this
1330350	1336770	simple, I'm just going to tell WPA supplicant to start probing for stuff. This is pretty much
1336770	1339970	exactly what would happen if you were just wandering around somewhere and had your Wi-Fi on
1339970	1345610	and someone stood up, like they essentially knew the network on your PNL and stood up their own
1345610	1355990	access point. Right. As expected, it would connect. Yeah. I mean, that's, it's fairly
1355990	1361350	straightforward. Right. That's a standard evil twin attack. Nothing new there. It just has
1362050	1369090	OWE. It's really nothing novel. But that's the problem. I just, yeah. But this is the more
1369090	1375250	surprising part. As it turns out, and we kind of just discovered this by accident, but, and
1376050	1381550	this is probably like a, honestly, an implementation issue, but, you know, for WPA
1381550	1386910	supplicant, for example, which is what you'll find on most Android phones, you know, well,
1386910	1393050	check this out. Okay. So, instead of using an open, an OWE access point, or I'm going to
1393050	1398330	create an open access point. So, here, I'm going to show you the config file we just, we just
1398330	1404450	used to connect to that OWE access point. Right. And you can see, right, it's using key
1404450	1412050	management OWE. This is an OWE config file we're passing to WPA supplicant. And then for
1412050	1420850	ePammer, or whatever the tool you're using, trying to remain agnostic here, but, you know,
1420850	1425310	what happens if we spin up an open access point instead? I mean, this shouldn't work.
1425730	1430470	But, like, these two things should not be able to communicate with one another. I mean, unless
1430470	1437970	it's in transition mode, which it's not. So, here we go. We've started. And, oh, what's this
1437970	1441590	at the bottom of the screen? Okay. So, we've now have this thing that is configured to use
1441590	1446050	OWE, but it's connected to this open access point, which, at least in this case, WPA
1446050	1450630	supplicant, it looks like you can execute rogue AP attacks against stuff that is expecting an
1450630	1456110	OWE network using open Wi-Fi. So, you don't even need the new, you know, retooled versions of
1456110	1459430	all these rogue AP tools to do this. You can just use the same tools that you've been using
1459430	1473140	for the past two decades as an open network. And in this case, it works. So, yeah, that's
1473140	1478060	kind of what we thought about this, too. You want to talk about compatibility?
1481320	1491760	Okay. So, compatibility mode or fast transition mode, I believe it's also called. What happens
1491760	1500020	is within the beacon frames of an open network, it will have within an information element
1500020	1507120	the a hidden SSID. So, it will be a BSSID, a MAC address associated to a hidden network
1507120	1513520	that is doing OWE. So, invisibly to you, your device would connect to that network or receive
1513520	1520200	that frame and notice, oh, hey, if I'm OWE capable, I'm going to look at this hidden network
1520200	1528540	and connect to that instead. So, yeah, that it's when you're broadcasting frames like that,
1528540	1533620	anyone can read that as well. So, we got the idea of, well, why can't we just look at that
1533620	1539040	packet and spin up our own evil twin using that same BSSID that's in that same packet.
1540000	1544720	And, yeah, to kind of illustrate how this works, you know, actually, so I'm going to
1544720	1558410	spin up a, I'm going to wait for this event loop to stop because computers. So, here what
1558410	1562990	I'm going to do is I'm going to set up this OWE transition mode AP, right? And what's
1562990	1581970	going to happen, oh, okay. Did I spell something wrong? Give me a second. Oh, open, okay, yeah.
1581970	1589310	So, that was typo on my part. So, right here I'm creating a, wouldn't have happened if
1589310	1595330	I was using snip air. So, essentially we're going to launch this thing. We just created
1595330	1599330	an OWE transition mode AP, which is kind of interesting because it's actually two APs,
1599330	1604110	it's two BSSs being served off a single piece of hardware. So, if we go back to Wireshark
1604110	1607850	really fast, and this time we actually do want to look at beacon frames again. So, I'm
1607850	1617030	going to just kind of replace that. You'll see two SSIDs here. The first one is a wild
1617030	1619730	card. So, this is a hidden SSID that we're seeing. We don't really know what this is.
1619730	1626490	And then we see this open SSID. So, essentially what happens is, you know, the idea of the
1626490	1630590	transition mode is that you're supposed to have a setup where no matter whether the device
1630590	1635870	only supports open, whether it supports OWE or not, it can still connect to this network.
1636670	1642590	So, what will happen is that the publicly visible SSID, right, it belongs to an open
1642590	1652650	BSS. So, an open network. And then we see that here with this SSID that's visible. And
1652650	1656810	if a device that only supports connecting to open networks, it doesn't support OWE,
1656810	1660410	attempts to connect to this thing, that will be it. It will just use the open network.
1660410	1666350	However, an OWE capable device, when it tries to connect, essentially it will look through
1666350	1677350	these fields and grab the SSID of the hidden network that we see here, right. In this case
1677350	1682030	it says, you know, that SSID is open WiFi. But it's usually just a random string of characters.
1682030	1686630	It will grab that SSID and then reconnect. It will send a pro request for that SSID and
1686630	1692670	then reconnect to the wild card one that we see here, right. So, just to kind of demonstrate
1692670	1712120	that, I'm actually going to have to edit this really fast. I guess the default here is for
1712120	1726350	it to use spelled backwards. So, there we go. Okay. So, here we have a device that's
1726350	1745360	going to attempt to connect using open explicitly, right. And I can't type today. And you'll
1745360	1754400	see here that it's connected to the public SSID, the one that's visible, right. And you
1754400	1770130	know, all is expected. If we instead elect to use the config file that makes it look for
1770130	1782250	an open, sorry, the OWE access point, it will first connect to the open WiFi, which you
1782250	1794220	should see in a second. Come on, demo gods. That's a little weird. Okay. Hang on a minute.
1809610	1833180	It should be right. Live demos. Got to love them. Yeah. I don't know. Well, good thing
1833180	1867820	we have, all right. I'm going to try a different config really fast. Okay. All right. I see
1867820	1872640	what I did. Try to specify the random SSID instead of the open one. Okay. Cool. So, this
1872640	1881020	should work. So, yeah. So, you see here, it says try to authenticate with, so, despite
1881520	1890320	the fact that we configured it to go for the visible network, right, which was this, it
1890320	1893840	instead shifts over and tries to go for this randomly visible one. So, going back to
1893840	1904460	Wireshark really fast, just to kind of show you what we're doing, we replaced the public SSID
1904460	1912320	that's now open WiFi and the random one, the random hidden OWE SSID is this random string
1912320	1916260	of characters there. It's not really random. I just mashed the keyboard a bit to get it.
1916260	1928020	So, it's connected to the random one. So, that's how that works. Okay. And just did
1928020	1935900	that. I think we just talked about this, basically. Yeah. So, this is just basically what we
1935900	1940420	talked about. But if your client doesn't do OWE, then it's just going to connect to the
1940420	1944900	open network. But if it does support OWE, then it's going to look for that hidden network
1944900	1953260	and then associate to that one instead. So, we tried a number of techniques to attack this
1953260	1956960	kind of network. The first is just creating an OWE evil twin. We figured just grab the
1957920	1963000	SSID from that information element. It turns out this doesn't actually work because the
1965960	1969040	client device, and actually, that's why the first demo failed is because we essentially
1969040	1976560	tried to do that. You know, but if you just try to, you know, create an OWE evil twin
1976560	1984900	using that random SSID, it's going to fail. However, what does work is that you just do
1984900	1992640	an OWE transition evil twin. So, you match it exactly. You match both the public SSID
1992640	2002260	and the private one. And the third technique that we figured out is just use an OWE evil twin.
2002260	2007500	Surprisingly, that works as well. Because remember what we, and once again, that's likely
2013380	2017940	just a implementation issue or something. It really isn't defined that way in the RFCs.
2017940	2033420	But, oops, I locked myself out. For example, if we just create an open network here, even if
2035140	2041320	this device is expecting OWE, for some reason, it will still connect to your open access point.
2046510	2052470	Or at least it will try to. There's some weirdness going on there. Oh, there we go.
2054970	2073800	Yeah, off failure. Well, anyways, it worked earlier. So, the one thing that I think actually
2073800	2083620	OWE gets right is the use of PMF. I mean, oh. Yeah, with management frame protection,
2083620	2089540	you're getting rid of deauths. So, that's one of the most common attacks that we see today
2089540	2096020	is knocking people off a network and then recording the transaction of when they connect right back to that access point.
2096080	2100680	And that's one of the major features of WPA3 is that it's going to enforce all of that
2101960	2106680	protected management frames so that deauths is going to be no longer a thing to worry about.
2106680	2111480	All these guys walking around at cons with their deauthers, it won't matter anymore at that point.
2111480	2114960	And this also relates to the rogue AP attacks, the issues we were talking about earlier.
2115120	2121620	It's not always possible to get something to connect to you, get a device to connect to your rogue AP
2121620	2126600	simply by providing a superior signal. That's often actually harder than it looks.
2127340	2133100	And when that happens, pretty much the go-to technique that people rely on is deauthenting the target access point
2133900	2138060	to kind of force the connected client devices to roam somewhere else.
2138580	2142780	And I think what it does get right is it does prevent you from doing that.
2142940	2149120	Because with management frame encryption, basically you encrypt all the management frames that are going between the client and the AP
2149120	2153120	so you can't just inject deauthentication packets and get it to work that way.
2156720	2159980	But the problem is that you can still just kind of go back and
2159980	2166160	you know, if you're targeting a client that's like by itself, it's not connected to an AP,
2166160	2172580	then this doesn't even bear any relevance. Because, yeah, you wouldn't have to deauth at that point.
2174140	2176340	But just to kind of show you what I mean by that.
2180590	2185790	So, you know, say I create this OWE access point, right?
2189120	2192380	And then I connect this supplicant to it.
2200470	2204810	Well, provided this can actually authenticate, because it was having some weirdness earlier.
2205330	2209310	But, well then.
2212860	2217100	Okay, so likely this is a driver issue. I'm using virtual Wi-Fi drivers.
2217200	2220680	So what I'm going to do is I'm just going to reload them really fast.
2220800	2224220	Do rm mod connect 802.11.
2226060	2227860	That's why you don't do live demos, folks.
2227860	2232300	But we decided to be a little bold about it.
2239210	2241290	Set radios to 5.
2241370	2243230	Alright, this should work now.
2252020	2254400	Alright, yeah, so that worked. It was a driver issue.
2255940	2258340	Let me just take a look at my MAC addresses really fast.
2259760	2266620	Okay, cool. So just to show you what we kind of mean by this.
2267080	2268260	We do air replay.
2269800	2272260	I can't remember. Air replay.
2272980	2275100	Just to specify the AP.
2275180	2278000	Is it A? Okay.
2280480	2283440	Alright, so I'm just going to specify the
2284660	2293980	BSSID of the access point, which is just 00.11.22.33.44.
2294220	2297280	I believe it was 55, if I remember correctly.
2297280	2298440	No, it was 00.
2299460	2305180	And we're going to specify the MAC address of the client device, which in this case was
2305180	2312560	what was it? It was this thing right here.
2312560	2313640	Okay, cool.
2318480	2320080	We've got to give it an interface.
2328730	2331970	So I'm just going to put my third WiFi interface
2331970	2335630	into monitor mode really fast and bring it back up.
2338010	2338570	And...
2343200	2347000	Alright, so we're literally just spamming this thing
2347000	2350920	with deauthentication packets right now. And, you know, nothing's
2350920	2354980	happening. So you can
2354980	2359020	see that those deauth attacks don't work anymore. One interesting thing to think about, though,
2359020	2362800	is this. If we're pushing out protocols
2362800	2367620	in which protected management frames are required,
2367620	2371420	then that's inevitably going to lead to more devices supporting
2371420	2374700	the use of protected management frames. Right now it's not that widely used because there's
2374700	2379420	not a consistent support across hardware for this kind of thing.
2380660	2383500	But something to think about, right, the way a lot of
2383500	2386500	IDS systems or wireless intrusion protection systems work
2387020	2391420	to contain these kinds of attacks that we're showing you, essentially if they
2391420	2396020	see a rogue AP and they see one of their own devices connecting to it, they'll start deauthing it.
2396020	2399780	Well, now you're going to have a situation where you're going to have widespread use of
2399780	2403980	or support for PMF. And on top of that,
2403980	2407800	you know, if you're an attacker, you can make use of that as well. So if you actually
2407800	2410720	successfully execute an attack and get one of these devices to connect to you
2411940	2416380	and you're using PMF yourself, regardless of whether or not you're using OWE,
2416860	2419660	then you've kind of made yourself immune from, you know,
2419660	2424060	what is essentially the standard containment method used by WIPs devices today.
2424060	2427740	So that's going to be interesting to see how that plays out in terms of
2427740	2431840	how people design those things. Any questions?
2434160	2436300	If you have any questions, we're team WhatTheFreak
2436300	2440360	over in the wireless CTF. If you want to come hang out, ask us stuff over there.
2440360	2443120	We'll be over there. Thanks.
