https://doi.org/10.1140/epjqt/s40507-025-00459-7
Research
Encrypted network traffic analysis using quantum machine learning
1
School of Computer Science and Engineering, Vellore Institute of Technology, 632014, Vellore, Tamil Nadu, India
2
School of Computer Science Engineering and Information Systems, Vellore Institute of Technology, 632014, Vellore, Tamil Nadu, India
a
This email address is being protected from spambots. You need JavaScript enabled to view it.
b
This email address is being protected from spambots. You need JavaScript enabled to view it.
Received:
24
September
2025
Accepted:
19
December
2025
Published online:
20
January
2026
Abstract
There is an exponential growth in the encrypted network traffic due to the increased privacy concerns and secure communication needs. This growth has made traditional content- based based traffic analysis techniques ineffective to determine whether traffic is benign or malicious. As a result, security researchers have adopted the practice of examining HTTP header files to analyze encrypted network traffic. This involves inspecting IP addresses, packet sizes, and other metadata. However, these conventional methods face significant limitations in capturing complex temporal dependencies, adapting to evolving threats, and performing, under data sparsity or noise especially in the context of encrypted traffic where visibility is inherently restricted. Traditionally, machine learning and deep learning methods have been successfully used to classify packets as normal or an attack. With the ability to handle high-dimensional and complex nature of this metadata, Quantum Machine Learning (QML) offers a novel paradigm to potentially uncover more intricate patterns that are intractable for classical models. In this paper, we examine the usage of two quantum machine learning models: Quantum Support Vector Machine (QSVM) and Quantum K-Nearest Neighbors (QKNN). We have proposed hybrid quantum machine learning methods, wherein the data is encoded using quantum encodings and then classified using canonical machine learning models. We experimented with different quantum encodings such as angle and amplitude encoding. Our study was conducted on encrypted traffic classification datasets provided by the Canadian Institute of Cybersecurity. Our findings show that the proposed quantum and hybrid quantum models achieve performance comparable to the canonical machine learning models. Notably, the hybrid KNN and SVM models, when paired with amplitude encoding, demonstrated performance on par with or superior to their purely canonical counterparts. We hope that these results would be of interest not only just the researchers and academicians and also practitioners in Cybersecurity industry.
Key words: Hybrid QML / K-Nearest Neighbors (KNN) / Quantum K-Nearest Neighbors (QKNN) / Quantum Machine Learning (QML) / Quantum Support Vector Machine (QSVM) / Support Vector Machine (SVM)
© The Author(s) 2026
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.

