Safeguarding Cybersecurity with AI Risk Recognition and Prevention