Skip to content
Open access

Multistage advanced persistent threat detection and malware attribution using Mamba state space models with Kolmogorov Arnold networks

Sep 2026 · Scientific Reports · Vol 16 · 0 citations · 40 references

TL;DR

MambaKAN-APT is a deep learning framework that synergizes Kolmogorov–Arnold Networks (KAN) with Mamba Selective State Space Models (SSMs) for multi-stage APT attack detection and malware family attribution and attains the highest mean macro-F1 on the DAPT 2020 task.

Abstract

Advanced Persistent Threats (APTs) represent the most sophisticated class of cyberattacks, characterized by multi-stage, stealthy, and persistent intrusion campaigns orchestrated by well-funded, often state-sponsored adversaries. Existing detection methods suffer from three critical limitations: inability to model long-range temporal dependencies across sequential attack phases, reliance on fixed activation functions that cannot capture subtle decision boundaries between stealthy APT traffic and normal operations, and lack of interpretability in detection decisions. In this paper, we propose MambaKAN-APT, a deep learning framework that synergizes Kolmogorov–Arnold Networks (KAN) with Mamba Selective State Space Models (SSMs) for multi-stage APT attack detection and malware family attribution. The KAN Feature Encoder employs learnable edge-wise activation functions parameterized as B-splines (evaluated by the De Boor recursion) to automatically discover nonlinear feature transformations for each input dimension. Stacked Mamba SSM blocks implement a genuine selective state-space recurrence that captures temporal dependencies across sequential attack phases with linear computational complexity \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathscr {O}}(L)$$\end{document}, unlike the quadratic cost of Transformer architectures. A dual-pooling classification head combined with Focal Loss addresses the severe class imbalance inherent in APT datasets, while SHAP-based explainability provides interpretable per-feature importance analysis. We evaluate MambaKAN-APT on two real, publicly available benchmarks under a rigorous, leakage-aware, reproducible protocol with results reported as mean ± standard deviation over repeated runs: the DAPT 2020 network-flow benchmark (86,691 flows, 64 informative CICFlowMeter features across five attack phases, with Normal traffic forming 73.5% of flows) and the CyberScienceLab APT malware dataset (1,428 samples across five threat-actor groups, represented by disassembled opcode sequences). Because DAPT 2020 is highly imbalanced, we adopt macro-F1 as the primary metric. On the tabular DAPT 2020 task, gradient boosting (XGBoost) is a very strong baseline (macro-F1 0.758) and is competitive with or stronger than the deep models on macro-F1; we report this explicitly. On the genuinely sequential CyberScienceLab attribution task—the setting best suited to a state-space model—MambaKAN-APT attains the highest mean macro-F1 (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\approx 0.959$$\end{document}) with low across-seed variance, although on this balanced task it is statistically tied with the strong XGBoost n-gram baseline (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\approx 0.954$$\end{document}; paired t-test p = 0.59), a result we report transparently rather than over-claiming a sequential advantage. To the best of our knowledge, this is the first work combining Mamba SSMs with KAN architectures for APT detection. SHAP analysis identifies flow- and packet-level statistics (DAPT 2020) and discriminative opcode n-grams (CyberScienceLab) as the most influential features. All code, cached features, fixed seeds, and download scripts are deposited for full reproducibility.

Read PDF

Similar papers

Conference Open access Sep 2026

KEYSER: Stateful Adversarial Campaign Evaluation of ML-Based Intrusion Detection in Industrial Automation

Industrial automation environments face persistent adversarial threats that signature-based detection cannot address, driving deployment of Machine Learning-based Intrusion Detection Systems (ML-IDS) at the Information Technology / Operational Technology boundary. Adversarial Machine Learning research treats evasion as...

Jaafer Rahmani, Axel Sikora · 0 citations
Open access 2026

MalBERT-Temporal: Transformer-Based Zero-Day Malware Detection in Windows Executable Binaries Under Strict Temporal Isolation

A Transformer-based malware detection approach named MalBERT-Temporal that reshapes the 2,381-dimensional BODMAS PE feature vector into 16 contiguous feature-group tokens and then processes these tokens with Transformer encoder layers employing multi-head self-attention to model interactions among all tokens is introdu...

Manar Alanazi, Israa Alsiyat · 0 citations
Open access Oct 2026

ZD-HybridNet integrates transformer and LSTM models for explainable zero day cyber attack detection

ZD-HybridNet (Zero-Day Hybrid Attention Network), a novel explainable deep learning framework for large-scale network traffic analysis, coupled with an integrated explainability framework that combines model-internal attention and fusion signals with SHAP-based feature attribution to support interpretation of detection...

Alfaiz Madhiya, Sakib Salam Jamee, Khadeza Yesmin Lucky et al. · 0 citations
#generative ai Open access Sep 2026

Development of an AI-Based Model for Predicting Cyber Attacks Using ML and Generative Techniques

Across the datasets tested, this hybrid, explainability-aware approach consistently outperformed conventional intrusion detection baselines on prediction accuracy, detection capability and adaptability to new attack types, positioning it as a scalable model for real-time attack prediction and security analysis in moder...

Lalith Nivas Yadlapalli, C. N., S. Chintalapudi · 0 citations
Conference Open access Sep 2026

Benchmarking of Some AI Models for Process-Aware Attack Detection in ICS

Industrial control systems (ICS) are increasingly targeted by process-aware attacks that manipulate physical components to drive processes toward critical states. While unsupervised anomaly detection offers a promising defense, standard statistical evaluations fail to capture how these algorithms react to underlying ph...

Giovanni Grieco, L. A. Kenmogne, Stéphane Mocanu · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.