Logo: Auditing Webauthn And Passkey Flows

Auditing Webauthn And Passkey Flows

Organisatioun
UnboundCompute
auditing-webauthn-and-passkey-flows

Iwwerpréift d'Server-Säit vun der passwuertloser Authentifikatioun op Feeler bei der Verifikatioun vum Authentifikatiounsprozess, duerch déi eng vum Ugräifer manipuléiert Äntwert eng authentifizéiert Sessioun ausléise kann. Ëmfaasst en Umeldungs- oder Authentifikatiounsprozess, deem säin Challenge net un en eenzegaartege Wäert gebonne gëtt, dee vum Server ausgestallt gouf; en Origin oder Relying-Party-Identifier, deen ni kontrolléiert gëtt oder nëmmen op eng Ënnerzeechekette gepréift gëtt; e User-Verification-Flag, deen ignoréiert gëtt, obwuel d’Policy et verlaangt; Attestation, déi akzeptéiert gëtt, obwuel se obligatoresch ass; e Réckgang vum Signature-Counter, deen en duplizéierten Authentifikator verstoppt; an de schlëmmste Fall, wou eng kryptografesch valabel Assertion eng Sessioun fir e Benotzer opmécht, mat deem de Credential net verbonnen ass. Benotzt dëse Skill, wann Dir Code iwwerpréift, deen en Umeldungs- oder Authentifikatiounsprozess verifizéiert an opgrond vum Resultat eng Identitéit feststellt. Déi vum Ugräifer manipuléiert Äntwert aus dem Authentifikatiounsprozess ass d’Quell; déi authentifizéiert Sessioun ass d’Zil; an eng feelend obligatoresch Kontroll tëschent deenen zwee ass de Feeler.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-webauthn-and-passkey-flows
Stären
27
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnboundCompute huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing Webauthn And Passkey Flows an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-webauthn-and-passkey-flows
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-webauthn-and-passkey-flows .claude/skills/auditing-webauthn-and-passkey-flows
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing Webauthn And Passkey Flows an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing Webauthn And Passkey Flows automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing Webauthn And Passkey Flows net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Auditing passkey and WebAuthn ceremonies: when a verified signature seats the wrong user

A passkey ceremony proves that some authenticator signed a challenge. It does not, by itself, prove who is signing in. Every WebAuthn bug worth finding lives in the gap between "this signature is valid" and "therefore user U is logged in," and that gap is closed only by a specific list of server-side checks. When one of those checks is missing, homegrown, or bypassable, attacker-shaped bytes from the ceremony response flow straight into an authenticated session. You find these by reading the verification path and asking, for each required check, whether it runs and whether the value it checks is the one the attacker cannot forge.

When to use

  • Code verifies a WebAuthn registration or authentication response and then creates a credential or a session.
  • The application implements the ceremony itself, or calls a library but supplies the policy and expected values.
  • You want to know whether a valid signature can be replayed, phished, or bound to the wrong account.

Scope check

Test passkey flows only on systems you own or are authorized to assess, with test accounts and test authenticators. A ceremony bypass is an authentication bypass, so treat any confirmed finding as account-takeover-grade and coordinate disclosure. If you can't name the authorization, stop.

The loop

  1. Map the verification path and whether a library owns the ceremony. Find the registration and authentication endpoints and the function that decides success. Determine whether the ceremony is delegated to a conformant verification library or hand-rolled. If a library owns it, the bug moves from "missing check" to "wrong arguments": read what expected-challenge, expected-origin, expected relying-party identifier, and required-user-verification values are passed in. A library called with defaults verifies only what you gave it.

  2. Check challenge binding. The challenge in the response must equal a value the server generated, stored against this session, has not used before, and has not let expire. The bug is a challenge compared against a client-sent field, against a constant, or not at all, or a challenge that is never invalidated after use so the same response replays. If nothing reads a server-side challenge store before the compare, the ceremony is replayable.

  3. Check origin and relying-party identifier. The response carries the origin the ceremony ran on and a hash of the relying-party identifier; both must match an exact allowlist. A substring, suffix, or pattern match is the classic bug: a suffix test for one domain also accepts a lookalike that ends with it. Missing origin checks turn a phishing relay into a working login.

  4. Check the user-verification flag and attestation when required. If policy asked for user verification, the code must read the user-verified bit, not just user-presence; ignoring it silently downgrades two factors to one. If policy required attestation, the attestation statement and its trust path must actually be verified; "required in config, accepted unchecked in code" is the bug. A ceremony that legitimately requires neither is a design choice, not a finding.

  5. Check credential-to-user binding and the signature counter. This is the highest-severity step. The credential must be looked up by its identifier and confirmed to belong to the user being seated, or the seated user must be derived from the credential's bound handle, never from a separate client-controlled field. A valid signature over credential A that logs you in as user B is a total authentication bypass. Then, if the stored counter is non-zero, a new count that is not strictly greater signals a cloned authenticator and must be rejected; a zero counter is spec-permitted and is not a regression.

  6. Confirm and record. Confirm by exercising the live verification path with a test authenticator and a modified response that removes or alters the value under test, showing the ceremony still succeeds. Kill the lead if a conformant library performs the ceremony and is called with a server-stored single-use challenge, an exact expected origin and relying-party identifier, the required user-verification policy, and the session is seated strictly from the credential-bound user. Record the endpoint, the missing or bypassable check, and the seated identity.

Where passkey trust leaks

  • The credential proves possession, not identity. The server, not the signature, decides which account the possession maps to. Bind the session to the credential's user or nowhere.
  • The challenge is the only thing that makes a replay fail. If it is not server-issued, single-use, and bound to the session, a captured response works twice.
  • Origin is the phishing boundary. An exact-match origin check is what stops a relayed ceremony; a suffix or contains check quietly reopens it.
  • The user-verification flag is the second factor. Passwordless is only multi-factor if the code actually reads that bit; unread, it is single-factor with extra steps.
  • A library hides the bug in its arguments. A conformant verifier called without the expected challenge, origin, or relying-party identifier checks nothing you did not hand it.

Worked example (a confirm and a kill)

Confirm. The authentication endpoint verifies the assertion signature against the stored public key and returns success, then seats the session from a userId field in the same request body. A test authenticator's own valid assertion, submitted with a victim's userId, logs in as the victim. The credential was never checked to belong to the seated user. Confirmed credential-to-user binding confusion, critical, remediation = derive the session identity from the user bound to the matched credential handle and never from a client-supplied field.

Kill. The same endpoint passes the response to a conformant verification library with the server-stored single-use challenge, an exact expected origin, the expected relying-party identifier, and a user-verification-required policy, then seats the session only from the credential record's owner on success. Altering the origin or reusing a challenge makes the library reject the ceremony. Killed, kill_reason = "ceremony delegated to a conformant verifier with server-stored single-use challenge, exact origin and relying-party checks, required user verification, and identity seated from the bound credential; tampered responses are rejected."

Rationalizations to reject

  • "The signature verified, so the user is authenticated." -> Verified against which credential, and is that credential bound to the user you are about to seat? A valid signature for the wrong account is a bypass.
  • "We check the origin." -> Exact match or substring? A suffix test for your domain also accepts a lookalike that ends with it. Only an exact allowlist is a check.
  • "It is passwordless, so it is strong." -> Only if the code reads the user-verified bit. Unread, a passkey is a single factor no matter how it was provisioned.
  • "A counter of zero means our check is broken." -> Zero is permitted by the spec; the regression is a decrease from a non-zero stored value, not the presence of a zero.
  • "The library handles all of this." -> Only for the values you pass it. A verifier called with defaults and no expected origin or challenge verifies a signature and nothing else.

Executing this in practice

You need the bodies of the registration and authentication verification functions, the policy object that declares user-verification and attestation requirements, the code that stores and looks up challenges, the credential-store lookup, and the exact line where the session user is set. For each required check, decide whether it runs on the live path and whether the value it tests is attacker-forgeable. Reading the verification function and its callees tells you which checks exist; replaying a tampered response against a test account tells you which ones actually hold.

Related

  • auditing-saml-and-oidc-flows - the federation sibling; both hunt an authentication ceremony that establishes identity from attacker-reachable input, and both fail when a binding check is skipped.
  • auditing-device-code-and-pkce-flows - another authentication-flow audit where the bug is a proof that binds a request to its initiator being unenforced.
  • auditing-randomness-and-nonce-quality - a predictable challenge is a passkey bug rooted in weak randomness; that skill covers the entropy of the values this one assumes are unguessable.
  • FINDING-SCHEMA.md - source = the attacker-shaped ceremony response, sink = the authenticated session, evidence = the tampered response that still succeeds and the seated identity.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing Webauthn And Passkey Flows?

Iwwerpréift d'Server-Säit vun der passwuertloser Authentifikatioun op Feeler bei der Verifikatioun vum Authentifikatiounsprozess, duerch déi eng vum Ugräifer manipuléiert Äntwert eng authentifizéiert Sessioun ausléise kann. Ëmfaasst en Umeldungs- oder Authentifikatiounsprozess, deem säin Challenge net un en eenzegaartege Wäert gebonne gëtt, dee vum Server ausgestallt gouf; en Origin oder Relying-Party-Identifier, deen ni kontrolléiert gëtt oder nëmmen op eng Ënnerzeechekette gepréift gëtt; e User-Verification-Flag, deen ignoréiert gëtt, obwuel d’Policy et verlaangt; Attestation, déi akzepté...

Firwat Auditing Webauthn And Passkey Flows op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing Webauthn And Passkey Flows besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing Webauthn And Passkey Flows an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-webauthn-and-passkey-flows an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing Webauthn And Passkey Flows benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing Webauthn And Passkey Flows benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing Webauthn And Passkey Flows domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing Webauthn And Passkey Flows gratis?

Jo. UnboundCompute huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇