Logo di Auditing Webauthn And Passkey Flows

Auditing Webauthn And Passkey Flows

Organizzazione
UnboundCompute
auditing-webauthn-and-passkey-flows

Verifica il lato server dell'autenticazione passwordless per individuare errori nella verifica della procedura che permettono a una risposta predisposta da un utente malintenzionato di creare una sessione autenticata. Include una procedura di registrazione o autenticazione la cui challenge non è associata a un valore monouso generato dal server; un'origine o un identificativo della relying party mai verificato o controllato solo tramite una corrispondenza parziale; un flag di verifica dell'utente ignorato quando la policy la richiede; un'attestazione accettata anche se obbligatoria; un contatore di firme che diminuisce, nascondendo così un autenticatore clonato; e il caso più grave, in cui un'asserzione crittograficamente valida apre una sessione per un utente diverso da quello a cui è associata la credenziale. Usala per verificare codice che convalida una procedura di registrazione o autenticazione e determina l'identità in base al risultato. La risposta predisposta alla procedura è la fonte; la sessione autenticata è la destinazione; il problema è un controllo obbligatorio mancante tra le due.

Panoramica

Pubblicato daUnboundCompute
Repositorysecurity-agent-skills
Nome della skillauditing-webauthn-and-passkey-flows
Stelle
27
Fork
8
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da UnboundCompute su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Auditing Webauthn And Passkey Flows in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-webauthn-and-passkey-flows
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Auditing Webauthn And Passkey Flows in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Auditing Webauthn And Passkey Flows non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Auditing Webauthn And Passkey Flows non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA Auditing Webauthn And Passkey Flows?

Verifica il lato server dell'autenticazione passwordless per individuare errori nella verifica della procedura che permettono a una risposta predisposta da un utente malintenzionato di creare una sessione autenticata. Include una procedura di registrazione o autenticazione la cui challenge non è associata a un valore monouso generato dal server; un'origine o un identificativo della relying party mai verificato o controllato solo tramite una corrispondenza parziale; un flag di verifica dell'utente ignorato quando la policy la richiede; un'attestazione accettata anche se obbligatoria; un cont...

Perché usare Auditing Webauthn And Passkey Flows su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Auditing Webauthn And Passkey Flows è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Auditing Webauthn And Passkey Flows in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-webauthn-and-passkey-flows. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Auditing Webauthn And Passkey Flows?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Auditing Webauthn And Passkey Flows?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Auditing Webauthn And Passkey Flows: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Auditing Webauthn And Passkey Flows è gratuita?

Sì. È pubblicata su GitHub da UnboundCompute con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇