Enhancing MQTT Intrusion Detection in IoT Using Machine Learning and Feature Engineering

The Internet of Things (IoT) has accelerated and broadened adoption, creating an extensive range of security issues, particularly in resource-constrained IoT protocols such as Message Queuing Telemetry Transport (MQTT). Being designed as a lightweight and security-limited protocol makes MQTT vulnerable to various types of attacks. Although studies on securing the Internet of Things (IoT) have grown substantially and obtained a degree of maturity in several areas, studies based on machine learning (ML) and feature engineering (FE) to identify and classify threats on MQTT-based networks remain limited. This work suggests the use of ML and FE approaches to improve the performance of MQTT-based intrusion detection systems (IDS). We assessed seven machine learning models: Stochastic Gradient Descent (SGD), Logistic Regression (LR), Random Forests (RF), Decision Tree (DT), Naïve Bayes (NB), k-Nearest Neighbors (k-NN), and XGBoost to detect and classify network traffic anomalies. Our proposed framework was built based on the Euclidean distance method to generate new features and outperform existing models. After applying the proposed framework, the k-NN model achieves an accuracy of 98.90% and maintains a well-balanced and high performance of precision (99.11%), recall (99.66%), and F-1 score (99.39%) metrics. As far as FPR improvement is concerned, the DT model indicates the best improvement, from 63.98% to 11.79%. The DT model also demonstrates a significant improvement in specificity percentage, increasing from 39.02% to 97.03%. The results of this study emphasize the necessity of embedding ML-based security mechanisms into MQTT networks to mitigate emerging cyber threats and enhance the overall security framework.

Authors

Institutions

Publication Details

Journal
IEEE Open Journal of the Communications Society
Published
2025-01-01
DOI
https://doi.org/10.1109/ojcoms.2025.3610132
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing MQTT Intrusion Detection in IoT Using Machine Learning and Feature Engineering

Royyana Muslim Ijtihadie, Iwan Handoyo Putro, Tohari Ahmad
IEEE Open Journal of the Communications Society
Network Security and Intrusion Detection
article

Enhancing MQTT Intrusion Detection in IoT Using Machine Learning and Feature Engineering

Royyana Muslim Ijtihadie, Iwan Handoyo Putro, Tohari Ahmad
article en

Abstract

The Internet of Things (IoT) has accelerated and broadened adoption, creating an extensive range of security issues, particularly in resource-constrained IoT protocols such as Message Queuing Telemetry Transport (MQTT). Being designed as a lightweight and security-limited protocol makes MQTT vulnerable to various types of attacks. Although studies on securing the Internet of Things (IoT) have grown substantially and obtained a degree of maturity in several areas, studies based on machine learning (ML) and feature engineering (FE) to identify and classify threats on MQTT-based networks remain limited. This work suggests the use of ML and FE approaches to improve the performance of MQTT-based intrusion detection systems (IDS). We assessed seven machine learning models: Stochastic Gradient Descent (SGD), Logistic Regression (LR), Random Forests (RF), Decision Tree (DT), Naïve Bayes (NB), k-Nearest Neighbors (k-NN), and XGBoost to detect and classify network traffic anomalies. Our proposed framework was built based on the Euclidean distance method to generate new features and outperform existing models. After applying the proposed framework, the k-NN model achieves an accuracy of 98.90% and maintains a well-balanced and high performance of precision (99.11%), recall (99.66%), and F-1 score (99.39%) metrics. As far as FPR improvement is concerned, the DT model indicates the best improvement, from 63.98% to 11.79%. The DT model also demonstrates a significant improvement in specificity percentage, increasing from 39.02% to 97.03%. The results of this study emphasize the necessity of embedding ML-based security mechanisms into MQTT networks to mitigate emerging cyber threats and enhance the overall security framework.

IEEE Open Journal of the Communications Society
Sepuluh Nopember Institute of Technology (ID)
Openalex Percentile: Top 71%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Enhancing MQTT Intrusion Detection in IoT Using Machine Learning and Feature Engineering — Royyana Muslim Ijtihadie, Iwan Handoyo Putro, et al. · IEEE Open Journal of the Communications Society (2025) | TGRS Research Map | TGRS