Israel responded to a cyberattack with armed forces – but how should states be dealing with this threat?

Israel responded to a cyberattack with armed forces – but how should states be dealing with this threat?
States now have to deal with hackers who can potentially trigger major blackouts and nuclear meltdowns