As a direct consequence of the unrelenting march of technological innovation, the use of the Internet has become an unavoidable condition for the life of modern humans. The Internet has increased both the quantity and range of situations in which information products can be useful or non-useful. It’s no surprise that as the number of different systems and users has grown, so have the number of different ways to exploit those systems. A security issue has arisen with such diversity and growth. Its diversity and increase in quantity introduce new system weaknesses and thus new attack strategies. Methods for detecting both internal and external attacks are suggested as a solution to this issue. The purpose of this research, a Convolutional Neural Network was utilized to identify intrusions, also known as attacks for the imbalanced class distribution in the NF-BoT-IoT data set, Synthetic Minority Over Sampling Technique, Random Over Sampling and Random Under Sampling methods were used. K-Fold Cross Validation, one of the strategies for splitting the data set, was utilized to evaluate the performance of classification models and to train the developed model. The model’s performance was evaluated using the accuracy, precision, recall, and F1-score performance criteria.