r/Passkeys • u/bytecode36 • 9d 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.
121
Upvotes
11
u/JimTheEarthling 9d 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 8d ago
5. Why can't I use a passkey with other factors if I want?
2
u/silasmoeckel 9d 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 6d 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😂
16
u/cobaltjacket 9d ago
Can we pin this?
12
u/Ok-Lingonberry-8261 9d 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 9d ago
Amen.
1
u/Beet_slice 9d ago
What does #4 mean?
Secondarily, what does #6 mean?
2
u/AJ42-6802 8d 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 9d ago
https://fidoalliance.org/passkeys/
1
u/gripe_and_complain 8d ago
Thou shalt allow users to create an account recovery code that can be printed and stored in a safe place.
-3
u/MegamanEXE2013 8d ago
Sorry, but most of them won't even apply