Logo Auditing Webauthn And Passkey Flows

Auditing Webauthn And Passkey Flows

Tổ chức
UnboundCompute
auditing-webauthn-and-passkey-flows

Kiểm tra phía máy chủ của phương thức xác thực không mật khẩu để tìm lỗi xác minh quy trình xác thực, khiến phản hồi do kẻ tấn công tạo ra có thể trở thành phiên đã xác thực. Bao gồm quy trình đăng ký hoặc xác thực không gắn với một giá trị dùng một lần do máy chủ cấp; origin hoặc mã định danh bên phụ thuộc không được kiểm tra hoặc chỉ được kiểm tra bằng phép so khớp chuỗi con; bỏ qua cờ xác minh người dùng dù chính sách yêu cầu; chấp nhận attestation dù chính sách yêu cầu phải có; bộ đếm chữ ký giảm nhưng không phát hiện, che giấu authenticator bị sao chép; và trường hợp nghiêm trọng nhất: assertion hợp lệ về mặt mật mã tạo phiên cho người dùng không phải người dùng được liên kết với thông tin xác thực đó. Dùng khi xem xét mã xác minh quy trình đăng ký hoặc xác thực và xác lập danh tính dựa trên kết quả. Phản hồi quy trình do kẻ tấn công tạo ra là nguồn; phiên đã xác thực là đích đến; lỗi là thiếu bước kiểm tra bắt buộc giữa hai bên.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-webauthn-and-passkey-flows
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Webauthn And Passkey Flows trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-webauthn-and-passkey-flows
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing Webauthn And Passkey Flows trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Auditing Webauthn And Passkey Flows ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Auditing Webauthn And Passkey Flows với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Câu hỏi thường gặp

Kỹ năng AI Auditing Webauthn And Passkey Flows làm được gì?

Kiểm tra phía máy chủ của phương thức xác thực không mật khẩu để tìm lỗi xác minh quy trình xác thực, khiến phản hồi do kẻ tấn công tạo ra có thể trở thành phiên đã xác thực. Bao gồm quy trình đăng ký hoặc xác thực không gắn với một giá trị dùng một lần do máy chủ cấp; origin hoặc mã định danh bên phụ thuộc không được kiểm tra hoặc chỉ được kiểm tra bằng phép so khớp chuỗi con; bỏ qua cờ xác minh người dùng dù chính sách yêu cầu; chấp nhận attestation dù chính sách yêu cầu phải có; bộ đếm chữ ký giảm nhưng không phát hiện, che giấu authenticator bị sao chép; và trường hợp nghiêm trọng nhất:...

Vì sao nên dùng Auditing Webauthn And Passkey Flows trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing Webauthn And Passkey Flows là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing Webauthn And Passkey Flows trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-webauthn-and-passkey-flows. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing Webauthn And Passkey Flows?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Auditing Webauthn And Passkey Flows với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing Webauthn And Passkey Flows với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing Webauthn And Passkey Flows có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇