Countries are already deterred from cyber---no stand alone conflicts
James A. Lewis 09. Center for Strategic and International Studies. The “Korean” Cyber Attacks and Their Implications for Cyber Conflict. October 2009. https://csis-website-prod.s3.amazonaws.com/s3fs-public/legacy_files/files/publication/091023_Korean_Cyber_Attacks_and_Their_Implications_for_Cyber_Conflict.pdf
Absent such larger conflict, however, a nation-state is no more likely to launch a serious cyber attack than they are to shoot a random missile at an opponent.9 The risk is too great and the benefits of a cyber attack by itself too small for political leaders to authorize the use of this capability in anything short of a situation where they had already decided on military action. Cyber weapons are not decisive; cyber attack by itself will not win a conflict, particularly against a large and powerful opponent. It is striking that to date; no cyber "attack" that rises above the level of espionage or crime has been launched outside of a military conflict.
Even in a conflict, a decision to strike civilian targets in an opponent’s homeland using cyber weapons is a major step that brings the risk of serious escalation. Engaging American military forces overseas is not the same as attacking critical infrastructure in the United States. Nations may reserve these serious cyber attacks against targets in the opponent’s homeland for either retaliation for attacks against their own homeland or for when they are in extremis.