How a cyber attack is traced Image: Mutante, CC BY-SA 3.0

How a cyber attack is traced

At about half past ten in the morning of 27 June 2017, computers in offices across Ukraine began to restart and display a ransom note demanding 300 dollars in bitcoin. By the afternoon the same note was on screens at the shipping company Maersk in Copenhagen, at the pharmaceutical company Merck in New Jersey, at the delivery firm TNT in the Netherlands, and at a chocolate factory in Tasmania. The code, which researchers named NotPetya because it imitated an older piece of ransomware called Petya, did not in fact hold anything to ransom; it destroyed the files it encrypted. On 15 February 2018, almost eight months later, the governments of the United Kingdom and the United States stated publicly that the Russian military had been responsible. The eight months are the subject of this post, because attribution, which is working out who did it, is the problem on which everything else in cyber conflict depends.

Three layers

Thomas Rid and Ben Buchanan, in a 2015 article in the Journal of Strategic Studies called "Attributing Cyber Attacks", set out the framework that Unit 13 of the masterclass uses. Attribution, they argued, is a process with three layers rather than a single finding. At the tactical layer the question is how the attack was done: which code, which servers, which vulnerabilities, which path into the network. At the operational layer the question is who, in the sense of which group, with what resources, following what pattern of work. At the strategic layer the question is why, and whether the group acted for a government, and what the victim should do about it. Each layer has its own kind of evidence and its own standard of proof, and a mistake at one is carried into the next. Their conclusion, which annoyed engineers, was that attribution is as much a political act as a technical one: a government decides how sure it needs to be and how much of its evidence it will show.

What the code said

The tactical layer was fast. Within hours, researchers at several security companies had established that NotPetya had been delivered through the automatic update mechanism of M.E.Doc, an accounting program that almost every company doing business in Ukraine was required to use for its tax filings; the attackers had been inside the software company's update server for weeks. Once on a network the code spread using a leaked US intelligence tool and by harvesting passwords from the memory of each machine it reached, which is how it jumped from a Ukrainian subsidiary into a multinational's worldwide network. The imitation of Petya was skin deep. The encryption routine was written so that the files could not be recovered even by the attackers, and the payment address was a single wallet with an email contact that the provider closed within hours, which no criminal seeking money would have arranged.

The operational layer took longer, and it worked by connecting NotPetya to things already known. The group that researchers call Sandworm had been linked to the attacks that cut power to parts of western Ukraine on 23 December 2015 and to Kyiv a year later, and to a series of destructive attacks on Ukrainian ministries and banks in the months before June 2017. Pieces of NotPetya's code, its infrastructure, and its methods matched that series. The victims matched too: the code was aimed at Ukraine and the damage abroad looked like a side effect of how far Ukrainian business reached, a point that the companies suing their insurers for hundreds of millions of dollars later had to argue in court.

What the governments said, and when

The strategic layer is where the eight months went. The British statement of 15 February 2018 said that the Russian military was almost certainly responsible, a phrase that in the language of British intelligence assessments means a probability above 90 per cent, and that the attack had been reckless in its disregard for the collateral damage. The White House statement the same day called it the most destructive and costly cyber attack in history and put the damage at more than 10 billion dollars; Maersk alone had reinstalled 45,000 computers and 4,000 servers in ten days and lost about 300 million dollars, and Merck's losses were put at 870 million. Australia, Canada, Denmark, Estonia, Lithuania, and New Zealand issued statements in the following days. In October 2020 the United States Department of Justice unsealed an indictment naming six officers of a specific unit of Russian military intelligence, Unit 74455, and charging them with NotPetya, the Ukrainian power attacks, and other operations. The indictment is the most detailed public attribution of a state cyber operation that exists, and it rests on evidence the governments had chosen not to show in 2018.

The delay had reasons on every layer. Confirming the operational attribution with signals intelligence takes time and risks exposing sources. Coordinating a joint statement among seven governments takes months. And the decision to name a state publicly is a decision about consequences, since a government that names an attacker has to be seen to respond, which is why Rid and Buchanan placed the question "what should we do?" inside the attribution process rather than after it.

Planting a flag

The reason governments wait is that the evidence can be forged, and the clearest demonstration came eight months after NotPetya. On 9 February 2018, during the opening ceremony of the Winter Olympics in Pyeongchang, malware later called Olympic Destroyer took down the games' internal systems, wifi, and ticketing for several hours. Its code carried unmistakable signs of the Lazarus group, which is associated with North Korea: a structure in the compiled file that records the tools used to build it matched Lazarus's earlier work exactly. Researchers at Kaspersky then found that the structure did not match the rest of the file, and that it had been pasted in from a Lazarus sample. Somebody had planted a North Korean fingerprint on a file written elsewhere. The 2020 American indictment charged the same six Russian officers with that attack as well. Three years earlier, in April 2015, a group calling itself the Cyber Caliphate had taken the French broadcaster TV5Monde off the air; the investigation traced the operation to the Russian group known as APT28.

A false flag works by exploiting how analysts reason. If a technique has been seen a hundred times and ninety of those were a particular group, an analyst who finds the technique again reasonably leans towards that group, and an attacker who knows this can borrow the technique. The defence is the one Rid and Buchanan described: no single piece of evidence settles anything, the layers are checked against each other, and the consistency of the whole picture matters more than the strength of any part. The Council on Foreign Relations' Cyber Operations Tracker lists several hundred publicly known state operations since 2005 with the source of each attribution, and reading the sources is the exercise Unit 13 sets. Unit 13 of the masterclass, on cyber operations and the problem of attribution, works through NotPetya layer by layer and then asks the harder question, which is what a state may lawfully do once it is sure.

Study world politics properly

The Int. Rel. Masterclass: weekly units, quizzes, a final exam, and a certificate.
About the program
Keep reading

Related articles