Source-linked AI summary

ScrambleSuit: A Polymorph Network Protocol to Circumvent Censorship

Philipp Winter, Tobias Pulls, Juergen Fuss

arXiv:1305.3199v1cs.CR

TL;DR

Censors use DPI, active probing, and traffic classification to block circumvention tools, while Tor connections can be exposed by probing and static flow signatures. ScrambleSuit combines shared-secret authentication with traffic morphing; its evaluation suggests protection against censors that do not significantly overblock, with low protocol overhead.

  • Problem

    Censors can use active probing and static flow signatures to identify and block circumvention tools such as Tor.

    Source: §1 · p. 1
  • Method

    ScrambleSuit is a thin TCP-layer obfuscation protocol that uses authentication and morphs packet lengths and inter-arrival times.

    Source: §1 · p. 1, §7 · p. 10
  • Results

    The evaluation suggests strong protection against censors that do not significantly overblock, and the authors report low protocol overhead.

    Source: §7 · p. 10
  • Takeaways & Limitations

    The authors conclude that ScrambleSuit’s low overhead makes it comfortable for web surfing and other low-latency applications.

    Source: §7 · p. 10

    The threat model assumes censors avoid whitelisting and cannot access or influence censored users’ computers.

    Source: §3.1.1 · p. 4

Abstract

from arXiv · show

Deep packet inspection technology became a cornerstone of Internet censorship by facilitating cheap and effective filtering of what censors consider undesired information. Moreover, filtering is not limited to simple pattern matching but makes use of sophisticated techniques such as active probing and protocol classification to block access to popular circumvention tools such as Tor. In this paper, we propose ScrambleSuit; a thin protocol layer above TCP whose purpose is to obfuscate the transported application data. By using morphing techniques and a secret exchanged out-of-band, we show that ScrambleSuit can defend against active probing and other fingerprinting techniques such as protocol classification and regular expressions. We finally demonstrate that our prototype exhibits little overhead and enables effective and lightweight obfuscation for application layer protocols.

1. INTRODUCTION

The paper frames DPI, active probing, and static traffic signatures as tools that let censors block circumvention services such as Tor. It introduces ScrambleSuit, a lightweight transport layer designed to address these threats while balancing obfuscation with usability.

1. INTRODUCTION

  • Censors use DPI to filter information, while active probing and static flow signatures expose circumvention tools such as Tor to blocking.Active probing can identify suspected Tor connections and blacklist bridges; a characteristic packet-length signature can also support classification.Source: §1 · p. 1
  • ScrambleSuit is a thin layer above TCP that obfuscates application traffic and works with applications supporting SOCKS.The authors envision its use with Tor and VPN.Source: §1 · pp. 1–2
  • Its pseudo-random payload removes predictable patterns that could serve as DPI fingerprints or regular-expression matches.The authors describe the traffic as computationally indistinguishable from randomness to an observer.Source: §1 · p. 2
  • Its polymorphism changes traffic shape to make packet-length flow characteristics harder for classifiers to exploit.The introduction identifies packet-length distributions as one such characteristic.Source: §1 · p. 2
  • A shared secret exchanged out of band lets the server answer only after the client proves knowledge of it, defending against active probing.The paper presents shared-secret authentication and polymorphism as practical defenses against active probing and protocol classifiers.Source: §1 · p. 2
  • The design favors usability with acceptable obfuscation, integrates into Tor without architectural changes, and is evaluated in a functional prototype.The authors say moderate protocol overhead supports comfortable web surfing, but acknowledge that unblockable protocols do not exist.Source: §1 · p. 2

2. RELATED WORK

The related work spans protocol identification, obfuscation strategies, and undetectable authentication. ScrambleSuit is positioned against approaches that mimic cover protocols or leave flow properties exposed.

2.1 Protocol Identification

  • Protocol-identification research examines detecting tunneling, Skype, and encrypted traffic; Hjelmvik and John’s evasion suggestions informed some ScrambleSuit design choices [27, 35].Wiley’s Bayesian classification framework is described as an important first step toward comparing blocking-resistant transports.Source: §2.1 · p. 2

2.2 Protocol Obfuscation

  • Obfuscation systems vary in what they conceal: obfs2 and obfs3 can be actively probed and leave flow properties undisguised, while Dust pads packet lengths but ignores inter-arrival times.StegoTorus and SkypeMorph mimic cover protocols, an approach ScrambleSuit avoids; prior work found mismatches with their covers.Source: §2.2 · p. 2
  • Protocol designers have also been urged to learn DPI regular expressions and map ciphertext to expressions that pass filters, but this requires knowing the expressions.The passage notes that DPI-box expressions are typically difficult to obtain in practice.Source: §2.2 · p. 3
  • Other work addresses bridge discovery and IP blocking through rendezvous and address-change signaling or short-lived web-user proxies.Flash proxies require clients to accept incoming TCP connections, which may not be possible behind NAT.Source: §2.2 · p. 3

2.3 Undetectable Authentication

  • Undetectable-authentication systems include SilentKnock and its Tor-oriented adaptation BridgeSPA, which authenticates with a TCP SYN but has NAT and Linux-kernel constraints.ScrambleSuit does not hide that a bridge is alive, but is not hindered by NAT or connection hijacking.Source: §2.3 · p. 3

3. ARCHITECTURAL OVERVIEW

ScrambleSuit is an obfsproxy module that encrypts, reshapes, and delays traffic between endpoints, with SOCKS access for local applications. Its threat model covers a censor using payload and flow analysis, active probing, and classifiers, while assuming economic constraints and no access to censored users’ computers.

3. ARCHITECTURAL OVERVIEW

  • ScrambleSuit encrypts outgoing data, morphs packet sizes, and delays transmission; incoming messages are reassembled and decrypted before delivery to the local application.The architecture also provides a SOCKS interface through obfsproxy, which can serve any application supporting SOCKS.Source: §3 · p. 3
  • ScrambleSuit aims to remove payload fingerprints, including Tor’s TLS cipher list, and replace Tor’s characteristic 586-byte packets with a randomly chosen packet-length distribution.It also camouflages inter-arrival times with small random sleep intervals before writing data on the wire.Source: §3 · p. 3

3.1 Threat Model

  • The threat model is a nation-state censor that uses payload analysis, flow analysis, and active probing to identify and block unwanted protocols.The censor can monitor and tamper with traffic, hijack TCP sessions, and use statistical classifiers, including on a slow path.Source: §3.1 · pp. 3–4

3.1.1 Adversary Limitations

  • The censor is assumed to avoid whitelisting and blocking on weak evidence because of economic incentives to minimize collateral damage.The model also assumes the censor cannot access or otherwise influence censored users’ computers.Source: §3.1.1 · p. 4

4. PROTOCOL DESIGN

The section introduces the protocol-design material that follows.

4. PROTOCOL DESIGN

  • The section covers ScrambleSuit’s active-probing defense, encryption, encoding, header format, and polymorphism.Source: §4 · p. 4

4.1 Thwarting Active Probing

ScrambleSuit uses out-of-band secrets to authenticate clients and defend against active probing. It offers session tickets and an extended UniformDH handshake, with tickets preferred for security and repeated connections.

4.1 Thwarting Active Probing

  • The two authentication mechanisms require a shared out-of-band secret, and the server responds only when the client proves knowledge of it.The session-ticket mechanism is designed for Tor’s ecosystem; the second mechanism is intended to improve compatibility with protocols such as VPN.Source: §4.1 · p. 4

4.1.1 Proof-of-Work (Again) Proves Not to Work

  • Client puzzles were rejected because a censor with parallel resources could solve many puzzles at once, while making puzzles costly enough for the censor would also burden clients.The authors conclude puzzles could slow a well-equipped censor but would not stop active probing.Source: §4.1.1 · p. 4

4.1.2 Session Tickets

  • Session tickets foil active probing and replay attacks and provide forward secrecy, but their reuse across Tor users conflicts with replay protection and creates a handshake distinguisher.Each successful connection issues a replacement ticket; server state is reduced because ticket state is stored by clients.Source: §4.1.2 · pp. 4–5

4.1.4 Extending Uniform Diffie-Hellman

  • UniformDH’s anonymous handshake is extended with secret-keyed MACs and padding to authenticate the exchange and resist active probing and replay.The MAC includes an hourly time value, and the server caches it for one hour; after a successful agreement, the server issues a session ticket for later connections.Source: §4.1.4 · p. 6
  • Both authentication schemes’ payloads are computationally indistinguishable from randomness, so a censor cannot tell whether authentication used UniformDH or a session ticket.Source: §4.1.4 · p. 6
  • UniformDH is less secure when its shared key is used by multiple clients: an eavesdropping malicious client can conduct active MITM attacks, so session tickets are preferred.The authors position UniformDH chiefly as a way to fit ScrambleSuit into Tor infrastructure.Source: §4.1.4 · p. 6

4.1.5 Usability Considerations

  • Users need an IP address, TCP port, and either a UniformDH secret or session-ticket tuple; Base32 encoding is intended to make verbal sharing less error-prone.Source: §4.1.5 · p. 6

4.2 Header Format and Confidentiality

ScrambleSuit frames variable-sized messages with optional padding, integrity protection, encrypted payloads, and flags separating application data from ticket signaling.

4.2 Header Format and Confidentiality

  • Messages use a custom format with variable sizes and optional padding that the recipient discards.The header includes a total-message length and a payload length, allowing padding to be distinguished from application data.Source: §4.2 · p. 6
  • A 16-byte HMAC-SHA256-128 authenticates and protects the integrity of the encrypted message remainder using a key derived from the shared master key.The design follows encrypt-then-MAC.Source: §4.2 · p. 6
  • The one-byte message flag identifies application data, newly issued session tickets, and ticket-receipt confirmations.The remaining flag bits are reserved for future use, including possible flow-property negotiation.Source: §4.2 · p. 7
  • ScrambleSuit encrypts the payload, padding, and header with 256-bit AES in counter mode, using directional keys and nonces derived from the shared secret via HKDF-SHA256.For Tor, this wraps already encrypted Tor traffic in another encryption layer.Source: §4.2 · p. 7

4.3 Changing Shape

ScrambleSuit randomizes packet lengths and inter-arrival times to make flow-based protocol classification less accurate, while acknowledging that traffic analysis remains possible.

4.3 Changing Shape

  • The design randomizes packet lengths and inter-arrival times because these flow metrics can reveal the transported application protocol despite encryption.The stated aim is to decrease the accuracy of classifiers used to detect ScrambleSuit.Source: §4.3 · p. 7

4.3.1 Packet Length Adaption

  • Traffic morphing was unsuitable because ScrambleSuit’s target distribution changes and its source distribution is unknown for arbitrary application protocols.The authors instead use naive sampling; a throughput-optimizing algorithm is left beyond the paper’s scope.Source: §4.3.1 · p. 7, §4.3 · p. 7
  • For packet-length adaptation, ScrambleSuit samples a fresh distribution per connection, then pads or splits each application-data chunk to match sampled lengths.It disables Nagle’s algorithm to affect packet lengths in user space, at the cost of increased protocol overhead.Source: §4.3.1 · p. 7, §4.3 · p. 7

4.3.2 Inter Arrival Time Adaption

  • For inter-arrival adaptation, ScrambleSuit samples random delays and sleeps before sending, but can only increase—not decrease—packet spacing.Sleep intervals stay below 100 milliseconds to balance obfuscation and throughput, since longer delays directly reduce throughput.Source: §4.3.2 · p. 7

4.3.3 Shortcomings

  • Traffic analysis can be powerful when a censor chooses features well, while strong defenses are believed to be expensive.The design targets obvious flow features while seeking enough throughput for web surfing and low-latency applications.Source: §4.3.3 · p. 8
  • Derived metrics such as total bytes, packet direction, and burstiness remain costly to disguise and may let a censor guess the application type.The authors view traffic analysis as uncertain and believe it may select traffic for closer inspection, but not reliably justify blocking flows.Source: §4.3.3 · p. 8

5. EXPERIMENTAL EVALUATION

Experiments found that ScrambleSuit’s packet-length and timing distributions differed from Tor’s, while its measured overhead and goodput reflected a trade-off between obfuscation and throughput.

5.1 Blocking Resistance

  • The blocking-resistance comparison downloaded a 1 MB Linux kernel file once over Tor and five times over ScrambleSuit.Consecutive Tor runs differed mostly in the ratio of 586-byte to 1448-byte packets, so only one Tor run was plotted.Source: §5.1 · p. 8
  • Client-to-server packet lengths show Tor’s 586-byte packets, while more than 50% of server-to-client Tor traffic consists of 1448-byte packets; ScrambleSuit’s empirical distributions visibly deviate.The reported 586-byte packets are especially prevalent client-to-server; the comparison uses five consecutive ScrambleSuit downloads.Source: Figure 9 · p. 8, Figure 10 · p. 8, §5.1 · p. 8
  • Two-sample Kolmogorov-Smirnov tests rejected equality between Tor’s packet-length and inter-arrival distributions and each ScrambleSuit distribution.The packet-length distributions visibly differed, as did the inter-arrival distributions.Source: §5.1 · p. 8

5.2 Performance

  • Performance measurements used 25 downloads of a 1,000,000-byte random file over HTTP, Tor, and ScrambleSuit, with a new circuit per download and the same Tor entry guard.The reported table summarizes mean and standard deviation for goodput, transferred KBytes, and total overhead.Source: §5.2 · pp. 8–9, Table 1 · p. 9
  • 40% total protocol overhead (standard deviation 10%) was measured for ScrambleSuit, the highest among HTTP, Tor, and ScrambleSuit.The measurements include IP and TCP headers; the authors attribute overhead variation to shape shifts.Source: Table 1 · p. 9, §5.2 · p. 9
  • ScrambleSuit achieved approximately one third of Tor’s roughly 280 KB/s average goodput in the reported download measurements.The authors also report high standard deviation for Tor and ScrambleSuit, attributing it mostly to circuit throughput differences and, for ScrambleSuit, varying shapes.Source: §5.2 · p. 9

6. DISCUSSION

The discussion examines residual attacks and open problems: ScrambleSuit limits what unauthenticated probing reveals, but does not hide server aliveness or solve bridge distribution.

6.1 Attacks on ScrambleSuit

  • A censor can probe a server, which will not respond without prior authentication, but ScrambleSuit still reveals that the server is online and unwilling to talk without correct data.Unlike SilentKnock and BridgeSPA, it does not disguise its “aliveness”; the authors say this simplifies deployment by avoiding platform dependencies.Source: §6.1 · p. 9
  • MAC verification detects injected or modified data, unknown session keys impede connection hijacking, and dropped packets are handled by the application protocol and may trigger TCP retransmissions.Source: §6.1 · p. 9
  • Payload analysis yields data computationally indistinguishable from randomness, while changing flow distributions still permit traffic analysis with uncertainty and potential false positives.The authors prioritize thwarting active probing because it enables deterministic protocol identification.Source: §6.1 · p. 10

6.2 Future Work

  • Bridge-descriptor distribution remains an open problem alongside making subsequent Tor connections hard to identify; the paper focused on the latter.The discussion notes reputation-based models for maximizing bridge aliveness.Source: §6.2 · p. 10
  • ScrambleSuit does not mimic a cover protocol, so it hides among unknown protocols rather than appearing as a known one; its expected protection depends on network protocol diversity.The authors state that no protocol is fingerprintless.Source: §6.2 · p. 10

7. CONCLUSION

ScrambleSuit provides lightweight obfuscation for application protocols, using authentication to defend against active probing and morphing to disguise packet lengths and inter-arrival times. Prototype evaluation suggests strong protection against censors who do not overblock significantly, with low overhead suited to low-latency applications.

7. CONCLUSION

  • Authentication mechanisms defend against active probing, while morphing disguises packet lengths and inter-arrival times from classifiers.The protocol provides lightweight obfuscation for application protocols such as Tor and VPN.Source: §7 · p. 10
  • Evaluation suggests strong protection against censors who do not overblock significantly.The authors also report low protocol overhead, making ScrambleSuit comfortable to use for web surfing and other low-latency applications.Source: §7 · p. 10
  • The authors developed a ScrambleSuit prototype and used it for experimental evaluation.Source: §7 · p. 10
Loading 1305.3199v1…