Protecting critical infrastructure from corrosion