← all systems · see it in The System
Transport Layer Security
| boundary | Inside: the handshake protocol (hello messages, key exchange, certificate and CertificateVerify, Finished), the record protocol and its alert and (legacy) change-cipher-spec sub-protocols, the versions, cipher suites, groups and extensions with their registries, the session state on each endpoint (keys, tickets), and the libraries that implement it with their configuration and the patches they receive. Outside: the transport beneath (TCP, UDP for DTLS, QUIC which carries TLS's handshake), the applications above (HTTPS, mail, VPNs, DNS over TLS), the certificate system it relies on (certificate authorities, root programs, CT logs, revocation), and the actors coupled to it by exchanges, contests and loops: the people who use it, the IETF working group that writes it, the researchers and attackers who break it, and those who intercept and measure it. RFC 8446: 'TLS consists of two primary components': a handshake protocol and a record protocol. |
| nested level | Built from a handshake and a record protocol run by libraries on two endpoints over a reliable transport; sits between the transport and the application in the TCP/IP suite (it 'do[es] not fit neatly into any single layer'); leans on public-key cryptography, symmetric ciphers and the public key infrastructure; carries HTTPS and most other secured Internet application traffic, and is the security component of QUIC. |
| scale | technological |
From the walk
When a TLS 1.3 server is made to fall back to an older version, it hides a tripwire in the 'random' bytes it sends: they end in 44 4F 57 4E 47 52 44, DOWNGRD in ASCII, followed by 01 or 00, so the client can detect the downgrade. It only works when the server signs those bytes, not with old static-RSA key exchange (src:rfc8446-tls13).
Definition. The cryptographic protocol that gives two communicating programs an authenticated, private and integrity-protected channel over an untrusted network, needing only a reliable in-order byte stream beneath it (and, as DTLS, datagrams). A handshake negotiates a version and algorithms, authenticates the server (and optionally the client) with certificates and signatures or a pre-shared key, and agrees shared keys; a record protocol then cuts traffic into records each protected under those keys. It grew from Netscape's SSL (2.0 in 1995, 3.0 in 1996) through TLS 1.0 (1999), 1.1 (2006) and 1.2 (2008) to TLS 1.3 (RFC 8446, 2018). Walked as security engineering describes it: the protocol, its implementations and the people who specify, configure, attack and measure it. Definition drawn from the encyclopedia entry (Wikipedia, CC BY-SA).
On this page: Properties 3 · Measures 35 · Open contentions 6 · Cross-scale patterns 21 · Valence partners 24 · Partners and parts 71 · Notes 3 · Layers 63 · Sources 34
Properties published scienceour proposal
Sourced fields, and our own readings.
| aliases | Protocols: TLS (and SSH, PGP, S/MIME) |
| born at | February 1995 (SSL 2.0) |
| born precision | month |
Measures (35) published science
| characteristic clock: round trips before application data (TLS 1.3 full handshake) | 1 round trip (2 in earlier versions) |
| characteristic clock: maximum session ticket lifetime | 604800 s (7 days) |
| characteristic clock: share of clients with a TLS handshake over 300 ms (2014) | 4 % of clients |
| record plaintext size limit | 16384 bytes (2^14) |
| records per AES-GCM key set before an update | 2^24.5 (about 24 million) full-size records |
| share of Firefox top-level page loads over https (January 2025) | 92.1 % |
| share of web connections over HTTPS (September 2014, European ISP) | 44.3 % |
| https share of top-level loads by country (range) | 51.2-98.0 % (Sudan to Denmark, January 2025) |
| connections using TLS 1.2 (2018; TLS 1.0 in 2012) | 90 % (90% TLS 1.0 in 2012) |
| forward-secret share of connections (2018) | >90 % |
| RC4 share of connections (August 2013) | 60 % (almost zero by March 2018) |
| connections advertising export cipher suites (2012) | 28.19 % (1.03% in 2018) |
| share of popular HTTPS sites initially vulnerable to Heartbleed | 24-55 % of Alexa Top 1 Million HTTPS sites |
| Heartbleed: sites replacing certificates within a month | 10 % of sites still vulnerable at 48 h (14% of those reused the key) |
| Heartbleed: first exploit attempts after disclosure | <24 hours (almost 700 sources) |
| Logjam: precomputation per 512-bit group | 7 days (then a median of 70 s per connection) |
| top-million HTTPS sites allowing export Diffie-Hellman (March 2015) | 8.4 % |
| HTTPS servers still supporting RSA export (2015) | >25 % |
| share of HTTPS connections intercepted (2015-2016, three vantage points) | 4.0 / 6.2 / 10.9 % (Firefox updates / e-commerce / US Cloudflare) |
| share of intercepted connections made less secure | 97 / 32 / 54 % (Firefox / e-commerce / Cloudflare) |
| TLS handshakes observed in the interception study | 7.75 billion handshakes |
| trust anchors shipped in one browser (Firefox 15) | ~150 anchors from ~50 organisations |
| share of clients sending SNI (Akamai customers) | >99 % |
| distinct ClientHello fingerprints in 11 billion handshakes | >230,000 fingerprints |
| extra page load time from HTTPS on 3G (2014) | >500 ms for about 90% of websites |
| handshake share of bytes per connection (median connection, 2014) | >42 % of bytes |
| warning adherence before and after Chrome's redesign | 37 -> 62 % |
| TLS 1.3 drafts before RFC 8446 | 29 drafts (2014-2018) |
| malware samples using TLS (2016 dataset) | ~10 % |
| patching increase among notified Heartbleed operators | 47 % |
| users targeted with DigiNotar's rogue Google certificate (2011) | ~300,000 users, almost all in Iran |
| Chrome CT enforcement for all new certificates (from) | 2018-04-30 issue date (enforced from late July 2018) |
| top-100 domains vulnerable to Bleichenbacher's attack (ROBOT, 2017-2018) | almost a third of the Alexa top 100 |
| share of observed hybrid post-quantum negotiations at Cloudflare and Fastly (2025-2026) | nearly 70 % |
| characteristic clock: years from Bleichenbacher's attack to RSA key exchange leaving TLS (1998 to 2018) | 20 years |
Open contentions (6) open contention
Where sources or readings disagree. Both stay on the map.
- C-4675 When was TLS, the encryption that secures web connections, born: in 1993, 1994, the first release of its forerunner SSL in 1995, or under the name TLS in 1999?
booked: The map keeps both readings side by side and rules on neither.
the other reading: 1994: 'It was first proposed under the name SSL [45] in 1994' (src:bhargavan-2017-verified); 1993: Lam's SNP, 'the first secure sockets layer' by the Internet Hall of Fame citation (src:wp:transport-layer-security); January 1999: the name TLS (TLS 1.0, RFC 2246) - C-4676 Did the 2013 Snowden leaks cause websites to switch to stronger encryption that protects past traffic even if keys are later stolen, or did the switch only happen at the same time?
booked: The map keeps both readings side by side and rules on neither.
the other reading: 'there was a tremendous shift immediately after these revelations' (src:kotzias-2018-coming-of-age); 'This correlation in time does not necessarily mean causality.' (src:kotzias-2018-coming-of-age); Google had made forward secrecy its default in late 2011 (src:wp:transport-layer-security) - C-4677 Does decrypting and inspecting secure web traffic in companies and antivirus tools weaken security for the connections it touches, or is it needed to catch malware and data leaks?
booked: The map keeps both readings side by side and rules on neither.
the other reading: 'interception products as a class have a dramatically negative impact on connection security'; 97% of intercepted Firefox connections less secure; 'Antivirus vendors should reconsider intercepting HTTPS' (src:durumeric-2017-interception); inspection is 'widely practiced' for 'phishing and malicious traffic detection' and 'legal requirements' (src:waked-2020-appliances); 'making networks unmanageable to mitigate pervasive monitoring is not an acceptable outcome: an appropriate balance is needed' (src:rfc8404); safer-interception designs (explicit proxies, mcTLS, BlindBox) exist but 'have been met with great hostility within standards groups'; 'There is little consensus' (src:durumeric-2017-interception) - C-4678 In the standard seven-layer model of how networks work, where does TLS (the encryption for web connections) belong: the presentation layer, just above the data-carrying layer, or nowhere neatly?
booked: The map keeps both readings side by side and rules on neither.
the other reading: presentation layer: 'It runs in the presentation layer' (src:wp:transport-layer-security abstract); above the transport: it runs 'on top of some reliable transport protocol (e.g., TCP)' (src:wp:transport-layer-security); 'TLS and SSL do not fit neatly into any single layer of the OSI model or the TCP/IP model' (src:wp:transport-layer-security) - C-4679 Do the larger encryption messages designed to resist future quantum computers break connections through old network equipment, or are such failures rare?
booked: The map keeps both readings side by side and rules on neither.
the other reading: 'MTU-related or fragmentation-induced failures are not a significant barrier to PQ key exchange deployment in current Internet practice' (src:wickramasinghe-2026-pqtls); the specialist's report, unsourced here: larger ML-KEM key shares pushed ClientHellos over one packet and tripped intolerant middleboxes, as browser vendors reported in 2023-2024 (no open source read) - C-4680 Should the newest version of web encryption (TLS 1.3) allow a company to read its own network traffic for monitoring, or should it always protect past traffic, as the standard chose?
booked: The map keeps both readings side by side and rules on neither.
the other reading: a static Diffie-Hellman key copied into monitoring devices so data-centre traffic stays passively decryptable; 'Such monitoring of the enterprise network is ubiquitous and indispensable in some industries' and its loss 'may slow adoption of TLS 1.3' (src:green-2017-static-dh); ETSI's Enterprise Transport Security deliberately removes forward secrecy for monitoring; the EFF 'warned that the loss of forward secrecy could make it easier for data to be exposed' (src:wp:transport-layer-security); operators already decrypt with 'replicated TLS server RSA private keys', which 'the move to increased use of the forward-secret key exchange mechanism impacts' (src:rfc8404)
Cross-scale patterns seen here (21) our proposal
Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Transport Layer Security. Each links to every other system that shows it.
- red-queen (structural)
Move and counter-move for thirty years, read at the level of the whole contest: 'an attack-patch-attack cycle' (Bhargavan 2017). BEAST (2011) broke TLS 1.0's CBC; servers answered with RC4; RC4's biases (2013) broke that; RC4 was prohibited (2015) and AEAD replaced both. Export suites kept for compa - same shape, opposite sign (structural)
One process, terminating a TLS connection and opening a new one, serves opposite sides: a termination proxy offloads TLS for a server or tunnels plaintext 'over untrusted networks' (protecting), the same bridging lets an organisation or an attacker read the plaintext (the man in the middle). The mec - templating (structural)
One module reused unchanged across systems: 'TLS is application protocol independent; higher-level protocols can layer on top of TLS transparently'. HTTP, SMTP, IMAP, SIP, VPNs and DNS run over the same record and handshake; QUIC takes TLS 1.3's handshake as 'a security component'; independent libra - The carry (structural)
All three faces. Overflow passed on: data larger than 2^14 bytes is carried in the next record. The wait: before TLS 1.3 the application waits two round trips for keys; a failed handshake waits for a fallback retry. The lookahead: the TLS 1.3 client guesses the server's group and sends key shares at - trade one property for another (structural)
Bought and paid for in the specification's own words: 0-RTT saves a round trip 'at the cost of certain security properties' (no forward secrecy, no replay protection between connections); padding buys protection from traffic analysis with 'inferior performance'; ETS buys in-network visibility by giv - Umwelt: each system carves its own slice of one shared medium (structural)
One flow of packets, several slices: the two endpoints read content; a passive observer reads addresses, sizes, timing, the clear ClientHello and the SNI ('TLS obscures the plaintext' but 'introduces a complex set of observable parameters'); a censor reads fingerprints; an interception proxy reads e - who opens the door (structural)
Ports opened ahead of time: the server listens on 443 before any client arrives; the trust anchors that decide who may be believed were installed by vendors (or by an employer) before the connection; the ECH key was published in the DNS in advance. A STARTTLS upgrade is a door the client asks to ope - barrier-gates-complexity (partial)
The encrypted channel is read as what let the web carry payments: SSL's design goals came from protecting credit card details, and Clark and van Oorschot call easy secure communication 'arguably, a necessary condition' for the web's growth. The without-the-barrier case is argued, not shown. - conservation law plus closure (partial)
The TLS specification leaves a slot open that another rule must close before it secures anything: 'how to initiate TLS handshaking and how to interpret the authentication certificates exchanged are left to the judgment of the designers and implementors of protocols that run on top of TLS'. Where app - holding / entrainment (partial)
The connection sets when its traffic keys die: after a counted number of records (2^24.5 for AES-GCM) a KeyUpdate retires the generation; tickets expire within 7 days. The whole controls the count and lifetime of its parts. - lightning (partial)
Heartbleed: a flaw stored in OpenSSL for two years released at disclosure on 7 April 2014 and everything after it changed: exploit attempts from about 700 sources within 24 hours, mass patching, GoDaddy revoking 243,823 certificates over three months and 'about as many revocations in the three month - nested ladder (partial)
Session keys carry nested properties: unauthenticated, unilaterally authenticated, mutually authenticated; forward secret or not (Dowling 2021's multi-stage model). Each authentication rung includes the one below; forward secrecy and replay protection form side rungs (0-RTT keys sit lower on both). - same role, different builds (partial)
The job 'an encrypted, authenticated tunnel between two endpoints across an untrusted network' is done by TLS above the transport and by IPsec at the IP layer; the WP article compares them for VPNs. Authentication is done by certificates and signatures or by a pre-shared key. - same toolkit, independent builds (partial)
One specification, many separately written libraries (OpenSSL and its forks, NSS, Schannel, Secure Transport, GnuTLS, wolfSSL, Rustls) whose handshakes differ enough to fingerprint (230,000 distinct ClientHellos); state-machine bugs differed library by library. Partly shared ancestry (SSLeay to Open - symmetry breaking (name the cut) (partial)
Two peers running one protocol split into roles at a named cut: the one that sends the first message is the client. 'The server side of the channel is always authenticated; the client side is optionally authenticated.' Who initiates decides who must prove its identity. - The Payment to Entropy (partial)
Signal form. Every connection pays a toll in bytes and time before the payload moves: for half of connections the handshake was over 42% of all bytes, HTTPS added over 500 ms for about 90% of sites on 3G, and battery use rose for large objects (Naylor 2014). Strong traffic-analysis defences would ad - the whole sets the local reference (partial)
Each client measures a certificate against trust anchors set for it by its vendor (about 150 anchors from 50 organisations in one browser, about 1,500 CA certificates trusted in all): the reference is fixed outside the connection, and local readings differ where an employer or security product adds - borrowed-then-held (surface)
Reverse case, booked as the pattern's dark twin says: session state was first held by the server (session IDs) and later handed out to the client to store (tickets: resume 'without requiring that session-specific state is stored at the TLS server'). - namespace completeness (the map predicts its gaps) (surface)
IANA registries list every cipher suite, group and extension value, and GREASE reserves 16 values that must never be assigned: the table keeps known empty slots on purpose. No member is predicted from the table's structure. - partner-becomes-part (surface)
TLS's handshake runs as a component inside QUIC's packets ('TLS acts as a security component of QUIC'): two protocols that ran stacked become one transport. No inheritance in the biological sense; read as a surface match. - seed (surface)
The secure channel is read as enabling much else (commerce, private messaging, encrypted DNS), but no source shows new combinatorics unpacking from TLS itself; a trigger, the Seed's dark twin.
Valence: what it trades, and with whom (24) published science
Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.
- Digital signatures and certificates via Electromagnetic field · Transport Layer Security gain
- Human (Homo sapiens) via The world through the senses (sensory environment) · Transport Layer Security gain
- Government via Human society (from local community up to societies) · Transport Layer Security loss
- Transmission Control Protocol (role: quanta, end-to-end reliability at the hosts) via Transmission Control Protocol (role: quanta, end-to-end reliability at the hosts) · Transport Layer Security gain
- Internet Engineering Task Force (shell keeper: the codifier) via Written record (durable external marks: texts, archives, canon) · Transport Layer Security gain
- Middleboxes (firewalls, NATs, caches on the path) via Internet · Transport Layer Security loss
- Internet protocol suite (TCP/IP): the layered datagram protocols every host and router runs, the RFC record that specifies them, and the community that keeps them via Electromagnetic field · Transport Layer Security gain
- User Datagram Protocol (UDP) via Electromagnetic field · Transport Layer Security gain
- QUIC via User Datagram Protocol (UDP) · Transport Layer Security gain
- World Wide Web via Internet · Transport Layer Security gain
- Domain Name System via Domain Name System · Transport Layer Security gain
- Electronic mail via Internet · Transport Layer Security gain
- Cryptography via Written record (durable external marks: texts, archives, canon) · Transport Layer Security gain
- Signals intelligence via Electromagnetic field · Transport Layer Security mixed
- Public-key cryptography via Electromagnetic field · Transport Layer Security gain
- Malware via Operating system · Transport Layer Security even
- Authentication via Human society (from local community up to societies) · Transport Layer Security gain
- Public key infrastructure via Internet · Transport Layer Security gain
- Software vulnerability via Software · Transport Layer Security loss
- Packet capture (network taps, port mirroring, promiscuous and host capture) via Internet · Transport Layer Security loss
- Traffic analysis via Internet · Transport Layer Security loss
- Censorship via Internet · Transport Layer Security loss
- Antivirus software via Internet · Transport Layer Security loss
- Syslog (syslog-based centralised logging) via Electromagnetic field · Transport Layer Security even
Partners and parts published science
Built from / builds (12)
- Public-key cryptography
- Handshake protocol
- Record protocol (with the alert protocol)
- Cipher suites, groups and signature algorithms (the negotiable algorithms)
- Extensions (SNI, ALPN, key_share, pre_shared_key, ECH and others)
- Implementations (OpenSSL, BoringSSL, NSS, Schannel, Secure Transport, GnuTLS, wolfSSL, Rustls and others)
- Session state and tickets (resumption)
- States and the open community over the strength of deployed cryptography
- Certificate authorities competing for the TLS certificate market
- Attackers and researchers against TLS's designers and implementers over the channel's secrecy
- Endpoint encryption against in-network inspection
- Censors against circumvention tools over what the handshake reveals
Sits inside / holds (2)
- Internet
- Internet protocol suite (TCP/IP): the layered datagram protocols every host and router runs, the RFC record that specifies them, and the community that keeps them
expressed by (23)
- Generation/Synthesis
- Recombination/Composition
- Scaffolding/Enablement (Meta-Tooling)
- Templating / Standardization
- Quality Improvement/Refinement
- Interoperability/Transduction (Bridging)
- Encapsulation & Modularity (Abstraction)
- Evolvability/Plasticity Engineering (Design for Future Variation)
- Internal Coordination/Regulation
- Hypothesis/Goal Selection
- Active Experimentation / Probing (Optimal Experimental Design)
- Trail-Marking / Externalized Memory (Stigmergy)
- Evade Detection
- Reactive Response
- Proactive Defense
- Physical/Virtual Barrier
- Technique-Based Identification (a.k.a. Technique-Based Detection)
- Validation of Identity/Intention
- Validation of Effectiveness
- Enclave/Segregation
- Deception
- Quality Control & Error Correction
- Scheduled Build-and-Dismantle (On-Demand Structure)
floor filled by (24)
- Domain Name System
- Public-key cryptography
- Human (Homo sapiens)
- Transmission Control Protocol (role: quanta, end-to-end reliability at the hosts)
- Internet Engineering Task Force (shell keeper: the codifier)
- Internet protocol suite (TCP/IP): the layered datagram protocols every host and router runs, the RFC record that specifies them, and the community that keeps them
- User Datagram Protocol (UDP)
- QUIC
- World Wide Web
- Electronic mail
- Cryptography
- Cryptographic hash function
- Digital signatures and certificates
- Open-source software
- Authentication
- Public key infrastructure
- Diffie-Hellman key exchange (key agreement)
- Virtual private network (VPN)
- Certificate authorities (trust anchors)
- Handshake protocol
- Record protocol (with the alert protocol)
- Implementations (OpenSSL, BoringSSL, NSS, Schannel, Secure Transport, GnuTLS, wolfSSL, Rustls and others)
- Session state and tickets (resumption)
- Syslog (syslog-based centralised logging)
Kinds (8)
- Datagram Transport Layer Security
- SSL 2.0 (1995; prohibited 2011)
- SSL 3.0 (1996; prohibited 2015)
- TLS 1.0 (1999; Historic 2021)
- TLS 1.1 (2006; Historic 2021)
- TLS 1.2 (2008)
- TLS 1.3 (2018)
- Enterprise Transport Security (ETSI TS 103 523-3)
wired (2)
Notes published science
- When a TLS 1.3 server is made to fall back to an older version, it hides a tripwire in the 'random' bytes it sends: they end in 44 4F 57 4E 47 52 44, DOWNGRD in ASCII, followed by 01 or 00, so the client can detect the downgrade. It only works when the server signs those bytes, not with old static-RSA key exchange (src:rfc8446-tls13).
- Unused parts of a protocol rust shut: many middleboxes misbehaved when TLS 1.3 was negotiated, because they had ossified around the old version field, so TLS 1.3 was made to look like TLS 1.2 on the wire; TLS software now advertises reserved, unused values at random ('GREASE') so that peers that reject unknown values fail early, before the mistake is widespread (src:rfc8701; src:rfc8446-tls13; src:wp:transport-layer-security).
- Security products made HTTPS less safe: in 2015-2016 between 4% and 11% of HTTPS connections seen at Firefox's update servers, a set of popular shopping sites and Cloudflare were being intercepted, and 97% of the intercepted Firefox connections ended up less secure (src:durumeric-2017-interception).
Layers
The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.
Transport Layer Security as security engineers describe it: bytes on an untrusted network up to an authenticated, private channel between two programs (reader's view)
- L1: The untrusted network: TLS records as bytes in a TCP stream (or UDP datagrams for DTLS, QUIC packets), on port 443 or after a STARTTLS upgrade; addresses, ports, timing and sizes visible to every observer on the path, which an active attacker may read, alter, drop or inject
- L2: Record framing: each record with content type (handshake 22, application data 23, alert 21; legacy change_cipher_spec 20), legacy version and length, carrying at most 2^14 bytes; alerts and close_notify
- L3: Record protection: symmetric encryption and integrity under per-connection traffic keys (AEAD only in TLS 1.3: AES-GCM, ChaCha20-Poly1305; earlier MAC-then-encrypt with CBC or RC4), sequence numbers, optional padding; a failed check ends the connection
- L4: The handshake's negotiation and key agreement: ClientHello offers (versions, cipher suites, groups, key shares, extensions such as SNI and ALPN), ServerHello choice, (EC)DHE or PSK key exchange (RSA key transport before 1.3), HKDF key schedule, downgrade protection, Finished MACs over the transcript, resumption tickets, 0-RTT
- L5: Authentication and trust: the server's certificate chain and CertificateVerify signature (client's optional), checked against the name the application expects and the trust anchors (root stores) shipped with the operating system or browser; the certificate authorities behind them
- L6: The deployed code and its keeping: the libraries (OpenSSL, BoringSSL, NSS, Schannel, Secure Transport, GnuTLS, wolfSSL, Rustls), operators' and vendors' configurations and browsers' policies, and the patches and new defaults they take in; the IETF working group and researchers reach this floor from outside (exchange with Internet Engineering Task Force (shell keeper: the codifier), channel c-research)
- L7: The purpose: a secure channel between two programs, so that the application (HTTPS, mail, VPNs, messaging, DNS over TLS, QUIC) gets authenticated, private, unaltered communication across an untrusted network
the boardroom (shared floors)
- L3: Record protection: decrypt and verify each incoming record, encrypt and protect each outgoing one under the traffic keys; end the connection on any failure
- L4: The handshake engine: state machine, negotiation, key exchange, key schedule, transcript and Finished, downgrade checks, resumption and 0-RTT decisions
- L5: Authentication: certificate chain validation to a trust anchor, name check against what the application expects, signature verification; the decision to trust the peer
- L6: The keepers of the deployed code: library maintainers, vendors, operators and browser makers who patch, configure, deprecate and take in the working group's revisions
- L7: The secure channel the application relies on: both ends hold the same unique secret keys, the client knows who the server is, and data arrives private and unaltered
way in: Configuration (enabled versions, suites, groups, keys and certificates)
- L1: Configuration written by operators and defaults shipped by vendors
- L2: Settings loaded by the library
- L3: The lists actually offered or accepted (versions, cipher suites, groups), legacy ones included
way in: Keys and settings from the DNS (ECH configuration in HTTPS records)
- L1: DNS answers for the server's name
- L2: HTTPS resource record carrying the ECH configuration
- L3: The server's ECH public key held for the next ClientHello
way in: Published attacks, disclosures and measurements
- L1: Findings: a bug or attack found by researchers or companies
- L2: Private disclosure to the implementers
- L3: Public disclosure: a named attack, a CVE, an informational RFC
- L4: Internet-wide scans measuring who is exposed
- L5: Notification of operators of vulnerable hosts
way in: Records from the peer (ciphertext over TCP, UDP or QUIC)
- L1: Bytes of a TCP connection to port 443 (or after STARTTLS), or DTLS datagrams
- L2: Record header read: content type, version, length (at most 2^14 + 256 bytes of ciphertext)
way in: The application above (plaintext, the name it expects, user overrides)
- L1: The application's data and requests: what to send, which server name to expect, and (in browsers) the user's decision on a warning
- L2: The library's programming interface
way in: The host's clock (ticket ages and lifetimes)
- L1: Time as each host counts it
- L2: Ticket issue time and age kept with the session state
- L3: Lifetime check: tickets older than their lifetime (at most 604,800 s) are discarded
way in: The peer's certificate chain and signature
- L1: Bytes of the server's second flight
- L2: Handshake records
- L3: Decrypted under handshake traffic keys (TLS 1.3; sent in clear before)
- L4: Certificate and CertificateVerify parsed: chain, any stapled OCSP status, signature over the transcript
way in: The peer's hello (offers and choices sent in the clear)
- L1: The first bytes of the connection
- L2: Handshake records (content type 22), unprotected at this point
- L3: The hello read in clear: versions, cipher suites, groups and key shares, signature algorithms, SNI, ALPN, PSK identities, GREASE values
way in: Trust anchors (root stores shipped with the system)
- L1: Root certificate lists configured by software vendors (Microsoft, Apple, Mozilla and others)
- L2: The trust store loaded by the library and modifiable by the relying party
- L3: Locally added roots: an organisation's root on employees' machines, security software's own root
- L4: Path building: the peer's chain linked up to an anchor, directly or through intermediates
way in: What the path does to the traffic (active attackers and middleboxes)
- L1: An on-path party that can inject, modify, drop, replay or terminate
- L2: Altered or injected records and hellos (stripped offers, forced failures, injected FIN, rejected unknown values)
way out: Alerts and closure (fatal alerts, close_notify)
- L1: The connection closed
- L2: An alert record (bad_record_mac, illegal_parameter, inappropriate_fallback, close_notify)
- L4: A failure detected: bad Finished, bad record MAC, inappropriate fallback, downgrade sentinel
way out: Certificate failures surfaced to the user (browser warnings)
- L1: A warning shown on the screen to the person
- L3: The connection halted pending the user's choice
- L5: Validation fails: unknown issuer, wrong name, expired, weak
way out: Handshake flights (hellos, certificates, Finished, tickets, KeyUpdate)
- L1: Written to the connection
- L2: Handshake records (protected after ServerHello in TLS 1.3)
- L4: The next handshake message composed: ServerHello with key share, EncryptedExtensions, Certificate, CertificateVerify, Finished; later NewSessionTicket or KeyUpdate
way out: New versions, extensions and deprecations (RFCs)
- L1: A published text that implementations follow (RFC 8446; RFC 7465, 7568, 8996 prohibitions)
- L6: The working group's decision
way out: Patches, new defaults and removed algorithms shipped to hosts
- L1: Updated software running on hosts
- L4: New offer lists in the hello (RC4, export, SSL 3.0 removed)
- L6: A fix or removal decided by maintainers and vendors
way out: Plaintext and the peer's identity handed to the application
- L1: The application (browser, mail server, VPN) acts on it
- L2: Returned through the library's read interface with the negotiated parameters and peer identity
- L3: Verified plaintext released only after its record checks out
way out: Protected records to the peer
- L1: Written to the TCP connection
- L2: Framed as application-data records of at most 2^14 bytes, optionally padded
- L3: Plaintext from the application encrypted and authenticated under the sender's traffic key