Conceptio › Archive › arXiv CS
arXiv CS open access

CipherSight: Robust Website Fingerprinting via Record-Resource Semantic Supervision under Distribution Shifts

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

CipherSight: Robust Website Fingerprinting via Record-Resource Semantic Supervision under Distribution Shifts Runhan Song1,2 , Qiqi Liu3 , Chuanzhou Pan2,4 Zhenquan Ding2 , Youquan Xian2,4 , Chongru Fan2,4 Lei Cui1,2,* , Wei Wang2,* , Zhiyu Hao2 1

Faculty of Computing, Harbin Institute of Technology 2 Zhongguancun Laboratory 3 University of Chinese Academy of Sciences 4 School of Cyberspace Security, Beijing University of Posts and Telecommunications * Corresponding authors: cuilei@zgclab.edu.cn; wangwei@zgclab.edu.cn

arXiv:2608.13905v1 [cs.CR] 14 Aug 2026

Abstract HTTPS website fingerprinting (WF) aims to identify visited websites from metadata observable in encrypted traffic. However, real-world deployments introduce a significant out-of-distribution (OOD) problem caused by temporal and geographic changes, while previously unseen websites are common in open-world scenarios. Existing methods primarily learn from raw TCP packet sequences and struggle to capture stable and generalizable website representations, resulting in performance degradation under practical conditions. We propose CipherSight, a TLS-record-based hierarchical framework for robust HTTPS WF. Unlike existing approaches that rely on TCP packet sequences and are sensitive to transport-layer artifacts, CipherSight learns website representations from TLS records by jointly encoding multiple recordlevel attributes. It introduces a hierarchical architecture that captures both intra-flow dependencies among TLS records and inter-flow interactions across concurrent flows, enabling the model to exploit structural patterns in HTTPS traffic. Besides, to learn robust representations, CipherSight employs a masked record modeling (MRM) task to capture contextual traffic semantics and leverages fine-grained record-resource annotations as privileged supervision through structure-aware objectives and semantic distillation. Experiments show that CipherSight achieves 95.41% accuracy across more than 2,000 website classes in the closed-world setting and maintains over 90% accuracy under both temporal and geographic drift, consistently outperforming all evaluated baselines.

Introduction Website fingerprinting (WF) aims to identify the websites visited by users from metadata observable in encrypted traffic, without decrypting application payloads. It provides a practical approach for studying residual information leakage in encrypted communications and evaluating the effectiveness of traffic analysis defenses (Li, Guo, and Hopper 2018). Early WF studies primarily relied on explicit signals, including DNS queries, TLS Server Name Indication (SNI), and destination IP addresses (Cheng et al. 2025). However, these signals are becoming increasingly unreliable due to emerging privacy-preserving mechanisms, e.g., Encrypted Client Hello (ECH) hides SNI, encrypted DNS protocols protect domain resolution, and shared CDN services weaken the

direct mapping between IP addresses and websites (Rescorla et al. 2026; Hu et al. 2016; Hoffman and McManus 2018; Huitema, Dickinson, and Mankin 2022). Consequently, recent HTTPS WF approaches, inspired by Tor-based traffic analysis, exploit ciphertext-observable side channels, ranging from packet-level features, e.g., lengths, directions, and timing patterns (Sirinam et al. 2018; Bhat et al. 2019; Rahman et al. 2020; Deng et al. 2023) to HTTPS-specific flow statistics and higher-layer traffic structures (Chen et al. 2026; Cheng et al. 2025; Tan et al. 2024; Ma et al. 2024). Although existing methods achieve high performance under closed-world settings, real-world deployment remains challenging mainly due to distribution shifts and unseen traffic in open-world scenarios. Website content evolves over time, while routing paths, CDN selection, and localized resources vary across regions, causing substantial shifts in encrypted traffic distributions. We therefore evaluate temporal and geographic drift as OOD generalization settings, together with open-world recognition, which requires detecting websites absent from training (Koh et al. 2021; Yuan et al. 2024; Jansen, Wails, and Johnson 2024). There are three challenges that arise in these settings.

Challenges First, packet-level representations are highly sensitive to transport-layer variability. TCP segmentation, retransmissions, and dynamic network conditions can introduce substantial variations, causing the same website resources to be mapped into substantially different TCP packet sequences. Such network-induced variations introduce noise into learned website representations and hinder robust generalization. According to our analysis, more than 80% of TCP packet sequences are inconsistent across repeated traffic captures, highlighting their instability under diverse real-world network conditions. Second, modern HTTPS page loads involve multiple concurrent flows. Tor-oriented methods typically flatten a trace into a single packet sequence (Sirinam et al. 2018; Bhat et al. 2019; Rahman et al. 2020; Deng et al. 2023), implicitly overlooking the inherent multi-flow structure of HTTPS traffic. Recent HTTPS-specific approaches have started to

incorporate flow context (Tan et al. 2024; Ma et al. 2024). However, simply modeling individual flows remains insufficient. Packets within the same flow share connection-level and transport semantics, while interactions among concurrent flows collectively reveal the organization of webpage loading. Thus, a robust representation should capture these two complementary levels of dependencies. Third, encryption creates a semantic gap between observable traffic patterns and underlying webpage composition. Web resources are serialized into HTTP messages, encrypted into TLS records, and transported as TCP packets. While resource-level properties, such as type, size, and request semantics, more directly characterize webpage composition, encrypted traces expose only indirect manifestations of these properties. Training solely with website-level labels leaves the correspondence between TLS records and resource semantics largely unexplored, preventing the model from leveraging fine-grained resource information for robust WF.

Figure 1: Challenges and motivation for CipherSight. Robust HTTPS WF requires reduced sensitivity to transport variability, explicit modeling of dependencies within and across flows, and supervision that connects encrypted records with web-resource structure. To address these challenges, we propose CipherSight, a hierarchical transformer framework for robust HTTPS WF. Unlike existing packet-level representations that are highly affected by transport-layer dynamics, CipherSight models webpage loads at the TLS record level, which provides a more stable abstraction over TCP packets. To capture the hierarchical structure of modern HTTPS traffic, CipherSight introduces an intra-flow encoder using block-diagonal self-attention to learn dependencies among records within each flow and an inter-flow encoder that models interactions across concurrent flows for webpage-level representation learning. Furthermore, CipherSight exploits fine-grained resource structures as privileged supervision, aligning TLS record representations with resource boundaries and attributes to learn richer semantic representations beyond website-level labels. A privileged semantic teacher further transfers resource-level knowledge through LoRA fine-tuning. Privileged components are discarded at inference. Figure 1 summarizes the

motivation and corresponding design principles. Extensive experiments on more than 2,000 monitored websites show that CipherSight achieves 95.41% closed-world accuracy and retains 92.99% under temporal drift, exceeding the best-performing baseline by 13.03 percentage points (pp). It also maintains over 90% accuracy in geographic drift settings, outperforming the best regional baselines by at least 8.52 pp, and achieves 97.64% AUROC in open-world recognition. Ablations further confirm that privileged supervision provides its clearest gains under geographic drift.

Contributions Our contributions are summarized as follows: • We design a structure-preserving representation for HTTPS WF that reduces dependence on TCP packetization, bringing it closer to higher-level semantics. • We propose a hierarchical architecture that jointly models multiple TLS-record attributes and explicitly separates intra-flow dependencies from inter-flow interactions, which suppresses transport-specific artifacts without discarding the multi-flow structure of web pages. • We introduce fine-grained privileged supervision based on web-resource semantics for HTTPS WF. CipherSight not only aligns TLS-record states with resource boundaries and attributes, but also transfers resource knowledge through privileged distillation during LoRA fine-tuning. • We evaluate CipherSight on six HTTPS collections covering more than 2,000 websites under closed-world, temporal-drift, geographic-drift, and open-world settings. The results demonstrate gains in closed-world top-1 accuracy, temporal and geographic robustness, and openworld AUROC over representative baselines.

Related Work Website Fingerprinting Historically, HTTPS destinations could often be identified directly from hostnames exposed in plaintext DNS queries or the SNI field of TLS ClientHello (Chai, Ghafari, and Houmansadr 2019). Visited websites can also be inferred from the sets and sequences of contacted destination IP addresses (Hoang et al. 2021). However, encrypted DNS and ECH increasingly conceal hostname signals, while CDN deployment, shared hosting, DNS-based load balancing, and IP address churn weaken direct domain-to-IP mappings. Consequently, reliable website identification increasingly depends on side-channel patterns that remain observable in encrypted traffic under realistic network environments. Inferring visited websites from encrypted traffic side channels is commonly known as website fingerprinting (WF). WF has been studied most extensively in Tor, an anonymity network designed to conceal communication destinations (Dingledine, Mathewson, and Syverson 2004; Juarez et al. 2014). Tor-oriented methods commonly represent a page load as a flat sequence of observable packet or cell directions, bursts, and timings. Convolutional models such as AWF, DF, and VarCNN learn discriminative representations from directional sequences (Rimmer et al. 2018; Sirinam et al. 2018;

Bhat et al. 2019), while TikTok explicitly incorporates timing information (Rahman et al. 2020). Although effective on Tor traces, these flat sequence representations, when transferred to HTTPS traffic, do not explicitly preserve TLSrecord boundaries or the concurrent multi-flow structure of modern page loads.

Website Fingerprinting over HTTPS HTTPS-native WF methods increasingly move beyond flat TCP packet sequences. H&W derives lightweight fingerprints from HTTP-version-dependent parallel loading, while ADU recovers application data unit length sequences before classification (Cheng et al. 2025; Chen et al. 2026). STCWF models inter-flow spatio-temporal correlations using a graph neural network, and CTX-Aware exploits flow context in encrypted-proxy traffic (Tan et al. 2024; Ma et al. 2024). These studies demonstrate the benefits of higher-layer and flow-aware representations, but do not jointly encode multiple TLS-record attributes with explicit intra-flow and interflow dependencies in a unified hierarchy. Semantic information has also been explored for improving WF generalization. STAR aligns encrypted traffic traces with crawl-time semantic profiles for zero-shot website retrieval (Cheng et al. 2026). Related preprints investigate resource-level semantic distillation and semantics-aware traffic augmentation (Fan et al. 2026; Xian et al. 2026). CipherSight differs by treating fine-grained alignment between TLS records and resource spans as privileged information under the LUPI paradigm (Vapnik and Vashist 2009), combining record- and span-level supervision with privileged distillation in a hierarchical ciphertext encoder.

Website Fingerprinting under Distribution Shifts High performance in closed-world settings cannot guarantee generalization to real-world conditions. Prior Tor studies show that changes in collection time, network environment, and browsing context, together with unmonitored traffic, can induce distribution shifts that substantially degrade WF performance (Juarez et al. 2014; Cherubin, Jansen, and Troncoso 2022; Jansen, Wails, and Johnson 2024; Yuan et al. 2024; Deng et al. 2023). Temporal and geographic drift alter the input distribution over monitored classes, whereas openworld recognition additionally requires rejecting websites unseen during training (Koh et al. 2021; Wang et al. 2023). Existing robustness studies primarily focus on Tor or isolate a single source of mismatch. We therefore evaluate HTTPS WF under temporal drift, geographic drift, and open-world recognition to assess robustness across complementary deployment conditions.

attributes are extracted and tokenized, while masked record modeling (MRM) guides pretraining. Second, record tokens are processed by an intra-flow encoder (L1) and an inter-flow encoder (L2), which separately model dependencies within flows and interactions across flows, reflecting the multi-flow organization of HTTPS page loads. Third, training-time privileged supervision connects ciphertext patterns with webpage structure. Record-resource supervision (P1) is used during pretraining and fine-tuning, while a semantic teacher (P2) is introduced during fine-tuning.

Representation and Hierarchical Encoding TLS-Record Representation and Tokenization. TLS records are protocol data units carried above TCP. After TCP reassembly, their boundaries and outer headers can be recovered without decryption (Rescorla 2018; Eddy 2022). A TLS record may span multiple TCP segments, while a single segment may contain bytes from multiple records. Consequently, record-level modeling is less directly coupled to TCP segmentation and retransmission than packet-level modeling, although it remains affected by changes in website content and TLS behavior. In the representation construction phase, TLS records extracted from webpage-load trace ri,j are grouped into flows fi . Categorical features are mapped to learnable embeddings, whereas numerical features combine logarithmic bucket embeddings with linear projections of their log-scaled values. The resulting feature vectors are summed and normalized to produce the record token ei,j . Intra-Flow Encoding (L1). Flattening all records into a single sequence can create direct dependencies between unrelated connections and make the representation sensitive to their collection-specific interleaving. L1 instead encodes records from the same flow to preserve TLS-flow boundaries. For every valid flow fi , we prepend an instance of a shared learnable token FCLSi to form (FCLSi , ei,1 , . . . , ei,ni ). All flow sequences are concatenated for batched processing by a shared Transformer. Let ϕ(p) denote the flow associated with token position p. L1 applies the attention bias  0, ϕ(p) = ϕ(q) and p, q are valid, (1) Mpq = (1) −∞, otherwise.

Method

The block-diagonal mask uses each TLS flow as a local context boundary and restricts self-attention to records from that flow. Copies of a shared learnable [FCLS] token aggregate within-flow information into flow summaries ui , while hi,j denotes the contextual representation of each record. Rotary positions are reset within each flow, and cross-flow interaction is deferred to L2.

Figure 2 presents CipherSight, whose representation construction, hierarchical architecture, and privileged structure are motivated by the three challenges identified in Figure 1. First, CipherSight represents traffic at the TLS-record level rather than the TCP-packet level, reducing sensitivity to transport-layer packetization. Ciphertext-observable record

Inter-Flow Encoding (L2). A modern website load typically involves connections from multiple domains, so a single flow cannot represent the complete webpage structure. CipherSight therefore prepends a learnable page token [PCLS] to the valid flow summaries and feeds (PCLS, u1 , . . . , um ) to the inter-flow encoder L2. Unlike L1, L2 applies full selfattention across valid flow representations.

Overview

Figure 2: Overview of CipherSight. During representation construction, observable TLS records are grouped by flow and tokenized. Block-diagonal intra-flow attention (L1) encodes record tokens within each flow, while full inter-flow attention (L2) aggregates flow summaries for website classification. Training-time privileged structure provides record-resource supervision (P1) and semantic teacher distillation (P2).

Using flow summaries as an interface between L1 and L2 avoids all-to-all mixing between individual records from different connections while allowing webpage-level information to be combined across flows. The final hidden state of [PCLS] serves as the student page representation hs . A website classifier consisting of a linear layer, GELU activation, dropout, and a final class projection produces the website logits os .

Pretraining with Record-Resource Supervision Masked Record Modeling (MRM). Website labels do not directly supervise individual record representations. MRM replaces the complete embeddings of randomly selected valid records with a learnable [MASK] token and requires L1 to reconstruct their direction, length bucket, and outer TLS content type from the remaining within-flow context. The three cross-entropy losses are summed as LMRM , enabling contextual record modeling without resource annotations. Record-resource Supervision (P1). MRM captures ciphertext context but does not explicitly model the correspondence between TLS records and webpage resources. Prior work has demonstrated that resource semantics can improve the robustness of WF representations (Fan et al. 2026). Motivated by this observation, we provided novel training-time alignments between website resources and TLS records in P1 to supervise L1 at both record and resource levels. At the record level, P1 predicts begin/inside labels and inner MIME types over aligned records, while unaligned records are ignored by these losses. At the resource level, aligned record states are mean-pooled to predict response attributes and record counts. Algorithm 1 summarizes this two-level supervision and pooling procedure.

Algorithm 1 Record-Resource Supervision and AlignedRecord Pooling Input: Record states H, record targets YBI and Ytype , retained aligned spans {Iq }, and resource attributes Yres Output: Lseg , Lattr , Lcnt b BI , Y b type ) ← Hrec (H). 1: (Y 2: Compute Lseg over aligned record positions. 3: Initialize G ← ∅ and T ← ∅. 4: for each resource q with a nonempty retained span Iq do P 5: gq ← |Iq |−1 (i,j)∈Iq hi,j . 6: Append gq to G. 7: Append (yqlen , yqmime , log(1 + |Iq |)) to T . 8: end for b mime , b 9: (b ylen , y c) ← Hres (G). 10: Compute Lattr and Lcnt using T . 11: return Lseg , Lattr , Lcnt .

MRM learns dependencies among observable records, whereas P1 relates their hidden states to web-resource structure. The pretraining stage directly optimizes the tokenizer and L1, and L2 is introduced for website classification in the fine-tuning stage.

Privileged Semantic Fine-Tuning

Pretraining Objective. The pretraining stage objective combines ciphertext-context reconstruction from MRM with resource-structure supervision (P1):

LoRA Adaptation. Pretraining establishes record-level representations, which should not be overwritten by unrestricted task adaptation. We therefore freeze the pref = trained backbone and introduce low-rank updates W W + (α/r)BA into the query, key, value, and output projections of every L1 and L2 attention layer. The LoRA matrices, student classifier, P1 heads, and semantic teacher remain trainable. This allows L2 to learn webpage-level aggregation while limiting changes to the pretraining representation.

LP1 = λseg Lseg + λattr Lattr + λcnt Lcnt , Lpre = λMRM LMRM + LP1 .

Privileged Semantic Teacher (P2). Website-label finetuning alone may emphasize environment-specific correla-

(2)

Figure 3: Fine-tuning architecture of CipherSight. The LoRA-adapted ciphertext student receives resource-structure supervision (P1), while a privileged semantic teacher (P2) transfers resource-level knowledge through feature and logit distillation, Lfeat and Llogit . The student and teacher are supervised by LScls and LTcls , respectively. Only the student is retained for inference. tions and weaken the semantic structure learned during pretraining. As shown in Figure 3, privileged semantic teacher (P2) supplies website-level semantic guidance using resource attributes available only during training. P2 first constructs resource tokens from resource semantic features. Then a resource semantic encoder summarizes the resource token sequence as hr . The teacher fuses hr with a stop-gradient copy of the student feature hs to produce ht , and an MLP produces teacher logits ot . The teacher is trained with website-label cross-entropy and uses Lfeat and Llogit to distill resource semantics into the student. Formally, let h̄x = N (hx ) and px = softmax(ox /T ) for x ∈ {s, t}. The distillation losses are  Lfeat = MSE h̄s , sg[h̄t ] ,  (3) Llogit = T 2 KL sg[pt ] ∥ ps . Here, N (·) denotes L2 normalization, T is the distillation temperature, and sg stops gradients. Fine-Tuning Objective and Inference. Let LScls = CE(os , y) and LTcls = CE(ot , y) denote the student and teacher classification losses. The fine-tuning stage minimizes Lft = λcls LScls + λstruct (Lseg + Lattr + Lcnt ) + LTcls + λlogit Llogit + λfeat Lfeat .

(4)

Continuing P1 helps preserve record-resource structure during adaptation, while P2 transfers webpage-level semantics to the ciphertext student. MRM is used only in pretraining. At inference, CipherSight uses only TLS-record metadata, the L1 and L2 encoders, and the website classifier. The MRM, P1, P2, and all resource annotations are removed.

Evaluation Datasets and Experimental Setup Collection and Construction. Each automated webpage visit produces a PCAP trace and a corresponding SSL key log. We reconstruct TCP flows and derive the model inputs from ciphertext-observable TLS metadata, including record direction, length, outer content type, timing, and flow membership, without decrypting application payloads. For dataset

annotation only, we use the SSL key log with standardscompliant TLS and HTTP parsing to recover the recordresource alignments and resource attributes required by P1 and P2. Datasets. We evaluate six collections spanning four dates and three regions. Closed-world evaluation uses an 8:2 split of us0304, yielding 64,386 training and 15,848 test traces from 2,008 classes. Temporal drift trains on 80% of us0304 and tests us0320, collected 16 days later, over 1,976 shared classes. Geographic drift trains on 80% of us0409 and tests same-day fr0409 and sg0409 over 1,936 shared classes. The held-out 20% of us0409 traces measure performance degradation. Open-world evaluation reuses the closed-world split and adds 213,099 traces from disjoint websites. Metrics. We report top-1 accuracy, macro-F1, and top-5 accuracy where supported. Open-world confidence is maximum softmax probability. With monitored traffic as the positive class, AUROC and AUPR measure known-unknown discrimination, while OSCR jointly reflects monitored classification and unknown rejection across thresholds. Baselines. We compare Tor-oriented methods (Rimmer et al. 2018; Sirinam et al. 2018; Bhat et al. 2019; Rahman et al. 2020; Sirinam et al. 2019; Shen et al. 2023; Deng et al. 2023) and HTTPS-native methods (Cheng et al. 2025; Tan et al. 2024; Ma et al. 2024). Tor baselines use 5,000-packet sequences, truncated or zero-padded, with direction, length, and timing when applicable. Missing preprocessing or openworld evaluation is implemented from reported definitions without altering model architecture. Neural baselines train for 100 epochs, except STC-WF for 300. To favor baselines, we select closed-world checkpoints by peak test accuracy and drift checkpoints on the fixed source-domain 20% holdout before evaluation on complete target sets. Open-world evaluation reuses those checkpoints. CipherSight uses its final 20,000-step checkpoint. Implementation. CipherSight uses PyTorch, 8 NVIDIA GPUs, and BF16 precision. Both stages run for 20,000 steps. CipherSight uses seeds 42–46, and the baselines use seed 42 unless stated otherwise.

Model

Origin

Accuracy

Precision

Recall

Macro-F1

Top-5

VarCNN ARES RF DF TikTok TF AWF

Tor Tor Tor Tor Tor Tor Tor

92.16% 91.22% 91.09% 89.85% 89.32% 86.94% 62.66%

92.63% 91.65% 91.27% 90.29% 89.69% 87.37% 66.33%

92.02% 91.07% 90.84% 89.56% 89.04% 86.62% 62.40%

91.91% 90.85% 90.63% 89.36% 88.77% 86.41% 61.95%

97.27% 97.11% 97.16% 96.61% 96.50% – 81.59%

H&W STC-WF CTX-Aware

HTTPS HTTPS HTTPS

86.45% 77.75% 8.18%

86.67% 80.00% 7.00%

86.23% 77.66% 8.14%

85.76% 77.34% 5.88%

94.31% 90.65% –

CipherSight

HTTPS

95.41±0.11%

94.85±0.14%

95.00±0.13%

94.67±0.14%

97.71±0.02%

Table 1: Closed-world performance comparison on 2,008 website classes. CipherSight results are reported as the mean ± standard deviation over five seeds.

Closed-World Evaluation

Model

Accuracy (%)

Macro-F1 (%)

As shown in Table 1, CipherSight achieves the best closedworld performance across 2,008 website classes, reaching 95.41% accuracy and 94.67% macro-F1. It outperforms VarCNN, the strongest baseline, by 3.25 and 2.76 percentage points (pp) on these metrics, respectively. The standard deviations remain below 0.15 pp across five seeds, indicating stable performance across runs. By comparison, the top-5 improvement over VarCNN is only 0.44 pp. This contrast indicates that CipherSight primarily improves first-choice discrimination rather than merely retaining the correct website among several candidates. STC-WF warrants a qualified interpretation. A separate run with seed 52 on the same split reaches 84.78% accuracy, while it achieves 92.25% on the us0409 source-domain holdout under the geographic-drift protocol. These results indicate sensitivity to training randomness rather than uniformly weak performance. CTX-Aware achieves only 8.18% accuracy under our adaptation. Its full configuration required more than 128 GB of memory, so we restricted each webpage trace to six flows and used a smaller random forest.

VarCNN ARES RF DF TikTok TF AWF

67.81 (-24.35) 72.84 (-18.38) 66.07 (-25.02) 67.92 (-21.93) 66.03 (-23.29) 67.75 (-19.19) 29.10 (-33.56)

67.30 (-24.61) 71.92 (-18.93) 65.82 (-24.81) 66.61 (-22.75) 64.74 (-24.03) 66.49 (-19.92) 29.07 (-32.88)

H&W STC-WF

79.96 (- 6.49) 73.93 (- 3.82)

77.92 (- 7.84) 72.50 (- 4.83)

CipherSight

92.99 (- 2.42)

92.07 (- 2.60)

Table 2: Temporal-drift performance from us0304 to us0320 with a 16-day collection gap. Values in parentheses denote descriptive percentage-point differences from each model’s closed-world result on us0304.

ferences are not paired source-to-target drops, the pattern is consistent with CipherSight learning representations that remain informative as website traffic evolves.

Temporal Drift

Geographic Drift

Table 2 reports performance under a temporal distribution shift caused by a 16-day gap in data collection. H&W is the strongest baseline with 79.96% accuracy, while STCWF reaches 73.93% and slightly outperforms ARES, the strongest Tor-oriented baseline. Although both HTTPSspecific methods trail the leading Tor-oriented baselines in the closed-world setting, their ranking reverses under temporal drift. This result indicates that in-distribution closedworld accuracy is not a reliable proxy for robustness to temporal drift. CipherSight achieves 92.99% accuracy and 92.07% macro-F1, outperforming H&W by 13.03 and 14.15 percentage points (pp), respectively. Its descriptive differences from the separate closed-world result are only −2.42 and −2.60 pp, smaller than those of all baselines. Its accuracy margin over H&W also widens from 8.96 pp in the closed-world setting to 13.03 pp under temporal drift. Although these dif-

Table 3 evaluates geographic drift by training on us0409 and testing on the same-day sg0409 and fr0409 collections. This design reduces temporal confounding and helps isolates regional variation. Baseline rankings vary by region. ARES is the strongest baseline in Singapore with 79.53% accuracy, whereas RF leads in France with 82.07%. RF differs by 24.38 percentage points (pp) between regions, showing that performance in one region does not reliably predict another. CipherSight achieves the highest accuracy, macro-F1, and top-5 accuracy in both regions, reaching 91.09% accuracy in Singapore and 90.59% in France. It outperforms the strongest regional baselines by 11.56 and 8.52 pp, respectively. Its accuracy differs by only 0.50 pp between regions, and it exhibits the smallest degradation under geographic drift across all reported metrics. These results suggest that CipherSight retains stable record- and flow-level evidence across regions.

Singapore

France

Model

Accuracy (%)

Macro-F1 (%)

Top-5 (%)

Accuracy (%)

Macro-F1 (%)

Top-5 (%)

VarCNN ARES RF DF TikTok TF AWF

67.53 (-24.98) 79.53 (-13.16) 57.69 (-35.12) 74.95 (-17.39) 70.00 (-21.98) 74.46 (-16.56) 32.09 (-36.74)

66.20 (-26.24) 78.15 (-14.48) 57.44 (-35.19) 72.83 (-19.26) 67.80 (-23.94) 72.44 (-18.43) 31.93 (-36.70)

83.07 (-14.30) 89.97 (- 7.23) 73.25 (-24.10) 87.20 (-10.10) 84.26 (-13.14) – 54.92 (-30.77)

73.12 (-19.39) 81.08 (-11.61) 82.07 (-10.74) 76.48 (-15.86) 74.51 (-17.47) 75.67 (-15.35) 45.99 (-22.84)

70.70 (-21.74) 79.11 (-13.52) 80.19 (-12.44) 73.24 (-18.85) 71.24 (-20.50) 72.70 (-18.17) 45.18 (-23.45)

85.05 (-12.32) 90.58 (- 6.62) 91.03 (- 6.32) 86.41 (-10.89) 85.08 (-12.32) – 67.52 (-18.17)

H&W STC-WF

75.94 (-14.82) 60.60 (-31.65)

72.87 (-17.35) 57.52 (-34.32)

84.52 (-11.82) 75.12 (-22.60)

67.56 (-23.20) 54.38 (-37.87)

62.57 (-27.65) 49.74 (-42.09)

76.56 (-19.78) 68.96 (-28.76)

CipherSight

91.09 (- 4.41)

89.99 (- 5.21)

95.20 (- 2.50)

90.59 (- 4.91)

89.19 (- 6.01)

95.08 (- 2.63)

Table 3: Geographic-drift performance from us0409 to Singapore and France. Values in parentheses denote descriptive percentage-point differences from each model’s us0409 source-domain holdout. CipherSight values are means over five seeds.

Ablation Study Test

No-Priv (%)

P1 Pre. (%)

Full Priv. (%)

us0320 us0409

92.69 / 91.73 90.46 / 89.02

92.99 / 92.07 90.93 / 89.53

92.99 / 92.07 91.11 / 89.73

fr0409 sg0409

89.04 / 87.37 89.73 / 88.42

90.15 / 88.73 90.59 / 89.46

90.59 / 89.19 91.09 / 89.99

Table 4: Ablation of privileged supervision under temporal and geographic drift. No-Priv. excludes P1 and P2, P1 Pre. applies P1 only during pretraining, and Full Priv. applies P1 in both stages and introduces P2 during LoRA fine-tuning. Cells report mean accuracy/macro-F1 (%) over five seeds. Table 4 reports the contribution of privileged supervision under distribution shifts. Under temporal drift, P1 Pre. improves accuracy over No-Priv. by 0.30 and 0.47 percentage points (pp) on us0320 and us0409, while Full Priv. yields gains of 0.30 and 0.65 pp. This result shows that P1 pretraining provides most of the temporal benefit. The contribution is more pronounced under geographic drift. P1 Pre. improves accuracy by 0.86 pp on sg0409 and 1.11 pp on fr0409, while Full Priv. increases these gains to 1.37 and 1.55 pp, with corresponding macro-F1 gains of 1.58 and 1.83 pp. Although modest in absolute terms, these gains are approximately 31% as large as CipherSight’s overall accuracy degradation under geographic drift, with a similar ratio of about 30% for macro-F1. Overall, the ablation demonstrates the effectiveness of training-time privileged supervision, particularly in improving geographic robustness.

Open-World Evaluation As shown in Table 5, CipherSight consistently outperforms all baselines, achieving 97.64% AUROC, 88.54% AUPR, and 94.81% OSCR. Relative to RF, the strongest baseline, it yields absolute gains of 4.60, 16.51, and 7.20 percentage points, respectively. The substantial improvements in AUPR and OSCR demonstrate more effective rejection of unmonitored samples in the highly imbalanced open-world setting, without compromising monitored-site classification.

Model

AUROC (%)

AUPR (%)

OSCR (%)

VarCNN ARES RF DF TikTok TF AWF

89.56 89.93 93.04 87.06 86.21 82.75 70.11

60.50 67.27 72.03 63.46 61.49 26.95 27.48

86.22 86.05 87.61 83.72 82.77 77.15 52.40

H&W STC-WF

57.23 77.92

7.39 35.69

49.42 68.67

CipherSight

97.64

88.54

94.81

Table 5: Open-world evaluation results using maximum softmax probability (MSP) as the confidence score.

Limitations More refined data preprocessing methods and samplingwindow strategies may further improve model performance (Peng et al. 2025). CipherSight could be extended to a range of scenarios, including longer-term temporal drift, larger numbers of clients, and HTTP/3 traffic. In addition, privileged supervision requires SSL keys, limiting packetonly reuse, although inference remains ciphertext-only.

Conclusion We presented CipherSight, a hierarchical Transformer for robust HTTPS WF under distribution shifts. CipherSight models ciphertext-observable TLS records within and across flows. It uses record-resource supervision and privileged semantic distillation during training while preserving ciphertext-only inference. Across closed-world, temporal, geographic, and open-world evaluations, CipherSight consistently outperformed the baselines. Ablations showed gains from privileged supervision, particularly under geographic drift. Together, these results highlight the value of stable TLS-record representations, explicit inter-flow modeling, and training-time resource semantics for robust encryptedtraffic learning under the evaluated conditions.

References Bhat, S.; Lu, D.; Kwon, A.; and Devadas, S. 2019. VarCNN: A Data-Efficient Website Fingerprinting Attack Based on Deep Learning. Proceedings on Privacy Enhancing Technologies, 2019(4): 292–310. Chai, Z.; Ghafari, A.; and Houmansadr, A. 2019. On the Importance of Encrypted-SNI (ESNI) to Censorship Circumvention. In 9th USENIX Workshop on Free and Open Communications on the Internet. USENIX Association. Chen, Z.; Cheng, G.; Niu, D.; Zhao, Y.; Zhou, Y.; and Jiang, S. 2026. Ultimate Encrypted Traffic Feature Engineering: HTTPS Encrypted Traffic Classification Using Restored Application Data Unit Length. IEEE Transactions on Dependable and Secure Computing, 23(1): 1290–1307. Cheng, Y.; Zhu, Y.; Li, B.; Deng, X.; Cai, Y.; Ren, Y.; and Liu, Q. 2026. STAR: Semantic-Traffic Alignment and Retrieval for Zero-Shot HTTPS Website Fingerprinting. In Proceedings of the IEEE Conference on Computer Communications (INFOCOM), 1–10. IEEE. Cheng, Y.; Zhu, Y.; Li, B.; Sun, P.; Ding, Y.; Deng, X.; and Liu, Q. 2025. HOLMES & WATSON: A Robust and Lightweight HTTPS Website Fingerprinting through HTTP Version Parallelism. In Proceedings of the ACM Web Conference 2025, 1078–1092. ACM. Cherubin, G.; Jansen, R.; and Troncoso, C. 2022. Online Website Fingerprinting: Evaluating Website Fingerprinting Attacks on Tor in the Real World. In Proceedings of the 31st USENIX Security Symposium, 753–770. USENIX Association. Deng, X.; Yin, Q.; Liu, Z.; Zhao, X.; Li, Q.; Xu, M.; Xu, K.; and Wu, J. 2023. Robust Multi-Tab Website Fingerprinting Attacks in the Wild. In Proceedings of the 2023 IEEE Symposium on Security and Privacy (SP), 1005–1022. IEEE. Dingledine, R.; Mathewson, N.; and Syverson, P. 2004. Tor: The Second-Generation Onion Router. In 13th USENIX Security Symposium (USENIX Security 04). San Diego, CA: USENIX Association. Eddy, W. 2022. Transmission Control Protocol (TCP). RFC 9293, RFC Editor. Fan, C.; Wang, W.; Huang, W.; Ding, Z.; Shi, J.; Cui, L.; Hao, Z.; and Yun, X. 2026. ResAware: Cross-Environment Website Fingerprinting via Resource-Privileged Distillation. arXiv:2606.17462. Hoang, N. P.; Niaki, A. A.; Gill, P.; and Polychronakis, M. 2021. Domain Name Encryption Is Not Enough: Privacy Leakage via IP-Based Website Fingerprinting. Proceedings on Privacy Enhancing Technologies, 2021(4): 420–440. Hoffman, P.; and McManus, P. 2018. DNS Queries over HTTPS (DoH). RFC 8484, RFC Editor. Hu, Z.; Zhu, L.; Heidemann, J.; Mankin, A.; Wessels, D.; and Hoffman, P. 2016. Specification for DNS over Transport Layer Security (TLS). RFC 7858, RFC Editor. Huitema, C.; Dickinson, S.; and Mankin, A. 2022. DNS over Dedicated QUIC Connections. RFC 9250, RFC Editor.

Jansen, R.; Wails, R.; and Johnson, A. 2024. Repositioning Real-World Website Fingerprinting on Tor. In Proceedings of the 23rd Workshop on Privacy in the Electronic Society, 124–140. ACM. Juarez, M.; Afroz, S.; Acar, G.; Diaz, C.; and Greenstadt, R. 2014. A Critical Evaluation of Website Fingerprinting Attacks. In Proceedings of the 2014 ACM SIGSAC Conference on Computer and Communications Security, 263–274. ACM. Koh, P. W.; Sagawa, S.; Marklund, H.; Xie, S. M.; Zhang, M.; Balsubramani, A.; Hu, W.; Yasunaga, M.; Phillips, R. L.; Gao, I.; Lee, T.; David, E.; Stavness, I.; Guo, W.; Earnshaw, B.; Haque, I.; Beery, S. M.; Leskovec, J.; Kundaje, A.; Pierson, E.; Levine, S.; Finn, C.; and Liang, P. 2021. WILDS: A Benchmark of in-the-Wild Distribution Shifts. In Proceedings of the 38th International Conference on Machine Learning, 5637–5664. PMLR. Li, S.; Guo, H.; and Hopper, N. 2018. Measuring Information Leakage in Website Fingerprinting Attacks and Defenses. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, 1977–1992. ACM. Ma, X.; Qu, J.; Shi, M.; An, B.; Li, J.; Luo, X.; Zhang, J.; Li, Z.; and Guan, X. 2024. Website Fingerprinting on Encrypted Proxies: A Flow-Context-Aware Approach and Countermeasures. IEEE/ACM Transactions on Networking, 32(3): 1904–1919. Peng, W.; Cui, L.; Cai, W.; Wang, W.; Cui, X.; Hao, Z.; and Yun, X. 2025. Bottom Aggregating, Top Separating: An Aggregator and Separator Network for Encrypted Traffic Understanding. IEEE Trans. Inf. Forensics Secur., 20: 1794– 1806. Rahman, M. S.; Sirinam, P.; Mathews, N.; Gangadhara, K. G.; and Wright, M. 2020. Tik-Tok: The Utility of Packet Timing in Website Fingerprinting Attacks. Proceedings on Privacy Enhancing Technologies, 2020(3): 5–24. Rescorla, E. 2018. The Transport Layer Security (TLS) Protocol Version 1.3. RFC 8446, RFC Editor. Rescorla, E.; Oku, K.; Sullivan, N.; and Wood, C. A. 2026. TLS Encrypted Client Hello. RFC 9849, RFC Editor. Rimmer, V.; Preuveneers, D.; Juarez, M.; Van Goethem, T.; and Joosen, W. 2018. Automated Website Fingerprinting through Deep Learning. In Proceedings of the 2018 Network and Distributed System Security Symposium (NDSS). Internet Society. Shen, M.; Ji, K.; Gao, Z.; Li, Q.; Zhu, L.; and Xu, K. 2023. Subverting Website Fingerprinting Defenses with Robust Traffic Representation. In 32nd USENIX Security Symposium (USENIX Security 23), 607–624. USENIX Association. Sirinam, P.; Imani, M.; Juarez, M.; and Wright, M. 2018. Deep Fingerprinting: Undermining Website Fingerprinting Defenses with Deep Learning. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, 1928–1943. ACM. Sirinam, P.; Mathews, N.; Rahman, M. S.; and Wright, M. 2019. Triplet Fingerprinting: More Practical and Portable

Website Fingerprinting with N-shot Learning. In Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, 1131–1148. ACM. Tan, X.; Peng, C.; Xie, P.; Wang, H.; Li, M.; Chen, S.; and Zou, C. 2024. Inter-Flow Spatio-Temporal Correlation Analysis Based Website Fingerprinting Using Graph Neural Network. IEEE Transactions on Information Forensics and Security, 19: 7619–7632. Vapnik, V.; and Vashist, A. 2009. A New Learning Paradigm: Learning Using Privileged Information. Neural Networks, 22(5–6): 544–557. Wang, J.; Lan, C.; Liu, C.; Ouyang, Y.; Qin, T.; Lu, W.; Chen, Y.; Zeng, W.; and Yu, P. S. 2023. Generalizing to Unseen Domains: A Survey on Domain Generalization. IEEE Transactions on Knowledge and Data Engineering, 35(8): 8052–8072. Xian, Y.; Zeng, X.; Meng, L.; Cui, L.; Song, R.; Wang, W.; Ding, Z.; Liu, P.; and Hao, Z. 2026. More Than Meets the Eye: A Semantics-Aware Traffic Augmentation Framework for Generalizable Website Fingerprinting. arXiv:2605.11402. Yuan, X.; Li, T.; Li, L.; Li, R.; Wang, Z.; and Luo, X. 2024. HSWF: Enhancing Website Fingerprinting Attacks on Tor to Address Real World Distribution Mismatch. Computer Networks, 241: 110217.

Related documents

Record · ID 458239 · SHA-256 678c862d837a3837
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive