Advanced Threat Detection: Leveraging AI and Endpoint Protection