It is official U.S. policy that offensive cyberwarfare is subject to international laws of war and, if perpetrated against the United States, may trigger a military response.
The Washington Post reported last year: “Cyberattacks can amount to armed attacks triggering the right of self-defense and are subject to international laws of war, the State Department’s top lawyer said Tuesday.”
In other news…
“The CIA and the NSA have begun aggressive new efforts to hack into foreign computer networks to steal information or sabotage enemy systems, embracing what the budget refers to as ‘offensive cyber operations,’” reports the Washington Post this week, based on documents they received from Edward Snowden.
Source