This study aims to detect and classify Distributed Denial of Service (DDoS) and Man-in-the-Middle (MiTM) attacks in smart home networks using the Light Gradient Boosting Machine (LightGBM) algorithm. With the rapid growth of Internet of Things (IoT) devices, cybersecurity challenges have become crucial due to vulnerabilities in smart home devices. This research utilizes the COMNETS SMARTHOME da…