Hospitals increasingly rely on connected devices such as infusion pumps and patient monitors, and many are outdated or poorly protected. Medical supplies can also be tampered with, counterfeited or disrupted. A cyberattack here can threaten patient safety, not just data. This paper proposes a framework that uses AI to continuously assess risks, deploy and adjust security measures, and check compliance with EU rules. It also outlines a matching certification scheme. In an early prototype at a regional hospital, the AI tools detected network intrusions with 97% accuracy and cut firewall configuration errors by 78%. Wider real-world testing is planned.