-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation of BBK requirements document #277
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Secure Payment Confirmation: Browser Based Key Requirements and Design Considerations | ||
|
||
Status: This is a **draft** document without consensus. | ||
|
||
Though this document we seek to build consensus around requirements and design considerations for adding a browser-based key pair (BBK) to the results of Secure Payment Confirmation to serve as a possession factor during authentication. For discussion, see [issue 271](https://github.com/w3c/secure-payment-confirmation/issues/271). | ||
|
||
## Motivation | ||
|
||
Secure Payment Confirmation provides a convenient "sign what you see" experience for a user to agree to the terms and conditions of a transaction, and where Web Authentication is used to generate cryptographic evidence of the user's agreement. | ||
|
||
The payments industry has indicated that SPC would further benefit from a device binding capability. As WebAuthn passkeys can now be synced, it can be argued that they no longer meet strict 2FA requirements (being no longer a signal of device possession), and so SPC (like WebAuthn) is reduced to a single factor (biometric or possession, depending on the authentication method used). | ||
|
||
The Web Authentication Working Group has considered but not adopted device binding proposals (cf. [SPK](https://github.com/w3c/webauthn/pull/1957) and [DPK](https://github.com/w3c/webauthn/issues/1658)). | ||
|
||
Therefore, the Web Payments Working Group plans to add a "browser-based key (BBK)" SPC. This document endeavors to capture requirements for the BBK functionality. | ||
ianbjacobs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Assumptions | ||
|
||
* A relying party will perform some ID & V process before trusting a (new) BBK. That ID & V process might take place before a Web Authentication registration (and thus, if the BBK is returned as part of the Web Authentication registration, the RP would not likely step up the user a second time). In the case of a synched passkey, when the RP first sees a BBK on a new user device, in the absence of other trust signals, the RP would likely perform some ID & V process in order to trust the new BBK, and we consider that an acceptable user experience on a new device. | ||
|
||
## Requirements | ||
|
||
***Notes:*** | ||
|
||
* These requirements are not prioritized. | ||
* "MUST", "SHOULD", and "MAY" are used per [RFC 2119](https://datatracker.ietf.org/doc/html/rfc2119). | ||
|
||
|
||
### Association with passkeys | ||
|
||
* A given passkey should have only one associated BBK at any given time for a given user agent user profile. | ||
|
||
* A BBK must only ever be associated with one passkey. | ||
|
||
* If a BBK is deleted, the user agent should generate a new BBK associated with the same passkey. | ||
|
||
* At authentication time, the Web Authentication challenge will be signed by the passkey and the associated BBK. | ||
ianbjacobs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
* To link the BBK to the passkey cryptographically, the BBK public key should be added in the passkey client data. | ||
ianbjacobs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### User agent user profiles | ||
|
||
* A user agent may reuse the same BBK across user profiles of the same user agent instance. | ||
|
||
### Device binding | ||
|
||
* To meet anticipated security requirements, issuance of the BBK by the user agent should involve a device-binding process that ensures a unique connection between the user agent (user profile) and the device. This may be, for example, through hardware crypto-security (e.g., TPM), keys stored in the secure element, or registration of the web browser linking a browser to a device. | ||
|
||
* Once a BBK has been bound to a device, it must only ever be bound to that device. | ||
|
||
* For environments where a device-binding process is not readily available, the BBK may still provide value. Not every transaction requires the same level of security (e.g., low-value transactions), and so even a BBK that is not device-bound may be useful. | ||
ianbjacobs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
* Each BBK should be associated with a signal indicating the nature of the device-binding process (e.g., corresponding to "secure element", "software", "no device binding"). | ||
rsolomakhin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Attestation | ||
|
||
_This section is in development._ | ||
|
||
### Security and privacy considerations | ||
|
||
* In private browsing mode, if a user can access passkeys when using | ||
SPC, the user agent should also return the BBK. | ||
|
||
* The BBK must only be available through the SPC API and otherwise isolated from the Web page environment. | ||
|
||
* This proposal relies on underlying [FIDO security assumptions](https://fidoalliance.org/specs/common-specs/fido-security-ref-v2.1-ps-20220523.html#fido-security-assumptions) and related threat models. | ||
|
||
## Questions | ||
|
||
* If TPM is the focus of security, do we need any requirements related to BBK storage (e.g., must be encrypted storage)? | ||
|
||
## Editor | ||
|
||
* Ian Jacobs, borrowing in part from the original text [issue | ||
271](https://github.com/w3c/secure-payment-confirmation/issues/271) | ||
and also aggregating subsequent feedback. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what case can SPC/WebAuthn still provide possession, given syncing? Was this meant to read "biometric or knowledge" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that was a bug. I've fixed it in the merged version. Thank you!