Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Webauthn Passkeys Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-webauthn-passkeys-knowledge-patch)
---
name: webauthn-passkeys-knowledge-patch
description: WebAuthn / Passkeys
version: null
license: MIT
metadata:
author: Nevaberry
---
# WebAuthn and Passkeys
Use this skill when working on CTAP capability discovery, PIN/UV
authorization, PIN input, payment credentials, registration secrets,
attestation preferences, or hybrid transport.
## Reference index
| Reference | Topics |
| --- | --- |
| [PIN/UV authorization and capability discovery](references/pin-uv-and-capability-discovery.md) | Feature detection; persistent and session-scoped tokens; PIN complexity and length; verification counts |
| [Credential extensions and attestation](references/credential-extensions-and-attestation.md) | Third-party payments; secrets at registration; attestation format preferences |
| [Hybrid transport and specification boundaries](references/hybrid-transport-and-specification-boundaries.md) | Proximity and data channels; Digital Credentials messages; JSON and CBOR |
## Compatibility and authorization checks
### Discover capabilities through fields and extensions
Detect CTAP 2.2 features through the relevant
`authenticatorGetInfo` fields and extensions.
The version list omits `FIDO_2_2`.
CTAP 2.3 is the backward-compatible certification target.
See [capability discovery](references/pin-uv-and-capability-discovery.md#capability-discovery).
### Restrict persistent PIN/UV tokens to supported reads
Native CTAP clients can use persistent PIN/UV auth tokens
across power cycles for these operations only:
- `enumerateRPs`
- `enumerateCredentials`
- `getCredentialMetadata`
Use a session-scoped `cm` token for credential-management writes.
See [PIN/UV authorization](references/pin-uv-and-capability-discovery.md#persistent-and-session-scoped-authorization).
### Distinguish hybrid proximity from data transfer
For QR-initiated hybrid transactions in CTAP 2.2:
| Role | Channel |
| --- | --- |
| Proximity | BLE |
| Data transfer | Encrypted WebSocket tunnel |
BLE as an alternative data channel starts in CTAP 2.3.
See [hybrid channels](references/hybrid-transport-and-specification-boundaries.md#proximity-and-data-transfer).
## PIN input and verification
### Check complexity policy each session
Read `authenticatorGetInfo.pinComplexityPolicy` each session.
Use it to see whether authenticator-specific rules are active.
See [PIN complexity and length](references/pin-uv-and-capability-discovery.md#pin-complexity-and-length-limits).
### Apply both PIN length limits
Use `maxPINLength` alongside `minPINLength`
to constrain PIN input.
### Link to rules after a complexity rejection
On a complexity rejection, link to the device's rules
using `pinComplexityPolicyURL` when available.
### Use verification counts when considering a PIN prompt
Use `authenticatorGetInfo.uvCountSinceLastPinEntry`
to count user verifications since the last PIN entry
when deciding whether to defer a PIN prompt.
See [verification counts](references/pin-uv-and-capability-discovery.md#user-verifications-since-pin-entry).
## Credential extensions
### Assert third-party payment credentials
The `thirdPartyPayment` extension lets a Secure Payment
Confirmation client assert a credential when the transaction
initiator differs from the credential's relying party.
With `python-fido2` 2.0.0 or later:
- Opt in to the `thirdPartyPayment` extension.
- Use a client that supports the WebAuthn payment extension.
See [third-party payments](references/credential-extensions-and-attestation.md#third-party-payment-credentials).
### Derive a credential secret during registration
Use `hmac-secret-mc` with `authenticatorMakeCredential`
to derive a credential-specific secret during registration.
This avoids a separate assertion for secret derivation.
The corresponding WebAuthn PRF input on creation is `prf.eval`.
See [registration secrets](references/credential-extensions-and-attestation.md#credential-secrets-at-registration).
## Attestation preferences
### Discover supported statement formats
Read `authenticatorGetInfo.attestationFormats`
to discover supported attestation statement formats.
### Supply an ordered preference list
Pass an ordered `attestationFormatsPreference` list
to `authenticatorMakeCredential`.
This lets the authenticator select the highest-priority
format it supports.
See [attestation formats](references/credential-extensions-and-attestation.md#attestation-format-preferences).
## Digital Credentials over hybrid transport
### Check the handshake before exchanging messages
Check for `dc` in the hybrid handshake before exchanging
Digital Credentials API messages in JSON.
### Keep the message encodings distinct
| Communication | Encoding |
| --- | --- |
| Digital Credentials API messages over hybrid transport | JSON |
| Direct CTAP communication | CBOR |
See [Digital Credentials messages](references/hybrid-transport-and-specification-boundaries.md#digital-credentials-messages).