An Adaptive Three-Layer Cloud Intrusion Detection Framework with Memory-Augmented LLM-Assisted Decision Making
Cloud computing security is a major concern of organizations as their sensitive data is being managed on an off-premises platform. Several factors, such as the cloud’s layered architecture, its dynamic environment, and dealing with unseen or zero-day attacks, lead to a complex and challenging security environment. Existing Intrusion detection system (IDS) solutions often focus on a single cloud layer and rely solely on machine learning models, which may perform well on benchmark datasets but remain limited when evaluated across heterogeneous cloud monitoring layers. This study proposes an adaptive confidence-aware multi-layer intrusion detection framework using reinforcement learning for network, host, and hypervisor environments. An XGBoost model is employed at each layer to detect known attacks, while prediction confidence thresholds calibrated via the Q-learning algorithm (layer-wise) are employed to separate reliable decisions from uncertain low-confidence events. Low-confidence cases are then passed to the Chroma memory-matching gate. The unresolved events are further escalated to Large language model (LLM) for semantic analysis and explanation. Final attack promotion is performed using calibrated LLM confidence thresholds, while a weighted-fusion fallback mechanism is available for low-confidence ATTACK predictions. Events that remain unresolved after this process are retained in a review bucket to avoid forced classifications. Confirmed attack knowledge and generated explanations are stored in ChromaDB to support future analysis and incremental retraining. Experimental results show that the proposed framework autonomously learns layer-specific confidence thresholds of 0.79, 0.78, and 0.73 for the Network intrusion detection system (NIDS), Host intrusion detection system (HIDS), and Hypervisor layers, respectively. Across the complete 15,000-event evaluation set, the fixed 0.85 static baseline produces 3,111 would be LLM escalations. In the adaptive cold run, this workload is reduced to 2,714 actual LLM calls. After confirmed attack knowledge is stored in ChromaDB, the warm run resolves 2,068 uncertain events through memory matching and reduces actual LLM calls to 646. This corresponds to a 76.20% cold-to-warm LLM-call reduction and a 79.24% reduction compared with the static baseline workload. Under the complete 15,000-event warm-run evaluation, the framework achieves 94.63% accuracy, 94.10% precision, 93.79% recall, and 93.95% F1-score.
Authors
- Daniyal Munir (ORCID: https://orcid.org/0000-0003-4040-466X)
- Farzana Zahid (ORCID: https://orcid.org/0000-0002-9277-0787)
- Syed Waqas Ali
- Ibrar Ali Shah (ORCID: https://orcid.org/0000-0002-8076-411X)
- Md Akbar Hossain (ORCID: https://orcid.org/0000-0002-4886-8349)
- Schotten Hans D.
Institutions
- Eastern Institute of Technology (NZ)
- German Research Centre for Artificial Intelligence (DE)
- Rheinland-Pfälzische Technische Universität Kaiserslautern-Landau (DE)
- University of Waikato (NZ)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-27
- DOI
- https://doi.org/10.21203/rs.3.rs-10872518/v1
- Primary Topic
- Network Security and Intrusion Detection
- Type
- preprint