The rapid growth of Internet of Things (IoT) devices in smart home environments increases convenience but also introduces various network security threats, such as Distributed Denial of Service (DDoS) and Man in The Middle (MITM) attacks. This study aims to implement and evaluate the performance of the Extreme Gradient Boosting (XGBoost) algorithm in detecting DDoS and MITM attacks on IoT netwo…