The development of the Internet of Things (IoT) has brought convenience to human life through the smart home concept, which enables various devices to be interconnected and controlled automatically. However, this increased connectivity also poses security threats, particularly cyberattacks such as Distributed Denial of Service (DDoS), Denial of Service (DoS), and Man-in-the-Middle (MiTM). This …