Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Security · Think Like an Attacker · about 17 min to read

Watch: Auth, end to end: passwords, tokens, OAuth, OIDC, SSO and SAML
▶ VideoPlay it as a journeyTutor comes with a plan

The key that never leaves: passkeys and WebAuthn

Authentication
Authentication · Open board

One login drawn end to end. This lesson replaces its first step, the password, with a key that is never sent anywhere.

Before you start. Authentication showed how a site stores a password as a salted hash, and why a stolen password still opens the door unless a second factor stands behind it. Cryptography Foundations gave you the signature: a secret value signs a message, and anyone holding the matching public value can check the signature without being able to make one. Web Vulnerabilities (the OWASP classics) showed how a page can trick a user’s browser. Nothing else is assumed.

Lesson 10 of 39 in Security

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • July 2018: a company where nobody could be phished
  • Public key and private key: a login that sends no secret
  • The challenge: a fresh question for every login
  • The origin: why a fake site gets nothing
  • The authenticator: where the private key lives
  • The passkey: the same key, copied for you
  • The two ceremonies
  • A whole login, simulated
  • Edge cases and trade-offs

Terms it explains: private key, public key, challenge, origin, authenticator, platform authenticator, roaming authenticator, passkey, synced passkey, Common mistakes, Registration, Authentication, authentication (authN), authorization (authZ), bcrypt/scrypt/argon2, factors, httpOnly / Secure / SameSite, JWT, MFA, pepper, rainbow table, refresh token, salt, session, token/JWT, TOTP, WebAuthn / passkeys, work factor.

Lab

You sign a stolen login out everywhere. How long does the thief's copy keep working?

Drag How long a badge lives from an hour to 15 minutes and watch the refreshes and the thief's window move.

Open The revocation window

A million password hashes have been stolen. How much does a slower hash actually buy you?

Drag The password from 8 letters or digits to the most common ones and watch every row collapse.

Open The slow hash

Related paper

Review Security