Intelligent IoT Attack Detection Design via ODLLM with Feature Ranking-based Knowledge Base
Satvik Verma, Qun Wang, E. Wes Bethel
TL;DR
This work targets real-time IoT DDoS detection under edge resource and privacy constraints by deploying on-device large language models (ODLLMs) augmented with knowledge bases (KBs). It combines feature ranking via a Random Forest Regressor to identify attack-type discriminative features and constructs long and short KBs tailored to model capacity, enabling efficient yet accurate anomaly detection on edge devices. The approach is validated on the CICIoT 2023 dataset, showing high accuracy across DDoS types such as ICMP, UDP, TCP floods, and PSHACK floods, with medium-size models benefiting from both KB formats and small models achieving practicality through KB simplification embedded in prompts. The results demonstrate that carefully designed KBs, including a two-tier feature strategy, can bridge the gap between model capacity and resource constraints, paving the way for scalable and privacy-preserving edge-security solutions in IoT ecosystems.
Abstract
The widespread adoption of Internet of Things (IoT) devices has introduced significant cybersecurity challenges, particularly with the increasing frequency and sophistication of Distributed Denial of Service (DDoS) attacks. Traditional machine learning (ML) techniques often fall short in detecting such attacks due to the complexity of blended and evolving patterns. To address this, we propose a novel framework leveraging On-Device Large Language Models (ODLLMs) augmented with fine-tuning and knowledge base (KB) integration for intelligent IoT network attack detection. By implementing feature ranking techniques and constructing both long and short KBs tailored to model capacities, the proposed framework ensures efficient and accurate detection of DDoS attacks while overcoming computational and privacy limitations. Simulation results demonstrate that the optimized framework achieves superior accuracy across diverse attack types, especially when using compact models in edge computing environments. This work provides a scalable and secure solution for real-time IoT security, advancing the applicability of edge intelligence in cybersecurity.
