~/talk

Cracking JWT tokens: a tale of magic, Node.JS

Talkat Web Rebels 2018 · 2018-06-04..06-05· [nodejs, security]
slides:none on file

Explains how a distributed Node.JS tool brute forces HS256 JWTs by chunking the keyspace, assigning ranges to clients, and verifying signatures with the jsonwebtoken library; demo cracks a real token (found secret "rebel") using a local cluster of workers. Implements coordination with 0nq + jsonwebtoken, shows mapping integers to string variations, and broadcasts success to stop workers. Concludes practical defenses: pick long random secrets, rotate or blacklist tokens, avoid sensitive payloads, and prefer RS256 over HS256 when feasible.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:47What is JWT and how it works
  3. 10:01JWT structure and signature
  4. 11:26Creating a JWT token from scratch
  5. 15:01JWT vs session tokens comparison
  6. 20:00JWT security pitfalls
  7. 21:03Live demo of JWT manipulation
  8. 23:58Introducing JWT brute-force tool
  9. 27:20Brute-force attack explained
  10. 30:30Distributed brute-force implementation
  11. 34:00Code walkthrough of cracker tool
  12. 36:55Running the brute-force attack
  13. 38:03Exploiting the cracked secret
  14. 39:08Is JWT safe to use?
  15. 42:00Best practices and summary
  16. 42:41Q&A on JWT security
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.