arXiv:2611.12442cs.NINov 2026

Manuscript Offprint

arXiv:2611.12442

When Handshakes Go Dark: An Adaptive Semantic-Sequential Fusion Framework for Encrypted Traffic Classification

Tong Guan, Yunchun Li, Minyuan Xiao, Mingyuan Xia, Yuchen Zhao, Wei Li

ARTICLE INFO

Keywords:

Encrypted traffic classification

Self-supervised pre-training

Protocol-aware representation learning

Adaptive representation fusion

Constrained observability

ABSTRACT

Encrypted traffic classification is essential for network security monitoring and traffic management. Self-supervised pre-training provides a promising approach to learning reusable representations from large-scale unlabeled traffic data. However, encrypted communication protocols such as TLS 1.3 and QUIC protect increasing portions of application and handshake data, while privacy-enhancing mechanisms such as Encrypted Client Hello (ECH) further conceal service-identifying metadata. Consequently, observable upper-layer bytes are increasingly dominated by ciphertext, weakening the correspondence between raw-byte patterns and application semantics. Raw-byte-based models therefore struggle to learn generalizable, semantically meaningful representations from strongly encrypted traffic. Moreover, the availability and discriminative value of observable information vary across protocols, protection profiles, and classification tasks, making it difficult to maintain effective classification across diverse traffic scenarios. To address these challenges, we propose FLARE, a Field-aware Learning and Adaptive Representation Fusion framework for Encrypted Traffic Classification. FLARE pre-trains a BERT-based packet encoder using Masked Field Prediction to reconstruct masked tokens from field-structured context. During downstream fine-tuning, the parameters of the pre-trained packet encoder remain frozen, and a packet-level gated fusion module adaptively combines protocol-semantic representations with directional packet-length representations, while a flow-level encoder models inter-packet dependencies for classification. We evaluate FLARE on eight datasets covering diverse encrypted-traffic classification tasks, including CipherSpectrum and VisQUIC datasets, which represent strongly encrypted traffic scenarios. FLARE achieves superior performance over baselines across the evaluated datasets. Notably, it outperforms the strongest pre-trained baseline by 10.92% on the QUIC-based website fingerprinting task, highlighting the effectiveness of field-aware pre-training and adaptive semantic-sequential fusion under constrained observability.

References (40)