Skip to content
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 4 commits into from
Nov 11, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions bbk-requirements.md
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).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduced to a single factor (biometric or possession, depending on the authentication method used).

In what case can SPC/WebAuthn still provide possession, given syncing? Was this meant to read "biometric or knowledge" ?

Copy link
Collaborator Author

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!


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.
Loading