Artificial Intelligence for Cyber-Physical Systems Hardening