Machine Learning (ML) Intrusion Detection Systems (IDS) are widely used for protecting Internet of Things (IoT) networks, and their reliability depends on learning the behavior of the attacks rather than the conditions in which the data were recorded. In this article, a Leakage-Filtered Flow-based Intrusion Detection System, named LFF-IDS, is developed for enhancing the security of IoT networks. LFF-IDS begins by auditing each column group in the dataset for leakage. Afterwards, it removes temporal, identity, and duplicate leakage and trains One-vs-One (OvO) and One-vs-Rest (OvR) classifiers on twelve standard flow features. The evaluation has been performed on the TON_IoT network data. For the binary task, the achieved macro-F1 was 0.996 with a Detection Rate (DR) of 99.88% and a False Alarm Rate (FAR) of 0.71%, while it was 0.958 across ten classes. In addition, the audit has shown that timestamps alone classify the TON_IoT telemetry datasets with a macro-F1 of 0.94 to 0.97. Compared with the OvO/OvR approach on the same network data without leakage, LFF-IDS achieves a slightly higher macro-F1 (0.955 vs 0.950) using only 12 flow features instead of 39 columns.
Copyrights © 2026