[Paper Review] Kitsune: An Ensemble of Autoencoders for Online Network Intrusion Detection
Kitsune presents an online, unsupervised NIDS that uses an ensemble of small autoencoders (KitNET) to detect anomalies in network traffic with low memory and CPU requirements, demonstrating competitive performance to offline detectors and running on devices like Raspberry Pi.
Neural networks have become an increasingly popular solution for network intrusion detection systems (NIDS). Their capability of learning complex patterns and behaviors make them a suitable solution for differentiating between normal traffic and network attacks. However, a drawback of neural networks is the amount of resources needed to train them. Many network gateways and routers devices, which could potentially host an NIDS, simply do not have the memory or processing power to train and sometimes even execute such models. More importantly, the existing neural network solutions are trained in a supervised manner. Meaning that an expert must label the network traffic and update the model manually from time to time. In this paper, we present Kitsune: a plug and play NIDS which can learn to detect attacks on the local network, without supervision, and in an efficient online manner. Kitsune's core algorithm (KitNET) uses an ensemble of neural networks called autoencoders to collectively differentiate between normal and abnormal traffic patterns. KitNET is supported by a feature extraction framework which efficiently tracks the patterns of every network channel. Our evaluations show that Kitsune can detect various attacks with a performance comparable to offline anomaly detectors, even on a Raspberry PI. This demonstrates that Kitsune can be a practical and economic NIDS.
Motivation & Objective
- Motivate the need for lightweight, online, unsupervised NIDS suitable for deployment on simple network gateways.
- Propose KitNET, an ensemble of autoencoders, supported by a dynamic feature extraction framework for real-time anomaly detection.
- Develop an online method to map high-dimensional features into an ensemble with bounded complexity.
- Demonstrate Kitsune’s practicality through experiments on real networks and hardware-constrained devices.
Proposed method
- Introduce KitNET, an ensemble of small autoencoders that reconstruct input feature vectors and use their reconstruction errors as anomaly scores.
- Use a feature extraction framework that computes 115 temporal features from 5 time windows to describe per-packet behavior.
- Apply damped incremental statistics to maintain temporal features with O(1) updates and low memory footprint.
- Map 115 features into k sub-instances (each with at most m features) via online hierarchical clustering using correlation distance to form the ensemble input for autoencoders.
- Use the RMSE of each autoencoder’s output to form an ensemble score through an output autoencoder acting as a nonlinear voting mechanism.
- Operate in train-mode to learn mappings and thresholds, then switch to exec-mode for online anomaly detection with a threshold φ and sensitivity β (alert if RMSE exceeds φβ).
- Provide a lightweight complexity bound by restricting each autoencoder to at most three layers and seven visible neurons to ensure real-time operation on gateways.
Experimental results
Research questions
- RQ1Can Kitsune detect anomalies in network traffic in an online, unsupervised manner without labeled data?
- RQ2How does KitNET’s ensemble of small autoencoders compare to offline anomaly detectors in detection performance?
- RQ3What is Kitsune’s runtime performance on resource-constrained devices (e.g., Raspberry Pi) and its packet processing rate?
- RQ4How does the feature-mapping parameter m affect detection accuracy and runtime?
Key findings
- Kitsune achieves competitive detection performance comparable to offline anomaly detectors.
- The system can operate on a Raspberry Pi, demonstrating practicality on low-cost hardware.
- Feature extraction uses 115 features across five time windows, enabling temporal context for anomaly detection.
- An ensemble of small autoencoders (with a controlled maximum input size m) provides efficient, scalable online anomaly detection.
- The framework increases packet processing capability and supports plug-and-play deployment in simple network devices.
- Kitsune’s online, unsupervised approach eliminates reliance on labeled data and continuous manual model updates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.