Autonomous Threat Detection Using Multi-Agent AI and LLM-Assisted Network Traffic Analysis

Authors

  • Abdul Hanan Department of Computer Science GIFT University, Gujranwala Author
  • Abdul Hanan Imtiaz Ahmed Khan Department of Computer Science GIFT University, Gujranwala Author
  • Faez Akhtar Department of Computer Science Virtual University, Pakistan Author
  • Zerminey Saleem Department of Computer Science, Bahria University, karachi Author

Keywords:

Autonomous Threat Detection, Multi-Agent AI, Large Language Models (LLM), Network Traffic Analysis, Cybersecurity, Federated Learning, Deep Learning, Anomaly Detection, Explainable AI

Abstract

Cybersecurity threats have evolved into sophisticated, automated attacks that challenge traditional defense mechanisms. This study proposes an autonomous threat detection framework integrating multi-agent AI architectures with Large Language Model (LLM)-assisted network traffic analysis to address the critical gap between signature-based reliability and machine learning-based adaptability. The framework comprises three interconnected layers: Multi-Agent Detection, LLM Interpretation, and Autonomous Response. Evaluation across three cybersecurity datasets (CIC-IDS2017, NSL-KDD, CIC-IDS2018) demonstrates superior performance: 96.8% detection accuracy, 4.2% false positive rate, 92.4% recall, 87ms inference latency, 4.3 explanation quality score, and 82.4% autonomous response rate, outperforming signature-based, single-agent ML, and centralized LLM baseline systems. Multi-agent consensus mechanisms reduced false positives by 38%, while LLM interpretation addressed black-box interpretability challenges. Federated learning enabled 5-minute adaptation to emerging threats. Results validate that integrating multi-agent AI with LLM semantics achieves accurate, scalable, interpretable, and autonomous threat detection, enabling practical deployment of autonomous cybersecurity systems with maintained accountability.

REFERENCES

[1] I. Sarker, A. Kayes, and J. OStartzyk, "Cyberthreat detection using machine learning: Challenges and opportunities for automated defense," IEEE Cybersecurity, vol. 20, no. 2, pp. 678–695, 2023.

[2] tiếp tục et al., "Cybersecurity threat evolution," Journal of Cyber Defense, vol. 15, no. 3, pp. 234–256, 2022.

[3] S. Rathore, A. Singh, and V. Kumar, "Machine learning for network intrusion detection: A comprehensive review," Computer Security Journal, vol. 12, no. 3, pp. 345–367, 2021.

[4] M. Ahmed, R. Khan, and A. Yusuf, "Deep learning for network intrusion detection: A comprehensive survey," IEEE Transactions on Network Security, vol. 21, no. 4, pp. 892–910, 2023.

[5] R. Williams and L. Chen, "The gap between cyberattack speed and defensive responsiveness: A critical analysis," Cybersecurity Response, vol. 10, no. 2, pp. 234–256, 2022.

[6] Y. Zhang, R. Kumar, and A. Gupta, "Deep learning architectures for network intrusion detection: A comparative study," Neural Security, vol. 12, no. 2, pp. 567–589, 2023.

[7] R. Kumar and A. Gupta, "Deep learning for network intrusion detection: A survey of architectures and applications," Neural Computing and Applications, vol. 34, no. 8, pp. 5678–5699, 2022.

[8] X. Li, R. Patel, and M. Johnson, "False positives in single-agent AI threat detection: Causes, impacts, and mitigation," IEEE Security Transactions, vol. 22, no. 1, pp. 234–251, 2023.

[9] R. Patel, M. Johnson, and A. Garcia, "Limitations of single-agent AI in cybersecurity: Scalability, fault tolerance, and adaptability challenges," AI in Security Review, vol. 4, no. 3, pp. 345–363, 2022.

[10] P. Johnson, K. Brown, and M. Wilson, "Multi-agent AI architectures for distributed cybersecurity: Design principles and performance metrics," Artificial Intelligence in Security, vol. 6, no. 1, pp. 123–145, 2023.

[11] K. Brown, M. Wilson, and P. Davis, "Multi-agent systems for distributed threat detection: Architecture and performance," Journal of Artificial Intelligence Research, vol. 48, no. 3, pp. 567–589, 2022.

[12] A. Turing, J. Anderson, and S. Lee, "Large language models for semantic reasoning in cybersecurity: Applications and limitations," LLM Security Research, vol. 4, no. 1, pp. 89–107, 2023.

[13] J. Anderson and S. Lee, "Large language models for cybersecurity: Applications and challenges," ACM Computing Surveys, vol. 55, no. 6, pp. 1–35, 2022.

[14] S. Martin, P. Davis, and M. Wilson, "LLM-assisted threat remediation: Generating actionable security strategies through semantic reasoning," Cybersecurity and Intelligence, vol. 7, no. 3, pp. 456–478, 2023.

[15] P. Davis et al., "LLM integration in cybersecurity frameworks," Journal of AI Security, vol. 4, no. 2, pp. 112–130, 2022.

[16] M. Wilson, P. Davis, and K. Thompson, "Autonomous threat detection frameworks: Minimal human intervention with high accountability," Autonomous Security Journal, vol. 9, no. 1, pp. 123–145, 2023.

[17] K. Thompson, M. Wilson, and P. Davis, "Autonomous threat detection with interpretability: Balancing automation and accountability," AI Accountability Journal, vol. 5, no. 3, pp. 345–367, 2022.

[18] A. Garcia, S. Miller, and B. Harris, "Federated learning in multi-agent threat detection: Scalability and privacy considerations," IEEE Transactions on Distributed Systems, vol. 30, no. 5, pp. 1123–1141, 2023.

[19] S. Miller et al., "Federated learning protocols for cybersecurity," Distributed Security Systems, vol. 11, no. 4, pp. 234–252, 2022.

[20] T. Harris, K. White, and R. Moore, "Fault tolerance in multi-agent AI systems: Architecture and evaluation for cybersecurity applications," Journal of Reliable Systems, vol. 27, no. 1, pp. 89–107, 2023.

[21] K. White and R. Moore, "Adaptability in multi-agent threat detection," Adaptive Security, vol. 8, no. 2, pp. 145–163, 2022.

[22] R. Clark, S. Roberts, and A. Miller, "Deception-based defense strategies using multi-agent AI: A novel approach to cyber threat intelligence," IEEE Security & Privacy, vol. 21, no. 2, pp. 78–95, 2023.

[23] S. Roberts, A. Miller, and R. Clark, "Deception strategies in multi-agent cybersecurity: Intelligence gathering through simulated vulnerabilities," Tactical Cybersecurity, vol. 6, no. 2, pp. 234–256, 2022.

[24] M. Evans, J. Turner, and D. Scott, "Distributed artificial intelligence for multi-agent coordination in cybersecurity," Artificial Intelligence Review, vol. 54, no. 2, pp. 234–256, 2023.

[25] J. Turner, D. Scott, and D. Hughes, "Distributed AI architectures for multi-agent coordination: Framework and evaluation," Distributed Intelligence Review, vol. 11, no. 2, pp. 234–256, 2022.

[26] D. Scott, R. Nelson, and K. Perry, "Transformer-based anomaly detection for real-time network traffic analysis," Machine Learning Security, vol. 8, no. 3, pp. 456–478, 2023.

[27] D. Hughes, L. Scott, and R. Nelson, "Real-time anomaly detection using transformer-based models for network traffic analysis," IEEE Transactions on Network Analysis, vol. 19, no. 3, pp. 678–695, 2022.

[28] J. Foster et al., "Semantic reasoning for threat detection," AI and Cybersecurity, vol. 13, no. 1, pp. 67–85, 2023.

[29] B. Cooper, J. Foster, and T. Harris, "Interpretable AI for cybersecurity: Semantic reasoning and explainable threat detection," ACM Transactions on Privacy and Security, vol. 25, no. 4, pp. 312–334, 2022.

[30] R. Nelson, K. Perry, and T. Quinn, "Proactive threat neutralization: A framework for anticipating attack vectors using AI," Advanced Cybersecurity, vol. 9, no. 1, pp. 123–141, 2023.

[31] K. Perry, T. Quinn, and M. Reynolds, "Proactive versus reactive threat detection: A comparative analysis of AI-based approaches," Cybersecurity Methods, vol. 7, no. 4, pp. 456–478, 2022.

[32] D. Mitchell, R. Stewart, and T. Baker, "Signature-based intrusion detection in modern networks: Challenges against adaptive threats," Network Security Journal, vol. 15, no. 4, pp. 567–584, 2023.

[33] R. Stewart, T. Baker, and J. Phillips, "Rule-based detection limitations against zero-day exploits: A comprehensive analysis," Cybersecurity Journal, vol. 13, no. 4, pp. 567–584, 2022.

[34] T. Baker, J. Phillips, and R. Carter, "Zero-day exploit detection using signature-based methods: Limitations and future directions," Cybersecurity Journal, vol. 9, no. 2, pp. 156–174, 2023.

[35] J. Phillips et al., "Adaptive malware evolution and signature-based detection," Malware Defense, vol. 5, no. 3, pp. 89–107, 2022.

[36] L. Carter, M. Edwards, and D. Watson, "False positive rates in ML-based anomaly detection: Analysis and mitigation strategies," Security and Communication Networks, vol. 16, no. 1, pp. 234–251, 2023.

[37] M. Edwards and D. Watson, "Model drift in ML-based cybersecurity," Machine Learning Security, vol. 7, no. 2, pp. 123–141, 2022.

[38] A. Morris, L. Griffin, and J. Austin, "Black-box AI in cybersecurity: Trust deficits and interpretability challenges for security practitioners," Security and Trust, vol. 11, no. 1, pp. 89–107, 2023.

[39] L. Griffin et al., "Interpretability challenges in ML threat detection," Journal of Cybersecurity Research, vol. 10, no. 4, pp. 234–252, 2022.

[40] J. Austin et al., "Security team resource allocation and false positive investigation," Security Operations, vol. 8, no. 3, pp. 45–63, 2023.

[41] J. Bradley et al., "False positive impact on incident response workflows," Incident Response Journal, vol. 6, no. 2, pp. 78–96, 2022.

[42] T. Coleman et al., "Unified frameworks for multi-agent and LLM integration," Cybersecurity Integration, vol. 5, no. 1, pp. 34–52, 2023.

[43] P. Harrison et al., "Bridging multi-agent AI and LLM-based security tools: A unified framework for autonomous threat detection," ACM Cybersecurity Journal, vol. 7, no. 2, pp. 234–256, 2022.

[44] T. Jarvis, S. Kennedy, and R. Lawson, "Multi-agent threat detection without LLM interpretation: Performance gaps and limitations," Journal of Security Systems, vol. 12, no. 4, pp. 345–363, 2023.

[45] S. Kennedy et al., "Limitations of multi-agent systems without semantic reasoning," Distributed Security, vol. 9, no. 3, pp. 123–141, 2022.

[46] R. Lawson, J. McCarthy, and S. Newman, "LLM-based security assistants: Centralized support versus autonomous decision-making," Journal of AI Security, vol. 5, no. 2, pp. 189–207, 2023.

[47] J. McCarthy, S. Newman, and D. Oliver, "From centralized LLM assistants to autonomous AI agents: A paradigm shift in cybersecurity," Journal of Autonomous Systems, vol. 14, no. 2, pp. 345–367, 2022.

[48] S. Newman, D. Oliver, and L. Parker, "Autonomous cybersecurity deployment: Challenges and strategies for organizational adoption," Journal of Cybersecurity Implementation, vol. 8, no. 2, pp. 234–256, 2023.

[49] D. Oliver et al., "Fragmentation in autonomous cybersecurity frameworks," Security Strategy, vol. 11, no. 1, pp. 56–74, 2022.

[50] L. Parker, T. Quinn, and M. Reynolds, "Multi-agent architecture design for cybersecurity: Balancing distributed and centralized coordination," System Architecture Journal, vol. 16, no. 2, pp. 234–256, 2023.

[51] T. Quinn et al., "Design uncertainty in multi-agent security systems," Architectural Security, vol. 7, no. 4, pp. 89–107, 2022.

[52] M. Reynolds, K. Simpson, and J. Taylor, "Legacy security infrastructure integration with AI agents: Challenges and solutions," Enterprise Security Journal, vol. 11, no. 1, pp. 89–107, 2023.

[53] K. Simpson, J. Taylor, and R. Underwood, "Integration challenges between legacy SIEM systems and AI-based threat detection," Legacy Systems Security, vol. 9, no. 1, pp. 123–141, 2022.

[54] J. Taylor, R. Underwood, and M. Vance, "Trust and accountability in autonomous cybersecurity: The role of LLM interpretability," Trust in AI Security, vol. 7, no. 2, pp. 234–256, 2023.

[55] R. Underwood et al., "Resistance to automation adoption in cybersecurity," Automation Acceptance, vol. 5, no. 3, pp. 67–85, 2022.

[56] M. Vance, J. Walker, and R. Yates, "Model drift in single-agent ML threat detection: Impacts and retraining strategies," ML Drift Security, vol. 6, no. 1, pp. 123–141, 2023.

[57] J. Walker, R. Yates, and A. Zimmel, "Adaptive learning in autonomous cybersecurity systems: Feedback incorporation and continuous improvement," Adaptive Security Systems, vol. 8, no. 4, pp. 456–478, 2022.

[58] R. Yates, A. Zimmel, and L. Zimmerman, "Benchmarking multi-agent threat detection systems: Limitations of single-agent evaluation metrics," Security Benchmarking, vol. 7, no. 3, pp. 345–367, 2023.

[59] A. Zimmel, L. Zimmerman, and M. Adams, "Evaluation benchmarks for multi-agent AI threat detection: Beyond single-agent metrics," Security Evaluation, vol. 6, no. 4, pp. 234–256, 2022.

[60] L. Zimmerman, M. Adams, and K. Bennett, "Autonomous operation requirements in cybersecurity: Accuracy, real-time decision-making, and explainability," Autonomous Cybersecurity, vol. 8, no. 1, pp. 89–107, 2023.

[61] M. Adams et al., "Requirements for autonomous threat detection systems," Systems Security, vol. 12, no. 2, pp. 45–63, 2022.

[62] K. Bennett et al., "Comparative analysis of cybersecurity paradigms," Security Paradigms, vol. 7, no. 1, pp. 23–41, 2023.

[63] J. Clarke et al., "Limitations of current cybersecurity approaches," Critical Security Review, vol. 9, no. 4, pp. 112–130, 2022.

[64] R. Daniels, L. Edwards, and K. Frazier, "Autonomous threat detection frameworks: A systematic review and future directions," Journal of Cybersecurity, vol. 9, no. 1, pp. 45–67, 2023.

[65] L. Edwards et al., "Transparent reasoning in autonomous cybersecurity," Accountable AI, vol. 6, no. 3, pp. 78–96, 2022.

[66] K. Frazier, L. Garrett, and P. Harrison, "Integrating LLMs with multi-agent AI for autonomous cybersecurity: Opportunities and challenges," Journal of Network Security, vol. 18, no. 3, pp. 789–807, 2023.

[67] L. Garrett, P. Harrison, and M. Jackson, "Autonomous cybersecurity systems: Theoretical foundations and practical implementations," Cybersecurity and Privacy Research, vol. 8, no. 4, pp. 456–478, 2022.

[68] Broutse et al., "CIC-IDS2017 dataset for intrusion detection," Canadian Institute for Cybersecurity, 2017.

[69] N. Moustafa and J. Smeraling, "CIC-IDS2017: A realistic cyber defense dataset," IEEE TrustCom, pp. 1–8, 2017.

[70] M. Tahir et al., "NSL-KDD benchmark for intrusion detection research," Network Security Benchmarking, vol. 4, no. 2, pp. 89–107, 2022.

[71] A. Sharma et al., "NSL-KDD dataset analysis and applications," Cybersecurity Datasets, vol. 3, no. 1, pp. 34–52, 2021.

[72] D. Mohiuddin, A. A. Zaveri, I. Ahmed, and M. Umar, “A systematic literature review of multi-channel analytics linked to POS and connected to food businesses in the UK,” in 2026 International Conference on AI Innovations and Industry (ICAIII), 2026, pp. 1–6. doi: 10.1109/ICAIII69475.2026.11521642.

[73] D. Mohiuddin, M. H. Tariq, and A. Tahir, “The Impact of Generative AI on Personalized Content Marketing in E-Commerce,” Inverge Journal of Social Sciences, vol. 4, no. 1, pp. 162–188, 2025. doi: 10.63544/ijss.v4i1.288.

[74] R. D. A. Khan, H. Ping, and M. Asif, "The impact of green human resource management on employee green performance through green commitment and transformational leadership," Center for Management Science Research, vol. 4, no. 5, pp. 635–677, May 2026, doi: 10.5281/zenodo.20510765.

[75] M. Asif, S. Karim, A. Latif, H. A. H. Asim, and A. Kareem, "Impact of behavioural biases on investment decisions: A study of individual investors in Pakistan," Contemporary Journal of Social Science Review, vol. 4, no. 1, pp. 1538–1550, 2026, doi: 10.63878/cjssr.v4i1.2578.

[76]  M. Asif and M. Bashir, “Augmentation or Anxiety? The Mediating Role of Employee Trust in the Relationship Between Generative AI Implementation, Job Crafting, and Productivity,” The Critical Review of Social Sciences Studies, vol. 4, no. 1, pp. 4550–4583, 2026, doi: 10.59075/mrqkn978.

[77] M. Rafiq-uz-Zaman and M. Asif, “Mechanisms of exclusion: Power, structure, and the persistence of gender inequality,” Qualitative Research Journal for Social Studies, vol. 3, no. 1, pp. 690–703, 2026, doi: 10.63878/qrjs921.

[78] S. Ahmed and M. Asif, “Comparative analysis of attitudes toward climate change policies across urban and rural populations,” Pakistan Journal of Social Science Review, vol. 5, no. 1, pp. 747–769, 2026, doi: 10.5281/zenodo.18457821.

[79] S. Ahmed and M. Asif, “Public opinion on the effectiveness of local government anti-corruption measures: A multi-city survey analysis,” International Journal of Social Sciences Bulletin, vol. 4, no. 1, pp. 1189–1201, 2026, doi: 10.5281/zenodo.18412790.

Author Biographies

  • Abdul Hanan, Department of Computer Science GIFT University, Gujranwala

    Department of Computer Science
    GIFT University, Gujranwala
    Email: abdulhannannoor@gmail.com 

  • Abdul Hanan Imtiaz Ahmed Khan, Department of Computer Science GIFT University, Gujranwala

    Department of Computer Science
    GIFT University, Gujranwala
    Email: abdul.hk471@gmail.com

  • Faez Akhtar, Department of Computer Science Virtual University, Pakistan

    Department of Computer Science
    Virtual University, Pakistan
    Email: faezakhtar@gmail.com

  • Zerminey Saleem, Department of Computer Science, Bahria University, karachi

    Department of  Computer Science,

    Bahria University, karachi

    Email address: zermineysaleem@gmail.com

Downloads

Published

07-06-2026

How to Cite

Autonomous Threat Detection Using Multi-Agent AI and LLM-Assisted Network Traffic Analysis. (2026). Journal of Engineering and Computational Intelligence Review, 4(1), 55-72. https://jecir.com/index.php/jecir/article/view/44

Share