Attacker Attribution in Multi-Step and Multi-Adversarial Network Attacks Using Transformer-Based Approach
Source abstract
Abstract
Recent studies on network intrusion detection using deep learning primarily focus on detecting attacks or classifying attack types, but they often overlook the challenge of attributing each attack to its specific source among many potential adversaries (multi-adversary attribution). This is a critical and underexplored issue in cybersecurity. In this study, we address the problem of attacker attribution in complex, multi-step network attack (MSNA) environments, aiming to identify the responsible attacker (e.g., IP address) for each sequence of security alerts, rather than merely detecting the presence or type of attack. We propose a deep learning approach based on Transformer encoders to classify sequences of network alerts and attribute them to specific attackers among many candidates. Our pipeline includes data preprocessing, exploratory analysis, and robust training/validation using stratified splits and 5-fold cross-validation, all applied to real-world multi-step attack datasets from capture-the-flag (CTF) competitions. We compare the Transformer-based approach with a multilayer perceptron (MLP) baseline to quantify the benefits of advanced architectures. Experiments on this challenging dataset demonstrate that our Transformer model achieves near-perfect accuracy (99.98%) and F1-scores (macro and weighted ≈ 99%) in attack attribution, significantly outperforming the MLP baseline (accuracy 80.62%, macro F1 65.05% and weighted F1 80.48%). The Transformer generalizes robustly across all attacker classes, including those with few samples, as evidenced by per-class metrics and confusion matrices. Our results show that Transformer-based models are highly effective for multi-adversary attack attribution in MSNA, a scenario not or under-addressed in the previous intrusion detection systems (IDS) literature. The adoption of advanced architectures and rigorous validation strategies is essential for reliable attribution in complex and imbalanced environments.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Network Security and Intrusion Detection
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Faculty of Engineering and Sciences, Universidad Adolfo Ibáñez, Viña del Mar 2562340, Chile
National Center of Artificial Intelligence, Santiago 7820605, Chile
Funding
National Agency of Research and Development of Chile (ANID) · ANID FONDECYT
References (24)
Show source-provided references
1. A systematic survey on multi-step attack detection10.1016/j.cose.2018.03.001 ↗
2. A Survey on Advanced Persistent Threats: Techniques, Solutions, Challenges, and Research Opportunities10.1109/COMST.2019.2891891 ↗
3. MITRE Corporation (2025, June 20). MITRE ATT&CK: A Knowledge Base of Adversary Tactics and Techniques. Available online: https://attack.mitre.org/.
4. Xiang, X., Liu, H., Zeng, L., Zhang, H., and Gu, Z. (2024). IPAttributor: Cyber Attacker Attribution with Threat Intelligence-Enriched Intrusion Data. Mathematics, 12.10.3390/math12091364 ↗
5. Li, J., Liu, J., and Zhang, R. (2024). Advanced Persistent Threat Group Correlation Analysis via Attack Behavior Patterns and Rough Sets. Electronics, 13.10.3390/electronics13061106 ↗
6. Kim, K., Shin, Y., Lee, J., and Lee, K. (2021). Automatically Attributing Mobile Threat Actors by Vectorized ATT&CK Matrix and Paired Indicator. Sensors, 21.10.3390/s21196522 ↗
7. Zhang, J., Cheng, K., Xiong, X., Dong, R., Huang, J., and Jie, S. (2024, January 17–21). Construction of Cyber-attack Attribution Framework Based on LLM. Proceedings of the 2024 IEEE 23rd International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), Sanya, China.10.1109/TrustCom63139.2024.00310 ↗
8. Deka, P., Rajapaksha, S., Rani, R., Almutairi, A., and Karafil, E. (2024, January 2–5). AttackER: Towards Enhancing Cyber-Attack Attribution with a Named Entity Recognition Dataset. Proceedings of the Web Information Systems Engineering–WISE 2024, Doha, Qatar.10.1007/978-981-96-0576-7_20 ↗
9. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention Is All You Need. arXiv.
10. Amaru, Y., Wudali, P., Elovici, Y., and Shabtai, A. (2024). RAPID: Robust APT Detection and Investigation Using Context-Aware Deep Learning. arXiv.
11. A Transformer-based network intrusion detection approach for cloud security10.1186/s13677-023-00574-9 ↗
12. Wang, N., Wen, X., Zhang, D., Zhao, X., Ma, J., Luo, M., Nie, S., Wu, S., and Liu, J. (2023). TBDetector: Transformer-Based Detector for Advanced Persistent Threats with Provenance Graph. arXiv.
13. Afnan, S., Sadia, M., Iqbal, S., and Iqbal, A. (2023). LogShield: A Transformer-based APT Detection System Leveraging Self-Attention. arXiv.
14. Long-Term Prediction of Network Security Situation Through the Use of the Transformer-Based Model10.1109/ACCESS.2022.3175516 ↗
15. FlowTransformer: A transformer framework for flow-based network intrusion detection systems10.1016/j.eswa.2023.122564 ↗
16. Guru, K., Moss, R.J., and Kochenderfer, M.J. (2025). On Technique Identification and Threat-Actor Attribution using LLMs and Embedding Models. arXiv.
17. Rani, N., Saha, B., and Shukla, S.K. (2024). A Comprehensive Survey of Advanced Persistent Threat Attribution. arXiv.10.70777/agi.v1i1.10869 ↗
18. Under false flag: Using technical artifacts for cyber attack attribution10.1186/s42400-020-00048-4 ↗
19. DEF CON CTF Organizers (2025, June 20). DEF CON 22 Capture the Flag PCAP Dataset. DEF CON Media Server, Las Vegas, 2014. Available online: https://media.defcon.org/DEF%20CON%2022/DEF%20CON%2022%20ctf/.
20. Yam, W.K.J. (2016). Strategies Used in Capture-the-Flag Events Contributing to Team Performance. [Master’s Thesis, Naval Postgraduate School]. Available online: https://archive.org/details/strategiesusedin1094548498/strategiesusedin1094548498/.
21. Snort (2025, June 20). Snort Intrusion Detection System. Cisco, 2024. Available online: https://www.snort.org/.
22. Cano, M., and Torres, R. (2023). Caracterización de ataques multietapa en ejercicios Capture The Flag. Rev. Política Estrateg., 133–151.10.26797/rpye.vi141.1028 ↗
23. Moustafa, N., and Slay, J. (2025, June 20). UNSW-NB15 Dataset [Data Set]. University of New South Wales. Available online: https://research.unsw.edu.au/projects/unsw-nb15-dataset.
24. Zhang, C., Li, J., Wang, N., and Zhang, D. (2025). Research on Intrusion Detection Method Based on Transformer and CNN-BiLSTM in Internet of Things. Sensors, 25.10.3390/s25092725 ↗