Detecting encrypted malicious traffic with HEAT: a header-focused deep learning approach
- 4 August 2025
- journal article
- Published by Oxford University Press (OUP) in The Computer Journal
- Vol. 68 (12) , 2031-2058
Abstract
The widespread adoption of encryption in network traffic significantly challenges traditional detection methods that rely on payload analysis. Existing approaches often convert traffic into images or sequences for deep learning models, producing redundant features and struggling with multi-protocol environments. In this study, we propose HEAT (Header-Embedded Attention for Traffic Detection), a novel model that leverages packet header fields to develop a robust characteristic representation for encrypted traffic analysis. HEAT introduces a hierarchical attention mechanism combined with a novel contextual embedding technique that enhances the semantic representation of header field values. Additionally, HEAT integrates an adapted Kolmogorov–Arnold Network classifier with B-spline activations and L1 weight regularization, optimizing the model for efficient real-time processing. Extensive evaluations on CICIDS-2018, Stratosphere, and ISCX2012 datasets demonstrate HEAT’s superior performance, achieving 98.95% accuracy and 98.28% F1-score on CICIDS-2018, 99.5% accuracy and 98.54% F1-score on Stratosphere, and 99.75% accuracy with 99.25% F1-score on ISCX2012. HEAT significantly outperforms CNN, LSTM, and BiGRU baselines. Moreover, it maintains detection accuracy above 98.95% during incremental learning, with only a 0.9% F1-score drop, compared with 6.55% in conventional models. These results highlight HEAT’s novelty, stability, and adaptability, making it a scalable and robust solution for encrypted malicious traffic detection.Keywords
Funding Information
- National Natural Science Foundation of China (62172194)
- National Natural Science Foundation of China (62202206)
- National Natural Science Foundation of China (U183 6116)
- Natural Science Foundation of Jiangsu Province (BK20220515)
- China Postdoctoral Science Foundation (2023T160275)
- QingLan Project of Jiangsu Province
This publication has 42 references indexed in Scilit:
- RAGN: Detecting unknown malicious network traffic using a robust adaptive graph neural networkComputer Networks, 2025
- Encrypted malicious traffic detection based on natural language processing and deep learningComputer Networks, 2024
- Deep learning for cyber threat detection in IoT networks: A reviewInternet of Things and Cyber-Physical Systems, 2024
- A malicious network traffic detection model based on bidirectional temporal convolutional network with multi-head self-attention mechanismComputers & Security, 2023
- Encrypted network traffic classification based on machine learningAin Shams Engineering Journal, 2023
- Graph based encrypted malicious traffic detection with hybrid analysis of multi-view featuresInformation Sciences, 2023
- Feature mining for encrypted malicious traffic detection with deep learning and other machine learning algorithmsComputers & Security, 2023
- A novel detection model for abnormal network traffic based on bidirectional temporal convolutional networkInformation and Software Technology, 2023
- A Hitchhiker's guide to statistical tests for assessing randomized algorithms in software engineeringSoftware Testing, Verification and Reliability, 2012
- Toward developing a systematic approach to generate benchmark datasets for intrusion detectionComputers & Security, 2012