arXiv:2608.20160cs.CRAug 2026

Manuscript Offprint

arXiv:2608.20160

Chameleon: Robust Defense Against Tor Website Fingerprinting via Many-to-Many Traffic Morphing

Yuwen Cui, Kai Wei, Kehan Shen, Ning Wang, Zhuo Lu, Yao Liu, Guangjing Wang

Yuwen Cui*, Kai Wei*, Kehan Shen*, Ning Wang*, Zhuo Lu†, Yao Liu*, Guangjing Wang*

  • Bellini College of Artificial Intelligence, Cybersecurity and Computing, University of South Florida

† Department of Electrical and Computer Engineering, University of South Florida

Abstract—Website fingerprinting (WF) attacks can infer users' browsing activities from encrypted Tor traffic by exploiting side-channel features. Although many WF defenses have been proposed, we find that most existing defenses create learnable web trace mapping features. We further show that robustness against adversarial training does not necessarily imply robustness against defense-aware autoencoder (DAAE)-based attacks.

To address these limitations, we present Chameleon, a robust WF defense based on many-to-many randomized traffic morphing. Chameleon selects morphing candidates with high intra-class diversity and low inter-class disparity. Chameleon randomly maps each webpage trace to multiple candidates, and allows different webpages to share morphing targets, thereby increasing adversarial uncertainty. For practical Tor deployment, Chameleon introduces a radix-trie-based synchronization mechanism that enables pluggable transport (PT) endpoints to identify consistent morphing traces using packet-direction prefixes, together with trace mutation and normalized prefix matching to reduce overhead. We evaluate Chameleon against six state-of-the-art defenses and five WF attacks on three public datasets in closed-and open-world settings. Compared with Adaptive Tamaraw, Chameleon reduces adversarial-training-based attack accuracy by up to 36.74% while reducing bandwidth and time overhead by 34.12% and 60.38%, respectively. Under DAAE-based RF attacks on GTT23, Chameleon limits attack performance to 35.19% F1-score while Adaptive Tamaraw only limits it to 88.22% F1-score. In the real-world PT bridge evaluation, Chameleon substantially reduces the effectiveness of strong WF attacks while incurring only 16.25% time overhead.

I. INTRODUCTION

Encrypted networks such as Tor [1] remain vulnerable to website fingerprinting (WF) attacks [2]–[5]. For example, observable side-channel information in Tor network traffic, such as traffic timing [6]–[9], traffic bursts [3], [10], and traffic direction [5], [11], can still reveal web browsing activities.

Many defense mechanisms [12]–[14] have been proposed to defend against WF attacks. For example, adaptive padding-based obfuscation techniques [13], [15], [16] insert dummy packets to obfuscate features, such as packet timing and traffic bursts. Adversarial perturbation techniques [17]–[20] generate adversarial noise to misguide deep learning-based WF attacks. Regularization-based methods [8], [14], [21] transform traffic traces into regularized sequences with similar patterns, reducing the distinguishability among different website traces.

However, we discover that most existing defenses create stable, learnable defense-induced mappings, which can be utilized by defense-aware attacks. Specifically, we assume a strong WF adversary who is aware that a defense is deployed on Tor but does not know the specific defense mechanism

Figure

Fig. 1: An exemplar of WF defense evaluation on the GTT23 [22] dataset under adversarial training (AT)-assisted and DAAE-assisted deep fingerprinting (DF) [4] attack. The legend includes non-defended traffic (NoDef), traffic defended with different defenses against the DF attack without adversarial training (w/o AT), against the DF attack with adversarial training (w/ AT), and against the DAAE-assisted DF (DAAE).

being used. The adversary can train a Defense-Aware Autoencoder (DAAE) to learn defense-induced perturbation patterns using paired original Tor website traces and defense-perturbed traces. The specific design of DAAE is in Appendix B. We find that DAAE can easily recover raw traffic features from previously unseen defended traces. As shown in Figure 1, existing defenses reduce the website fingerprinting attack model DF [4] accuracy from 93.2% to 2%-35%. However, the DAAE-based DF attack recovers attack performance against these defenses, achieving over 90% accuracy against RegulaTor [21] and over 80% against Palette [23] and Adaptive Tamaraw [24]. Similarly, adversarial training mostly recovers the attack performance against several defenses, with accuracy exceeding 90% for FRONT [16] and FRUGAL [20] and 80% for Walkie-Talkie [14]. Furthermore, we reveal that defense robustness against adversarial training does not necessarily imply robustness to DAAE-based attacks. For instance, RegulaTor, Palette, and Adaptive Tamaraw remain resilient to adversarial training-assisted attacks, but can be compromised by DAAE-based attacks.

In this work, we design Chameleon to eliminate stable mappings through randomized many-to-many transformations for a robust WF defense. Chameleon is based on traffic morphing, which transforms the traffic pattern of a given website to resemble that of another site [8], [25]. Through a many-to-many morphing design, Chameleon randomly maps a single website trace to multiple target morphing traces. Each target trace can correspond to multiple source traces. The key

Figure

Fig. 2: Overview of the Tor network and Threat Position.

innovation is a novel design to ensure consistency between the pluggable transport client and server (PTs) [26], [27] in real-world deployments of many-to-many random morphing. Chameleon theoretically increases the uncertainty faced by the adversary and thereby raises the difficulty of DAAE and adversarial training-based WF attacks. In addition, we design a radix trie-based structure and trace mutation algorithm that enables efficient morphing target selection, so as to reduce the overhead when dealing with unseen websites. Specifically, we address the following three challenges.

First, how to defend against defense-aware adversarial training-based and DAAE-based attacks? To obfuscate defense-aware attacks, we design methods to collect traffic that exhibits high intra-class diversity and low inter-class disparity, which is used as traffic morphing candidates. During online deployment, each webpage trace is morphed to one of these candidates, misleading WF attack models. Specifically, we design a lightweight offline trace-selection algorithm that characterizes the geometric relationships among traffic traces and identifies representative traces with high intra-class diversity and low inter-class disparity. In addition, Chameleon randomly maps each webpage trace to multiple candidate traces while allowing different webpages to share the same morphing targets. This randomized mapping eliminates the deterministic traffic transformation exploited by DAAE, thereby substantially improving defense robustness.

Second, how can a many-to-many traffic morphing strategy be synchronized between the PT client and the PT server? The defenses [16], [18], [21], [23], including Chameleon, can be deployed through PTs, as shown in Figure 2. A PT client and PT server provide user-configurable traffic defenses without modifying the underlying Tor protocol [26]. However, synchronizing web traffic between the PT client and bridge after many-to-many random morphing is challenging because the randomization can induce the endpoints to select inconsistent morphing traces.

We observe that packet direction sequences are determined from the packet departure timestamps at the PT endpoint during real-time transmission rather than their delivery timestamps. This observation provides a consistent basis for synchronization between the PT client and PT server. Therefore, we design a radix trie [28]-based structure to pre-match candidate morphing traces according to their packet-direction prefixes. The PT endpoint that first determines the morphing trace can send a short sequence of consecutive packet directions from the selected trace as an implicit synchronization signal. Upon receiving this sequence, the peer PT endpoint performs a prefix search on its local radix trie and identifies the same morphing trace without requiring an explicit trace identifier. Once the trace is identified, both endpoints apply the same morphing pattern to subsequent traffic, thereby maintaining consistent real-time morphing across the PTs.

Third, how to reduce the extra time and bandwidth overhead incurred by the morphing process? As the number of candidate traces grows, the morphing process introduces additional computation time and bandwidth overhead. The core question is how to achieve a trade-off between the overhead and the defense performance. We have two main designs. (i) We propose a trace mutation algorithm that minimizes additional padding when computing the distance between the real-time input packets and the selected target morphing trace. In this way, we can reduce the overhead introduced by the potential trace difference from unseen webpages. (ii) We design a row-wise normalization scheme for the candidate traces to enable efficient trace matching. The normalization removes scale and offset variations within each trace, ensuring that matching decisions are driven by intrinsic traffic patterns rather than absolute magnitudes. Then, we construct prefix-based feature vectors, where traces sharing common structural prefixes are organized hierarchically within the radix trie. This design facilitates log-time lookup during morphing target selection.

We compare Chameleon with six state-of-the-art (SOTA) WF defenses against five SOTA WF attack models on three widely used public datasets in the closed- and open-world scenarios. Compared with the recent Adaptive Tamaraw defense [24], Chameleon further reduces adversarial training-based WF attack accuracy by up to 36.74%, while also reducing bandwidth overhead by 34.12% and time overhead by 60.38% on the DF dataset. In particular, under DAAE-based RF attacks [2], Chameleon limits attack performance on the GTT23 dataset to 40.68% precision and a 35.19% F1-score. In comparison, the same RF attack achieves 80.64% precision and a 70.30% F1-score under Palette defense, and 89.82% precision and an 88.22% F1-score under Adaptive Tamaraw defense strategy.

Overall, our main contributions are listed as follows:

• We design a robust WF defense model that builds candidate website traces with high intra-class diversity and low inter-class disparity to remove conspicuous features in morphing.

• We introduce a radix trie structure to efficiently match a morphing trace from the website trace candidates and a trace mutation algorithm to efficiently reduce overhead.

• We evaluate SOTA WF defenses against adversarial training-based and DAAE-based attacks, revealing limitations in existing WF defense mechanisms.

• We conduct a comprehensive evaluation and demonstrate that Chameleon exhibits superior robustness to adversarial training-based WF attacks with modest overhead.

Figure

Fig. 3: Tor traffic timing trace with direction, bursts, and ordering from client to Tor network.

References (48)