Hardware-level Vulnerabilities and Support for Secure and Safe Cyber-Physical Systems