Malicious Traffic Detection Based on a Hybrid CNN ‐Mamba Architecture With Statistical Feature Enhancement
Tao Pan, Dixu Chen, Yunsong Li, Yang Meng
Key points
From the paper's conclusion- Compared with prior Mamba‐based traffic models, the contribution of this work is not the first application of Mamba to network traffic, but a task‐specific lightweight extension that investigates whether local convolutional enhancement and PL/IAT metadata can improve the accuracy‐efficiency trade‐off for malicious traffic detection.
Abstract
Transformer‐based traffic analysis models can capture long‐range byte dependencies, but their quadratic attention cost limits their use in latency‐sensitive malicious traffic detection. This paper proposes a lightweight malicious traffic detection framework based on a hybrid CNN‐Mamba architecture with statistical feature enhancement. The method uses a depthwise separable 1D‐CNN front end to strengthen local byte‐pattern extraction and stacked Mamba blocks to model long‐range sequence dependencies with linear‐time sequence processing. In addition to byte‐level representations, packet length (PL) and inter‐arrival time (IAT) sequences are extracted as low‐cost flow‐level statistical metadata and fused with the semantic representation produced by the Mamba backbone. Compared with prior Mamba‐based traffic models, the contribution of this work is not the first application of Mamba to network traffic, but a task‐specific lightweight extension that investigates whether local convolutional enhancement and PL/IAT metadata can improve the accuracy‐efficiency trade‐off for malicious traffic detection. On the USTC‐TFC2016 benchmark, the task is formulated as fine‐grained multi‐class traffic recognition over both normal application classes and malware‐family classes. Under this setting, the proposed model achieves a macro F 1‐score of 99.03%, a macro false positive rate of 0.0717%, and a single‐flow model‐forward latency of 0.3586 ms after preprocessing. Additional validation on CIC‐IDS‐2017, CICIoT2023, and CICAPT‐IIoT2024 further evaluates the model under broader intrusion, IoT, and APT/IIoT traffic‐security settings. Header‐sanitization analysis, expanded baseline comparisons, ablation studies, and five‐seed stability experiments indicate that the improvement is obtained without relying on identity‐related header shortcuts and with only a small increase in model size and model‐forward latency.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- FedMamba-IoMT: Federated state space models with differential privacy and byzantine resilience for privacy-preserving intrusion detection in Internet of Medical Things.PloS one · 2026
- A Two-Stage Selective Deep Learning Framework for Malware Family Classification in Encrypted Network TrafficElectronics · 2026
- MariIRQ-Mamba-Lite: Lightweight CPU Interrupt Side-Channel Fingerprinting for Maritime WebsitesJournal of Marine Science and Engineering · 2026
- A Hybrid CNN-BiLSTM Attention-Based Framework for Intelligent Intrusion DetectionInternational Journal of Innovative Science and Research Technology (IJISRT) · 2026
- MCHKAN: Semantic Multichannel Heatmap Encoding With Wavelet Kolmogorov–Arnold Networks for Malicious Network Traffic DetectionJournal of Electrical and Computer Engineering · 2026
- Do LLMs Understand Network Traces? A Comparative Study of Reasoning over Raw and Filtered Traffic DataarXiv · 2026