Crossing the Streams: SSH Plaintext Recovery via a Common Compression Context in Multiplexed Channels
Fabian Bäumer, Marcus Brinkmann
Key points
From the paper's conclusion- We show that SSH channel multiplexing creates a previously unrecognized compression side channel: all channels on a connection share the same compression context.
Abstract
SSH is the standard protocol for secure remote administration of servers. At the transport layer, SSH uses the Binary Packet Protocol (BPP) for encrypted and authenticated communication. Above this, the SSH Connection Protocol multiplexes one or more logical channels over a single connection, supporting interactive shells, port forwarding, and related functionality. We show that SSH channel multiplexing creates a previously unrecognized compression side channel: all channels on a connection share the same compression context. When compression is enabled, an attacker can inject partially chosen plaintext into a channel and observe the length of the resulting ciphertext on the network. This enables an adaptive chosen-plaintext attack that recovers secrets from one channel by interacting with another. While related attacks such as CRIME and BREACH have been studied extensively for HTTP over TLS, this is, to our knowledge, the first compression side-channel attack on SSH and the first SSH analysis to consider a combined passive eavesdropper and web attacker threat model. We further demonstrate the attack in three different application scenarios and evaluate its effectiveness under varying levels of protocol noise. We find that, in the lowest-noise scenario, an 8-character secret over a 26-letter alphabet can be recovered using at most 276 guesses. Finally, we analyze the SSH ecosystem for compression support and other implementation characteristics that influence the practical efficacy of the attack.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Robust & Scalable Website Fingerprinting via Minimal DRAM TrafficarXiv · 2026
- Small Leaks Sink Great Ships: Automated Analysis of Protocols That Tolerate Low-Entropy KeysarXiv · 2026
- SPECTER: Covert Data Exfiltration from Air-Gapped Systems via USB Power ModulationarXiv · 2026
- A Bleichenbacher bit-by-bit oracle attack from partial message knowledgearXiv · 2026
- Nothing Breaks: No Single Peer Can Soundly Gate Post-Quantum DeliveryarXiv · 2026
- Authenticated Browsing: Reconciling Application-Layer Flooding Defense with Data ConfidentialityProceedings of the ACM on Networking · 2026