Defending critical infrastructure from cyberattacks and other threats