# saml-and-webauthn-passkey-implementation-flaws

saml-and-webauthn-passkey-implementation-flaws is a Claude Code skill that audits WebAuthn and FIDO2 Passkey checks. It runs during reviews of passwordless sign-in or MFA flows.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 73 repo stars
- Author: W4L33Dx
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/W4L33Dx/Cyber-Monster/tree/HEAD/red-team/web-and-application/saml-and-webauthn-passkey-implementation-flaws/SKILL.md
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/saml-and-webauthn-passkey-implementation-flaws

## What it does

The skill examines how a server validates a WebAuthn assertion, including its challenge, origin, rpIdHash, signature, and signCount. It also covers user-presence and verification flags, plus the distinction between discoverable and non-discoverable credential flows.

The review starts by locating code that parses authenticatorData, clientDataJSON, and the signature. Each check is classified as server-enforced, browser-only, or absent, and the code determines which audit branch to follow. The server needs to compare origin against an allowlist and reject a challenge after use. The skill also checks for signCount rollback and credentials accepted through the wrong flow.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill saml-and-webauthn-passkey-implementation-flaws -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/saml-and-webauthn-passkey-implementation-flaws/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/saml-and-webauthn-passkey-implementation-flaws/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill saml-and-webauthn-passkey-implementation-flaws -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/saml-and-webauthn-passkey-implementation-flaws/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill saml-and-webauthn-passkey-implementation-flaws -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/saml-and-webauthn-passkey-implementation-flaws/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install W4L33Dx/Cyber-Monster red-team/web-and-application/saml-and-webauthn-passkey-implementation-flaws
```

2. **Manually: put the files in place**
- File: `.github/skills/saml-and-webauthn-passkey-implementation-flaws/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill saml-and-webauthn-passkey-implementation-flaws -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/W4L33Dx/Cyber-Monster --path red-team/web-and-application/saml-and-webauthn-passkey-implementation-flaws
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/saml-and-webauthn-passkey-implementation-flaws/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/W4L33Dx/Cyber-Monster/tree/HEAD/red-team/web-and-application/saml-and-webauthn-passkey-implementation-flaws/SKILL.md

## When to use it
- spot missing server checks for origin or rpIdHash
- detect a challenge that can be replayed
- review signCount rollback handling
- find confusion between discoverable and non-discoverable credential flows

## Example prompts
- Audit this WebAuthn Passkey implementation for missing server-side checks.
- Review challenge and origin validation in the passwordless sign-in flow.
- Check signCount handling and credential-flow separation in this FIDO2 MFA code.

## Similar
- [authbypass-authentication-flaws](https://affpapa.org/en/nevibecode/skills/authbypass-authentication-flaws.md) — skill · 4200 installs
- [testing-oauth2-implementation-flaws](https://affpapa.org/en/nevibecode/skills/testing-oauth2-implementation-flaws.md) — skill · 386 installs
- [use-modular-wallets](https://affpapa.org/en/nevibecode/skills/use-modular-wallets.md) — skill · 1000 installs
- [saml-sso-assertion-attacks](https://affpapa.org/en/nevibecode/skills/saml-sso-assertion-attacks.md) — skill · 3900 installs
- [auth0](https://affpapa.org/en/nevibecode/skills/auth0.md) — skill · 6300 installs
- [clerk-expo](https://affpapa.org/en/nevibecode/skills/clerk-expo.md) — skill · 15100 installs

From the same set: [w4l33dx/cyber-monster](https://affpapa.org/en/nevibecode/by/w4l33dx/cyber-monster.md) — 61 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
