The development of smart home technology enables users to control and monitor household devices automatically through the Internet of Things (IoT). However, this high connectivity also increases the risk of cyberattacks such as Distributed Denial of Service (DDoS) and Man in The Middle (MITM), which can compromise system stability and security. This study aims to detect DDoS and MITM attacks in…