encrypted traffic analysis
termKept 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
- arXiv 1607.01639, Blake Anderson, Subharthi Paul and David McGrew, Deciphering Malware's use of TLS (without Decryption), 6 July 2016 (read 2026-11-23): observable TLS features from client and server detect malware and attribute families from a single flow while preserving the privacy of benign encryption; millions of flows and 18 families; families that change their use of cryptography are harder to classify
- IETF, RFC 8404, Effects of Pervasive Encryption on Operators, K. Moriarty and A. Morton (editors), July 2018 (read 2026-11-23): functions affected by encryption, from troubleshooting, DDoS fingerprinting and load balancing to malware detection, content filtering and lawful intercept; operators lose a source of data and some monitoring continues with lower accuracy
- IETF, RFC 9849, TLS Encrypted Client Hello, March 2026 (read 2026-11-23): even with ECH the client-facing provider stays visible, and the target domain may be visible through plaintext DNS or server IP addresses
- Salesforce, JA3 repository README (read 2026-11-23): invented at Salesforce in 2017 and no longer maintained there; its creator John Althouse continues at FoxIO; ClientHello fields concatenated and hashed into a 32-character fingerprint
- FoxIO, JA4+ repository README (read 2026-11-23): uses include scanning for threat actors, malware detection, session hijacking prevention, DDoS detection and location tracking; extensions and ciphers sorted before hashing; JA4 TLS client fingerprinting under the BSD 3-Clause licence
- Mingshi Wu and others, How the Great Firewall of China Detects and Blocks Fully Encrypted Traffic, USENIX Security 2023 (read 2026-11-23): from November 2021 the GFW passively detects fully encrypted traffic with heuristics on protocol fingerprints, the fraction of set bits and printable characters; about 0.6% of normal traffic could be blocked as collateral damage; only 26% of connections to certain data-centre ranges monitored
- Cisco, Encrypted Traffic Analytics with the New Cisco Network and Secure Network Analytics, At-a-Glance, read through WebFetch (read 2026-11-23): telemetry without decryption from SPLT, IDP, byte distribution and TLS features; Catalyst 9000 from IOS XE 16.6.1, routers from 16.6.2, Catalyst 9800 from 16.10.1; Secure Network Analytics 6.9.2; cryptographic compliance audit; malware detection without decryption described as an industry first
- Zakir Durumeric and others, The Security Impact of HTTPS Interception, NDSS 2017 (read 2026-11-23): interception detected from the mismatch between the HTTP User-Agent and the TLS client's behaviour; nearly eight billion handshakes; 4.0% of Firefox update, 6.2% of e-commerce and 10.9% of US Cloudflare connections intercepted; 62% of middlebox connections less secure and 58% with severe vulnerabilities
- CISA (US-CERT), Alert TA17-075A, HTTPS Interception Weakens TLS Security, 16 March 2017 (read 2026-11-23): HTTPS inspection performs a man-in-the-middle on the connection; many products do not properly verify the server's certificate chain before re-encrypting
- Fortinet, FortiOS 7.6.2 Administration Guide, Block or allow ECH TLS connections (read 2026-11-23): certificate inspection relies on the SNI field of the ClientHello to determine the hostname and perform category filtering, so ECH can break certificate inspection