Attack Resilient Cloud-Based Control Systems for Industry 4.0