As Internet of Things (IoT) devices proliferate in sectors like smart cities, health care, and industrial systems, they have become prime targets for cyberattacks such as Distributed Denial of Service (DDoS), ransomware, and botnets. However, traditional security methods struggle to cope with these attacks due to the limited computational power of IoT devices and the dynamic nature of cyber threats.