Time Will Tell: Criss-Cross Transformer for Encrypted Traffic Analysis
Abstract
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 calledCriss-crossTrafficTransformer (CTT), tailored to address unique challenges in encrypted traffic analysis. CTT distinguishes itself by employing a specialized time series Transformer that innovatively utilizespatchingandcriss-cross attention module(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 athttps://github.com/Amanda-HuaDing/Criss-cross_Traffic_Transformer.
Fields of Study & Subjects
Internet Traffic Analysis and Secure E-voting
Network Security and Intrusion Detection
Network Traffic and Congestion Control
Publication details
- Journal / source
- IEEE Transactions on Services Computing
- Publisher
- Institute of Electrical and Electronics Engineers (IEEE)
- Volume
- 19
- Issue
- 2
- Pages
- 1549–1562
- Publication date
- 13 February 2026