Emerging Threats and Security Enhancements: From AI-Driven Malware to Critical Vulnerabilities