Pandey, Vivek Kumar and Rathore, Rajkumar Singh and Prakash, Shiv and Singh, Vishal Krishna and Pandey, Ajeet (2026) LLM-Augmented Intrusion Detection for Wireless Sensor Networks: A Zero-Shot Threat Reasoning Framework for IoT Security. IEEE Open Journal of the Communications Society, 7. pp. 14889-14907. DOI https://doi.org/10.1109/OJCOMS.2026.3752538
Pandey, Vivek Kumar and Rathore, Rajkumar Singh and Prakash, Shiv and Singh, Vishal Krishna and Pandey, Ajeet (2026) LLM-Augmented Intrusion Detection for Wireless Sensor Networks: A Zero-Shot Threat Reasoning Framework for IoT Security. IEEE Open Journal of the Communications Society, 7. pp. 14889-14907. DOI https://doi.org/10.1109/OJCOMS.2026.3752538
Pandey, Vivek Kumar and Rathore, Rajkumar Singh and Prakash, Shiv and Singh, Vishal Krishna and Pandey, Ajeet (2026) LLM-Augmented Intrusion Detection for Wireless Sensor Networks: A Zero-Shot Threat Reasoning Framework for IoT Security. IEEE Open Journal of the Communications Society, 7. pp. 14889-14907. DOI https://doi.org/10.1109/OJCOMS.2026.3752538
Abstract
As the Internet of Things (IoT) and wireless sensor networks (WSNs) become more prevalent, the number of network intrusions has risen, and traditional machine-learning and deep-learning intrusion detection systems (IDSs) fail to have good generalization capabilities for new challenges that they have not encountered, and they offer minimal assistance for human interpretation. In this paper, we present LLM-IDS, a novel LLM-augmented intrusion detection system, which leverages flow-level preprocessing, feature-to-text tokenization, zero-shot prompting, parameter-efficient Low-Rank Adaptation (LoRA), a soft-voting decision fusion, and post-hoc explanation techniques based on SHAP and transformer attention. The framework is tested on a balanced portion of the CIC-IoT-2023 dataset that includes seven traffic classes. The fine-tuned LLM model gives an accuracy of 0.9821, macro-F1 score of 0.9811, macro-AUC of 0.9971, and the zero-shot prompted base LLM model achieves an accuracy of 0.9412 without any task specific parameter updates. The efficacy of these improvements is validated through five-fold cross validation and statistical testing against CNN-LSTM, BiLSTM and Random Forest baselines. A second experiment with a held out-class design further demonstrates that the gap between in-distribution accuracy and out-of-distribution accuracy is quite significant between the categories of attacks used in the experiment and the unseen categories of attacks in the test set, suggesting that good in-distribution accuracy does not imply good zero-day accuracy. Natural-language model explanations, SHAP explanation, and attention analysis are therefore used as supplementary, rather than definitive, evidence of model faithfulness. Due to its computing demands, the LLM-IDS is designed to be run at the edge-gateway or in the cloud, and not directly on the resource limited sensor nodes of a WSN.
| Item Type: | Article |
|---|---|
| Uncontrolled Keywords: | Internet of Things, Modeling, Large language models, Accuracy, Poles and zeros, Tuning, LoRa, Training, Testing, Fluid flow |
| Divisions: | Faculty of Science and Health Faculty of Science and Health > Computer Science and Electronic Engineering, School of |
| SWORD Depositor: | Unnamed user with email elements@essex.ac.uk |
| Depositing User: | Unnamed user with email elements@essex.ac.uk |
| Date Deposited: | 26 Nov 2026 11:48 |
| Last Modified: | 01 Dec 2026 07:58 |
| URI: | http://repository.essex.ac.uk/id/eprint/44173 |
Available files
Filename: LLM-Augmented_Intrusion_Detection_for_Wireless_Sensor_Networks_A_Zero-Shot_Threat_Reasoning_Framework_for_IoT_Security.pdf
Licence: Creative Commons: Attribution 4.0