DDoS attack detection and classification for the MQTT-IoT protocol using LSTM models

The Message Queue Telemetry Transport (MQTT) protocol serves as a vital publish-subscribe messaging standard, enabling seamless communication across critical Internet of Things (IoT) infrastructures. However, the widespread adoption of MQTT has heightened vulnerability to cybersecurity threats, notably to Distributed Denial of Service (DDoS) attacks. These attacks overwhelm MQTT brokers with malicious traffic, leading to service disruptions. In this study, we developed a deep learning model to detect DDoS attacks within MQTT-IoT networks, comparing several candidate architectures: Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM), and Multi-Layer Perceptron (MLP). Model evaluation utilized a publicly available, real-world MQTT dataset containing both DDoS attacks and normal traffic. The experiment result illustrated that our proposed LSTM attained 99.53% F1-score, outperforming the best models from the literature. This aligns with the observation that MQTT-based attacks are primarily sequential anomalies, where the spatial structure has a lower importance, and where the LSTM can take advantage of its ability to model temporal attack signatures.

Publication Details

Journal
Discover Applied Sciences
Published
2026-03-24
DOI
https://doi.org/10.1007/s42452-026-08563-8
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

DDoS attack detection and classification for the MQTT-IoT protocol using LSTM models

Discover Applied Sciences
Network Security and Intrusion Detection
article

DDoS attack detection and classification for the MQTT-IoT protocol using LSTM models

article en

Abstract

The Message Queue Telemetry Transport (MQTT) protocol serves as a vital publish-subscribe messaging standard, enabling seamless communication across critical Internet of Things (IoT) infrastructures. However, the widespread adoption of MQTT has heightened vulnerability to cybersecurity threats, notably to Distributed Denial of Service (DDoS) attacks. These attacks overwhelm MQTT brokers with malicious traffic, leading to service disruptions. In this study, we developed a deep learning model to detect DDoS attacks within MQTT-IoT networks, comparing several candidate architectures: Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM), and Multi-Layer Perceptron (MLP). Model evaluation utilized a publicly available, real-world MQTT dataset containing both DDoS attacks and normal traffic. The experiment result illustrated that our proposed LSTM attained 99.53% F1-score, outperforming the best models from the literature. This aligns with the observation that MQTT-based attacks are primarily sequential anomalies, where the spatial structure has a lower importance, and where the LSTM can take advantage of its ability to model temporal attack signatures.

Discover Applied Sciences
Industry, innovation and infrastructure
Openalex Percentile: Top 10%
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.