Abstract
Can an attacker learn what an encrypted message says from its size alone? Sometimes, depending on what the observer can distinguish. Lossless compression cannot shorten every input, so compressed length varies with content, and common encryption schemes expose plaintext length up to framing and optional padding. Whether that reveals anything depends on whether the lengths separate the plausible messages and whether the attacker can add chosen text. John Kelsey analysed the consequences in 2002, including extraction of a repeated secret by an attacker who adds chosen text to the same compression context. Rizzo and Duong’s CRIME (2012) applied this to cookies under TLS and SPDY compression; Gluck, Harris and Prado’s BREACH (2013) applied it to gzip-compressed HTTP responses, where switching off TLS compression does not help. Two related channels involve no compression oracle: packet sizes from variable-bit-rate speech codecs, used to identify languages and phrases in encrypted calls, and record sizes of streamed chatbot answers, which track token lengths. Separate compression contexts defeat the shared-context attacks and per-response masking the stable-token ones; constant sizes remove the size signal but leave timing and packet counts.
Why length has to leak
The counting argument
Take every bit string of length n. There are 2^n of them. A lossless compressor is an injective map: two different inputs must give two different outputs, or decompression could not tell them apart. There are only 2^n − 1 strings shorter than n bits (all strings of lengths 0 to n − 1), so no lossless compressor can shorten every n-bit input; one that shortens some must send others to n bits or more. A useful compressor spends its limited capacity for shortening on the redundant inputs people actually send, so its output lengths vary with content. The argument sets a limit and nothing more. It does not say that two particular messages will compress to different lengths, and the lengths an observer finally sees also depend on the encoder’s choices and on framing and padding.
That observation is trivial. What makes it a security problem is the second half of the pipeline. Standard confidentiality definitions do not promise to hide length: in the indistinguishability game the adversary must submit two messages of equal length, so the definition says nothing about messages of different lengths (the site’s reader in cryptography sets out the game). Kelsey opened his 2002 paper with the same point: ciphers such as AES and triple-DES are designed so that their output “carries no information about that plaintext except its length.”1 Microsoft’s researchers made the operational version of the point in 2025: leaving compression aside, the ciphertext from a stream cipher, or from a block cipher in a mode that turns it into one, is the size of the plaintext plus a constant such as a message authentication code.2 TLS 1.3 shows what reaches the wire: the length of each encrypted record is the sum of the content length and the padding length, plus one byte for the inner content type, plus any expansion added by the AEAD algorithm.3 With a fixed cipher suite and record layout and no padding, an observer therefore learns the content length up to a known constant; TLS 1.3 lets the sender add padding inside the record to change that. Block-cipher modes with padding round the length up to the next block, which coarsens the signal without removing it.1
Put a compressor in front of such a cipher and the composition maps content to length to ciphertext length. Encryption hides the bytes; compression has already written a summary of them into a quantity encryption does not hide.
A one-line demonstration
Kelsey’s own example is a pair of headlines of identical length, “TRUMAN DEFEATS DEWEY!” and “DEWEY DEFEATS TRUMAN!”, and he reported that Python’s zlib compresses the first slightly better.1 Our own check with zlib 1.2.12 agrees: both strings are 21 bytes; the first compresses to 27 bytes in the zlib format and the second to 29, at levels 1, 6 and 9 alike. An eavesdropper who knows that one of exactly these two was sent, and who sees an encrypted length that preserves the two-byte difference, can tell which. Kelsey generalised this to “compression ratio as a checksum”: if the attacker can enumerate the possible messages and knows the compression algorithm, the compressed length rules some of them out.1
Stateless and stateful leakage
The headline example uses what Kelsey called the stateless channel: the compressed size of a message considered alone. It leaks something about redundancy, file type or language, and Kelsey notes earlier physics work that used compression ratios to identify the language of a text.1 On its own it is a weak channel, and it depends on context. Kelsey’s analysis assumes that the attacker knows the compression algorithm and the precise, or at least approximate, input length.1 Given those, a one-megabyte file that compresses to one kilobyte was evidently very redundant; without them, the compressed size alone says little.
The powerful version is stateful. An LZ77-family compressor can encode text that has already appeared as a short reference to the earlier copy, and an adaptive Huffman coder changes its code lengths as it learns symbol frequencies, so what a string costs depends on what came before it. If an unknown string S is compressed together with a prefix or suffix the attacker chooses, each choice puts the compressor in a different state, and each output size carries a different piece of information about S. In Kelsey’s words, this allows an attacker to reconstruct S “with reasonably high probability, even when the compressor output sizes for different prefixes or suffixes differ only by a few bytes.”1 CRIME, BREACH and their successors apply that sentence to particular protocols.
Two kinds of observer
The published results fall into two groups with different assumptions, and the difference governs how to read every figure that follows. Active extraction (Kelsey’s string extraction, CRIME, BREACH and their successors) needs an attacker who can place chosen text in the same compression context as a secret that stays the same, observe the resulting sizes or timings, and repeat. Passive inference (the VoIP studies and the work on streamed AI answers) needs only observation of traffic, but its results are relative to a known set of candidates, such as 21 languages, a list of phrases or one topic against a background set, to how often each candidate occurs, and to classifiers trained on traffic from the same codec or service. A reported accuracy measures how well lengths separate those candidates and does not carry over to an open set of possible messages. The passive channels are also not all compression channels. A speech codec running at a variable bit rate is a lossy compressor; the streamed-token channel exists because each token is sent as soon as it is generated, and Weiss and colleagues describe it without any compression step.4
The site’s information theory article places these leaks alongside entropy and channel capacity.
Kelsey’s 2002 analysis
Three classes of attack
Kelsey’s “Compression and Information Leakage of Plaintext” appeared at Fast Software Encryption 2002, after a presentation at the Crypto 2001 rump session.15 He made two claims that distinguish this channel from timing or power analysis: it reveals plaintext, not key material, and “it is a property of the algorithm, not the implementation”, so that “any implementation of the compression algorithm will be equally vulnerable.”1 Equal vulnerability does not mean equal lengths. RFC 1951 defines the DEFLATE format without reference to any particular compression algorithm, so two correct encoders, or one encoder at two settings, can produce different lengths from the same input, and an attacker has to model the encoder actually in use.6
In 2002 PGP and GnuPG compressed with Deflate before encrypting, IPsec could use IPComp, and SSH and TLS offered on-the-fly compression.1 He stressed that the attacks have little security impact on, for example, a bulk encryption application that compresses before encrypting, and ranked three classes of attack by practicality:1
- Passive leakage. The attacker only sees lengths. Redundant data stands out (his example is an encrypted surveillance video feed whose bandwidth reveals motion), and file types and languages compress at characteristic ratios.
- String detection. The attacker can append a chosen string S to messages and compare the compressed lengths with and without it. If adding S costs much less than S would cost alone, that suggests S is already present, provided the compressor behaves as expected.
- String extraction. The attacker can cause many messages of the form “attacker text plus S” to be compressed and encrypted, and reads S out piece by piece.
The extraction experiments
Kelsey’s experiments already met the difficulties that later attacks had to manage. Against a 16-digit PIN compressed with Python’s zlib, his adaptive attack could find the PIN, but “results were mixed” and he often had to decide by hand to backtrack.1 He recorded the reasons. DEFLATE does not always use the longest available match; the encoder’s later choices affect earlier ones; some guesses compress well on their own; and the signal between neighbouring guesses is “often swamped by the ‘noise’”.1 A second, non-adaptive attack ranked candidate substrings by how much they shortened the output and pieced the best ones together. Against pseudorandom 16-digit strings he counted it a success about 70% of the time, where success meant that the true string was among the top 20 candidates.1
Countermeasures, assessed in 2002
His verdicts on countermeasures have aged well. Padding to the next full cipher block, as some CBC conventions do, still gives the attacker a function of the compressed length, and in his judgement such padding makes the attacks slightly more work without really blocking any of them.1 A more drastic scheme fixes a target compression ratio, pads every message that reaches it up to exactly that ratio and sends the rest uncompressed. For a message whose input length is fixed or already known to the attacker, the output length then reveals at most one bit, namely which of the two branches was taken; where input lengths vary, the output size can still say something about the input. Kelsey judged that against chosen-input attacks the scheme “adds a moderate amount of difficulty, but doesn’t provide a complete defense.”1 His list of future work included timing channels from compression and attacks on lossy codecs for sound;1 TIME in 2013 and the VoIP studies from 2007 onwards are later examples of each.78
How DEFLATE turns redundancy into length
Two stages, two kinds of noise
DEFLATE, specified in RFC 1951 (May 1996), is the compressed format inside the zlib and gzip wrappers, each specified in its own RFC of the same month.6910 Its first stage is LZ77: a repeated string is replaced by a pair (length, distance) pointing back into the previous 32K bytes, with lengths from 3 to 258.6 Its second stage Huffman-codes the resulting literals, lengths and distances, using either a fixed code table defined in the RFC or a dynamic table built for the block and sent with it.6
A repeated string becomes a back-reference only if the encoder chooses that match; DEFLATE also allows stored (uncompressed) blocks, and the encoder decides block types.6 The Huffman stage blurs the effect in two ways. First, in a block with dynamic codes, code lengths are derived from symbol frequencies, so a change in one part of the input can change the cost of symbols elsewhere. Second, a longer match may save only a few bits, and the observer sees bytes. Rizzo and Duong’s slides put it in one line: “A 63-bit request looks exactly the same as a 59-bit on the wire.”11 RFC 1951’s length table shows why one more matched character can cost almost nothing: lengths 11 and 12 both use length symbol 265 followed by one extra bit, with value 0 for 11 and 1 for 12, so extending a match from 11 to 12 characters changes that bit’s value and saves the literal that would otherwise be sent.6
Worked example 1: what DEFLATE does with redundancy
These measurements use Python 3 with zlib 1.2.12, and involve no secret and no attacker input; other zlib versions may give different figures.
import random, zlib
text = b"It was the best of times, it was the worst of times, ..." # 417-byte excerpt
rnd = random.Random(2026).randbytes(len(text))
zeros = bytes(len(text))
for data in (zeros, text, rnd):
print([len(zlib.compress(data, level)) for level in (1, 6, 9)])
line = b"Meet at the north gate at nine." # 31 bytes
print([len(zlib.compress(line * k, 6)) for k in (1, 2, 3)])The excerpt is 417 bytes from the opening sentence of Dickens’s A Tale of Two Cities.
| Input (417 bytes) | Level 1 | Level 6 | Level 9 |
|---|---|---|---|
| Zero bytes | 14 | 14 | 14 |
| English prose | 185 | 177 | 177 |
| Pseudorandom bytes | 428 | 428 | 428 |
Three points follow. The zeros shrink to 14 bytes and the pseudorandom bytes grow by 11, which is the counting argument in practice; the growth matches a stored block plus the zlib wrapper’s two-byte header and four-byte checksum.96 The English text comes out at 185 bytes at level 1 and 177 at levels 6 and 9, so one compressor given the same input produces different lengths at different settings, which is why Kelsey’s “equally vulnerable” does not mean equal lengths. And the 31-byte line compresses to 37 bytes alone, 40 bytes when repeated twice and 40 bytes when repeated three times: the second and third copies are encoded as back-references costing a few bytes in all. A repeated string costing almost nothing is the stateful channel; the attacks that follow differ mainly in how chosen text and a secret come to be compressed together, and how the size is observed.
CRIME, 2012
The attack
Juliano Rizzo and Thai Duong presented CRIME, Compression Ratio Info-leak Made Easy, at the ekoparty conference in September 2012.1112 The attacker needs two things: the ability to observe the victim’s encrypted traffic (a shared network, a compromised router, an ISP or a government, in their slides) and a way to make the victim’s browser send requests to the target site, for example from a page under the attacker’s control. Those requests carry text the attacker chose, the browser attaches the site’s cookie, and both are compressed together, so the encrypted length depends on how much the chosen text has in common with the cookie.11
The slides claimed that the attack “worked for 45% of browsers: Chrome and Firefox”, for all SPDY servers and for 40% of SSL/TLS servers, and with all TLS versions and cipher suites. These are the presenters’ estimates for 2012; the slides do not say how the browsers and servers were sampled.11
Three compression layers
CRIME targeted three places where compression met secrets.11
- TLS compression. TLS could negotiate DEFLATE under RFC 3749, which specifies that method as stateful: the compressor maintains its state through all compressed records.13 The CRIME slides describe the implementations they examined differently, as compressing each record independently in a separate zlib context, and their TLS attack was built around that record boundary. The slides add that the attack required the attacker’s zlib to behave like the victim’s, and that Chrome was the only browser supporting TLS compression.11
- SPDY header compression. SPDY compressed headers with DEFLATE and, per the slides, used one compression context for all requests in one direction on a connection, so a header in a new request could be encoded as a reference to an earlier one.11
- HTTP gzip. The talk anticipated, without a demonstration, that compressed responses echoing client input could expose personal data or anti-forgery tokens. Of their comparison method in that setting the slides say that it “may work, but we haven’t tested it yet,” and they suggest that HTTP gzip “may be a bigger problem than both SPDY and TLS compression.”11
The response
Chrome moved before the talk. A Chromium change by the developer agl, titled “net: disable TLS compression with OpenSSL”, referencing bug 139744, was reviewed and committed on 3 August 2012.14 The CRIME slides record that Chrome had disabled compression in its ClientHello and that Chrome and Firefox had disabled header compression in their SPDY implementations.11 NVD published entries for both on 15 September 2012, describing CVE-2012-4929 as TLS 1.2 and earlier encrypting compressed data “without properly obfuscating the length of the unencrypted data”, and CVE-2012-4930 as the same flaw in SPDY 3 and earlier.1516
The standards followed over the next six years. RFC 7457 (February 2015), the IETF’s summary of known attacks on TLS, lists CRIME, TIME and BREACH together.17 BCP 195 in its first version, RFC 7525 (May 2015), said implementations and deployments “SHOULD disable TLS-level compression”, unless the application protocol in question had been shown not to be open to such attacks.18 TLS 1.3, RFC 8446 (August 2018), lists “the removal of compression” among its changes: every TLS 1.3 ClientHello must offer exactly one compression method, the null method, and a server that receives a TLS 1.3 ClientHello with any other value must abort the handshake.3 The 2022 revision of BCP 195, RFC 9325, restates the instruction for TLS 1.2 (“SHOULD NOT support TLS-level compression”) with the same exception for application protocols proven not to be open to such attacks, adds that “extreme caution is warranted” even then and that HTTP is known to be vulnerable, and notes that compression has been removed from TLS 1.3.19 The site’s article on retiring TLS versions follows how such removals propagate through deployed software.
Removing compression from TLS left HTTP’s own compression in place, as Rizzo and Duong had anticipated.
BREACH, 2013
Responses instead of requests
Yoel Gluck, Neal Harris and Angelo Prado presented BREACH at Black Hat USA 2013; their paper is dated 12 July 2013, and the name stands for Browser Reconnaissance and Exfiltration via Adaptive Compression of Hypertext.1220 The paper quoted the then-common view that CRIME had been mitigated by browser updates and answered: “Unfortunately, this is simply not true.”12 In 2013 most HTTP requests were not compressed while responses commonly were, according to the TIME authors.7 BREACH needs a response that carries a secret in the same compressed body as text the requester supplies; the paper’s main example is an anti-CSRF token.1221
Their demonstration target was Microsoft’s Outlook Web Access, whose pages could reflect a request parameter and also contained the user’s CSRF token. The authors reported recovering the token about 95% of the time, “often in under 30 seconds.”12 Like Kelsey and Rizzo and Duong before them, they found that the Huffman stage made single comparisons unreliable, and they called some of their compensating tactics “a bit blunt and frankly poorly understood by the authors.”12
The prerequisites, as CERT/CC summarised them on 2 August 2013, are HTTP-level compression, user input reflected in the response body, a secret in the body that stays the same across requests, and an attacker able to observe response sizes; responses that vary for other reasons make the attack more expensive.21 BREACH does not depend on the TLS version or on TLS compression, and works with any cipher suite; with stream ciphers the size difference is exact to the byte, while block ciphers’ rounding makes it harder.12 The threat model is CRIME’s: a network observer who can also make the victim’s browser send requests, for instance through invisible iframes on a site the victim visits.12 CERT/CC’s 2013 note already referred to CVE-2013-3587; NVD’s record of it was published on 21 February 2020, long after that disclosure, and describes HTTPS “as used in unspecified web applications”, a different issue from CVE-2012-4929.2122
The mitigations offered, and what was adopted
The BREACH authors wrote that they were “unaware of a clean, effective, practical solution” and offered six partial ones.12
- Length hiding, adding a random amount of data to each response. The attacker repeats requests and averages; the standard error of the mean falls as one over the square root of the number of repeats, so the attack takes longer, but “only slightly.”12
- Separating secrets from user input into different compression contexts. This “completely solves the problem” but may be “very tedious and highly impractical”; one suggestion is a separate resource that serves secrets and no attacker-controlled data.12
- Disabling HTTP compression, which eliminates the channel at “a rather drastic impact on performance.”12
- Masking secrets, a method the paper credits to Tom Berson: instead of embedding the secret S, embed P concatenated with P XOR S, with a fresh one-time pad P on each request. The underlying secret stays the same, but its representation on the page changes each time, so the recurring string the attack needs is gone. The paper notes that this doubles the length of every secret and says it guarantees that the secret will not be compressible;12 strictly, a fresh mask removes repetition across responses, and does not rule out that an individual masked value happens to compress a little.
- Rate limiting and monitoring, since the attack needs more requests than a human would make.12
- CSRF protection on every request that reflects input, so that the attacker’s page cannot make the browser fetch such pages.12
Ruby on Rails and Django both shipped masking in their CSRF code. Ruby on Rails merged a pull request on 20 August 2014 that brought in the masking code from the breach-mitigation-rails gem, XORing authenticity tokens with random bytes on each request. Its author left out the gem’s length-hiding code, as “more complex, more brittle, and provides less protection against the attack.”23 Django 1.10, released on 1 August 2016, announced that the CSRF form token value would change “on every request” to protect against BREACH, while validation used an unchanging secret.24 Django’s current documentation describes the mechanism more precisely: the hidden field is “scrambled differently with each response using a mask”, and the mask is generated randomly on every call to get_token().25
Masking protects the token’s representation and nothing else: an email address, an account number or a message in the same compressed response remains a target, as later work showed.1226 The BREACH project site now lists its mitigations in order of effectiveness, with disabling HTTP compression first.20
In the cookie-authenticated setting that CRIME and BREACH demonstrated, the countermeasure aimed at the oracle itself came from cookie policy, because the attack needs the browser to attach the victim’s session cookie to requests the attacker’s page causes.1112 The SameSite cookie attribute, proposed in an IETF draft by Mike West and Mark Goodwin, lets a server say that a cookie “ought not to be sent along with cross-site requests,” which the draft says allows user agents to mitigate “the risk of cross-origin information leakage.”27 Karakostas and Zindros, writing in 2016 about the earlier first-party-only form of the proposal, argued that marking authentication cookies first-party only would eliminate the oracle in their threat model, and urged browsers to adopt it.26 Chrome’s later change was of a different kind: from 2020 it treated cookies that lack the attribute as SameSite=Lax by default. Chrome 80 reached the stable channel on 4 February; enforcement started rolling out from the week of 17 February, was paused, resumed on 14 July, and on 11 August the target population was raised to 100% of stable users.28 Under Lax, a cookie is still sent with cross-site requests that are top-level navigations using a “safe” HTTP method, as the IETF’s current cookie draft specifies.29 Whether a particular request carries credentials therefore depends on how the attacker triggers it and on the cookie’s settings; same-site requests can still be cross-origin, and secrets that do not depend on cookies are outside this defence altogether. An application should not rely on browser defaults alone.
Moving the measurement into the browser
CRIME and BREACH both assume an attacker on the network path who can see ciphertext lengths. Three later lines of work loosened that assumption or the attack’s other limits.
TIME (2013). Tal Be’ery and Amichai Shulman of Imperva presented “A Perfect CRIME? Only TIME Will Tell” at Black Hat Europe in 2013.717 TIME (Timing Info-leak Made Easy) infers the compressed size from the time a response takes to arrive, so the attacker’s JavaScript both causes the requests and measures the result, and the attacker “only needs to control the plaintext.”7 The timing difference arises at TCP boundaries: a response that needs one more segment than the sender may transmit before waiting for an acknowledgement arrives a round trip later. Their paper also extended the CRIME idea to response bodies.7
HEIST (2016). Mathy Vanhoef and Tom Van Goethem’s HEIST, presented at Black Hat USA 2016, turned that boundary into a size measurement made from inside the browser, under the browser, TCP and server conditions they studied in 2016.30 Two browser interfaces report different moments: the promise returned by fetch() resolves when the first bytes of a response arrive, and the Resource Timing API reports when the response finished. Comparing the two shows whether a cross-origin response fitted in the initial TCP congestion window, and the authors showed that this could be turned into the response’s exact size.30 HEIST also observed that HPACK, HTTP/2’s header compressor, replaced repeated response headers with short indexes (a single byte in their example) and so made the size of the headers frame easier to predict, which helped the attack.3031 The authors rated disabling compression an incomplete defence, because it does not stop the other length-based attacks they describe, and random padding and randomised congestion windows inadequate, because more requests filter out the randomness. For their setting, in which the browser attaches the victim’s cookies to the attacker’s cross-origin requests, they called disabling third-party cookies “one of the few, if not the only, adequate” countermeasures.30
Rupture (2016). Dimitris Karakostas and Dionysis Zindros, presenting “Practical New Developments on BREACH” at Black Hat Asia 2016, extended BREACH to block ciphers and to pages containing random noise; they wrote that by then RC4 was considered unsafe and most websites used the AES block cipher.26 Their case studies were an authentication token in Gmail’s mobile search page and private messages in Facebook’s mobile chat search. Facebook had deployed a BREACH defence for its CSRF tokens; in the chat case the authors argued that secrets and user input could not be separated.26 They reported limits to each of the original paper’s mitigations (length hiding defeated by collecting multiple samples, masking impractical for services with many secrets, rate limiting slowing the attack without preventing it) and proposed first-party cookies as the defence for their threat model.26 Their Facebook case shows that separation was not available in that application as designed; it does not show that a redesigned application could not separate the two.
Worked example 2: what padding buys
A compression oracle that confirms one character at a time replaces one search over all possible values of a secret with a sequence of small searches, the reduction from “an exponential-time attack into a linear-time attack” that RFC 7541 describes.31 Real pages add noise, and random padding adds more on purpose. A simple model shows what that buys.
Suppose each response is padded with a random number of bytes, independent and uniform between 0 and L − 1, so the mean padding is (L − 1)/2 bytes and its variance (L² − 1)/12. Suppose also that the quantity of interest is a one-byte difference between the sizes of two kinds of response, and the observer averages N responses of each. The standard error of the difference between the two averages is the square root of 2(L² − 1)/(12N). Holding that standard error at any fixed fraction of a byte requires N proportional to L² − 1, which is 1,023 for L = 32 and 4,095 for L = 64: doubling the padding range roughly quadruples the number of responses needed, while the mean bandwidth cost only doubles. Real noise is neither uniform nor independent of the content, and an attack makes many comparisons, so the model gives the shape of the trade-off and no particular attack’s cost.
That shape is what RFC 7541 means when it says padding may only force “an increased number of guesses”, and what the BREACH paper means when it notes that the standard error of the mean falls with the square root of the number of repeats.3112
HPACK and QPACK: compression designed against the oracle
What HPACK changes
SPDY’s DEFLATE header compression was the reason HTTP/2 needed a new design. RFC 7541 (Roberto Peon and Hervé Ruellan, May 2015) says SPDY’s approach “proved very effective” but “exposed a security risk as demonstrated by the CRIME” attack.31
HPACK abandons substring matching. It keeps a static table of common header fields defined in the RFC and a dynamic table, managed first in first out, of header fields that have been sent on the connection. A header field is encoded as an index to a table entry, or as a literal, which may or may not be added to the dynamic table. Literal strings may be Huffman-coded with a static code defined in the specification.31 Section 7.1.1 states the security consequence: HPACK “mitigates but does not completely prevent attacks modeled on CRIME by forcing a guess to match an entire header field value rather than individual characters.” That applies to the dynamic table, whose entries are whole header fields. An attacker able to probe the table learns whether a guessed field is already there, so recovering a value from the table means guessing it whole: values with high entropy “are unlikely to be recovered successfully,” and values with low entropy “remain vulnerable.”31 Fields sent as literals still contribute their encoded names and values to the length of each headers block; the table changes how repetition is priced and leaves those lengths visible.
RFC 7541 also cited a study (PETAL) that found a static Huffman table leaks some information but not enough to recover anything meaningful, and stated in 2015 that there was “no currently known attack against a static Huffman encoding.”31 As we read it, a fixed code prices each character independently of context, so there is no compression state for a guess to interact with.
Who shares a table
The rest of HPACK’s security section is about trust boundaries. Attacks are possible “any time that two mutually distrustful entities control requests or responses that are placed onto a single HTTP/2 connection” and one can add entries to the dynamic table that the other can reference. The RFC names intermediaries that put several clients’ requests on one connection to an origin, or several origins’ responses on one connection to a client, and adds that browsers “need to assume that requests made on the same connection by different web origins” are mutually distrustful.31
Its mitigations differ in strength: two are suggested policy and one carries mandatory rules.31
- Segregating the table by entity is described as the ideal solution: only the entity that added a value can reference it, and widely shared values such as Accept-Encoding can be marked public. It is encoder policy, which the RFC suggests and does not require.
- Penalising guessing is also suggested policy: an encoder that cannot track provenance can stop comparing a header field against the table after it has seen many different values for it, with shorter values cut off sooner.
- Never-indexed literals are where the requirements become mandatory. Whether to use this representation is the encoder’s choice; the RFC suggests it for highly valuable fields such as Cookie and Authorization and for low-entropy values, and gives User-Agent as a field an encoder might prefer to index. Once a value is sent this way, an intermediary forwarding it must use the same representation, and “MUST NOT re-encode” it in a form that would index it.
HTTP/2 itself, now RFC 9113 (June 2022), states the rule for everything else and applies it to compressed content codings as well as field lines: implementations “communicating on a secure channel MUST NOT compress content that includes both confidential and attacker-controlled data unless separate compression dictionaries are used for each source of data,” compression “MUST NOT be used if the source of data cannot be reliably determined,” and generic stream compression such as TLS’s “MUST NOT be used with HTTP/2.”32 A gzip-encoded body is one context, so the burden falls on the application that decides what goes into it.
QPACK
HTTP/3 runs over QUIC, where streams can arrive out of order, and HPACK’s assumption of a single ordering would cause head-of-line blocking. QPACK, RFC 9204 (June 2022), reuses HPACK’s ideas with a redesigned table update mechanism.33 Its security section repeats HPACK’s analysis almost word for word, extended to QUIC, and adds two points: the per-entity mitigation “is most effective between two endpoints,” because an intermediary that re-encodes messages without knowing who built them “could inadvertently merge compression contexts that the original encoder had specifically kept separate”; and a value marked never-indexed in QPACK must be re-encoded as never-indexed if it is translated to HPACK.33
Voice: variable bit rates as compression
Codecs that spend bits where the sound is
Speech codecs are lossy compressors, and many vary their output rate with the signal. RFC 6562 (Colin Perkins and Jean-Marc Valin, March 2012) states the starting condition: none of SRTP’s predefined encryption transforms use padding, so “the RTP and SRTP payload sizes match exactly,” and with variable bit rate (VBR) codecs “the length of the compressed packets will depend on the characteristics of the speech signal.”34 That is a statement about payloads; the packets on the wire also carry headers and, optionally, an SRTP authentication tag, so an observer sees the payload length plus that overhead.34
Charles Wright, Lucas Ballard, Fabian Monrose and Gerald Masson of Johns Hopkins showed at USENIX Security 2007 how much that leaks under laboratory conditions.835 They encoded the CSLU “22 Language” telephone corpus, speech from native speakers of 21 languages, with the Speex codec, which sends a frame typically every 20 ms and, on that corpus, used nine bit rates between 0.25 and 24.6 kbps; vowels and other high-energy sounds take higher rates than fricatives such as “s”.8 Treating the sequence of packet sizes as a sequence of symbols and building n-gram models per language, they classified 2,066 speakers. Their improved 21-way classifier was right 66% of the time, “almost a 14-fold improvement over random guessing,” and their binary classifier (for example, Spanish or English) was right 86.6% of the time.35 Accuracy varied widely by language: 14 of the 21 were identified with over 90% accuracy, while Czech, Spanish and Vietnamese were never identified correctly on the first try.8
Their padding experiment measured what length hiding cost on their traces. Padding each packet up to a block size reduced the number of distinct packet sizes to 4 at 128 bits, 3 at 192, 2 at 256 and 1 at 512.8
| Block size | Added traffic | Accuracy | Improvement over random |
|---|---|---|---|
| none | 0.0% | 66.0% | 13.8× |
| 128 bits | 8.7% | 62.5% | 13.0× |
| 192 bits | 13.8% | 27.1% | 5.7× |
| 256 bits | 23.9% | 27.2% | 5.7× |
| 512 bits | 42.2% | 6.9% | 1.4× |
Padding to 128-bit blocks barely helped, because the remaining sizes still mapped onto the three groups their improved classifier used; the authors concluded that for padding to be effective “the block size must be large enough that all encrypted packets are the same size,” and noted that a constant bit rate codec would serve the same purpose while letting the encoder use the bits for quality.8 At 512 bits, where all packets were the same size, the reported accuracy was 6.9%, against about 4.8% for guessing among 21 languages; the paper does not analyse the source of that difference.
Phrases and phonemes
The 2008 follow-up, “Spot me if you can” at the IEEE Symposium on Security and Privacy, by the same group with Scott Coull, searched encrypted calls for given phrases. Using profile hidden Markov models built from phoneme sequences and wideband Speex in VBR mode on the TIMIT speech corpus, they reported that a passive observer could identify phrases “with an average accuracy of 50%, and with accuracy greater than 90% for some phrases”; with their realistic pronunciation dictionary, recall was 0.50 at precision 0.51.36 Padding again helped: to 128-bit multiples, recall fell to 0.15 at precision 0.16, and to 256-bit multiples, to 0.04 at 0.04, at bandwidth overheads of 8.81% and 16.5%.36
Andrew White, Austin Matthews, Kevin Snow and Fabian Monrose went further at the same symposium in 2011 with “Phonotactic Reconstruction of Encrypted VoIP Conversations: Hookt on fon-iks”. Their method segmented the packet stream into subsequences corresponding to individual phonemes, classified each, corrected the result with a phoneme language model, and mapped the phoneme strings to words.37 They scored transcripts with METEOR, a machine-translation metric on which, as the paper quotes Alon Lavie, scores above 0.5 “generally reflect understandable translations”; this is a proxy, not a human assessment of these transcripts.37 In the content-dependent experiments, which used two known sentences that each of TIMIT’s 630 speakers recorded once, 91% and 98% of reconstructions passed 0.5. In the content-independent experiment, over TIMIT utterances in general with no knowledge of what was said, “only 2.3% of our reconstructions score above 0.5,” with the top 10% averaging above 0.45.37 Both evaluations assumed that phoneme and word boundaries had been found correctly. A small final experiment, on female speakers of one TIMIT dialect group, removed those assumptions; there the top 10% averaged 0.19, with a high of 0.27, results the authors called preliminary.37 They added that “any cryptographic system that leaked as much information as shown here would immediately be deemed insecure.”37
The standard’s response
RFC 6562 grades the risk. Recognising unconstrained speech from rate information alone was, in 2012, “unreliable and computationally expensive at present, but does appear possible in some circumstances,” while prerecorded prompts and highly structured dialogues are much easier.34 Its guidance follows: applications with prerecorded messages of any value, interactive voice response (IVR) systems among them, and applications carrying highly sensitive unstructured speech “SHOULD NOT use codecs in VBR mode.” A sender using voice activity detection (VAD) should add a random “overhang” at the end of each talkspurt, exponentially distributed with a half-life of a few hundred milliseconds, to hide word lengths. An overhang cannot be applied to the start of a talkspurt without harming intelligibility, so the onset stays visible, and for that reason VAD “SHOULD NOT be used in encrypted IVR applications where the content of prerecorded messages may be of any value to an eavesdropper.” Where VBR is unsafe, a constant bit rate codec or mode should be used, and failing that the “most secure and RECOMMENDED option is to pad all packets throughout the call to the same size.”34 Because the RTP padding bit is sent in the clear, every packet should carry at least one byte of padding so that an observer cannot tell which packets needed it.34
Streamed AI responses
Tokens as packets
Language model services stream answers a token or a few tokens at a time; each token is sent as text, serialised (for example inside a JSON event) and framed by the transport. When each token goes out in its own encrypted record, the record sizes track the byte length of the token text plus a roughly constant envelope. Roy Weiss, Daniel Ayzenshteyn, Guy Amit and Yisroel Mirsky of Ben-Gurion University described this “token-length side-channel”.4 They observed that services sent each token either alone or in a growing cumulative message, whose successive size differences give each token’s length, and that at the time of writing the vendors they studied did not pad, compress or encode the traffic before encryption.4
The authors trained language models to translate token-length sequences back into text, using preceding sentences as context and fine-tuning on the target assistant’s style. Their metric is semantic: the cosine similarity between sentence embeddings of the original and the reconstruction, with success defined as above 0.5, a threshold their user study linked to perceived privacy exposure. On a test set of 10,000 GPT-4 responses, their Table 2 reports that the first segment of a response exceeded that threshold in 52.78% of cases and exceeded 0.9 in 27.05%; averaged over all the segments of whole responses, the success rate was 38%. These are rates of semantic similarity per segment, not counts of responses recovered word for word.4 On captured vendor traffic, where tokens were sometimes lost, grouped or paired, they reported first-segment success rates of 30% to 53% for OpenAI’s GPT-4 in-browser assistant, OpenAI’s GPT marketplace and Microsoft’s Copilot in-browser assistant, and 17.7% for OpenAI’s API, which sent tokens in pairs; their models had been trained on GPT-4 responses only.4 They notified the affected vendors on 1 February 2024 and disclosed the work publicly on 14 March 2024, coordinated with Cloudflare; the paper appeared at the 33rd USENIX Security Symposium in August 2024.4 Cloudflare’s post of 14 March shows the channel in a packet capture, where a 95-byte packet carried the token “Port” and a 93-byte packet “ug”; its engineers reported that the attack’s accuracy “varied immensely” in their own tests with other prompts and models, and they added a property named “p” containing a random-length string to every streamed JSON object.38
Topic without content
Microsoft’s “Whisper Leak”, published by Jonathan Bar Or and Geoff McDonald on 7 November 2025, asked a narrower question: does the sequence of packet sizes and timings reveal whether a conversation is about a particular topic?239 Their benchmark had one target topic, the legality of money laundering, asked in 100 variants, against 11,716 unrelated questions drawn from a public dataset; provider-side content filters left slightly fewer negative samples for some models. Across 28 models from major providers, the paper reports median area under the precision-recall curve (AUPRC) over five trials above 98% for 17 models. It then projects precision at a ratio of 10,000 background conversations to one target: for 17 of the 28 models, at selected operating points, the projection gives 100% precision while recovering 5 to 20% of target conversations. The blog post gives the recall range as 5 to 50%. Both are projections from a one-topic benchmark, and the authors call them limited by their data.392 Google’s Gemini and Amazon’s Nova models showed lower scores, which the authors attributed possibly to more aggressive token batching.39
Their mitigation measurements match the HTTP literature. OpenAI added a field named “obfuscation” carrying random text of variable length to streamed responses, Microsoft Azure did the same, Mistral added a “p” parameter, and xAI deployed protections as well.2 For the Microsoft-hosted GPT-4o-mini, median AUPRC without class resampling fell from 97.5% to 92.9% with the obfuscation enabled. The authors read that as partial mitigation and attributed the residue to timing and cumulative size patterns; their assessment was that, with the mitigation, the attack probably no longer presents a practical risk under current techniques, with the warning that better attacks could change that.39 In their simulation, batching five or more tokens per packet removed most of the measured risk for most of the models tested, though some providers that already batched showed moderate attack success; the authors suggest those providers batch for reasons other than security.39 Their summary was that random padding, batching and injected noise packets each reduce effectiveness and none provides complete protection.39
Defences and their costs
Each defence removes one ingredient: compression, a shared context, a stable secret or an observable length.
Turn compression off
Disabling compression removes the compression channel, as TLS and SPDY’s header compressor showed.311 It does nothing about lengths that vary for other reasons; HEIST’s authors pointed out that their other length-based attacks remain.30 For HTTP bodies the cost is bandwidth and latency, which the BREACH paper called “rather drastic” and the Rupture authors “impractical in real-world systems.”1226 Among compressed HTTP responses in the HTTP Archive’s 2021 measurements, 66.7% used gzip and 33.2% Brotli.40 Both rely on LZ77 back-references, gzip through DEFLATE and Brotli through its own combination of LZ77 and Huffman coding, and back-references are the mechanism these attacks exploit.641 The middle course is selective: leave static assets compressed and switch compression off for responses that contain both secrets and reflected input.
Keep secrets out of attacker-influenced contexts
Separate compression contexts are the principled fix for the shared-context attacks, written into HTTP/2, HPACK and QPACK.323133 Rupture’s Facebook case shows the practical limit: in that application’s chat search, the secret was the content being searched.26
Make the secret different every time
Per-response masking, as in Rails and Django, removes the recurring representation of anti-forgery tokens at a modest cost in token length, and does nothing for other secrets.2325 Withholding cookies from cross-site requests protects cookie-authenticated responses for the requests where the browser actually withholds them, and refusing cross-site requests that reflect input does the same where the application enforces it. HEIST and Rupture each identified cookie policy as the strongest defence available for their own threat models in 2016.302627
Hide the length, and know what that buys
TLS 1.3 lets a sender add any number of zero bytes inside each encrypted record, up to the record size limit, and allows records with no content as cover traffic; but it states that choosing “a padding policy that suggests when and how much to pad is a complex topic and is beyond the scope of this specification,” and that robust defences against traffic analysis “will likely lead to inferior performance.”3 HTTP/2 offers padding on DATA and HEADERS frames and warns that “randomized padding with a predictable distribution provides very little protection,” and that against compression attacks “disabling or limiting compression might be preferable to padding.”32
DNS over encrypted transports gives a worked policy. RFC 8467 (October 2018, Experimental) recommends that clients pad queries to a multiple of 128 bytes, and that a server receiving a query that includes the EDNS(0) Padding option pad the response to a multiple of 468. The sizes came from Daniel K. Gillmor’s simulation of real resolver traffic, which weighed the share of messages falling into the same size bucket against the size overhead. The RFC rejects padding every message to the maximum because of the resource cost, and rejects random-length padding because an attacker who sees many messages can infer the original length from the distribution.42 Block padding of that kind hides small differences in a known message set; it does not stop an active attacker who can adjust their own input until the content crosses a block boundary, which is how BREACH handles block ciphers and HEIST handles congestion windows.1230
The VoIP table, the RFC text and Worked example 2 point the same way. Constant-size packets remove the size signal, at 42.2% added traffic in Wright and colleagues’ speech traces, but leave timing and packet counts visible.834 Coarse buckets cost less and leave some information.
Random padding: two assessments
The sources disagree most about random padding, and the disagreement mostly reflects different observation conditions. The BREACH authors, considering an active attacker who can repeat requests against the same secret, judged that random padding makes the attack take longer “only slightly”, because averaging removes it; they and the Rails maintainers preferred other mitigations.1223 The Whisper Leak researchers, considering a passive observer classifying topics from whole streamed responses, measured a modest drop in their classifier’s score and still judged the padded service probably no longer a practical risk.39 The two are compatible: the value of padding depends on whether the attacker can repeat measurements of the same secret, and on how much of the remaining signal (timing, totals) the attacker’s method can use.
Rate limiting bears on the first factor. BREACH proposed monitoring and throttling, while noting that this slows the attack without preventing it.12 Throttling limits how many samples an active attacker can induce, and padding raises the number needed, so against an active attacker the two combine. A passive classifier watches traffic the victim generates anyway, so throttling does not constrain it, while padding can still lower its performance.39
Why it keeps coming back
Since 2002 the pattern has repeated. A protocol adds compression or variable-length encoding for bandwidth, latency or a smooth display of streamed text; confidentiality is treated as the cipher’s job, and the cipher is sound; then someone notices that length is a function of content and that an attacker can influence the content or knows what it might be. Kelsey’s paper said almost exactly this in 2002; the BREACH authors wrote in 2013 that “there is nothing particularly special about HTTP and TLS in this side-channel.”112
A 2025 compression standard shows the lesson written into a specification. RFC 9842, Compression Dictionary Transport (September 2025), lets a previously sent resource serve as a dictionary for compressing later responses. Its security section cites the CRIME, TIME and BREACH summary in RFC 7457, warns that “if secret cookies are compressed using a public-data-only dictionary, information about the cookies is still leaked,” and notes that compressed output can reveal the dictionary and vice versa. Its stated aim for browsers and similar clients is that dictionary compression must not reveal information that would not otherwise be available: such a client may use dictionary compression only when both the dictionary and the response are fully readable by the requesting context, same-origin or passing a CORS check, and must drop a response that fails the checks. For servers the text is guidance, including an algorithm based on the Sec-Fetch-Site and Sec-Fetch-Mode request headers for identifying cross-origin requests where precautions such as forgoing dictionary compression should be considered.43
The site’s article on side-channel attacks applies the same framework to time and power. Compression channels differ from most of those in one respect Kelsey identified at the start: the leak belongs to the algorithm, so a correct implementation does not remove it.1
Conclusion
Compression makes length vary with content, and standard encryption does not hide length, so compressing before encrypting can expose information about the plaintext unless lengths are hidden. How much depends on what the observer can distinguish and do. Kelsey judged the impact small for bulk encryption and showed that it becomes a decryption tool when an attacker can add chosen text to a secret’s compression context and observe many lengths. CRIME demonstrated this against cookies in TLS and SPDY compression in 2012. Chrome switched TLS compression off, TLS 1.3 deleted it, and HTTP/2 replaced DEFLATE with HPACK, whose dynamic table forces whole-value guesses and whose specification forbids intermediaries to index values marked never-indexed. BREACH showed in 2013 that HTTP response compression offered the same oracle with TLS compression off; TIME and HEIST moved the measurement into the attacker’s JavaScript; Rails and Django masked their CSRF tokens; and Chrome began withholding cookies that lack a SameSite attribute from cross-site requests other than top-level navigations with safe methods. Variable-bit-rate speech and streamed language model output leak by a related route, passive inference from packet sizes against a known set of candidates, and the streamed-token channel needs no compression at all. Each working defence removes one ingredient at a cost. Random padding raises the number of measurements an active attacker needs, and evaluations from BREACH in 2013 to Whisper Leak in 2025 describe it as a partial mitigation.
Footnotes
- J. Kelsey, Compression and Information Leakage of Plaintext, Fast Software Encryption 2002, LNCS 2365, pp. 263-276, Springer, 2002 (author’s paper as hosted by gwern.net). https://gwern.net/doc/cs/cryptography/2002-kelsey.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19
- Microsoft Defender Security Research Team, J. Bar Or and G. McDonald, Whisper Leak: A novel side-channel attack on remote language models, Microsoft Security Blog, 7 November 2025. https://www.microsoft.com/en-us/security/blog/2025/11/07/whisper-leak-a-novel-side-channel-cyberattack-on-remote-language-models/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- E. Rescorla, RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3, August 2018. https://www.rfc-editor.org/rfc/rfc8446 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- R. Weiss, D. Ayzenshteyn, G. Amit and Y. Mirsky, What Was Your Prompt? A Remote Keylogging Attack on AI Assistants, 33rd USENIX Security Symposium, August 2024. https://www.usenix.org/system/files/usenixsecurity24-weiss.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- International Association for Cryptologic Research, CryptoDB entry: Compression and Information Leakage of Plaintext (FSE 2002), DOI 10.1007/3-540-45661-9_21. https://www.iacr.org/cryptodb/data/paper.php?pubkey=3091 (opens in a new tab) ↩
- P. Deutsch, RFC 1951: DEFLATE Compressed Data Format Specification version 1.3, May 1996. https://www.rfc-editor.org/rfc/rfc1951 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
- T. Be’ery and A. Shulman, A Perfect CRIME? Only TIME Will Tell, Black Hat Europe 2013, white paper. https://media.blackhat.com/eu-13/briefings/Beery/bh-eu-13-a-perfect-crime-beery-wp.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- C. V. Wright, L. Ballard, F. Monrose and G. M. Masson, Language Identification of Encrypted VoIP Traffic: Alejandra y Roberto or Alice and Bob?, 16th USENIX Security Symposium, 2007, full paper. https://www.usenix.org/legacy/event/sec07/tech/full_papers/wright/wright.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- P. Deutsch and J-L. Gailly, RFC 1950: ZLIB Compressed Data Format Specification version 3.3, May 1996. https://www.rfc-editor.org/rfc/rfc1950 (opens in a new tab) ↩1 ↩2
- P. Deutsch, RFC 1952: GZIP file format specification version 4.3, May 1996. https://www.rfc-editor.org/rfc/rfc1952 (opens in a new tab) ↩
- J. Rizzo and T. Duong, The CRIME attack, slides, ekoparty Security Conference, September 2012. https://docs.google.com/presentation/d/11eBmGiHbYcHR9gL5nDyZChu_-lCa2GizeuOfaLU2HOU/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
- Y. Gluck, N. Harris and A. Prado, BREACH: Reviving the CRIME Attack, 12 July 2013 (copy hosted by MIT CSAIL). https://css.csail.mit.edu/6.566/2014/readings/breach.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19 ↩20 ↩21 ↩22 ↩23
- S. Hollenbeck, RFC 3749: Transport Layer Security Protocol Compression Methods, May 2004. https://www.rfc-editor.org/rfc/rfc3749 (opens in a new tab) ↩
- Chromium Code Reviews, Issue 10825183: net: disable TLS compression with OpenSSL (agl), committed 3 August 2012. https://chromiumcodereview.appspot.com/10825183 (opens in a new tab) ↩
- NIST National Vulnerability Database, CVE-2012-4929 (CRIME, TLS), published 15 September 2012, API record. https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2012-4929 (opens in a new tab) ↩
- NIST National Vulnerability Database, CVE-2012-4930 (CRIME, SPDY), published 15 September 2012, API record. https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2012-4930 (opens in a new tab) ↩
- Y. Sheffer, R. Holz and P. Saint-Andre, RFC 7457: Summarizing Known Attacks on Transport Layer Security (TLS) and Datagram TLS (DTLS), February 2015. https://www.rfc-editor.org/rfc/rfc7457 (opens in a new tab) ↩1 ↩2
- Y. Sheffer, R. Holz and P. Saint-Andre, RFC 7525 (BCP 195): Recommendations for Secure Use of TLS and DTLS, May 2015. https://www.rfc-editor.org/rfc/rfc7525 (opens in a new tab) ↩
- Y. Sheffer, P. Saint-Andre and T. Fossati, RFC 9325 (BCP 195): Recommendations for Secure Use of TLS and DTLS, November 2022. https://www.rfc-editor.org/rfc/rfc9325 (opens in a new tab) ↩
- A. Prado, N. Harris and Y. Gluck, BREACH attack (project site, history and mitigations). https://www.breachattack.com/ (opens in a new tab) ↩1 ↩2
- CERT Coordination Center, Vulnerability Note VU#987798: BREACH vulnerability in compressed HTTPS, released 2 August 2013, revised 8 August 2013. https://www.kb.cert.org/vuls/id/987798 (opens in a new tab) ↩1 ↩2 ↩3
- NIST National Vulnerability Database, CVE-2013-3587 (BREACH), published 21 February 2020, API record. https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2013-3587 (opens in a new tab) ↩
- bradleybuda (GitHub user), CSRF token mask from breach-mitigation-rails gem, Ruby on Rails pull request #16570, merged 20 August 2014. https://github.com/rails/rails/pull/16570 (opens in a new tab) ↩1 ↩2 ↩3
- Django Software Foundation, Django 1.10 release notes, 1 August 2016. https://docs.djangoproject.com/en/stable/releases/1.10/ (opens in a new tab) ↩
- Django Software Foundation, Cross Site Request Forgery protection (reference documentation). https://docs.djangoproject.com/en/stable/ref/csrf/ (opens in a new tab) ↩1 ↩2
- D. Karakostas and D. Zindros, Practical New Developments on BREACH, Black Hat Asia 2016, white paper. https://www.blackhat.com/docs/asia-16/materials/asia-16-Karakostas-Practical-New-Developments-In-The-BREACH-Attack-wp.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
- M. West and M. Goodwin, Same-site Cookies, Internet-Draft draft-west-first-party-cookies-07, IETF, 6 April 2016. https://datatracker.ietf.org/doc/html/draft-west-first-party-cookies-07 (opens in a new tab) ↩1 ↩2
- The Chromium Projects, SameSite Updates (rollout timeline). https://www.chromium.org/updates/same-site/ (opens in a new tab) ↩
- S. Bingler, M. West and J. Wilander, Cookies: HTTP State Management Mechanism, Internet-Draft draft-ietf-httpbis-rfc6265bis-21, IETF, 24 September 2025. https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-21 (opens in a new tab) ↩
- M. Vanhoef and T. Van Goethem, HEIST: HTTP Encrypted Information can be Stolen through TCP-windows, Black Hat USA 2016, white paper. https://www.blackhat.com/docs/us-16/materials/us-16-VanGoethem-HEIST-HTTP-Encrypted-Information-Can-Be-Stolen-Through-TCP-Windows-wp.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- R. Peon and H. Ruellan, RFC 7541: HPACK: Header Compression for HTTP/2, May 2015. https://www.rfc-editor.org/rfc/rfc7541 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- M. Thomson and C. Benfield (eds.), RFC 9113: HTTP/2, June 2022. https://www.rfc-editor.org/rfc/rfc9113 (opens in a new tab) ↩1 ↩2 ↩3
- C. Krasic, M. Bishop and A. Frindell (ed.), RFC 9204: QPACK: Field Compression for HTTP/3, June 2022. https://www.rfc-editor.org/rfc/rfc9204 (opens in a new tab) ↩1 ↩2 ↩3
- C. Perkins and JM. Valin, RFC 6562: Guidelines for the Use of Variable Bit Rate Audio with Secure RTP, March 2012. https://www.rfc-editor.org/rfc/rfc6562 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- USENIX, Language Identification of Encrypted VoIP Traffic: Alejandra y Roberto or Alice and Bob? (abstract page), 16th USENIX Security Symposium, 2007. https://www.usenix.org/conference/16th-usenix-security-symposium/language-identification-encrypted-voip-traffic-alejandra-y (opens in a new tab) ↩1 ↩2
- C. V. Wright, L. Ballard, S. E. Coull, F. Monrose and G. M. Masson, Spot me if you can: Uncovering spoken phrases in encrypted VoIP conversations, 2008 IEEE Symposium on Security and Privacy, DOI 10.1109/SP.2008.21 (copy hosted by gwern.net). https://www.gwern.net/doc/cs/cryptography/2008-wright.pdf (opens in a new tab) ↩1 ↩2
- A. M. White, A. R. Matthews, K. Z. Snow and F. Monrose, Phonotactic Reconstruction of Encrypted VoIP Conversations: Hookt on fon-iks, 2011 IEEE Symposium on Security and Privacy, DOI 10.1109/SP.2011.34. https://www.ieee-security.org/TC/SP2011/PAPERS/2011/paper001.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- C. Martinho and M. Chen, Mitigating a token-length side-channel attack in our AI products, Cloudflare blog, 14 March 2024. https://blog.cloudflare.com/ai-side-channel-attack-mitigated (opens in a new tab) ↩
- G. McDonald and J. Bar Or, Whisper Leak: a side-channel attack on Large Language Models, arXiv:2511.03675v1, 5 November 2025. https://arxiv.org/abs/2511.03675 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
- L. Vandevenne et al., Compression, in Web Almanac 2021, HTTP Archive, 1 December 2021. https://almanac.httparchive.org/en/2021/compression (opens in a new tab) ↩
- J. Alakuijala and Z. Szabadka, RFC 7932: Brotli Compressed Data Format, July 2016. https://www.rfc-editor.org/rfc/rfc7932 (opens in a new tab) ↩
- A. Mayrhofer, RFC 8467: Padding Policies for Extension Mechanisms for DNS (EDNS(0)), October 2018. https://www.rfc-editor.org/rfc/rfc8467 (opens in a new tab) ↩
- P. Meenan (ed.) and Y. Weiss (ed.), RFC 9842: Compression Dictionary Transport, September 2025. https://www.rfc-editor.org/rfc/rfc9842 (opens in a new tab) ↩

SecSIG