Time Will Tell: Criss-Cross Transformer for Encrypted Traffic Analysis

Время покажет: Criss-Cross Transformer для анализа зашифрованного трафика
Yang Bai, Hao Peng, Lixing Chen, Bin Zhang, Hua Ding, Shenghong Li, Zhe Qu
2026-02-13

Criss-cross Traffic Transformercriss-cross attention moduleencrypted traffic classificationencrypted traffic forecastingtime series Transformer
The widespread adoption of encryption across web-based services is compelling both malicious attackers and network defenders to tailor their tool repositories to encrypted traffic. For various security applications in encrypted networks, the analysis of encrypted traffic lies as the fundamental basis. Due to the inherent concealment of content-related information in encrypted packets, the dynamics of encrypted traffic emerge as the discernible variable warranting comprehensive analysis. This paper explores inherent temporal correlations within the encrypted traffic and proposes a novel algorithm called <underline xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">C</u>riss-cross <underline xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">T</u>raffic <underline xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">T</u>ransformer (CTT), tailored to address unique challenges in encrypted traffic analysis. CTT distinguishes itself by employing a specialized time series Transformer that innovatively utilizes <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">patching</i> and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">criss-cross attention module</i> (CAM) to dissect and interpret encrypted traffic, with the “criss” part mining the long-/short-term temporal correlations across time, and the “cross” part capturing temporal correlations across multiple feature dimensions of encrypted traffic. CTT provides a unified framework capable of accommodating diverse analytical granularities, including packet-level, flow-level, and packet-to-flow level. Notably, CTT not only encompasses encrypted traffic classification but also extends to encrypted traffic forecasting, an area that remains largely underexplored in existing literature. We evaluate CTT in the context of fingerprinting attacks and malware detection over 5 real-world datasets against 13 benchmarks. The results indicate that CTT achieves up to 15.56% performance improvement over SOTA solutions for encrypted traffic classification. Particularly, CTT demonstrates over 92.5% forecasting accuracy, which is comparable to SOTA performances in the seen-and-classify scenario, suggesting its potential applicability to broader domains like social network behavioral analysis. Our code is available at <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/Amanda-HuaDing/Criss-cross_Traffic_Transformer</uri>.
1
CTT attains over 92.5% forecasting accuracy, comparable to SOTA in the seen-and-classify scenario, indicating broader applicability (e.g., social network behavioral analysis).
2
CTT extends beyond classification to encrypted traffic forecasting, addressing an underexplored area in the literature.
3
CTT provides a unified framework supporting packet-level, flow-level, and packet-to-flow level analysis.
4
Evaluated on fingerprinting attacks and malware detection across 5 real-world datasets and 13 benchmarks, CTT achieves up to 15.56% improvement over state-of-the-art for encrypted traffic classification.
5
Proposes CTT (Criss-cross Traffic Transformer), a time-series Transformer using patching and a criss-cross attention module (CAM) to analyze encrypted traffic temporal correlations.
6
The 'criss' component mines long- and short-term temporal correlations across time; the 'cross' component captures temporal correlations across multiple feature dimensions.

Encrypted network traffic (packet-level, flow-level, and packet-to-flow representations)

Temporal correlation analysis and modeling for encrypted traffic to enable classification and forecasting using a Criss-cross Transformer (CTT) with patching and criss-cross attention

Publication Details
Publication Date
2026-02-13
Journal
Publisher
ISSN
Cited by
1
Access Type
Author Information
Authors
Yang Bai
Hao Peng
Lixing Chen
Bin Zhang
Hua Ding
Shenghong Li
Zhe Qu
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%