AI-Driven Intrusion Detection for Secure Internet of Things Networks
Abstract
There has been an increase in Internet of Things (IoT) devices, which complicates the networks due to their added attack surface. Botnets, denial-of-service attacks, and data exfiltration are threats to large-scale networks that can use IoT infrastructure. This paper proposes an artificial-intelligence-based intrusion detection system for secure IoT networks. The main idea is to represent the flows of traffic observed on the network as an ordered sequence of network flows, rather than a set of independent observations. The Network TON_IoT dataset, published by the University of New South Wales Canberra Cyber Range, was used. It consists of labelled NetFlow records captured from a realistic medium-scale IoT testbed with normal activities and nine attack categories represented. The records were cleaned, one-hot encoded, normalised, and divided into temporal sequences of ten consecutive flows each, which were assigned a binary label benign or intrusive, according to the attack timelines documented in the dataset. A gated recurrent unit (GRU) network was trained to classify the sequences: its recurrent layers encode the progression of an attack through the network, and a decision head interprets the output as the probability of an intrusion being present. The model was compared to logistic regression, support vector machine, and random forest classifiers, which were trained under the same conditions. The results showed that the model achieved 98.4% accuracy, 0.981 precision, 0.972 recall, 0.976 F1-score, and 0.996 AUROC on the test set of 12,000 flow sequences. It correctly recalled over 94% of intrusive sequences at 1% false positive rate. Analysis of the errors showed that false negatives occurred at the beginning of multi-stage attack timelines, while false positives were observed in benign bursts of activity such as firmware updates and cloud synchronisation, which indicates opportunities for the model to be improved upon. In conclusion, the experimental results show that temporal sequences of IoT network traffic can be used as a basis for intrusion detection.