Automating MITRE ATT&CK Threat Synthesis with Adversarial Reinforcement Learning
Abstract
Modern cyber threats evolve faster than static, signature-based defenses can track. Defenders therefore need machine-readable cyber threat intelligence that can anticipate novel adversary behavior before it appears in the wild. We present an end-to-end framework that fine-tunes a LLaMA 3.1 8B Instruct model on the MITRE ATT&CK Enterprise Matrix (STIX/JSON v18, comprising 835 attack patterns, 187 threat groups, and 20,050 relationships) and trains it with Group Relative Policy Optimization (GRPO), combined with a four-component reward (relevance, novelty, impact, and feasibility) and an adversarial-robustness penalty. Parameter-efficient fine-tuning is performed with QLoRA inside the Unsloth runtime, allowing the full pipeline to be reproduced on a single 24 GB consumer GPU. Evaluated across five random seeds and 1,000 sampled Tactics, Techniques, and Procedures (TTPs) per model, the GRPO-trained policy achieved a TTP Quality Score of 0.850 ± 0.009 (95 % bootstrap CI), an Adversarial Robustness of 91.3 % ± 1.0 %, and a Generation Diversity of 89.7 % ± 0.9 %. All results are statistically superior to both the base and supervised-fine-tuned baselines (paired bootstrap test, p < 0.001; Cohen's d ≥ 3.4). We complement the empirical analysis with an ablation study, an external expert evaluation by three certified security analysts, robustness-variance analysis, and a detailed discussion of theoretical justification, ethical considerations, reproducibility, scalability, and deployment.
- Referencias
- Cómo citar
- Del mismo autor
- Métricas
Alsharabi, N., Bhardwaj, A., Ayaba, A., & Jadi, A. (2025). Threat hunting for adversary impact inhibiting system recovery. Computers & Security, 154, Article 104464. https://doi.org/10.1016/j.cose.2025.104464
Bao, J., Dang, C., Luo, R., Zhang, H., & Zhou, Z. (2025). Enhancing adversarial robustness with conformal prediction: A framework for guaranteed model reliability [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2506.07804
Bercovich, A., Levy, I., Golan, I., Dabbah, M., El-Yaniv, R., Puny, O., & Chung, E. (2025). LLaMA-nemotron: Efficient reasoning models [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2505.00949
Cuong Nguyen, H., Tariq, S., Baruwal Chhetri, M., & Quoc Vo, B. (2025). Towards effective identification of attack techniques in cyber threat intelligence reports using large language models. In Companion Proceedings of the ACM on Web Conference 2025 (pp. 942–946). Association for Computing Machinery. https://doi.org/10.1145/3701716.3715469
Guru, K., Moss, R. J., & Kochenderfer, M. J. (2025). On technique identification and threat-actor attribution using LLMs and embedding models [Preprint]. arXiv. https://doi.org/10.1109/Cyber-AI66431.2025.11233715
Han, Y., Jiang, R., Li, C., Huang, Y., Chen, K., Yu, H., & Zhao, X. (2025). AT4CTIRE: Adversarial training for cyber threat intelligence relation extraction. Electronics, 14(2), Article 324. https://doi.org/10.3390/electronics14020324
Hasan, K., Hossain, F., Amin, A., Sutradhar, Y., Jeny, I. J., & Mahmud, S. (2025). Enhancing proactive cyber defense: A theoretical framework for AI-driven predictive cyber threat intelligence. Journal of Technologies Information and Communication, 5(1), Article 33122. https://doi.org/10.55267/rtic/16176
Huang, Y. T., Vaitheeshwari, R., Chen, M. C., Lin, Y. D., Hwang, R. H., Lin, P. C., & Chen, C. K. (2024). MITREtrieval: Retrieving MITRE techniques from unstructured threat reports by fusion of deep learning and ontology. IEEE Transactions on Network and Service Management. Advance online publication. https://doi.org/10.1109/TNSM.2024.3401200
Kanj, S., Garcia, P., Rosés, O., & Pegueroles, J. (2025). A review of tactics, techniques, and procedures (TTPs) of MITRE framework for business email compromise (BEC) attacks. IEEE Access. Advance online publication.
Kassianik, P., Saglam, B., Chen, A., Nelson, B., Vellore, A., Aufiero, M., & Karbasi, A. (2025). LLaMA-3.1-foundationai-securityllm-base-8b technical report [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2504.21039
Levy, N., Ashrov, A., & Katz, G. (2025). Towards robust LLMs: An adversarial robustness measurement framework [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2504.17723
Li, D., Zhang, Z., Wang, L., & Zhang, H. R. (2025). Efficient ensemble for fine-tuning language models on multiple datasets. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics. https://doi.org/10.18653/v1/2025.acl-long.1231
Loumachi, F. Y., Ghanem, M. C., & Ferrag, M. A. (2025). Advancing cyber incident timeline analysis through retrieval-augmented generation and large language models. Computers, 14(2), Article 67. https://doi.org/10.3390/computers14020067
Mavroudis, V., Palmer, G., Farmer, S., Whitehead, K. S., Foster, D., Price, A., & Pasteris, S. (2025). Guidelines for applying RL and MARL in cybersecurity applications [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2503.04262
Meleshin, I., Chistyakova, A., Antsiferova, A., & Vatolin, D. (2025). Robustness as architecture: Designing IQA models to withstand adversarial perturbations. In Proceedings of the 33rd ACM International Conference on Multimedia. Association for Computing Machinery. https://doi.org/10.1145/3746027.3758182
Meta Platforms, Inc. (2024). LLaMA 3.1 8B Instruct (Version 3.1) [Large language model]. Hugging Face. https://huggingface.co/meta-LLaMA/LLaMA-3.1-8B-Instruct
MITRE Corporation. (2024). MITRE ATT&CK® Navigator [Interactive matrix visualization tool]. https://mitre-attack.github.io/attack-navigator/
Nir, D., Kaiser, F. K., Giladi, S., Sharabi, S., Moyal, R., Shpolyansky, S., & Puzis, R. (2025). Labeling Network Intrusion Detection System (NIDS) rules with MITRE ATT&CK techniques: Machine learning vs. large language models. Big Data and Cognitive Computing, 9(2), Article 23. https://doi.org/10.3390/bdcc9020023
Pan, X., Chen, Y., Chen, Y., Sun, Y., Chen, D., Zhang, W., & Zhou, J. (2025). Trinity-RFT: A general-purpose and unified framework for reinforcement fine-tuning of large language models [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2505.17826
Paul, S., Alemi, F., & Macwan, R. (2025). LLM-assisted proactive threat intelligence for automated reasoning [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2504.00428
Qi, T., Xue, L., Zhan, Y., & Ma, X. (2025). Sylva: Tailoring personalized adversarial defense in pre-trained models via collaborative fine-tuning. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining. Association for Computing Machinery. https://doi.org/10.1145/3719027.3744805
Salek, M. S., Chowdhury, M., Munir, M. B., Cai, Y., Hasan, M. I., Tine, J. M., & Rahman, M. (2025). A large language model-supported threat modeling framework for transportation cyber-physical systems. IEEE Access. Advance online publication. https://doi.org/10.1109/ACCESS.2025.3603580
Sîrbu, A. G., & Czibula, G. (2025). Automatic code generation based on Abstract Syntax-based encoding. Application on malware detection code generation based on MITRE ATT&CK techniques. Expert Systems with Applications, 264, Article 125821. https://doi.org/10.1016/j.eswa.2024.125821
Unsloth AI. (2025). Reinforcement Learning (RL) guide. Unsloth Documentation. https://docs.unsloth.ai/basics/reasoning-grpo-and-RL
Wang, Y., Wang, P., Xi, C., Tang, B., Zhu, J., Wei, W., & Yang, M. (2025). Adversarial preference learning for robust LLM alignment. In Findings of the Association for Computational Linguistics: ACL 2025. Association for Computational Linguistics. https://doi.org/10.18653/v1/2025.findings-acl.1126
Wang, Y., Zang, Y., Wang, C., Lu, Q., Jin, C., & Wang, J. (2026). Unified multimodal chain-of-thought reward model through reinforcement fine-tuning. Advances in Neural Information Processing Systems, 38, 159130–159157. https://doi.org/10.52202/085713-5315
Wang, Z., Yang, Y., Zhang, B., Wang, R., Jing, L., & Zhang, B. (2025). Enhancing multi-task performance through associative adversarial learning based on selective attacks. Neurocomputing, 640, Article 130229. https://doi.org/10.1016/j.neucom.2025.130229
Wu, C., Zhang, Z., Wei, Z., Zhang, Y., & Sun, M. (2025). Mitigating fine-tuning risks in LLMs via safety-aware probing optimization [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2505.16737
Zhang, S., Xue, X., & Su, X. (2025). DeepOP: A hybrid framework for MITRE ATT&CK sequence prediction via deep learning and ontology. Electronics, 14(2), Article 257. https://doi.org/10.3390/electronics14020257