Secure and Smart Cyber-Physical Systems