Solutions for mitigating cybersecurity risks caused by legacy software in medical devices