Random Forest Based Dual Attack Detection for Smart Internet of Things (IoT) Home Appliance
Abstract
With the rapid proliferation of IoT technology, smart home appliances face growing data security threats, especially model probing attacks and network-layer DDoS attacks. This paper proposes a machine learning based dual detection system. For model probing defense, we design a query-behavior detection framework extracting three core indicators (top‑1 probability, margin, top‑2 probability) and employ a Random Forest classifier. For IoT network attacks, we construct an end‑to‑end detection framework using multi‑dimensional traffic features. Experiments on two public datasets show that the probing attack detector achieves 75.7% and 82.1% accuracy on DDoS_1 and DDoS_2, while the network attack detector achieves 76.53% accuracy and 0.76 F1‑score. Feature importance analysis reveals key detection signals. We discuss performance bottlenecks and future optimization directions including data balancing, deeper feature engineering, deep learning models, and lightweight edge deployment.
References
- Research on intrusion detection methods for smart homes based on multi‑layer neural networks[Master's thesis]. Chongqing University of Posts and Telecommunications, 2024.
- Design and implementation of security risk detection model for IoT rule linking based on graph representation learning[Master's thesis]. 2023.
- Intrusion detection in heterogeneous smart home IoT[Master's thesis]. University of Oulu, 2026.
- Research and application of intrusion detection methods for IoT[Master's thesis]. 2024.
- Yan, S. L.Research on IoT DDoS attack detection based on convolutional neural networks and federated learning[Master's thesis]. Hubei University of Technology, 2024.
- Research on lightweight intrusion detection methods for IoT[Master's thesis]. 2025.
- Creating a security conscious IoT ecosystem with innovative monitoring and classification solutions[Doctoral thesis]. Óbuda University, 2025.
- Xiao, Y. X.A study on learning‑based model extraction attacks and defense methods[Ph.D. thesis]. Hong Kong Polytechnic University, 2025.
- Research on IoT DDoS attack detection methods based on deep learning[Master's thesis]. 2024.
- A machine learning and nature inspired algorithm based hybrid approach for detection of IoT attacks. 2024 IEEE International Conference, Hooghly, India, Sep. 2024. (Date Added to IEEE Xplore: Jan. 2025)
- A dual-stage ML pipeline for IoT DDoS defense: Anomaly filtering and risk-prioritized detection. 2025 IEEE International Conference, Chennai, India, Aug. 2025. (Date Added to IEEE Xplore: Nov. 2025)
- Development of intrusion detection models for IoT networks utilizing CICIoT2023 dataset. 2023 IEEE International Conference, Bali, Indonesia, Dec. 2023. (Date Added to IEEE Xplore: Feb. 2024)
- Efficient and interpretable random forest-based attack detection for IoT network traffic. In2025 30th International Conference on Information Technology (IT), IEEE, Subotica, Serbia, Sep. 2025. (Date Added to IEEE Xplore: Oct. 2025)
- Fei, T. (2025).Research on model extraction attacks based on breaking entangled watermarks[Master's thesis]. Xiangtan University.
- Lightweight intrusion detection system for MQTT-enabled IoT devices. In2025 IEEE International Conference, Lisbon, Portugal, Jul. 2025. (Date Added to IEEE Xplore: Sep. 2025)
- Machine learning classification for attack trace detection in smart home enabled IoT devices. In2025 IEEE International Conference, Coimbatore, India, Sep. 2025. (Date Added to IEEE Xplore: Dec. 2025)
- Next-generation IoT intrusion detection: Leveraging hybrid deep learning algorithms for enhanced security. In2025 IEEE Conference, Feb. 2025.
- Intrusion detection system traffic classification based on machine learning with correlation-based filtering and a genetic algorithm-inspired feature selection method for IoT networks.Engineering, Technology & Applied Science Research, 15(5), Oct. 2025.