Autonomous LLM Agent: A Memory-Augmented, Edge-Optimized SHAP Explanations With Zero-Day Attack Resilience in IoT/Industrial IoT Networks
Yakub Kayode Saheed, Joshua Ebere Chukwuere
North-West University
Key points
From the paper's conclusion- These results demonstrate Anomaly-Agent’s robustness and interpretability, offering a viable path toward resilient, LLM-driven IoT/IIoT security solutions.
Abstract
The Internet of Things (IoT), particularly its industrial subset Industrial IoT, presents a critical attack surface due to its interconnected nature. As emerging threats exploit IoT edge networks, there is a growing demand for anomaly detection systems capable of addressing zero-day attacks while providing explainable predictions. Existing machine learning (ML) and deep learning (DL) methods often lack explainability, sensitivity, absence of Large Language Model (LLM) agent for adaptive detection and struggle with unseen zero-day threats. Motivated by these challenges, we introduce Anomaly-Agent, a novel LLM-powered explainable anomaly detection framework for IoT/IIoT edge environments. Anomaly-Agent leverages a reasoning-followed-by-action pipeline, integrating domain tools, external knowledge retrieval, and memory-augmented decisions to detect and explain anomalies. Unlike static ML/DL models, Anomaly-Agent adapts to evolving zero-day threats and supports sensitivity customization. We evaluated Anomaly-Agent on the Edge-IIoTset (IIoT-specific) and CIC-IoT2023 (general IoT) datasets, it achieved accuracies of 0.96 and 0.89, respectively, with a false alarm rate (FAR) below 0.04. It also attains a recall of 0.65 for zero-day attacks, surpassing traditional ML models and LLM baselines including GPT-4o, Claude 3.5, and GPT-4o-mini. Anomaly-Agent outperformed GPT-4o and Claude 3.5 due to their reliance on generic prompting, which limits performance to 64%–70% multi-class F1-score on CIC-IoT2023. Their high FAR of 10%-13% stems from misclassifying benign edge traffic as malicious. It also surpasses GPT-4o-mini, where token constraints reduce accuracy to 58% for multi-class tasks. The agent’s performance benefits from integration with SHAP, enhancing transparency and trust. While demonstrating strong performance, Anomaly-Agent faces inherent challenges in latency in complex scenarios and adversarial robustness that guide future improvements. These results demonstrate Anomaly-Agent’s robustness and interpretability, offering a viable path toward resilient, LLM-driven IoT/IIoT security solutions.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ZeroDay-LLM: A Large Language Model Framework for Zero-Day Threat Detection in CybersecurityInformation · 2025
- RuleSense: Efficient and Lightweight Anomaly Detection for IIoT Streaming Data.Sensors (Basel, Switzerland) · 2026
- Securing the Cognitive Layer: A Survey on Security Threats, Defenses, and Privacy-Preserving Architectures for LLM-IoT IntegrationJournal of Cybersecurity and Privacy · 2026
- Neuro-symbolic machine learning for lightweight and interpretable IoT edge intrusion detectionDiscover Sensors · 2026
- Digital twin driven federated continual learning for predictive modeling of zero day attack evolution in IoT networksDiscover Applied Sciences · 2026
- An IoT Malware Detection Framework Based on Large Language Models and Deep Learning TechniquesSymmetry · 2026