Protecting the electricity grid against cyber attacks