The spread of the internet of things (IoT) greatly are to its targeting by other parties that are considered suspicious or malicious, such as the attacks that are exposed to various networks to endanger their security. For this reason, it was necessary to take strict measures to protect the security and stability of networks in general and the internet of things in particular. It is worth noting that the current study presented a model and chose a long shorts term memory (LSTM) for attack detection through the use of deep learning technology via Keywords: the internet of things as well as the detection of bots in IoT systems.