AMALLM: AN ADAPTIVE MULTI-AGENT LARGE LANGUAGE MODEL FRAMEWORK FOR CYBERSECURITY THREAT DETECTION AND CONTROLLED RESPONSE
Keywords:
Large Language Models (LLMs); Multi-Agent Systems; Autonomous Cybersecurity; Threat Detection; Adaptive Cyber defence ; Incident ResponseAbstract
The increasing complexity, volume, and adaptability of cyber threats are exposing fundamental limitations in conventional intrusion-detection systems and single-agent artificial intelligence architectures, particularly in contextual reasoning, evidence verification, and autonomous response. This study proposes an Adaptive Multi-Agent Large Language Model (AMALLM) framework that integrates threat detection, threat-intelligence verification, contextual risk assessment, response planning, and response validation within a unified detection-to-response architecture. Unlike single-agent approaches, AMALLM decomposes cybersecurity decision-making among five specialized agents coordinated through structured inter-agent communication, shared contextual memory, cross-agent verification, and feedback-driven adaptation. The framework is evaluated using CICIDS2017 and UNSW-NB15 and compared with conventional machine-learning, deep-learning, and single-agent LLM baselines across detection effectiveness, false-positive rates, response appropriateness, robustness, and computational efficiency. In the illustrative evaluation, AMALLM achieved 96.4% accuracy and a 95.9% macro F1-score on CICIDS2017, with a false-positive rate of 2.8%, while achieving 94.1% accuracy and a 93.5% macro F1-score on UNSW-NB15. Compared with the single-agent LLM, AMALLM improved macro F1-score by 2.6 percentage points and reduced the false-positive rate by 1.8 percentage points. The framework selected appropriate defensive responses in 94.7% of simulated incidents, while ablation analysis indicated that threat verification and response validation were particularly important contributors to system reliability. These improvements were accompanied by increased computational latency and token consumption, highlighting a trade-off between decision reliability and operational efficiency. Overall, the findings demonstrate the potential of specialized multi-agent LLM architectures to move cybersecurity beyond isolated threat classification toward evidence-grounded, adaptive, and controlled detection-to-response decision-making. The framework provides a foundation for developing more autonomous cybersecurity systems while retaining human oversight and explicit authorization boundaries for uncertain or high-impact defensive actions.












