r/Passkeys • u/bytecode36 • 14d ago
Ten Commandments For Passkey Implementations
Ten Commandments For Implementations of Passkeys on Public Facing Websites.
- Thou shalt not restrict the user's operating system, browser, authenticator type (synced/device-bound) or attachment (platform/cross-platform)
- Thou shalt allow for at least three passkeys to be created
- Thou shalt allow individual passkeys to be renamed and deleted
- Thou shalt not implement non-discoverable credentials as passkeys
- Thou shalt not use passkeys only as a second factor to passwords
- Thou shalt prevent duplicate passkey registrations
- Thou shalt not silently create, or "trick" users into creating, a passkey
- Thou shalt email the user when a passkey is added or removed from their account
- Thou shalt have an automated account recovery process, or require users to register at least two passkeys
- Thou shalt allow users (or automation) to disable legacy authentication methods (without using those legacy methods) after passkey registration, but only after user approval or a set number of days/authentications successfully using passkeys
Follow these laws to avoid your users staying on legacy authentication methods or endless account recovery requests.
127
Upvotes
11
u/JimTheEarthling 14d ago
These are quite good except for #4. Passkeys are discoverable credentials and nothing else. (As defined by the FIDO Alliance.)
Although you could change #4 to "Thou shalt not create non-discoverable credentials and call them passkeys."
And I would revise #1 to "type (synced/device-bound ) or attachment (platform/cross-platfrom)"
3
u/yarntank 14d ago
5. Why can't I use a passkey with other factors if I want?
2
u/silasmoeckel 14d ago
1 Restrict no tell them they are an idiot and potentially block other parts of this yes. Exception if it's a known vulnerability exploitable without hardware access just block it till it's fixed.
9 Add in recovery codes and/or dial a friend, plenty of phone only users that will only ever have a single device.
10 See #9 even test to see they have the recovery codes after some time.
2
u/Ok_Class2432 12d ago
Solid list and the only missing one is 11. Thou shalt not make the user enter their password to delete their password, because if the passkey is supposed to replace it then keeping the password as the gatekeeper just defeats the whole point😂
17
u/cobaltjacket 14d ago
Can we pin this?
13
u/Ok-Lingonberry-8261 14d ago
The gmail subreddit, LOL. People keep creating a passkey then wiping their phone, then making surprised Pikachu face when their stuff is locked.
10
u/unndunn 14d ago
Amen.
1
u/Hilbert24 2d ago
Pretty good. Can I offer another which is a pet peeve:
11. Thou shalt not demand an additional factor like OTP or SMS after a user successfully authenticates with a passkey. (This is for you, Amazon.)
2
u/AJ42-6802 14d ago
This looks great and extremely user focused.
On the security side I would add that developers should be capturing AAGUID's and implementing platforms should be providing these. No need to do anything with them yet, but capturing now will have huge advantages for the ecosystem and the users. In the next few months/years this ecosystem is going to be attacked more by Hackers/AI/Malware and the ecosystem will need to react.
We've already seen mSecure's solution get attacked and there have been papers on xKeypass and Chromium based browsers and this is only going to get worse. By capturing and requiring AAGUID's now and storing these for later the security of this FIDO infrastructure can be updated to no longer trust individual compromised parts, and compromised users can move to more secure solutions more seamlessly. The alternative to doing this could be that you force all your users to re-enroll later in order to capture an AAGUID.
AAGUIDs are going to become an important way to maintain the high security that the passkey infrastructure has and failing to capture these now may cause huge re-enrollment problems that can be avoided later.
3
u/Illustrious_Salad918 14d ago
https://fidoalliance.org/passkeys/
1
u/gripe_and_complain 14d ago
Thou shalt allow users to create an account recovery code that can be printed and stored in a safe place.
1
u/EsQueueEll 5d ago
CVS: They bother the hell out of you every time you log in whether you know about them or not. I'm sure many didn't fully know what they were at a time and decided to just give it a try. I did that, using Windows hello. After a year or so and some situations, I got familiar with how they worked and deleted the one off of my computer as I still had access to the account. Thing is CVS only Allows 1 single key, which the option only pops up if you don't have one and you can't get rid of the nagging. After you make one, There is zero configuration options, so you can't delete or change it on the website. The only option is emailing technical support and having them send it to their advanced team. There you can eventually request a reset and until you speak with the right person, nothing will happen, you will speak with many who do not understand. Either way, I was able to get my key deleted and I made a new one which I wish I could use 2 but it is more of a backup as you still have full access to the acocunt with PW and email with a 2FA if you have that.
Twitch.tv on the other hand allows you to make one but you have no option of using it on a PC running Brave, or Edge, so that is literally no point in it yet.
-3
u/MegamanEXE2013 14d ago
Sorry, but most of them won't even apply
1
u/[deleted] 14d ago
[removed] — view removed comment