Torna al catalogo
Revisione staticaSviluppo

Dossier della skill

implementing-hardware-security-key-authentication

Dichiarazione di fonte

Builds a FIDO2/WebAuthn relying party server with the python-fido2 library, covering registration and authentication ceremonies, YubiKey enrollment, resident key (discoverable credential/passkey) workflows, and user verification policies. Use when implementing phishing-resistant MFA with hardware security keys, building a WebAuthn relying party, enrolling YubiKeys for a workforce, or migrating password-based authentication to passkeys.

La descrizione originale dell'autore, conservata in inglese. Descrive l'intento, non prestazioni verificate.

Builds a FIDO2/WebAuthn relying party server with the python-fido2 library, covering registration and authentication ceremonies, YubiKey enrollment, resident key (discoverable credential/passkey) workflows, and user verification policies. Use when implementing phishing-resistant MFA with hardware security keys, building a WebAuthn relying party, enrolling YubiKeys for a workforce, or migrating password-based authentication to passkeys.

developmentreferencesscripts

I contenuti di ricerca di questo sito sono pubblicati in inglese e cinese e qui sono mostrati in inglese.

Sintesi della ricerca

Temi correlati
Analisi statica

Queste osservazioni derivano dall'analisi deterministica del sorgente. Non sono una valutazione controllata delle attività.

Builds a FIDO2/WebAuthn relying party server with the python-fido2 library, covering registration and authentication ceremonies, YubiKey enrollment, resident key (discoverable credential/passkey) workflows, and user verification policies. Use when implementing phishing-resistant MFA with hardware security keys, building a WebAuthn relying party, enrolling YubiKeys for a workforce, or migrating password-based authentication to passkeys. This bilingual summary is generated deterministically from collected source text and file structure; it is from static parsing.

Ambito della revisione

Deterministic static analysis of collected SKILL.md and supporting text/code. Machine-assisted candidates and findings are static-analysis candidates; no dynamic behavior or effect is assessed.

Capacità osservabili

  • Workflow [Source statement; provisional, not tested. Evidence: skills/implementing-hardware-security-key-authentication/SKILL.md:L64]
  • Step 1: Relying Party Server Configuration [Source statement; provisional, not tested. Evidence: skills/implementing-hardware-security-key-authentication/SKILL.md:L66]
  • Step 2: Registration Ceremony (Credential Creation) [Source statement; provisional, not tested. Evidence: skills/implementing-hardware-security-key-authentication/SKILL.md:L80]
  • Step 3: Authentication Ceremony (Assertion) [Source statement; provisional, not tested. Evidence: skills/implementing-hardware-security-key-authentication/SKILL.md:L95]
  • Step 4: YubiKey Enrollment and Management [Source statement; provisional, not tested. Evidence: skills/implementing-hardware-security-key-authentication/SKILL.md:L105]
  • Step 5: Passkey Migration Strategy [Source statement; provisional, not tested. Evidence: skills/implementing-hardware-security-key-authentication/SKILL.md:L115]

Limiti e ambito

  • Static analysis cannot assess runtime behavior, command success, network reachability, or model output quality.
  • No commands, scripts, network requests, model calls, or controlled skill executions were performed.
  • Category, tags, capabilities, workflows, and bilingual editorial summaries are deterministic candidates from static parsing, not verified outcomes.
  • Exact token counts are unavailable until a later pipeline performs and records an official model-specific count.

Utile per

  • Practitioners evaluating whether to inspect and install the source skill; this audience is inferred from the product context, not measured usage. [Evidence: skills/implementing-hardware-security-key-authentication/SKILL.md:L1-L43]

Cosa contiene la skill

L'inventario dei file proviene dal sorgente raccolto al commit registrato. Percorsi e dimensioni sono osservazioni strutturali, non una misura di qualità.

file
4
File Markdown
2
script
1
riferimenti
1
Dimensione
72,7 KB
Complessità strutturale
Bassa

Inventario dei file

PercorsoTipoByte
skills/implementing-hardware-security-key-authentication/LICENSEAltro11 KB
skills/implementing-hardware-security-key-authentication/references/api-reference.mdRiferimento6,3 KB
skills/implementing-hardware-security-key-authentication/scripts/agent.pyScript37,9 KB
skills/implementing-hardware-security-key-authentication/SKILL.mdIstruzione17,5 KB

Frontmatter di SKILL.md

{
  "name": "implementing-hardware-security-key-authentication",
  "description": "Builds a FIDO2/WebAuthn relying party server with the python-fido2 library, covering registration and authentication ceremonies, YubiKey enrollment, resident key (discoverable credential/passkey) workflows, and user verification policies. Use when implementing phishing-resistant MFA with hardware security keys, building a WebAuthn relying party, enrolling YubiKeys for a workforce, or migrating password-based authentication to passkeys.\n",
  "domain": "cybersecurity",
  "subdomain": "identity-and-access-management",
  "tags": [
    "FIDO2",
    "WebAuthn",
    "hardware-security-key",
    "YubiKey",
    "passkeys",
    "passwordless-authentication",
    "CTAP2"
  ],
  "version": "1.0.0",
  "author": "mukul975",
  "license": "Apache-2.0",
  "atlas_techniques": [
    "AML.T0051",
    "AML.T0054",
    "AML.T0056"
  ],
  "nist_ai_rmf": [
    "MEASURE-2.7",
    "MEASURE-2.5",
    "GOVERN-6.1",
    "MAP-5.1"
  ],
  "nist_csf": [
    "PR.AA-01",
    "PR.AA-02",
    "PR.AA-05"
  ],
  "mitre_attack": [
    "T1078",
    "T1190",
    "T1059",
    "T1003",
    "T1110"
  ]
}

Una lettura della sequenza operativa

Questo workflow ricostruisce la sequenza apparente a partire dal materiale sorgente. A meno che sia registrata esplicitamente una valutazione controllata, è provvisorio e non una traccia osservata.

  1. 01
    Decisione

    When to Use

    Source-described decision candidate under “When to Use”; not verified execution.

  2. 02
    Azione

    Workflow

    Source-described action candidate under “Workflow”; not verified execution.

  3. 03
    Azione

    Step 1: Relying Party Server Configuration

    Source-described action candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  4. 04
    Output

    Define RP identity: Create a `PublicKeyCredentialRpEntity` with the relying party name (display name shown to users) and RP ID (the effective domain of the application). The RP ID must be a registrable domain suffix of the origin -- for example, `example.com` is valid for `https://auth.example.com` but `other.com` is not.

    Source-described output candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  5. 05
    Azione

    Initialize Fido2Server: Instantiate the `Fido2Server` class from the python-fido2 library with the RP entity. The server handles challenge generation, attestation verification, and assertion validation.

    Source-described action candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  6. 06
    Decisione

    Configure attestation preference: Set the attestation conveyance preference to control whether the server requests proof of the authenticator's identity:

    Source-described decision candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

Esamina tutti i passaggi di workflow candidati (64 passaggi candidati)
  1. 07
    Azione

    `none`: No attestation requested (simplest, recommended for most deployments)

    Source-described action candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  2. 08
    Input

    `indirect`: Attestation may be provided but CA may anonymize it

    Source-described input candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  3. 09
    Azione

    `direct`: Full attestation chain from the authenticator's manufacturer

    Source-described action candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  4. 10
    Azione

    `enterprise`: Device-identifying attestation for managed environments

    Source-described action candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  5. 11
    Azione

    Session management: Configure server-side sessions to store WebAuthn state between the begin and complete phases of registration/authentication ceremonies. Use secure, httponly cookies with SameSite=Strict.

    Source-described action candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  6. 12
    Azione

    Credential storage: Design the database schema to store credential records: `credentialid` (binary), `publickey` (COSE key), `signcount` (uint32 for clone detection), `userid`, `createdat`, `lastused`, `displayname`, and `transports` (USB, NFC, BLE, internal).

    Source-described action candidate under “Step 1: Relying Party Server Configuration”; not verified execution.

  7. 13
    Azione

    Step 2: Registration Ceremony (Credential Creation)

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  8. 14
    Output

    Begin registration: Call `server.registerbegin()` with the user entity (`PublicKeyCredentialUserEntity` containing user ID, username, and display name), the list of existing credentials for the user (to prevent duplicate registration), and options for `userverification` and `authenticatorattachment`.

    Source-described output candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  9. 15
    Azione

    Authenticator selection criteria:

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  10. 16
    Azione

    `authenticatorattachment: cross-platform` restricts to roaming authenticators (USB/NFC keys)

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  11. 17
    Azione

    `authenticatorattachment: platform` restricts to built-in authenticators (Touch ID, Windows Hello)

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  12. 18
    Azione

    Omitting this field allows both types

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  13. 19
    Azione

    `residentkey: required` forces creation of a discoverable credential (passkey) stored on the authenticator

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  14. 20
    Azione

    `userverification: required` enforces PIN or biometric verification on the authenticator

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  15. 21
    Azione

    Client-side ceremony: The browser calls `navigator.credentials.create()` with the options from the server. The authenticator generates a new key pair, stores the private key in its secure element, and returns the public key, credential ID, attestation object, and client data JSON.

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  16. 22
    Azione

    Complete registration: Call `server.registercomplete()` with the saved state and the client response. The server verifies the attestation signature, extracts the credential public key and ID, and returns `AuthenticatorData` containing the credential data to store.

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  17. 23
    Azione

    Store credential: Persist the `credentialdata` (contains `credentialid`, `publickey` as COSE key, and `signcount`) to the database associated with the user account.

    Source-described action candidate under “Step 2: Registration Ceremony (Credential Creation)”; not verified execution.

  18. 24
    Azione

    Step 3: Authentication Ceremony (Assertion)

    Source-described action candidate under “Step 3: Authentication Ceremony (Assertion)”; not verified execution.

  19. 25
    Azione

    Begin authentication: Call `server.authenticatebegin()` with the list of registered credentials for the user (or omit for discoverable credential flows where the authenticator identifies the user). Set `userverification` based on the assurance level required.

    Source-described action candidate under “Step 3: Authentication Ceremony (Assertion)”; not verified execution.

  20. 26
    Decisione

    Client-side assertion: The browser calls `navigator.credentials.get()` with the server options. The authenticator locates the matching credential, performs user verification if required, increments the signature counter, and signs the challenge with the private key.

    Source-described decision candidate under “Step 3: Authentication Ceremony (Assertion)”; not verified execution.

  21. 27
    Azione

    Complete authentication: Call `server.authenticatecomplete()` with the saved state, registered credentials, and the client response. The server verifies the assertion signature against the stored public key and validates the signature counter has incremented (clone detection).

    Source-described action candidate under “Step 3: Authentication Ceremony (Assertion)”; not verified execution.

  22. 28
    Decisione

    Update sign count: After successful authentication, update the stored `signcount` for the credential. If the new sign count is not greater than the stored value, the key may have been cloned -- flag this as a security event.

    Source-described decision candidate under “Step 3: Authentication Ceremony (Assertion)”; not verified execution.

  23. 29
    Azione

    Discoverable credential flow: For passwordless authentication, the user does not need to enter a username first. The authenticator presents all discoverable credentials for the RP ID, and the selected credential's `userHandle` identifies the user.

    Source-described action candidate under “Step 3: Authentication Ceremony (Assertion)”; not verified execution.

  24. 30
    Azione

    Step 4: YubiKey Enrollment and Management

    Source-described action candidate under “Step 4: YubiKey Enrollment and Management”; not verified execution.

  25. 31
    Azione

    PIN initialization: Before first use, a YubiKey requires a FIDO2 PIN (minimum 4 characters, 8 retries before lockout). Guide users through PIN setup using the Yubico Authenticator application or programmatically via the CTAP2 `clientPin` command.

    Source-described action candidate under “Step 4: YubiKey Enrollment and Management”; not verified execution.

  26. 32
    Azione

    Primary key enrollment: Register the user's primary YubiKey with their account. Store the credential with a user-friendly label (e.g., "USB-A YubiKey - Office") and the authenticator's AAGUID for device identification.

    Source-described action candidate under “Step 4: YubiKey Enrollment and Management”; not verified execution.

  27. 33
    Azione

    Backup key enrollment: Require users to register at least two security keys. The backup key should be stored separately (home, safety deposit box). Both keys must be registered to the same account so either can authenticate.

    Source-described action candidate under “Step 4: YubiKey Enrollment and Management”; not verified execution.

  28. 34
    Azione

    Key attestation verification: For enterprise deployments, verify the attestation certificate chain to confirm the key is a genuine YubiKey from Yubico. Compare the AAGUID against Yubico's published values to identify the exact model.

    Source-described action candidate under “Step 4: YubiKey Enrollment and Management”; not verified execution.

  29. 35
    Azione

    Key lifecycle management: Implement administrative functions to list a user's registered keys, revoke compromised keys, force re-enrollment, and audit key usage patterns (last authentication time, total authentications).

    Source-described action candidate under “Step 4: YubiKey Enrollment and Management”; not verified execution.

  30. 36
    Azione

    Step 5: Passkey Migration Strategy

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  31. 37
    Azione

    Phased rollout: Begin with voluntary passkey enrollment alongside existing password authentication. Track adoption metrics (percentage of users with passkeys, percentage of logins using passkeys vs. passwords).

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  32. 38
    Output

    Credential upgrade flow: When a user authenticates with a password, prompt them to register a passkey. Present the WebAuthn registration dialog immediately after successful password login to minimize friction.

    Source-described output candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  33. 39
    Input

    Cross-device passkeys: Support synced passkeys (passkeys stored in platform credential managers like iCloud Keychain, Google Password Manager, or 1Password) for users who do not have hardware security keys. These provide phishing resistance without requiring dedicated hardware.

    Source-described input candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  34. 40
    Azione

    Account recovery: Design recovery flows for users who lose all their security keys:

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  35. 41
    Azione

    Recovery codes generated at enrollment time (printed, stored in password manager)

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  36. 42
    Azione

    Supervised re-enrollment by an administrator after identity verification

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  37. 43
    Azione

    Temporary time-limited password login with mandatory key re-enrollment

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  38. 44
    Azione

    Never allow recovery via email or SMS alone, as these defeat the phishing resistance

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  39. 45
    Azione

    Password deprecation timeline: After passkey adoption exceeds the target threshold, enforce passkey-only authentication for high-privilege accounts first, then expand to all accounts. Maintain password as a fallback during the transition window.

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  40. 46
    Azione

    Monitoring and metrics: Track registration success rates, authentication failure rates (wrong key, timeout, cancelled), mean time to authenticate, and the ratio of passkey to password logins.

    Source-described action candidate under “Step 5: Passkey Migration Strategy”; not verified execution.

  41. 47
    Azione

    Key Concepts

    Source-described action candidate under “Key Concepts”; not verified execution.

  42. 48
    Azione

    Tools & Systems

    Source-described action candidate under “Tools & Systems”; not verified execution.

  43. 49
    Azione

    Common Scenarios

    Source-described action candidate under “Common Scenarios”; not verified execution.

  44. 50
    Azione

    Provision YubiKey 5 NFC keys (2 per developer: primary + backup) and distribute in tamper-evident packaging with initial PIN setup instructions

    Source-described action candidate under “Scenario: Deploying FIDO2 MFA for a Development Team”; not verified execution.

  45. 51
    Azione

    Deploy the WebAuthn relying party server integrated with the company's SSO (OAuth 2.0 / OpenID Connect) provider, configured with `authenticatorattachment: cross-platform` and `userverification: required`

    Source-described action candidate under “Scenario: Deploying FIDO2 MFA for a Development Team”; not verified execution.

  46. 52
    Azione

    Run enrollment sessions where each developer registers both keys to their account, with attestation verification confirming genuine YubiKey 5 NFC AAGUIDs

    Source-described action candidate under “Scenario: Deploying FIDO2 MFA for a Development Team”; not verified execution.

  47. 53
    Azione

    Configure the SSO provider to require FIDO2 as the second factor for all developer accounts, with a 30-day grace period where TOTP remains available

    Source-described action candidate under “Scenario: Deploying FIDO2 MFA for a Development Team”; not verified execution.

  48. 54
    Output

    Implement a self-service portal for key management: view registered keys, register replacement keys, and report lost/stolen keys (which triggers immediate credential revocation and re-enrollment)

    Source-described output candidate under “Scenario: Deploying FIDO2 MFA for a Development Team”; not verified execution.

  49. 55
    Input

    After the grace period, disable TOTP for developer accounts. Monitor authentication logs for any fallback attempts and provide 1:1 support for remaining holdouts

    Source-described input candidate under “Scenario: Deploying FIDO2 MFA for a Development Team”; not verified execution.

  50. 56
    Azione

    Achieve 100% FIDO2 adoption for the development team, reducing phishing risk to near-zero for production infrastructure access

    Source-described action candidate under “Scenario: Deploying FIDO2 MFA for a Development Team”; not verified execution.

  51. 57
    Azione

    Implement WebAuthn with `residentkey: required` to create discoverable credentials that enable username-less login

    Source-described action candidate under “Scenario: Implementing Passwordless Login for a Customer-Facing Application”; not verified execution.

  52. 58
    Azione

    Support both platform authenticators (Touch ID, Windows Hello, Android biometrics) and roaming authenticators (security keys) by omitting `authenticatorattachment`

    Source-described action candidate under “Scenario: Implementing Passwordless Login for a Customer-Facing Application”; not verified execution.

  53. 59
    Output

    Add a "Sign in with a passkey" button to the login page that triggers `navigator.credentials.get()` with an empty `allowCredentials` list, prompting the authenticator to present available passkeys

    Source-described output candidate under “Scenario: Implementing Passwordless Login for a Customer-Facing Application”; not verified execution.

  54. 60
    Azione

    After successful passkey creation, prompt users to create a passkey on a second device for redundancy

    Source-described action candidate under “Scenario: Implementing Passwordless Login for a Customer-Facing Application”; not verified execution.

  55. 61
    Azione

    Maintain password login as a fallback during the rollout period, with a persistent prompt encouraging passkey setup after each password login

    Source-described action candidate under “Scenario: Implementing Passwordless Login for a Customer-Facing Application”; not verified execution.

  56. 62
    Azione

    Track metrics: passkey registration rate (target 30% in first quarter), passkey vs. password login ratio, authentication failure rates, and account takeover incidents

    Source-described action candidate under “Scenario: Implementing Passwordless Login for a Customer-Facing Application”; not verified execution.

  57. 63
    Azione

    After 6 months, offer incentives (extended session duration, reduced CAPTCHA) for users who switch to passkey-only authentication

    Source-described action candidate under “Scenario: Implementing Passwordless Login for a Customer-Facing Application”; not verified execution.

  58. 64
    Output

    Output Format

    Source-described output candidate under “Output Format”; not verified execution.

Possibili superfici di rischio

I rilievi statici indicano i punti da esaminare prima dell'installazione. Non stabiliscono che una skill sia sicura, dannosa o efficace.

Elementi da rivedere

47 deterministic lexical finding(s) require review across the collected text. Findings can occur in documentation and do not prove execution or exploitability; binary-only files were not scanned.

Accesso alla reteOsservato
Scritture su fileOsservato
Uso di credenzialiNon osservato
Medio

Network access is mentioned

7 occorrenze

A URL or network client appears in this source line. Review destinations, data sent, and trust boundaries; static text cannot establish actual network activity. This rule matched 7 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Nota

File modification is described or implemented

40 occorrenze

This line contains a possible file-write or redirection operation. Check destination paths and overwrite behavior; the static review did not write any file. This rule matched 40 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Dove può essere consumato il contesto

I livelli di individuazione, attivazione e risorse hanno significati diversi. I valori esatti compaiono solo quando il metodo ufficiale di conteggio è stato eseguito con un modello indicato.

Conteggio esatto dei token non disponibile

All token values, including per-file inventory, are null until the pipeline performs an official exact count with an explicit model.

Non è stata registrata alcuna misura dei token con il metodo ufficiale richiesto. Questo dossier non la sostituisce con conteggi di caratteri, dimensioni dei file o stime.

Valutazione controllata

Nessuna valutazione controllata

Questa skill dispone solo delle evidenze indicate sopra. Non si afferma alcun tasso di successo, efficienza in token, latenza o vantaggio di qualità.

Non testato

Usare tenendo il sorgente in vista

Comando di installazione
Inspect the pinned source at https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/54a798831d2266a3ca61ce68a7acb80b81160d57/skills/implementing-hardware-security-key-authentication/SKILL.md and follow the source repository's installation instructions. No installation was performed or verified by this static analyzer. Source license: Apache-2.0.

Prerequisiti

  • Static analysis cannot assess runtime behavior, command success, network reachability, or model output quality.
  • No commands, scripts, network requests, model calls, or controlled skill executions were performed.
  • Category, tags, capabilities, workflows, and bilingual editorial summaries are deterministic candidates from static parsing, not verified outcomes.
  • Exact token counts are unavailable until a later pipeline performs and records an official model-specific count.

Prompt di esempio

Non fornito

Un giudizio, con i suoi limiti

Punti di forza

  • The snapshot contains 4 collected file(s), 2 Markdown file(s), and 1 script file(s), enabling source-level inspection. [Evidence: skills/implementing-hardware-security-key-authentication/SKILL.md:L1]

Aspetti da valutare

  • No functional, security, or model-quality result has been established. Inspect source context and all cited findings before installation or publication.
Conclusione della ricerca

Provisional deterministic static inventory only; from static parsing and, separately, controlled evaluation. No install recommendation, security assurance, or effectiveness claim is made.

Tracciabile per costruzione

Il dossier è una lettura circoscritta nel tempo di un artefatto pubblico, non un'approvazione. Usa il link al sorgente per esaminare il materiale upstream esatto.

mukul975Anthropic-Cybersecurity-Skillsskills/implementing-hardware-security-key-authentication
Tipo di fonte
Community
Commit
54a798831d2266a3ca61ce68a7acb80b81160d57
Raccolta
20 nov 2026
Ultimo controllo
20 nov 2026
Licenza upstream
Apache-2.0
Stelle del repository
36.446
Base dei contenuti

Deterministic lexical parsing, YAML frontmatter validation, file inventory, source-described workflow extraction, and heuristic provisional classification of the supplied files only. Generated by machine; no LLM, execution, or dynamic testing.