Volver al catálogo
Revisión estáticaDesarrollo

Dosier de la skill

implementing-hardware-security-key-authentication

Declaración de origen

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 descripción original del autor, conservada en inglés. Describe la intención, no un rendimiento verificado.

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

El contenido de investigación de este sitio está publicado en inglés y chino, y aquí se muestra en inglés.

Resumen de la investigación

Temas relacionados
Análisis estático

Estas observaciones proceden del análisis determinista del código fuente. No son una evaluación controlada de tareas.

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.

Alcance de la revisión

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.

Capacidades observables

  • 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]

Limitaciones y alcance

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

Relevante para

  • 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]

Qué incluye la skill

El inventario de archivos procede del código fuente recopilado en el commit registrado. Las rutas y los tamaños son observaciones estructurales, no una medida de calidad.

archivos
4
Archivos Markdown
2
scripts
1
referencias
1
Tamaño
72,7 KB
Complejidad estructural
Baja

Inventario de archivos

RutaTipoBytes
skills/implementing-hardware-security-key-authentication/LICENSEOtro11 KB
skills/implementing-hardware-security-key-authentication/references/api-reference.mdReferencia6,3 KB
skills/implementing-hardware-security-key-authentication/scripts/agent.pyScript37,9 KB
skills/implementing-hardware-security-key-authentication/SKILL.mdInstrucción17,5 KB

Frontmatter de 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 lectura de la secuencia de funcionamiento

Este flujo de trabajo reconstruye la secuencia aparente a partir del material de origen. A menos que se registre explícitamente una evaluación controlada, es provisional y no un seguimiento observado.

  1. 01
    Decisión

    When to Use

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

  2. 02
    Acción

    Workflow

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

  3. 03
    Acción

    Step 1: Relying Party Server Configuration

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

  4. 04
    Salida

    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
    Acción

    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
    Decisión

    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.

Examinar todos los pasos de flujo de trabajo candidatos (64 pasos candidatos)
  1. 07
    Acción

    `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
    Entrada

    `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
    Acción

    `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
    Acción

    `enterprise`: Device-identifying attestation for managed environments

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

  5. 11
    Acción

    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
    Acción

    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
    Acción

    Step 2: Registration Ceremony (Credential Creation)

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

  8. 14
    Salida

    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
    Acción

    Authenticator selection criteria:

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

  10. 16
    Acción

    `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
    Acción

    `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
    Acción

    Omitting this field allows both types

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

  13. 19
    Acción

    `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
    Acción

    `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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    Step 3: Authentication Ceremony (Assertion)

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

  19. 25
    Acción

    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
    Decisión

    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
    Acción

    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
    Decisión

    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
    Acción

    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
    Acción

    Step 4: YubiKey Enrollment and Management

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

  25. 31
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    Step 5: Passkey Migration Strategy

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

  31. 37
    Acción

    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
    Salida

    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
    Entrada

    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
    Acción

    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
    Acción

    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
    Acción

    Supervised re-enrollment by an administrator after identity verification

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

  37. 43
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    Key Concepts

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

  42. 48
    Acción

    Tools & Systems

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

  43. 49
    Acción

    Common Scenarios

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

  44. 50
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Salida

    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
    Entrada

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Salida

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Salida

    Output Format

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

Posibles superficies de riesgo

Los hallazgos estáticos señalan puntos que conviene revisar antes de instalar. No establecen que una skill sea segura, maliciosa ni eficaz.

Elementos que requieren revisión

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.

Acceso a la redObservado
Escrituras de archivosObservado
Uso de credencialesNo observado
Media

Network access is mentioned

7 ocurrencias

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 ocurrencias

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.

Dónde puede consumirse el contexto

Las capas de descubrimiento, activación y recursos tienen significados distintos. Los valores exactos solo aparecen cuando el método oficial de recuento se ejecutó con un modelo identificado.

Recuento exacto de tokens no disponible

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

No se registró ninguna medición de tokens con el método oficial requerido. Este dosier no la sustituye por recuentos de caracteres, tamaños de archivo ni estimaciones.

Evaluación controlada

Sin evaluación controlada

Esta skill solo cuenta con las evidencias indicadas arriba. No se afirma ninguna tasa de éxito, eficiencia de tokens, latencia ni ventaja de calidad.

Sin probar

Úsala con el código fuente a la vista

Comando de instalación
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.

Requisitos previos

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

Prompts de ejemplo

No proporcionado

Una decisión, con sus límites

Fortalezas

  • 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]

Aspectos a considerar

  • No functional, security, or model-quality result has been established. Inspect source context and all cited findings before installation or publication.
Conclusión de la investigación

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

Trazable por construcción

El dosier es una lectura acotada en el tiempo de un artefacto público, no un respaldo. Usa el enlace al código fuente para inspeccionar el material original exacto.

mukul975Anthropic-Cybersecurity-Skillsskills/implementing-hardware-security-key-authentication
Tipo de origen
Comunidad
Commit
54a798831d2266a3ca61ce68a7acb80b81160d57
Recopilado
20 nov 2026
Última comprobación
20 nov 2026
Licencia original
Apache-2.0
Estrellas del repositorio
36.446
Base del contenido

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.