Every threat

Message and Token Integrity

Miscellaneous · Critical priority

An attacker rewrites an unprotected value in transit and the server trusts it.

How Passkey Accounts™ addresses this

Passkey Accounts™ keeps signing authority server-side and verifies every message there

No client claim decides authority

Example scenario

A role, amount, or action value changes in transit, a JWT claim is edited and sent back as truth, or a signing secret shipped into the browser is exported to mint events.

Without it

  1. Attacker: Rewrites a cookie to isAdmin=true
  2. Site: Receives the modified cookie
  3. Site: Runs no integrity check
  4. Site: Trusts the changed value
  5. Attacker: Acts as an administrator
  6. Attacker: Decodes the JWT payload
  7. Attacker: Flips 'isAdmin' to true
  8. Site: Skips the signature check
  9. Attacker: Acts as an administrator
  10. Attacker: Reads the signing secret from memory
  11. Site: Ships the secret into page code
  12. Attacker: Signs a fake 'logged-in' event
  13. Site: Accepts any signed event
  14. You: ❌ Whatever the client says is taken as true.

With Passkey Accounts™

  1. Attacker: Rewrites a cookie to isAdmin=true
  2. PA™: A tampered value fails verification
  3. PA™: Forged claims carry no authority
  4. Attacker: Decodes the JWT payload
  5. PA™: No client claim decides authority
  6. PA™: Authority lives server-side
  7. Attacker: Reads the signing secret from memory
  8. PA™: No server secret lives client-side
  9. PA™: A forged event convinces nobody
  10. You: ✅ The server decides, and checks before it reads.

Developed by Justin Sargent (opens in a new tab) and published through Soup or Cereal, LLC. Privacy policy · Terms.