encrypted traffic analysis

term

securityprivacynetworking

Kept in this browser · My desk

Inferring what encrypted traffic is, which software produced it or whether it is malicious from what encryption leaves visible: packet sizes and timing, addresses and the unencrypted parts of the handshake.

Encryption hides content, not the shape of a conversation. Classifiers trained on flow features, and fingerprints of the TLS handshake such as JA3 and its successor JA4, can recognize client software and some malware without decrypting anything, which is why operators and security vendors lean on them as more traffic is encrypted. The same observations serve censors and trackers: China's Great Firewall classifies fully encrypted traffic by the statistics of its bytes, and the authors of JA4 list location tracking among its uses. How much it can see depends on what stays visible, which Encrypted Client Hello reduces.

What stays visible. Encryption hides the content of a conversation, not its shape. Around every Transport Layer Security (TLS) session an observer still sees the Internet Protocol (IP) addresses and ports, the size and timing of every packet, the direction of the flow, the Domain Name System (DNS) queries that preceded it unless they too are encrypted, and the unencrypted parts of the handshake: the TLS version, the offered cipher suites, extensions and their order, and, until Encrypted Client Hello, the Server Name Indication (SNI). In TLS 1.3, every handshake message after the ServerHello is encrypted, so the server's certificate is no longer visible as it was in TLS 1.2. Encrypted traffic analysis is the inference drawn from what is left: which application or client produced a flow, which site it reached, whether it looks like malware.

What operators lose. Operators described their losses in Request for Comments (RFC) 8404, Effects of Pervasive Encryption on Operators, edited by Kathleen Moriarty and Al Morton for the Internet Engineering Task Force (IETF) in July 2018: traffic surveys and troubleshooting, the fingerprinting used against distributed denial-of-service (DDoS) attacks, load balancing, malware detection, content filtering, spam filtering and lawful intercept all relied on reading traffic. Its summary is that operators lose a source of data, and that some monitoring can continue with lower accuracy. RFC 9849 of March 2026 lists what survives even Encrypted Client Hello: the provider the client connects to, and the target domain wherever it leaks through plaintext DNS or a visible server address.

The research. In 2016 Blake Anderson, Subharthi Paul and David McGrew used observable features of TLS from both client and server to detect malware and to attribute a single encrypted flow to its family, working over millions of flows and 18 malware families while, in their words, preserving the privacy of benign uses of encryption; families that change how they use cryptography were harder to classify. A year later Zakir Durumeric and colleagues showed the same principle at the scale of the Internet: because each TLS implementation offers its own set and order of cipher suites, extensions, curves and signature algorithms, a server can detect an intercepting proxy from the mismatch between the browser named in the Hypertext Transfer Protocol (HTTP) User-Agent header and the client that actually performed the handshake. Applied to nearly eight billion handshakes in one week, the heuristic found 4.0% of Firefox update connections, 6.2% of e-commerce connections and 10.9% of United States connections to Cloudflare intercepted.

The products. Cisco sells the method as Encrypted Traffic Analytics (ETA), which it says works without any decryption on four kinds of telemetry: the Sequence of Packet Lengths and Times (SPLT) of a flow's first packets, the Initial Data Packet (IDP) with data such as a uniform resource locator (URL) or a DNS name, the byte distribution of the payloads, and TLS features such as the cipher suite, version and client key length. Cisco lists the Catalyst 9000 switches from IOS XE 16.6.1, several router families from 16.6.2 and Catalyst 9800 wireless controllers from 16.10.1 as sources of the telemetry, and Secure Network Analytics as the analyser; it also offers the same data for auditing cryptographic compliance, and calls its malware detection without decryption an industry first, a vendor claim. Firewalls rely on the visible handshake too: Fortinet's FortiGate filters web categories in certificate inspection mode by reading the SNI, which is why Encrypted Client Hello can break that mode.

Fingerprints. JA3, invented at Salesforce in 2017, concatenates fields of the ClientHello and hashes them into a 32-character identifier; its creator, John Althouse, continued the work at FoxIO with JA4, which sorts the ciphers and extensions before hashing so that browsers that shuffle them still yield a stable value, and is published under the BSD (Berkeley Software Distribution) 3-Clause licence. FoxIO lists among its uses scanning for threat actors, malware detection, session hijacking prevention, DDoS detection and location tracking.

Censors. From November 2021 China's Great Firewall passively detected and blocked fully encrypted traffic, the protocols designed to look like random bytes; Mingshi Wu and colleagues, at USENIX Security 2023, inferred heuristics based on the fingerprints of common protocols, the fraction of set bits and the position of printable characters, estimated that applied broadly they could block about 0.6% of normal traffic as collateral damage, and found that only 26% of connections, to certain data-centre address ranges, were monitored.

What goes wrong. Every inference is statistical, so it misfires: the Great Firewall's rules would block innocent traffic, and malware families that change how they use cryptography are harder to classify. A fingerprint identifies a client implementation, not who runs it or why. The method is also a privacy risk in its own right: what reveals malware also reveals which sites and applications a person uses, and FoxIO itself lists location tracking among the uses of JA4. The alternative, decrypting, carries its own cost: Durumeric's study found that 62% of connections through network middleboxes were less secure and 58% had severe vulnerabilities enabling later interception, and the US Computer Emergency Readiness Team (US-CERT) warned in March 2017 that interception of HTTP Secure (HTTPS) weakens TLS security when products fail to validate certificate chains.

Neighbours. JA3 and JA4, deep packet inspection (DPI), metadata, SNI and Encrypted Client Hello, SSL (Secure Sockets Layer) inspection, and the debates on network neutrality and throttling, where the same classifiers decide how traffic is treated.

Also known as: analysis of encrypted traffic, análise de tráfego cifrado, análise de tráfego criptografado

Sources

← Back to E Back to the glossary