[Paper Review] An accurate IoT Intrusion Detection Framework using Apache Spark
This paper proposes an accurate IoT intrusion detection framework leveraging Apache Spark and MLlib on the BoT-IoT dataset to handle big data workloads efficiently. It achieves up to 99.7% F1-score in binary classification using Random Forest on a partial dataset, demonstrating high performance for detecting IoT cyber threats in real-time environments.
The internet has caused tremendous changes since its appearance in the 1980s, and now, the Internet of Things (IoT) seems to be doing the same. The potential of IoT has made it the center of attention for many people, but, where some see an opportunity to contribute, others may see IoT networks as a target to be exploited. The high number of IoT devices makes them the perfect setup for staging denial-of-service attacks (DoS) that can have devastating consequences. This renders the need for cybersecurity measures such as intrusion detection systems (IDSs) evident. The aim of this paper is to build an IDS using the big data platform, Apache Spark. Apache Spark was used along with its ML library (MLlib) and the BoT-IoT dataset. The IDS was then tested and evaluated based on F-Measure (f1), as was the standard when evaluating imbalanced data. Two rounds of tests were performed, a partial dataset for minimizing bias, and the full BoT-IoT dataset for exploring big data and ML capabilities in a security setting. For the partial dataset, the Random Forest algorithm had the highest performance for binary classification at an average f1 measure of 99.7%, as well as 99.6% for main category classification, and an 88.5% f1 measure for sub category classification. As for the complete dataset, the Decision Tree algorithm scored the highest f1 measures for all conducted tests; 97.9% for binary classification, 79% for main category classification, and 77% for sub category classification.
Motivation & Objective
- To address the growing security risks posed by the proliferation of vulnerable IoT devices in large-scale networks.
- To develop a scalable, high-performance intrusion detection system (IDS) capable of processing large volumes of IoT network traffic.
- To evaluate the effectiveness of machine learning models on imbalanced IoT intrusion detection data using Apache Spark’s distributed computing framework.
- To compare the performance of various ML algorithms in detecting both binary and multi-class intrusion categories on real-world IoT datasets.
- To demonstrate the feasibility of using big data platforms like Apache Spark for real-time, accurate intrusion detection in IoT environments.
Proposed method
- The framework uses Apache Spark as the big data processing engine to distribute and accelerate the analysis of IoT network traffic.
- It leverages Spark's MLlib library to train and evaluate multiple machine learning models, including Random Forest and Decision Tree.
- The BoT-IoT dataset is used as the primary data source, representing real-world IoT network traffic with various attack types.
- Two evaluation phases are conducted: one using a partial dataset to minimize bias and another using the full dataset to assess scalability and performance.
- F-Measure (F1) is used as the primary evaluation metric due to the class imbalance in the dataset.
- The system is designed to support real-time processing, enabling timely detection of malicious activities in IoT networks.
Experimental results
Research questions
- RQ1How effective is Apache Spark in enabling scalable and efficient processing of large-scale IoT network traffic for intrusion detection?
- RQ2Which machine learning algorithm achieves the highest F1-score in detecting binary (normal vs. attack) and multi-class (main and sub-category) intrusion types on the BoT-IoT dataset?
- RQ3How does model performance vary between a reduced (partial) dataset and the full BoT-IoT dataset in terms of F1-score and computational efficiency?
- RQ4To what extent can distributed computing with Apache Spark improve the accuracy and speed of intrusion detection in resource-constrained IoT environments?
- RQ5Can the proposed framework maintain high detection accuracy despite the class imbalance inherent in IoT intrusion datasets?
Key findings
- On the partial dataset, the Random Forest algorithm achieved the highest F1-score of 99.7% for binary classification, indicating excellent detection accuracy.
- For main category classification, Random Forest achieved a 99.6% F1-score, demonstrating strong performance in distinguishing major attack types.
- In sub-category classification, Random Forest achieved an 88.5% F1-score, showing effective detection of fine-grained attack variants.
- On the full BoT-IoT dataset, the Decision Tree algorithm outperformed others, achieving 97.9% F1-score in binary classification.
- For main category classification on the full dataset, Decision Tree achieved a 79% F1-score, reflecting a drop in performance due to data complexity and scale.
- Sub-category classification on the full dataset yielded a 77% F1-score with Decision Tree, indicating moderate accuracy for detecting specific attack subtypes.
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.