CyberDelegateOfficial magazine of The CyberDiplomat

A leading platform for cyber diplomacy, cybersecurity, AI governance, critical infrastructure protection, and international digital policy cooperation.

Front pageJust War Theory

Just War Theory

Just Cyberwar? Applying Just War Theory to State-Sponsored Cyberattacks

Filed
Read
8 min read
Just Cyberwar? Applying Just War Theory to State-Sponsored Cyberattacks

Can a cyberattack ever be morally just? Since Stuxnet was discovered sabotaging Iranian centrifuges in 2010, states have increasingly used offensive cyber operations as instruments of statecraft, often as an alternative to, rather than a companion of, conventional force. Unlike the deployment of troops or airstrikes, a cyberattack can cripple critical infrastructure, disable a military command network, or destroy industrial equipment without a single soldier crossing a border, and often without the attacking state ever admitting responsibility. This raises a question international law has struggled to answer definitively: does the just war tradition, developed over centuries to judge the ethics of physical violence, still provide a workable framework once the weapon is code rather than a bullet? In this essay, Just War Theory will be used to analyze the moral legitimacy of state-sponsored cyberwarfare, using the Stuxnet operation against Iran's nuclear program and the 2017 NotPetya attack against Ukraine as case studies. As with any application of the just war tradition, the aim here is to assess the justifiability of the conduct, not its legality under existing treaties, since the two questions frequently diverge in cyberspace.

The Rise of Cyberwarfare as an Instrument of Statecraft

Offensive cyber capability has moved from a peripheral concern to a central pillar of national security strategy in under two decades. States now maintain dedicated military cyber commands, and a growing body of evidence documents cyber operations conducted by, or on behalf of, Russia, the United States, Israel, China, Iran, and North Korea, among others. What distinguishes cyberwarfare from earlier forms of covert or asymmetric conflict is its scalability and its ambiguity: a single piece of malware can be contained to a specific target, as Stuxnet largely was, or it can spread far beyond its intended victim, as NotPetya did when it escaped Ukraine and caused an estimated ten billion dollars in damage worldwide, disrupting shipping giant Maersk, the pharmaceutical company Merck, and hospital systems that had no connection to the Russia-Ukraine conflict that motivated the attack. This scalability, combined with the difficulty of reliably attributing an attack to its true author, is what makes cyberwarfare a distinct moral problem rather than simply war conducted through a new medium.

Is Just War Theory Applicable to Cyberspace?

Before applying the just war tradition to specific cases, it is worth addressing the objection that Just War Theory, built for an era of kinetic violence, has nothing useful to say about operations that, in Stuxnet's case, damaged machinery but killed no one. Michael Schmitt, whose work underpins the Tallinn Manual on the international law applicable to cyber operations, represents what can be called the moderate position in this debate: that traditional jus ad bellum and jus in bello criteria remain fully capable of providing ethical guidance for cyber operations, provided the criteria are interpreted with attention to what makes cyberspace distinctive. Randall Dipert, writing in the Journal of Military Ethics, has argued along similar lines, treating the ethics of cyberwarfare as continuous with, rather than a rupture from, the ethics of war more broadly. This essay follows that moderate position. As Michael Walzer argued of Just War Theory generally, the tradition captures 'the moral law, to those general principles that we commonly acknowledge, even when we can't or won't live up to them,' and there is no obvious reason those principles cease to apply simply because the instrument of harm is a worm rather than a warhead. The analogy is imperfect, since a cyberattack that disables a centrifuge is not equivalent to an airstrike that kills the operator standing beside it, but the imperfection of the analogy does not make it useless. It requires only that the criteria be reshaped, not discarded, to fit a domain where physical destruction, data destruction, and mere disruption sit on a continuum rather than being interchangeable.

Jus ad Bellum: The Case of Stuxnet

Stuxnet, widely attributed to a joint United States-Israeli operation and reportedly codenamed Operation Olympic Games, was designed to physically destroy centrifuges at Iran's Natanz enrichment facility by causing them to spin at damaging speeds while feeding false readings to plant operators. Assessed against jus ad bellum, the operation raises each of the criteria the Yemen intervention was assessed against: just cause, legitimate authority, right intention, last resort, proportionality, and reasonable chance of success.

On just cause, the operation can be framed as preventive self-defense against a state, Iran, that the United States and Israel assessed to be pursuing nuclear weapons capability in violation of its non-proliferation commitments. Just War Theory has traditionally been skeptical of preventive war, reserving the tighter standard of pre-emptive self-defense for threats that are instant and overwhelming, leaving no moment for deliberation. Iran's uranium enrichment program, while a genuine long-term proliferation concern, did not constitute the kind of imminent, unambiguous threat that satisfies this narrower standard at the time Stuxnet was deployed. This is precisely the objection raised against the Saudi-led Coalition's claim of pre-emptive self-defense in Yemen: a real and rising threat is not the same as an instant one, and Just War Theory has historically demanded the latter.

On legitimate authority, a nation-state acting through its formal military and intelligence apparatus satisfies the traditional criterion more straightforwardly in Stuxnet than the coalition-based authority discussed in the Yemen case, since sovereign states have long been recognized as the paradigm legitimate authority under the just war tradition. The harder question is right intention. The stated rationale, halting Iranian proliferation, is a defensible one, but Stuxnet's design, precise, deniable, and reversible in its effects, also served a second and less publicly acknowledged purpose: substituting for, or delaying the need for, a conventional Israeli airstrike on Natanz that carried a much higher risk of regional escalation. Where the Yemen intervention's proportionality analysis had to weigh airstrikes against alternative diplomatic measures, Stuxnet's proportionality analysis runs in the opposite direction: it can be read as the proportionate alternative to a more destructive kinetic strike, precisely because it caused equipment damage rather than casualties.

On last resort, diplomatic efforts, including sanctions administered through the UN Security Council, had been underway against Iran for years before Stuxnet was deployed, and had manifestly failed to halt enrichment activity, which lends some support to treating the operation as something closer to a last resort than a first response. On reasonable chance of success, the operation is one of the few cyberweapons to unambiguously achieve its stated technical objective, destroying an estimated one-fifth of Iran's operating centrifuges and delaying the program by a period researchers have estimated at one to two years, a criterion the operation satisfies more cleanly than most conventional interventions manage. Ralph Langner, the forensic researcher who first reverse-engineered Stuxnet's code, went so far as to describe it as 'a textbook example of a just war approach,' precisely because it caused no deaths and targeted a narrow military-industrial objective. That characterization is generous, particularly on the question of preventive versus pre-emptive self-defense, but it captures why Stuxnet remains the case most favorable to the proposition that a cyberattack can meet the jus ad bellum bar.

Jus in Bello and the Problem of Indiscriminate Effects: NotPetya

If Stuxnet is the case that comes closest to satisfying Just War Theory, NotPetya illustrates how quickly a cyber operation can fail the jus in bello test of discrimination and proportionality, principles concerned not with whether a state was right to act but with whether it fought justly once it had. NotPetya was disguised as ransomware but was, according to the forensic consensus, built primarily to destroy data rather than to extract payment. The United States, United Kingdom, and Australia formally attributed the attack to Russia's GRU military intelligence agency, with the CIA concluding it was intended to disrupt Ukraine's financial system amid the two countries' ongoing conflict. The malware spread through a compromised update to M.E.Doc, a Ukrainian tax-preparation program used broadly across the country's businesses and government agencies, which functioned as the equivalent of poisoning a public water supply to reach a specific set of targets drawing from it.

The principle of discrimination requires a distinction between combatants and non-combatants, and requires that force not be used indiscriminately even against a legitimate target. NotPetya's own design defeated this principle before it was ever deployed: by exploiting a widely used piece of commercial software as its delivery mechanism, the attack guaranteed that its effects would not remain confined to Ukrainian government or military systems. Roughly eighty percent of the damage was concentrated in Ukraine, according to the cybersecurity firm ESET, but the remaining twenty percent reached Maersk, Merck, FedEx's European subsidiary TNT Express, and hospital networks in the United States and United Kingdom that had no connection whatsoever to the conflict that motivated the attack, at a global cost exceeding ten billion dollars. The United States and United Kingdom's joint statement attributing the attack to Russia explicitly characterized it as 'reckless and indiscriminate,' language that maps directly onto the jus in bello discrimination criterion and its finding against the attack. Proportionality fares no better: even accepting that disrupting Ukraine's financial and government systems could constitute a legitimate military objective in an active conflict, a worm engineered to propagate uncontrollably through global corporate networks imposes harm on uninvolved third parties that is wildly disproportionate to whatever military advantage was gained. Necessity, the third jus in bello criterion, is similarly unmet: destructive, self-propagating malware was not a necessary means of achieving disruption when more contained alternatives, of the kind Stuxnet at least attempted, were available. Where Stuxnet was engineered for precision, NotPetya was engineered, or at minimum permitted, to spread without regard for whom it reached, and that design choice is itself the moral failure.

The Attribution Problem: A Unique Complication for Just War Theory

Beyond the individual criteria, cyberwarfare introduces a complication that has no clean analogue in conventional conflict: the attribution problem. Just War Theory's requirement of legitimate authority presumes that the party responsible for an act of war can be identified, held accountable, and, if necessary, condemned by the international community. Neither the United States nor Israel has formally acknowledged responsibility for Stuxnet to this day, and Russia has consistently denied involvement in NotPetya despite the intelligence consensus of its Western accusers. This deniability is not incidental to cyberwarfare; it is frequently the point. A state that can plausibly deny an attack gains the coercive benefits of the act while evading the reputational, diplomatic, and legal costs that Just War Theory's framework of public justification is designed to impose. Michael Walzer's formulation of the just war tradition assumes that a state must offer its reasons to its own population, to the population it is acting against, and to the international community, precisely so that those reasons can be scrutinized. Anonymous or plausibly-deniable cyber operations sidestep that scrutiny by design, which means that even an operation that might otherwise satisfy jus ad bellum, as the Stuxnet case arguably does, undermines a foundational purpose of the just war framework by declining to be publicly justified at all. This suggests that any adequate ethics of cyberwarfare needs to treat attribution and public accountability not as a peripheral procedural matter but as an additional criterion sitting alongside the traditional six, since a war fought in the shadows cannot be judged by a tradition built on the presumption of open justification.

Conclusion

Applying Just War Theory to cyberwarfare confirms what the moderate school of scholars, including Schmitt and Dipert, has argued: the tradition's categories remain useful, but only once reshaped to fit a domain where destruction, disruption, and mere intrusion are not interchangeable, and where the identity of the attacker is frequently contested or concealed. Stuxnet, judged on jus ad bellum grounds, comes closer than almost any other documented cyber operation to satisfying the tradition's criteria, particularly on proportionality relative to the conventional alternative and on its narrow, technically successful objective, even though its preventive rather than strictly pre-emptive rationale remains contestable. NotPetya demonstrates the opposite: an operation that may have targeted a defensible objective in Ukraine failed jus in bello decisively, through a delivery mechanism that made indiscriminate, disproportionate global harm not a regrettable side effect but a foreseeable consequence of its design. Both cases, however, are complicated by a problem the Yemen surveillance analysis did not have to confront in the same way: the attacking states' unwillingness to publicly own their actions weakens the accountability function that the just war tradition depends on to operate at all. As offensive cyber capability continues to proliferate among states, the international community would do well to hold cyber operations to the same standard of public justification, discrimination, and proportionality that has long been demanded of conventional force, rather than treating the absence of visible casualties as a reason to relax that scrutiny.