Skip to content
Back to skills

Passkeys Webauthn

ASecurity

Implement phishing-resistant WebAuthn passkeys safely with server challenges, origin binding, and account recovery paths

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agents

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill passkeys-webauthn --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Passkeys Webauthn?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Passkeys Webauthn
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-passkeys-webauthn-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-passkeys-webauthn-anvil)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: passkeys-webauthn
description: Implement phishing-resistant WebAuthn passkeys safely with server challenges, origin binding, and account recovery paths
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# Passkeys & WebAuthn

Use when adding FIDO2/WebAuthn passkey registration, passwordless sign-in, or phishing-resistant MFA.

## Ceremonies and verification
- Generate cryptographically random short-lived challenges on the server (`>= 128` bits), store them tied to a temporary challenge ID/session, and delete immediately after single verification use to stop replay.
- Verify `rpIdHash`, exact HTTPS `origin` allow-list, user verification flags (`UV`/`UP`), and challenge bytes strictly using maintained WebAuthn server libraries rather than custom CBOR checks.
- Store verified `credentialID`, COSE public key, transports, and sign count safely per user account; alert or reject anomalous signature counter regressions when non-zero.

## UX and recovery
- Provide multi-passkey support (phone + laptop), clean conditional UI autofill (`mediation: "conditional"`), and verified secondary recovery options rather than leaving users locked out after losing one device.

## Verify
Test challenge expiry, replayed assertions, mismatched origin/rpId rejections, and full registration + authentication flows with a WebAuthn virtual authenticator.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.