It is worth pointing out that there is little inbuilt protection against brute force attacks on the authentication step in the MQTT protocol, which is widely used in IoT systems. According to published reports, accuracy is high; however, we are not aware of any reporting model size or latency and ones that test on independently collected data. We created a lightweight temporal convolutional network (TinyTCN) for window-based bidirectional flow record classification for a single host and reduced its size through architecture search with Optuna. For MQTT-IoT-IDS2020, we windowed the data at the host level (and for a single attacker, the file order), and rectified incorrectly classified non-MQTT traffic that MQTT-IoT-IDS2020 benchmarked as attacks. The number of parameters in the model was reduced from 13,729 to 1,129 by search. It requires 11.66 KB with 8-bit weight quantization, and processes 8 windows in 0.0123 ms, which is no different than the test performance (F1 = 1.00, AUC-ROC = 1.00 on test set; 5-fold F1 = 0.9995 ± 0.0012). Ablation demonstrated the importance of using multi-component features involving both connection volume and a single timing feature for decision making. A unidirectional (Uni-flow) variant further reduced the size of the model to 817 parameters, and its performance was good on all the folds of the cross-validation set, but one broker was misclassified in one fold.This model performed poorly when applied to MQTTset without retraining. The cross-dataset evaluation on MQTTset demonstrated that direct generalization is challenging, and that the detection performance is affected by the characteristics of network traffic.
Copyrights © 2026