Safeguarding critical infrastructure from the next Stuxnet