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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

An Adaptive Three-Layer Cloud Intrusion Detection Framework with Memory-Augmented LLM-Assisted Decision Making

Daniyal Munir, Farzana Zahid, Syed Waqas Ali, Ibrar Ali Shah et al.
Research Square
Network Security and Intrusion Detection
preprint

An Adaptive Three-Layer Cloud Intrusion Detection Framework with Memory-Augmented LLM-Assisted Decision Making

Daniyal Munir, Farzana Zahid, Syed Waqas Ali, Ibrar Ali Shah, Md Akbar Hossain, Schotten Hans D.
preprint en

Abstract

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.

Research Square
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)
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon