Add security considerations on signing presentation requests - #569
Open
marcoscaceres wants to merge 1 commit into
Open
Add security considerations on signing presentation requests#569marcoscaceres wants to merge 1 commit into
marcoscaceres wants to merge 1 commit into
Conversation
timcappalli
approved these changes
Aug 12, 2026
TallTed
reviewed
Aug 12, 2026
Comment on lines
+1980
to
+1984
| the attacker is already inside one. A signed request gives the | ||
| [=credential manager=] something to check, so the change can be | ||
| detected instead of passing unnoticed. With an unsigned request, the | ||
| [=credential manager=] has to trust that the verifier has kept its own | ||
| page free of such scripts. |
Contributor
There was a problem hiding this comment.
Better to close a paragraph with the desired action and positive effect.
Suggested change
| the attacker is already inside one. A signed request gives the | |
| [=credential manager=] something to check, so the change can be | |
| detected instead of passing unnoticed. With an unsigned request, the | |
| [=credential manager=] has to trust that the verifier has kept its own | |
| page free of such scripts. | |
| the attacker is already inside one. With an unsigned request, the | |
| [=credential manager=] has to trust that the verifier has kept its own | |
| page free of such scripts. A signed request, on the other hand, gives | |
| the [=credential manager=] something to check, so the change can be | |
| detected instead of passing unnoticed. |
TallTed
reviewed
Aug 12, 2026
Comment on lines
+1987
to
+1995
| Signing only helps if the [=credential manager=] can tell that the | ||
| signature belongs to the verifier making the request. A script inside | ||
| the page can re-sign an altered request with a key of its own, so a | ||
| signature that cannot be checked against a signing key already | ||
| recognized as the verifier's offers no protection against this | ||
| attacker. Which signing keys to accept, and how they are established, | ||
| is decided by the ecosystem a credential belongs to rather than by | ||
| this specification, and the protection a signed request actually | ||
| offers depends on that decision. |
Contributor
There was a problem hiding this comment.
Suggested change
| Signing only helps if the [=credential manager=] can tell that the | |
| signature belongs to the verifier making the request. A script inside | |
| the page can re-sign an altered request with a key of its own, so a | |
| signature that cannot be checked against a signing key already | |
| recognized as the verifier's offers no protection against this | |
| attacker. Which signing keys to accept, and how they are established, | |
| is decided by the ecosystem a credential belongs to rather than by | |
| this specification, and the protection a signed request actually | |
| offers depends on that decision. | |
| Even at that, signing only helps if the [=credential manager=] can tell | |
| that the signature belongs to the verifier making the request. A script | |
| inside the page can re-sign an altered request with a key of its own, | |
| so a signature offers no protection against this attacker unless it can | |
| be checked against a signing key that is already recognized as the | |
| verifier's. Which signing keys to accept, and how they are established, | |
| is decided by the ecosystem a credential belongs to rather than by this | |
| specification, and the protection a signed request actually offers | |
| depends on that decision. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a short security considerations subsection strongly encouraging relying parties to sign their presentation requests, explains the in-page tampering it protects against, and is explicit that a signature the wallet cannot check against a recognized key does not help. Resolves the concern raised in #568 without mandating signed requests.
The following tasks have been completed:
Implementation commitment:
Documentation and checks:
Preview | Diff