obfsgen: Generative Tunnel Obfuscation

summary

The gist

Encrypted tunnels are widely used to circumvent censorship, which has drawn censors’ efforts to detect and block them.<ref:2611.15019#pg2>.

In short

obfsgen is a schedule-driven obfuscator designed to hide encrypted tunnel traffic from censors. It learns 'normal' background traffic using generative sequence models to create dynamic sending schedules that blend in with typical network activity. This approach aims to make tunnels indistinguishable from normal data flows.

Key concepts

Schedule-Driven Obfuscator
This type of obfuscator decides when and how much data to send independently of the application's needs. Unlike older methods, it can create any traffic shape, but the challenge is defining a 'good shape' that doesn't look suspicious.
Generative Sequence Model
obfsgen uses this model to predict future traffic shapes based on the entire history of normal background data. It captures long-range dependencies in the data, allowing it to generate realistic sending schedules for the tunnel traffic.
Normal Traffic Definition
Normal traffic is defined as background network data that a censor cannot tell apart from actual obfuscated tunnel traffic. obfsgen learns this by collecting and modeling large amounts of non-tunneling network activity.

Terminology used across episodes

This episode discusses

The paper

obfsgen: Generative Tunnel Obfuscation · Read on arXiv

Kaidong Wu, Wentao Du, Shinan Liu, Diwen Xue

Chinese University of Hong Kong · University of Hong Kong

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "obfsgen: Generative Tunnel Obfuscation".

Paper summary: Nadia: So the paper 'obfsgen: Generative Tunnel Obfuscation' is looking at encrypted tunnels that are used to bypass censorship and how censors try to spot them by looking at the traffic shape instead of just the content.

Elias: Right. The core idea here is that existing methods, which are application-driven, can only add to the shape that the app creates, but this paper introduces a schedule-driven obfuscator that decides when and how much to send on its own schedule.

Priya: But if you decide your own schedule, what even counts as a good shape for blending into normal traffic? That sounds like a huge problem.

Nadia: Exactly. The paper argues that most of these new patches can't hide the fingerprints tunnels leave behind by design, so they need a better way to define what 'normal' looks like to the system.

Elias: To solve that, obfsgen uses a generative sequence model of normal traffic to predict the future shape of a flow based on its entire history.

Priya: So it learns what normal is by looking at background traffic and using this model to sample a schedule for the tunnel traffic? What kind of data are they using to define this normal pattern?

Elias: They collect background traffic from a gateway on campus over a month just to capture the reference for normal, and then they learn a generative sequence model from that history.

Nadia: That sounds like they're trying to find those long-range dependencies in the traffic shape, not just the immediate next packet.

Elias: They use this model to predict the next record from its history by learning one function that updates a state with each record and then predicting the next record from that state.

Priya: And how does that help distinguish a tunnel from background noise if it's based on predicting future shape? Is this just about making the tunnel traffic look like it belongs somewhere?

Elias: The paper describes an architecture with five components, including a scheduler, the sequence model, a timer, a buffer, and a session layer.

Nadia: And they handle timing by offering two modes: synchronous mode and asynchronous mode. How does that affect how the tunnel traffic actually flows?

Elias: In synchronous mode, both ends replace their observations with one plan called a synchronous stream that starts with the opener and continues with records sampled from the synchronous model until the end of the file.

Priya: If they use this predictive model to create a schedule, what are you measuring when you evaluate how good it is? What metrics are they using to judge if obfsgen actually works?

Paper summary: Elias: They evaluate it on three axes: distinguishability, overhead, and computational cost. In terms of distinguishability, obfsgen reduces a blocklisting censor to little better than random guessing with a score between zero point five six one and zero point five eight one.

Nadia: That sounds like the performance is actually pretty good for something this complex. What about the overhead? Does it slow things down too much in practice?

Elias: The paper quantifies the overhead by measuring latency and bandwidth added over baselines, and they run on a single CPU core without needing a GPU, using eight point eight megabytes of integer eight weights.

Priya: That's a lot of detail to process in real time. What's the main limitation you see with this approach? Where does it stop working?

Elias: The evaluation shows that obfsgen is still far from being completely indistinguishable because both modes rely on mechanisms that are designed rather than learned from normal traffic itself, and they suggest a hierarchical obfuscator as a way forward.

Nadia: So, the paper suggests a second sequence model to decide when each flow opens and how long it stays open? That seems like adding complexity.

Elias: It does, and the authors say that keeping the weights secret helps with detection difficulty but also prevents them from being shared publicly. They conclude that obfsgen realizes this design using a generative sequence model of such traffic.

Nadia: So, to sum up what we've heard about 'obfsgen: Generative Tunnel Obfuscation', it’s a schedule-driven system that uses models of normal traffic history to create schedules for tunnel traffic, aiming to blend in with background noise.

Elias: And the implication is that for future work, they think we need a hierarchical approach where one model decides flow opening and another decides how long those flows last.

Priya: So, what does this mean for us on the ground? If this is better than existing methods, does it mean tunnels are now much harder to block?

Nadia: It means that for a censor relying on simple shape analysis, obfsgen makes the traffic look much more like normal background traffic, making it harder to flag.

Elias: The paper points out that what is normal varies depending on the vantage point of the censor and which network it monitors, so they suggest a modular approach where each deployment picks its own reference for normal.

Priya: So if we're looking at real-world deployment, we can't just use one model; every environment needs to define what normal is for itself.

Nadia: It’s about realizing that a good schedule blends into the traffic that is considered normal, and obfsgen uses a generative sequence model of such traffic to achieve that.

Elias: We hope this work, and the problems it leaves open, draws more attention from the community to schedule-driven obfuscation research.

Conclusion: Nadia: So we've been talking about obfsgen, which is this new method for making encrypted tunnels less noticeable to censors by using traffic shape prediction based on historical normal traffic patterns.

Elias: Exactly. It’s this schedule-driven approach that tries to make the tunnel traffic look like background noise instead of something suspicious because it ignores what the application is actually doing and just focuses on timing and flow.

Nadia: The authors are pushing this idea, saying that a good schedule should blend into what's considered normal traffic, which is a big shift from older methods that only tried to mimic the application's own shape.

Elias: They realize most of these new patching techniques still miss some fingerprints left by tunnels because they aren't learning from the real normal traffic itself, so obfsgen uses a generative sequence model to build those schedules.

Nadia: So, the main point here is that schedule-driven obfuscation is the next step, and it should blend into the baseline traffic we already have on campus or somewhere else.

Elias: It’s about realizing that a good schedule needs to be learned from normal traffic history rather than just being designed to look like something random.

Nadia: It sounds like they're opening up a whole new way to think about how we hide things in tunnels, moving away from just making the tunnel traffic look like garbage.

Elias: And the authors are leaving some questions open, especially about how this works across different network environments, which is something we should look at next.

More episodes

← Home