Skip to content
Pro lab

TLS Handshake Walkthrough Lab

Most people can name the TLS messages but cannot say what order they go in, what each one proves, or where an attacker leans on them. Walk the TLS 1.2 and TLS 1.3 handshakes message-by-message: sequence each flight, match every message to its purpose, and pin each attack — downgrade, MITM, renegotiation, RSA without forward secrecy, 0-RTT replay — to the message it hits and the defense that stops it. See exactly why 1.3 is faster and safer.

0s

1 · Order the handshake (arrange each flight top-to-bottom)

TLS 1.2 handshake

Two round-trips: the server sends its certificate and key-exchange params, the client replies, then both sides confirm with Finished. RSA or (EC)DHE key exchange.

⋮⋮1ServerHello
⋮⋮2ClientHello
⋮⋮3ServerKeyExchange
⋮⋮4Certificate
⋮⋮5ClientKeyExchange
⋮⋮6ServerHelloDone
⋮⋮7ChangeCipherSpec + Finished (server)
⋮⋮8ChangeCipherSpec + Finished (client)

TLS 1.3 handshake (1-RTT)

One round-trip: the client guesses a key_share in the ClientHello, the server answers with its own in a single encrypted flight, and application data flows after the client Finished. Only (EC)DHE — no RSA key transport.

⋮⋮1ServerHello (+ key_share)
⋮⋮2ClientHello (+ key_share)
⋮⋮3Certificate
⋮⋮4EncryptedExtensions
⋮⋮5Finished (server)
⋮⋮6CertificateVerify
⋮⋮7Finished (client)

client sent · server sent

2 · What does each message do? (match to its purpose)

ClientHello→
ServerKeyExchange / key_share→
Certificate→
CertificateVerify→
Finished→
NewSessionTicket→

3 · Where does the attack hit? (pick the vulnerable point and the defense)

Protocol downgrade

A man-in-the-middle tampers with the ClientHello, stripping out the modern versions and strong ciphers so the connection falls back to SSLv3/export-grade crypto the attacker can break (POODLE/FREAK-style).

MITM without cert validation

A client does not validate the server certificate (or accepts any CA). An on-path attacker presents its own self-signed certificate and transparently proxies the whole session.

RSA key exchange, no forward secrecy

The server negotiates classic RSA key transport. An attacker records the encrypted traffic today, then compromises the server private key months later and decrypts every captured past session.

Renegotiation injection

An attacker opens a TLS session, sends a chosen plaintext prefix, then splices the victim’s new handshake in via renegotiation so the server treats attacker and victim data as one authenticated stream (CVE-2009-3555).

Stale session-ticket key

A load balancer encrypts resumption tickets with a static key that is never rotated. An attacker who later recovers that key can decrypt the resumption secrets and all sessions resumed with those tickets.

4 · TLS 1.2 vs 1.3

Select only the statements that are true of TLS 1.3.

Live score

Work the four challenges, then grade. So far 8% overall.

Order
7%
Match
0%
Attacks
0%
1.2 vs 1.3
25%

How it is graded

Four equally-weighted challenges: ordering both handshakes, matching each message to its purpose, pinning every attack to its point and defense, and identifying what TLS 1.3 changed. Clear 80% overall to pass; finish under par for a speed bonus and a better grade.

Live arena

4 active
adversary kill-chain1/4
appsec-lee15%
tls-eng-sam14%
crypto-mara11%
tls-eng-you (you)8%

adversary staging…

Loading…

Sample report · illustrative data

Sample result: TLS handshake lab scorecard

Example run of the four equally weighted challenges: ordering the TLS 1.2 and TLS 1.3 handshakes, matching messages to their purpose, locating attacks and defenses, and identifying what TLS 1.3 changed.

Scorecard

Overall
85% (the four challenge scores averaged)
Pass bar
80%
Outcome
Passed, with a speed bonus available for finishing under par

Where points were lost

ChallengeExample scoreExample slip
1. Order the handshakes87% (13 of 15 messages in the right place)TLS 1.2: ServerKeyExchange placed before Certificate
2. Match each message to its purpose80%Finished treated as key exchange instead of handshake integrity
3. Where the attack hits75%Right attack point chosen, wrong defense for one scenario (half credit)
4. What TLS 1.3 changed100%None

What the lab teaches

TLS 1.2 takes two round trips, with the server certificate and key-exchange parameters sent in the clear. TLS 1.3 sends a key share in the first message, so the shared secret exists after ServerHello and the rest of the handshake, including the certificate, is encrypted.

Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

TL;DR

What this lab is

5 points
  • A browser-based lab that teaches the TLS handshake message-by-message — ClientHello, ServerHello, Certificate, ServerKeyExchange, CertificateVerify, Finished — for both TLS 1.2 and TLS 1.3.
  • Four graded challenges: order the handshake for each version, match every message to its purpose, pin each attack to the message it hits and the defense that stops it, and identify what TLS 1.3 removed and improved.
  • See why 1.3 is 1-RTT: the client sends a key_share in the ClientHello and the server answers the certificate, CertificateVerify and Finished in one encrypted flight.
  • Attack scenarios cover downgrade (TLS_FALLBACK_SCSV), MITM without cert validation, renegotiation injection, RSA key exchange vs (EC)DHE forward secrecy, and 0-RTT replay.
  • Difficulty tiers add the subtler scenarios — session-ticket reuse, 0-RTT replay and the resumption/forward-secrecy nuances — and tighten the clock.

Frequently asked questions

What is the TLS Handshake Walkthrough Lab?

An in-browser exercise that walks through the TLS handshake one message at a time for both TLS 1.2 and TLS 1.3. You order the messages into the correct sequence for each version, match each message to the job it does (negotiation, key exchange, authentication, integrity, resumption), identify where each classic attack lands and the defense that stops it, and pick out what TLS 1.3 changed. It grades your answers and explains every miss.

How is TLS 1.3 different from TLS 1.2?

TLS 1.3 cuts the full handshake to one round-trip (1-RTT), and to zero round-trips on resumption (0-RTT). It removed RSA key transport and static Diffie-Hellman, so every connection uses ephemeral (EC)DHE and has forward secrecy. It removed renegotiation, dropped weak ciphers and MD5/SHA-1, and encrypts the handshake much earlier — the certificate and extensions are sent encrypted after ServerHello. The trade-off is that 0-RTT early data can be replayed, so it is unsafe for non-idempotent requests.

Which attacks does it cover?

Protocol/cipher downgrade (defended with TLS_FALLBACK_SCSV and dropping old versions), man-in-the-middle when certificate validation is skipped (strict chain/name validation, CT, pinning), RSA key exchange having no forward secrecy versus ephemeral (EC)DHE, renegotiation injection (RFC 5746 secure renegotiation, or TLS 1.3 which removed renegotiation), stale session-ticket keys, and TLS 1.3 0-RTT replay.

Is this a real TLS stack?

No. It is a teaching model of the handshake message flow and where attacks hit. It deliberately simplifies the exact byte-level exchange so the lesson — what each message proves and where an attacker can lean on it — is clear. Everything runs in your browser; no install, nothing sent to a server.

The tools people use most on PlayCISO.

All tools