Securing implantable medical devices with runtime enforcement hardware