Seeing through Network-Protocol Obfuscation

Liang Wang, Kevin P. Dyer, Aditya Akella, Thomas Ristenpart, Thomas ShrimptonCCS 2015

TL;DR

This paper presents the first in-depth empirical analysis of how effectively current Deep Packet Inspection (DPI) systems can detect Tor's network protocol obfuscation techniques. The authors developed a framework to evaluate existing and new detection methods, concluding that most deployed obfuscators can be reliably detected by determined censors with low false-positive rates.

What Problem Does This Paper Address?

Internet censorship is a growing concern, and many users rely on circumvention tools like Tor to bypass these restrictions. Censors, in turn, employ Deep Packet Inspection (DPI) to identify and block these tools by analyzing network traffic patterns. In response, developers have created protocol obfuscation techniques to make circumvention traffic appear benign. While these obfuscators have been effective against existing DPI, the authors question whether censors can adapt their DPI to detect these newer, more sophisticated methods. Specifically, they aim to answer: can censors reliably detect these obfuscation techniques without blocking a significant amount of legitimate traffic (i.e., with low false-positive rates)?

Methods

The researchers developed a comprehensive framework for evaluating DPI-based detection of network protocol obfuscation. This framework utilizes two main types of datasets:

  • Campus Network Traces: Large-scale packet captures from university networks, providing a realistic view of background traffic to assess false-positive rates.
  • Synthetic Tor Traces: Traffic generated by Tor and its pluggable transports in controlled environments to evaluate true-positive rates.

They explored three categories of detection attacks:

  1. Semantics-Based Attacks: These attacks look for deviations from the expected behavior of "benign" protocols that obfuscators try to mimic.
  2. Entropy-Based Attacks: These methods analyze the randomness (entropy) of packet payloads, expecting obfuscated traffic to appear more random than typical protocols like HTTP.
  3. Machine Learning (ML)-Based Attacks: This approach uses various features (entropy, timing, packet headers) to train classifiers that can distinguish between obfuscated and normal traffic.

Datasets

The paper utilizes several datasets:

  • Campus Network Traces:
    • OfficeDataset: 389 GB of traffic from two academic departments.
  • CloudDataset: Traffic between campus networks and public cloud providers (EC2, Azure).
  • WifiDataset: Traffic from campus WiFi access points. These datasets collectively contain approximately 14 million TCP flows and are used primarily for evaluating false-positive rates.

  • Synthetic Tor Traces:

    • TorA, TorB, TorC: Traces of Tor traffic using various pluggable transports (obfsproxy3, obfsproxy4, FTE, meek-amazon, meek-google) interacting with real websites. These are used for evaluating true-positive rates and the performance of detection methods.
  • HandShakeDataset: A subset of handshake messages from various protocols, used for evaluating attacks that rely on initial packet analysis.

Key Insights and Ideas

  • "No fingerprint" is a fingerprint: Randomizer obfuscators, which aim to emit random bytes, can be detected by identifying the lack of conventional protocol fingerprints, especially in the initial packets.
  • Semantics-based attacks are tricky: While some semantics-based attacks can be effective, their practical utility is often limited by high false-positive rates due to the inherent "long tail" of non-standard behavior in real-world network traffic.
  • Entropy is a strong indicator: Entropy-based tests, especially when combined with simple length heuristics, are surprisingly effective at detecting randomizer and FTE obfuscators.
  • Meek is the hardest nut to crack: Tunneling obfuscators like meek, which leverage legitimate protocols like HTTPS, require more sophisticated, ML-based approaches for detection.
  • Portability is a challenge for ML: ML classifiers trained in one network environment (e.g., wired vs. wireless, different OS) perform significantly worse when applied to traffic from a different environment, suggesting censors need to adapt their models to local conditions.

Key Results

  • Obfsproxy3/4: Detectable with 100% true-positive rate using just the first packet, with a false-positive rate of 0.2% on campus traces.
  • FTE: Detectable with high true-positive rates and low false-positive rates using URI entropy and length checks.
  • Meek: Detectable using ML-based classifiers, achieving high true-positive rates (around 97-98%) and low false-positive rates (around 0.06-0.19%) on synthetic data.
  • Overall ML Classifier Performance: The best ML classifier achieved a PR-AUC of 0.987 on synthetic data, with a false-positive rate as low as 0.003. On campus traces, the overall false-positive rate for ML classifiers was around 0.98%.
  • False Positive Impact: Even with a 1% false-positive rate, the degradation of Internet performance for legitimate users could be significant, though censors might tolerate this. The analysis suggests that the "slow path" (more resource-intensive checks) for flagged traffic would not be overwhelmed.

Limitations and Future Work

  • Obfuscator Evolution: The authors acknowledge that their detection techniques could be circumvented by future updates to obfuscation tools. The ongoing "arms race" between censors and obfuscators is highlighted as a key challenge.
  • Semantics-Based Attack Limitations: The paper points out that semantics-based attacks need to better account for the noisy nature of real-world network traffic to reduce false positives.
  • ML Classifier Portability: The significant drop in performance when ML classifiers are applied to traffic from different environments is a major limitation. Future work should focus on improving the portability of these models.
  • Open Source Framework: The authors plan to open-source their analysis framework to aid future research in this area.
  • Robust Obfuscators: The paper concludes by posing the open problem of developing truly robust, future-proof obfuscation mechanisms that can withstand future DPI advancements.

Summary updated

BibTeX
@inproceedings{wang2015seeing,
  author = {Liang Wang and Kevin P. Dyer and Aditya Akella and Thomas Ristenpart and Thomas Shrimpton},
  title = {{Seeing through Network-Protocol Obfuscation}},
  booktitle = {CCS},
  year = {2015},
  doi = {10.1145/2810103.2813715},
}
Figure