start	end	text
0	1540	All right.
1980	3760	Let's fish some pass keys, y'all.
7940	9060	I'm a short man.
9060	10640	A bunch of other folks helped me out with this.
10820	16460	Smarter, better hackers than me, but I get to come up and present it to you, so I'll do my best to do them justice.
17020	21760	My core belief, I just want to get this out there first, why I give these talks, why I think DEF CON is important.
21960	27020	I think it's critical that you understand the risk of the things that you're using so you can make good decisions.
27300	31820	And I truly believe that everybody deserves to be secure on the Internet, even if you're not a cybersecurity expert.
32140	34300	So that is the main motivation for this talk .
35620	37520	Phishing has killed the password star.
37520	39100	I don't know what you've heard about passwords.
39100	46560	You can put them in databases, you can make them 5 million characters, it doesn't matter, because the ultimate attack is to just phish the person.
46560	55640	You make it look compelling, you do all of the right things, and you add urgency , and ultimately they're going to type their stuff into the window, you steal their credentials outright.
55640	59000	There's no hardening, no amount of science that's going to solve this.
59480	60660	Passwords are dead.
60860	64420	Moving on, we've been trying a bunch of different things over the years.
64920	67380	Asymmetric keys came out a while back.
67740	71100	They're amazing, they work, they're mathematically soundish.
71100	75820	There's some hardness assumptions, quantum crypto is going to be a problem, but we set that aside for now.
75820	81100	The way it works for those of you that aren't interested, or that don't know, you're gonna have a private key that remains secret.
81100	81820	I'll keep that.
81820	83300	I give my public key out.
83300	85880	My private key, I can sign and decrypt.
85880	87500	Signing is used for authentication.
87500	88960	I prove that I'm me.
89040	93960	And for public keys, you can verify that I'm me, and you can encrypt things and send them to me secretly.
94160	97280	This is a game changer in authentication.
97400	105480	And ever since the advent of RSA, we've been trying to figure out how to do authentication with asymmetric keys at scale.
105480	110360	This has been kind of the panacea that everyone wants, and we've been trying to get to.
110580	119500	There's a couple standards around here, as you see, like passkey, SSH keys, or public keys, SSL, smart cards, UB key type things.
120340	124640	So we look at history of the popular authentication standards and how that kind of rolled out.
124640	127400	So 1983, roughly, internet was created.
127640	130280	X509 certs actually came very close afterwards.
130280	133440	So we had asymmetric keys on the internet really early on.
133460	136700	Then PGP, which was fully decentralized authentication.
137300	141380	TLS took a while for that to really, you know, HTTPS everywhere.
141860	144600	Then you had, you know, single sign on all these things.
144600	150060	The one in blue are all decentralized authentication mechanisms, which I think are the future.
150240	153440	And the ones we're talking about today are all of these FIDO specifications.
153500	156060	So in 2014, U2F came out.
156060	160480	So this was like the UB key, you'd plug in and you'd tap it and you'd have a universal second factor.
160680	163800	They also had UAF, which was using biometrics.
164200	166000	2015, they announced FIDO2.
166000	168280	This was going to be the death of the password.
168800	177740	And then in 2022, roughly, they made a critical mistake, in my opinion, and that's what we're here to talk about is these synced pass keys.
178280	185580	So if we look at what these specs were in the early days, U2F was a hardware bound token that you'd tap the USB token to log in.
185880	195720	UAF was a universal authentication token that would guarantee that you always use at least two factors, something you know, something you have, something you are, you would always use one of those two .
196060	205120	FIDO2 came out, they had a couple really big criteria, it must be non fishable, it must resist phishing attacks.
205560	209460	And it must be machine bound authentication and authorization.
209820	215160	This means that it should not be possible to take an identity service or ticket from one machine and use them on another.
215160	219300	These are their documents that came out as their draft in 2017.
219760	222220	Me and other researchers rejoiced.
222220	227220	It was like, yes, finally, asymmetric encryption, endorsed by all these big tech companies.
227220	231160	It's going to be machine bound private keys in my TPM on my laptop.
231180	232640	No freaking way to fish it.
232640	234520	Come get it, come steal my laptop.
234540	235900	We're finally going to do this.
235900	237780	Google's on board, Apple's on board.
237800	238700	Hell yeah.
239000	244120	2023, they're like, hey, your private key, we're actually going to sync it to everything.
244460	251320	So when you log in and your Chrome password manager, your Apple iCloud, your private key is going to show up because it's convenient.
251720	253740	I'm like, you know, what the fuck?
253740	256140	I thought we all like agreed on this that that was bad.
256140	257740	And it's like phishing resistance.
257740	263600	And like, you know, that this should have been like hardware bound and like that always have two factors.
263920	268560	And now I see this message when I log in, like your pass keys are securely synced across all devices.
268780	270300	That's a bait and switch.
270440	271540	Not cool.
272040	274020	So motivation for this talk.
274020	279540	One, my wife got a new iPhone and I like saw her credit card just appear when she's like signed in at the T Mobile store.
279540	283300	I'm like, I don't love that because that was a username and password.
283300	285760	And I'm like, we share a credit card.
285760	287340	So that's my credit card too.
287580	290080	And I was talking to a CISO like a week after that.
290080	293100	And he's like, okay, this actually happened to my company.
293180	293800	Name was changed.
293800	296840	Her name wasn't Alice, but an employee , perfect corporate hygiene.
296840	298900	Laptop was always on the corporate network.
298940	300400	Never left the VPN.
300740	306020	She accidentally saved her corporate password to her Chrome password manager.
306020	309960	It synced to her home computer, her home computer and an info stealer on it.
309960	311280	Company got popped.
311560	315600	So I'm like, okay, these, like, this is possible.
315960	317780	What do we create our own luck?
317780	325340	What if we're not this attacker that just happened to have an info stealer, but we're going to actually do this methodically against pass keys.
325360	327200	So we're going to fish the user credentials.
327240	328940	We're just going to log in as them.
329020	330960	We're going to wait for the pass keys to sync.
330960	332100	We're going to profit.
332280	333220	Should work.
333300	334800	So we did it.
334800	336280	How bad could it be?
336600	345860	So the idea around this attack is we're first going to make a phishing site that looks like you're logging into your Google account or your iCloud account or your Bitwarden account, you name it.
345860	346820	They're all vulnerable.
347180	352180	But when you're logging in, I'm actually going to emulate keyboard and mouse clicks on like a Chrome browser.
352180	354520	So I don't have to worry about any APIs or Chrome blocking me.
354520	357160	I'm just a user logging into my Chrome.
357920	364060	And then when you log in, you're presented with this beautiful option, you know, turn on sync.
364380	365760	Yes, I would love to.
367240	370740	They do have a pin that protects your pass keys.
370740	371760	It's a six digit pin.
371760	383040	If you don't want to brute force that, they also pop that up in a web browser conveniently that looks exactly like any phishing attack you would create where you can also fish that pin and then you would have that as well.
383460	385320	So as Dr.
385320	388800	Spensky said, one fish, two fish, pasty fish, password fish.
388800	403060	So it's a really trivial phishing attack, which I think is the bummer of the whole thing because we had this, you know, machine bound phishing resistance, like just put all over all the marketing, everything phishing resistant, phishing resistant, phishing resistant.
403060	407420	And I did the single dumbest phishing attack ever and got all the pass keys.
408040	409660	But it actually gets worse.
409660	412920	So now that I got your pass keys, I have your pin, I can change your pin.
413160	417740	And you cannot change your pin back without knowing the pin I changed it to.
417740	419360	So your life is over.
419540	422700	Like all of your accounts are now my accounts.
423040	424920	And you can't get back into them.
426160	428160	You could even extract the keys.
428860	438540	On Chrome, they're stored in this level DB at this directory, you can open it, they're encrypted, but necessarily that encryption key is on your computer.
438540	447780	So if you want to have a fun RE challenge, you could just suck these things out of memory or figure out where the decryption key is, you can decrypt them and export them from Chrome and just delete them.
448120	450640	So it's it's pretty nasty.
450640	453920	So I know the rule POC or GTFO.
454460	458360	You can go to github.com slash authenticate slash your passkey is weak.
458620	461220	And the attacks you'll see there the code is published.
461220	463240	We also have a website with all of this on it.
463240	465520	So that'll be at the end, you don't need to worry about taking notes.
466320	471020	The proof of concept what I did is I created a brand new Google account, your passkey is weak at gmail.com.
471100	474260	I completed the security checkup, I got all green checks.
474260	477000	I also went ahead and enabled 2FA by default.
477100	479880	I enrolled a couple passkeys from WebAuthn.io.
480040	482240	I set up my attacker machine on a VPN.
482240	483980	So it looks like I'm coming from Canada.
484360	487900	And then I browse the phishing site and get phished.
488440	495360	So you'll see here this is me launching a flask instance that's just going to look like Chrome.
495360	497640	So the victim is on the left.
498500	500080	The attacker is on the right.
500080	504100	So they type that I'm emulating key presses into Chrome.
504380	505900	They then type their password.
506020	507980	I emulate key presses into Chrome.
508400	510100	They get an SMS code.
510340	512220	They type their SMS code in.
512500	513960	I emulate key presses.
514640	518240	And then you'd normally do this in a two phase attack to get the pin.
518240	522280	So next time they would go to log in, you'd pop up something look like a passkey and phish this .
522420	524740	I did an all in one shot just to show you.
525180	531400	And then if you saw the dumb thing I did at the end, I went to the passwords and clicked file save as to export my passwords.
531840	539160	And now I have a Chrome instance that I can launch at any time to become that user and log in with their passkeys.
539460	550800	So the phishing resistance-ness really seems lost on me given the simplicity of this phishing attack where I definitely just stole a passkey.
550800	553660	I know you're thinking Chrome, that's for losers, right?
553660	558440	Like I use a secure password manager.
558440	559780	You probably use Bitwarden.
559780	566660	So just in case you think that this is just like all Chrome sucks, same thing, you know, Bitwarden, you're gonna log into Bitwarden.
566660	575180	Okay, here's my email, I'm on a new machine, I got to type in my master password, Bitwarden logs in, we get your credentials.
575200	579960	Bitwarden is actually cooler because once you have Bitwarden, there's a bunch of cool dev tools.
579960	583620	So now I can log in as you, I can export your passkeys.
583640	595980	And I don't have to do that reverse engineering attack on Bitwarden because they actually just give you the passkeys like here is the here's the private key for discord.com and they tell you the algorithm and the curve that they use and everything.
596240	598280	So now I can delete them from your Bitwarden.
598480	601580	And I can go import them into my Bitwarden.
601580	607800	It's really easy to have a nice UI to make this all possible to just like, you know, export from one import to the other.
607800	621060	So I'm going to take it from the, you know, account that we attacked, put it into a new Bitwarden, import items, and then log into discord with a phishing resistant passkey.
621220	631700	So the technical complexity here is almost laughable, but the harm done is pretty brutal.
631800	639300	So you can see all the passwords, everything there, we go to discord, authenticate with passkey, bam, game over.
641800	650360	So one thing I want to point out when we were doing the login, I know it was quick, but I hadn't logged in with a username and password in a while.
650380	654500	So this is kind of new to me what two FAs they asked for.
654660	657500	This one struck me as particularly interesting.
657600	664920	I can just confirm the phone number that is used for recovery as a second factor to log into my Google account.
665880	674840	So I'm like, that is way more insecure than SMSing me, because you can Google my phone number.
675380	677540	What is Chad Spensky's phone number?
677540	679400	First page, they did do a nice thing.
679400	681220	They blocked out the final four.
681300	682640	So you can't get the whole thing.
682640	685860	So I Googled what are the last four of Chad Spensky's phone number.
686060	691740	And the other site happily gave me the last four of my phone number.
691740	698640	So like, I don't feel safe with that being an option to log in to my password manager.
699220	700880	And I know you're like, this guy's an idiot.
700880	702700	He just doxed himself at DEF CON.
702700	704440	But honestly, like, we're all doxed.
704440	710540	Like, there's been so many data leaks over the past, you know, couple years from all these credential theft attacks.
710540	713040	They'll phish somebody, they log in, boom, they dump it.
713040	714620	We're all freaking doxed.
714620	719360	So like, but yeah, you now have my number if you ever want to call me or invite me to dinner or anything.
720140	726800	So what I'm really advocating here, though, is that a leaked passkey is far worse than a leaked password.
727200	733540	So the reason being that once you get the passkey, websites will never ask you for a second factor.
733820	738020	Passkeys are inherently phishing resistant and have second factors, right?
738020	745400	There's that pin, and they'll prompt you natively, oh, I got to use Touch ID or something on my local machine as my second factor.
745420	749060	So when I get your passkey, I can log into everything.
749320	757360	If I just got your password, each individual website would add their own security on top of the password, because they know passwords are risky.
757360	761820	But now passkeys are assumed to be unfishable and unrisky.
761880	768300	So you really do just have your like, you have everything you like it is it is game set match.
768300	775880	And some websites will even disable the password only login once you enroll a passkey because they don't want you to be vulnerable to downgrade attack.
775880	783320	So then when I steal your passkey, delete it from your password manager and log in as you, I mean, your life is like really, really wrecked.
783320	784980	And the protocol is standardized.
784980	791640	So like, I don't have to worry that like, oh, maybe this site is going to have some different security feature that I have to fish alternatively.
791840	796020	Once I have the FIDO2 spec, I'm talking web authn, I'm web authn everywhere.
796040	801420	So you know, the upgraded secure pass trees, but my posture somehow got slightly worse.
801420	803240	It's confusing.
803720	812500	And the root of the problem really is we're like in these sync pass keys, you're breaking the core assumption of asymmetric cryptography is that your private key remains private.
812780	816600	Once it's copied everywhere, a single weak point is a complete compromise.
816600	817660	It's game over.
817660	830040	So even if there was just malware on your computer, and that computer had a faulty TPM, or bad encryption, or whatever, right , or your phone, any system that has a compromise, now the everything falls over and dies.
830040	836460	Versus if you had a different key per device, you could easily just okay, I'll revoke my home laptop, because it had bad hardware.
836460	840580	And I could still live my life, I'd have other ways to log in with other keys.
840720	843600	There's no trusted input output channel.
843600	854080	This one is actually really critical just in authentication in general, you need a way for the user to provide something they know, through a trusted interface.
854080	859440	So websites have always inherently fallen prey to this, because everything looks like a website.
859640	863660	And even browsers, when they're calling native browser queries, they make them look like a website.
863660	867240	So it feels native, but also makes them highly fishable.
867240	873680	Like the fact that that was Chrome asking me for a pin, and it looked like a website is not okay.
873680	884020	Like they were they're running locally on my computer, they should be able to do something to prove to me that this is, you know, PID 17 that's presenting me this and not a website .
884260	888560	And then you're always gonna have the login and recovery that's susceptible to social engineering.
888560	893540	So you know, my dog's name, what street I grew up on, you know, those kind of things all come into play.
893760	898920	So the ultimate problem is you have an insecure password protecting more secure pass keys.
900460	902180	So what are we going to do?
903160	908720	They didn't actually fully kill the idea of keeping private keys private.
908720	913900	So there are two types of pass keys in the world, there are secure device bound pass keys.
914200	917780	So things like a, like a USB token that has the keys on it.
917800	920100	And then they call them synced pass keys.
920320	925720	So I'm advocating that friends do not let friends use synced pass keys, you deserve to be secure.
925720	931720	And if you really do want to like, you know, put phishing to bed, you got to know where that key is.
931720	935700	And you got to know that that key is not being spread like peanut butter all over your life.
936320	946060	Especially for enterprises since I know like real companies getting hacked with similar syncing attacks, it's clearly going to become the next target once pass keys become more prolific.
946720	952400	So device bound pass keys, they're generated on the device, they never leave, you can store them in secure hardware.
952740	956340	Ideally, you store them on something portable like a phone or a USB token.
956340	959320	So they're not strictly bound to one device.
959360	961160	And they actually are unfishable.
961160	962540	So I'm based in Texas.
962540	967560	So as we say in Texas, you got to come and take it like you want to steal my pass key.
967560	970180	Mine's in my pocket, like you got to come get it.
971180	975900	The problem though, that really like I'm seeing now in the world is that users can't tell the difference.
976020	982760	When you go to generate a pass key, there is metadata that the key provider will tell you if they're going to sync it or not.
982760	985280	But the user does not see that at all.
985280	991620	It just sees, oh, there's a pass key, I'm going to generate, add it to iCloud, add it to Google password manager, add it to Bitwarden, whatever, right.
991620	994620	But you don't know exactly what kind of key you're generating.
994700	997020	So the PAM meme is perfect for this.
997020	999540	Like, hey, we need you to tell a difference between these two keys.
999840	1001560	Like, they're the same key.
1002920	1015960	So the root of my assumption, like my conclusion with all of this is that we've completely lost control of just our digital lives, our identities, our keys, and the big players don't want to give up those password managers, right?
1015960	1020560	They have a lot of control of you as a user if you're using their password manager.
1020600	1028520	So if we all had our keys in our pockets or on our computers, password managers would become obsolete, they have a lot of money, they don't want to see that happen.
1029440	1031820	So what I'm advocating is you should control your keys.
1031820	1040060	If you're going to put all your keys in one basket, I think that's the way the quote goes, like you should control that basket, you should know where it is, and you should know where your backups are.
1040820	1045500	So my whole research, my whole life, I've been pushing for decentralization.
1045800	1053620	I think we can do this with decentralized authentication where we generate the keys on device, exactly Fido's initial dream, I don't think it's dead.
1053700	1064800	The protocol exists, the spec exists, like, you can use it, it's actually very secure until tomorrow, there's a passkey talk, maybe blows the lid off of that, but I haven't seen it yet.
1065460	1071980	You can actually do privacy preserving authentication with this, which is really nice, you can generate new keys for every single service you're on.
1072040	1075260	And you can do cool, like resilient decentralized backups.
1075840	1089480	So I'll leave you with this, I actually do put my money where my mouth is, I left a nice job a long time ago, and have been working to make products like this ever since to make these free for the world, so everyone can be secure.
1089600	1092760	I've literally drained my bank account to zero multiple times.
1092760	1096560	So like, this is not me making like a making money scheme.
1096560	1102700	And we actually give away free device bound passkey apps, like you can put our app on your smartphone, and you can use that.
1102700	1106880	Otherwise, any USB token, any of that stuff, I strongly advocate.
1107240	1111900	And we have some cool research we're doing like socially engineering decentralized backups.
1112500	1117820	So I'll leave you with this, the website at the top, I just launched live before I gave this talk.
1117820	1123140	So that is the GitHub repo, some of our analysis, summary of the talk, I'll put the slides up there.
1123280	1131440	And then if you want a free device bound passkey on your phone, you can try ours, download.authenticate.com.
1131440	1143120	But use somebody's, I don't care whose it is, like just get something that doesn't sync and isn't phishable, especially for high security, like bank accounts, things like that, highly advocated.
1143840	1145640	Any questions?
1146060	1148120	Or tomatoes to throw?
1173580	1174380	Right.
1176340	1185860	So I'll repeat the question that they said, it seems like if now we just have the sync fabric and we add some phishing resistance on top of the sync fabric, then it would be problem solved.
1186120	1191600	But you run into this chicken and the egg problem, like, okay, now I have a passkey to protect my Chrome password manager.
1192100	1198440	So why don't I just put all my passkeys in whatever that thing was, right?
1198440	1204680	Like you kind of like, yeah, I do want some phishing resistant thing now for my password managers.
1204680	1209200	But in theory, this FIDO2 spec was supposed to be that phishing resistant thing.
1209200	1211860	But now that thing's in my password manager.
1212240	1217500	So like you, you could have a YubiKey protect your password manager.
1217700	1224220	You're still opening yourself up to these private keys now being vulnerable to many different like malware attack points.
1241560	1246080	Yeah, I mean, that there are ways to do this, right?
1246080	1250040	Like I'm not advocating the way that it is currently done, I think is bad.
1250100	1260300	And I think the fact that it was a bait and switch on the whole world population without kind of being very transparent about the risk that you're opening yourself up to is kind of what I'm advocating here.
1260660	1264920	You know, there's always a way to have a fix, but right now it's not an option.
1265100	1267640	But okay
1273140	1273500	.
1275580	1281800	So you mentioned with that Alpambi, it's really hard to tell if it's a syncing passkey or not.
1281860	1289340	What's your recommended way to determine that when you're setting one up to know it is the correct one?
1289740	1303140	I think they just need some UI where you could effectively say like, for this account, I never want to sync passkey or, you know, some tick box that's or like, it just shows you this path, you can generate two types, this one will stay on your computer,
1303140	1308740	and this one will add to your password manager, some nice UI would be fantastic, just so you know what you're doing.
1318670	1322770	We list the password managers on your passkeyisweak.com.
1322770	1328450	And we have forums for everybody if they want to report things that they think are syncing and aren't syncing, and we'll update that as fast as we can.
1328550	1334310	So we're kind of just in lack of a good UI, we're just making a repository of what who does what.
1349820	1357280	I don't know if the service provider can explicitly say I will only accept I mean, they could because the metadata is there.
1357620	1365780	I haven't read the service provider spec enough to know if like, like say Bank of America, it would be nice if they could say we will only accept it.
1365780	1373720	There's so much pressure though, in the FIDO Alliance to own like to precinct passkeys that I don't think they would.
1374220	1377380	Like, I don't think that would just I don't think they want that to be an option .
1405680	1417000	So the the attack that the passkey fixes right now is me copying pasting a password out of a password manager into a phishing website and getting that individual credential phished .
1417000	1422320	In that sense, they are better because it's doing asymmetric , like public key cryptography to log in.
1422540	1426280	But it is doing nothing to protect the password manager.
1426280	1429960	So every password manager attack still exists.
1430280	1438600	The problem now is that when you attack the password manager and succeed, it is far worse off for you than it was if you just use it for passwords.
1447590	1449810	Thank you all so much.
