This paper addresses the detection of DDoS attacks in IoT networks using unsupervised machine learning algorithms, focusing on classifying incoming packets as 'suspicious' or 'benign'. Four algorithms, including deep learning and clustering methods, were trained on datasets from Mirai, Bashlite, and CICDDoS2019, with results indicating that the autoencoder achieved the highest accuracy. The study emphasizes the vulnerability of IoT devices to DDoS attacks and the need for innovating detection systems that rely on unsupervised learning due to the limitations of traditional methods.