In recent times, the growing significance of Internet of Things (IoT) devices in people's lives is undeniable, driven by their myriad benefits. However, these devices confront cybersecurity threats akin to traditional network devices, as they depend on networks for connectivity and synchronization. Artificial Intelligence (AI) techniques, specifically Machine Learning (ML) and Deep Learning (DL), have demonstrated notable reliability in the field of cyberattack detection. This study focuses on detecting Flood and Brute Force cyberattacks using Machine Learning (ML) and Deep Learning (DL) models. The primary emphasis lies in identifying traffic features that significantly detect these types of attacks. The experimental study incorporates eight models: Decision Tree (DT), K-Nearest Neighbor (KNN), Random Forest (RF), Support Vector Machines (SVM), Logistic Regression (LR), Gradient Boosting (GB), Naïve Bayes (NB), and Artificial Neural Network (ANN). Two sets of experiments were conducted, with the first set involving six features and the subsequent set, after feature selection, focusing on a reduced set of three features. The evaluation of the proposed model's efficiency and performance relied on metrics such as Accuracy, Precision, Recall, and F1-score. Remarkably, all proposed models exhibited high performance in both sets of experiments. However, the Gradient Boosting (GB) classifier suppressed others, attaining an impressive accuracy level of 95.94% and 95.28% in the sets with six features and three features, respectively. Doi: 10.28991/HIJ-2024-05-03-01 Full Text: PDF