Home▸Cybersecurity▸Timing Attack Lab: Cracking a Secret Through Response-Time Leaks

Timing Attack Lab

Interactive timing-attack simulator: watch a naive string comparison leak a secret byte-by-byte through response-time differences, and see how a constant-time comparison closes the side channel.

Cybersecurity3DModerate60 FPS📱 Mobile-adapted
Timing Attack Lab: Cracking a Secret Through Response-Time Leaks ↗ Open standalone

A byte-by-byte visualization of a real cryptographic side-channel: a naive string comparison stops the instant it finds a mismatch, so guesses that share more correct leading bytes with the secret take a fraction longer to reject. The 3D bar chart measures a simulated round trip for every possible byte value at the current position — in vulnerable mode one bar consistently stands out and the attack locks it in; switch to constant-time comparison and the signal disappears into noise. Toggle between the two modes to see exactly why secret == guess is unsafe for anything security-sensitive, and why libraries ship a dedicated constant-time compare instead.

⚙ Under the hood

Guess each byte of a secret by measuring response time differences. Try different values to find matches one position at a time.

Three.jsCybersecurityTiming AttackSide-ChannelCryptography

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)