The rapid proliferation of Internet of Things (IoT) devices has fundamen tally transformed the digital ecosystem, connecting billions of physical objects to the internet. However, this unprecedented connectivity has introduced a complex and rapidly evolving threat landscape. This chapter provides a comprehensive exploration of the foundational principles of IoT security and analyzes contemporary cyber threats target ing these interconnected systems. By examining the structural vulnerabilities inherent in IoT architectures, including limited computational resources, heterogeneous protocols, and widespread deployment in unmanaged environments, we identify the primary vectors exploited by malicious actors. The chapter introduces a robust research methodology for analyzing IoT network traffic using advanced machine learning techniques, leverag ing the CIC IoT Dataset to demonstrate practical intrusion detection capabilities. Our experimental results reveal the efficacy of ensemble learning methods in identifying anoma lous behavior and mitigating sophisticated attacks such as Distributed Denial of Service (DDoS) and unauthorized access attempts. Ultimately, this chapter serves as a founda tional guide for understanding the current state of IoT security, offering strategic insights and scalable methodologies to fortify the next generation of connected devices against emerging cyber threats.