Research / LAB-0021

Government cyber tools and commercial spyware

A government can build a hacking tool for its own use, or a company can build one to sell. The two can be equally capable, and they fail in different ways. This article follows the public record on both, from Stuxnet and the leaked exploits behind WannaCry and NotPetya to Pegasus and the WhatsApp lawsuit, and says what the difference does and does not mean for a person at risk and for a device examiner.

  • Daniel Addai, SectraTEK Lab
  • Version 1.0
  • 2026-11-08
  • CC BY 4.0
  • Early research

Cite as

Addai, D., SectraTEK Lab (2026). Government cyber tools and commercial spyware. LAB-0021, version 1.0. https://lab.sectratek.com/research/lab-0021/

Citation guide

Methodology note

Drafted with AI assistance and reviewed by the author before publication.

Summary

  • A capability can be built in-house by an agency for its own operations, or built as a product and licensed to many customers. The line is blurry, because governments also buy commercial tools, but the two models point to different failure modes and different fixes.
  • In-house tools can escape their purpose. Symantec counted about 100,000 computers infected by Stuxnet by 29 September 2010, in more than 155 countries, with about 60 percent in Iran, even though the code was aimed at one kind of industrial system. Exploits that were said to be in an agency's hands leaked in 2017 and were reused in WannaCry and NotPetya.
  • Commercial spyware is built to be sold. Researchers have documented its use against journalists, activists and officials. The vendor NSO Group says it investigates credible claims of misuse and disputes parts of the reporting.
  • Courts and trade rules now treat the commercial side as a company that can be sued and restricted. In WhatsApp v. NSO Group a jury awarded about $167.7 million in 2025, a judge cut the punitive part to $4 million and issued an injunction, and NSO is appealing.
  • For a person at risk, the practical difference is limited. For an examiner, a device rarely shows which model a tool belongs to, and a clean indicator check says less for tools that have no public indicators.

Two ways a capability reaches the world

Hacking tools at the top end are alike in what they can do. They differ in who makes them, who may use them, and what happens when control is lost. In this article, an in-house tool is one that an agency builds or acquires for its own operations. A commercial tool is one that a company builds as a product and licenses to government customers. The labels are a lens. A government can buy a commercial tool, an agency can buy exploits from a broker, and the same weakness in a phone can be used by either. We use the labels to ask where the failures came from in the cases below.

The in-house model: Stuxnet

Stuxnet is the best known example of a tool built for a single purpose. Symantec's 2011 analysis describes it as a threat targeting a specific industrial control system, likely in Iran, with the goal of sabotaging a facility by reprogramming its controllers [1]. The New York Times reported in 2012, citing current and former officials, that it was part of a joint American and Israeli program against Iran's nuclear effort [2] [3]. Neither the dossier nor this article rests on an official acknowledgement, and we cite none.

The record also shows what a narrow aim did not prevent. Symantec monitored the code's control servers from 20 July 2010 and, as of 29 September 2010, counted about 100,000 infected hosts, over 40,000 unique external addresses in more than 155 countries, and about 60 percent of infected hosts in Iran [1]. The Times reported that officials blamed an error in the code for letting it spread beyond its target [2] [3]. So a tool built for one target and never sold still reached computers far beyond it. Whether anyone intended that is not something these sources can show.

When an in-house tool leaks

The second failure of the in-house model is theft or leakage. In April 2017 a group calling itself the Shadow Brokers published what it described as data from the U.S. National Security Agency. Rapid7's analysis at the time says the material included Windows exploits, and that four of them, including the one called EternalBlue, used vulnerabilities that Microsoft had patched the previous month; Rapid7 calls the NSA link "alleged" [5]. Microsoft's bulletin MS17-010, published on 14 March 2017, was the patch [4].

In May 2017 the WannaCry ransomware spread using an exploit of that kind. Microsoft's president Brad Smith wrote that the exploits used had been stolen from the NSA, that a fix had been issued about a month earlier, and that many computers were still unpatched two months after it; he called on governments to report vulnerabilities to vendors rather than stockpile them [6]. On 19 December 2017 the governments of the United States, Australia, Canada, Japan and the United Kingdom attributed WannaCry to North Korea, which denies it; the U.S. Justice Department filed criminal charges in September 2018 [7]. In June 2017 the NotPetya malware followed. On 15 February 2018 the White House said the Russian military was responsible and called it the most destructive and costly cyber-attack in history [8]. WIRED reported a U.S. government assessment of more than $10 billion in total damage, and that NotPetya also used the EternalBlue exploit [9].

The lesson here is about timing and patching. The leaked exploits targeted flaws that had already been fixed, and the harm fell on systems that had not been updated. A leak turns a capability that one agency held into a tool anyone can reuse. Figure 1 gives the order of events.

From a patch to two global attacks, with dates and sources
WhenWhat happenedSource
14 March 2017Microsoft publishes the MS17-010 update for the flaws EternalBlue uses.Microsoft [4]
April 2017The Shadow Brokers publish alleged NSA material, including exploits for flaws already patched.Rapid7 [5]
May 2017WannaCry spreads using an exploit of that kind. Many computers are still unpatched.Microsoft [6]
June 2017NotPetya spreads, also using EternalBlue according to WIRED.WIRED [9]
19 December 2017 and 15 February 2018Governments attribute WannaCry to North Korea and NotPetya to the Russian military. Both attributions are the governments' own, and North Korea denies its part.CFR [7]; White House statement as reported by Axios [8]
Figure 1A patch existed before the leak, and the harm came from systems that had not applied it. Source: the references named in each row.

The commercial model: Pegasus

Pegasus is the spyware sold by the Israeli company NSO Group. An early and widely read public analysis was Citizen Lab's report of 25 August 2016 on an attack against the human rights defender Ahmed Mansoor in the United Arab Emirates. The researchers, working with Lookout, found a chain of previously unknown iPhone flaws, tied the links to NSO Group, and assessed with caution that the UAE government was probably responsible [10]. Apple fixed the flaws in iOS 9.3.5 [10].

In July 2021 Forbidden Stories, Amnesty International and media partners published the Pegasus Project. It was based on a leaked list of 50,000 phone numbers of potential surveillance targets. Amnesty describes the numbers as selected for potential targeting and not as confirmed infections, and says the consortium also found numbers of suspected criminals [11]. NSO denied the report's claims, said its technology was not associated with the murder of Jamal Khashoggi, and said it would continue to investigate credible claims of misuse [11]. In El Salvador, researchers confirmed Pegasus on the phones of 35 people, and the presidential communications office said the country is not an NSO customer, according to ICIJ [12].

Commercial tools are not an exotic corner. In February 2024 Google's Threat Analysis Group reported that commercial surveillance vendors were behind about half of the known zero-day exploits it saw targeting Google products and Android devices, and that it tracked around 40 such vendors [16]. That is Google's count for its own products and the devices it can see, not a measure of the whole market.

Courts, export controls and agreements

Because the commercial model is a company, ordinary law reaches it. The record so far, stated as it stands in the sources:

  • WhatsApp v. NSO Group. In December 2024 the judge, Phyllis Hamilton of the U.S. District Court for the Northern District of California, ruled for WhatsApp, finding that NSO had violated U.S. and California anti-hacking laws and had not complied with orders to produce evidence [13]. On 6 May 2025 a jury awarded $444,719 in compensatory damages and nearly $167.3 million in punitive damages, for about 1,400 WhatsApp users, according to CyberScoop [13]. In October 2025 the judge cut the punitive award to $4 million and issued a permanent injunction against NSO targeting WhatsApp and its users. The injunction does not cover NSO's customers and is limited to WhatsApp [14]. NSO called the reduction a step in the right direction and said the remaining sum is still disproportionately high [14]. NSO appealed, and the Knight First Amendment Institute's case page shows the briefing complete in July 2026 and the case awaiting an argument date [15]. In June 2026 Meta asked the court to hold NSO in contempt, alleging a phishing campaign aimed at WhatsApp users. These are allegations, and NSO did not respond to CyberScoop's request for comment [17].
  • Export controls. On 3 November 2021 the U.S. Commerce Department added NSO Group and the Israeli company Candiru to the Entity List, saying they had developed and supplied spyware to foreign governments that used it to target officials, journalists, businesspeople, activists, academics and embassy workers [18]. TechCrunch reported in January 2026 that NSO has lobbied to have the restrictions lifted and that critics say it wants to enter the U.S. market; we did not check the current status of the list [19].
  • U.S. government use. Executive Order 14093 of 27 March 2023 bars federal agencies from operational use of commercial spyware that poses significant counterintelligence, security or improper-use risks [20]. We could not confirm whether the order remains in force and make no claim about it today.
  • International agreement. The Pall Mall Process Code of Practice for States, launched in Paris on 3 and 4 April 2025, is voluntary and addresses states: it sets out commitments for the development, facilitation, purchase and use of commercial cyber intrusion capabilities. The U.K. government page lists the United States among supporters from 11 April 2025 [21]. It addresses what states do, not only what vendors sell.

The two models side by side

Figure 2 summarizes the cases above. It is the Lab's reading of a handful of documented cases, not a general law, and each cell points to its source.

In-house government tools and commercial spyware compared on four points, with the cases that support each cell
PointIn-house toolCommercial spyware
Who builds and uses itAn agency, for its own operations. Stuxnet as reported [2].A company that licenses it to government customers. Pegasus; the Commerce finding [18].
OversightThe building government's own bodies. We did not assess them.Export controls, procurement rules, lawsuits and voluntary agreements [13] [18] [20] [21].
How it reaches people it was not meant forIt spreads beyond its target or leaks. Stuxnet [1]; the 2017 exploits [5] [6].Customers use it against people the seller may not have intended, as researchers document and the vendor disputes [10] [11] [12].
Where the fix pointsVulnerability handling and patching, and how governments hold flaws [6].The seller and the market: liability, trade rules and norms [13] [18] [21].
Figure 2The tools can match in capability. The record shows different failure points, and so different fixes. Source: the references named in each cell.

What this means for risk and for an examiner

This section is the Lab's own reading, as a mobile forensics research lab.

For a person at risk

Most people are not a target of either kind. For those who are, such as journalists, activists, politicians, diplomats and their staff, the difference between the two models matters less than the steps that follow: keep the phone and its software up to date as the maker advises (unless an examination is pending, see the note on updates in LAB-0020), use the protective modes a maker offers for people at high risk, and get expert help if you have a warning or a reason to suspect. LAB-0020 covers that sequence. The El Faro and Pegasus cases show that a tool sold to many customers can still be aimed at a small, specific group.

For an examiner

A commercial product used in many places can leave traces that researchers publish after one campaign and that other examinations can then look for. The Mobile Verification Toolkit was released by Amnesty International's Security Lab in July 2021 in the context of the Pegasus Project [22], and published indicators are what such tools check against. A tool with no public indicators cannot be checked this way, so a clean result against known indicators says less. That is why an examiner reports what was checked and does not report "clean" (LAB-TR-0034).

An examiner also cannot usually say, from a phone, whether a tool was an in-house or a commercial one, or which government used it. Apple says it does not attribute the attacks behind its notifications [23]. Attribution rests on outside evidence and carries stated confidence, as in Citizen Lab's 2016 assessment that the UAE was probably responsible [10]. Treat any statement of "who" as a separate claim from "what was found".

What this article does not claim

Read these before you rely on it

  • It does not claim that any company or government did more than the cited record states. NSO Group disputes parts of the reporting, and its appeal is pending.
  • Attributions of WannaCry, NotPetya and Stuxnet are the cited governments' or press accounts, and are not our findings. North Korea denies WannaCry.
  • The origin of the exploits in the 2017 leak is described by the sources as alleged. We make no claim about it beyond what Rapid7 and Microsoft wrote.
  • The comparison is a summary of a few cases. Governments also buy commercial tools, and exploit brokers sit between the two models.
  • We did not confirm whether Executive Order 14093 remains in force or whether NSO Group is still on the Entity List. Check the Federal Register and the Commerce list.
  • Device findings are absent by design. Nothing here says that a given phone holds any of these tools. This is early research and not legal advice.

References

  1. Falliere, N., Murchu, L. O. and Chien, E. W32.Stuxnet Dossier, version 1.4. Symantec Security Response, February 2011. docs.broadcom.com
  2. Sanger, D. E. Obama Order Sped Up Wave of Cyberattacks Against Iran. The New York Times, 1 June 2012. nytimes.com
  3. NPR. Obama sped up wave of cyberattacks against Iran, says NYT. 1 June 2012. npr.org
  4. Microsoft. Microsoft Security Bulletin MS17-010, Critical. Published 14 March 2017. learn.microsoft.com
  5. Rapid7. The Shadow Brokers leaked exploits explained. Blog post, 18 April 2017. rapid7.com
  6. Smith, B. The need for urgent collective action to keep people safe online: Lessons from last week's cyberattack. Microsoft On the Issues, 14 May 2017. blogs.microsoft.com
  7. Council on Foreign Relations, Cyber Operations Tracker. WannaCry. cfr.org
  8. Axios. White House confirms NotPetya malware was Russian military operation. 15 February 2018. axios.com
  9. Greenberg, A. The untold story of NotPetya, the most devastating cyberattack in history. WIRED, 2018. wired.com
  10. Marczak, B. and Scott-Railton, J. The Million Dollar Dissident: NSO Group's iPhone Zero-Days used against a UAE Human Rights Defender. The Citizen Lab, 25 August 2016. citizenlab.ca
  11. Amnesty International. Massive data leak reveals Israeli NSO Group's spyware used to target activists, journalists, and political leaders globally. Press release, 19 July 2021. amnesty.org
  12. International Consortium of Investigative Journalists. El Salvador journalists' cell phones were targeted by Pegasus hundreds of times in two years, analysis shows. January 2022. icij.org
  13. CyberScoop. NSO Group owes $168M in damages to WhatsApp over spyware infections, jury says. 6 May 2025. cyberscoop.com
  14. CyberScoop. Judge forbids NSO Group from targeting WhatsApp users. 20 October 2025. cyberscoop.com
  15. Knight First Amendment Institute at Columbia University. WhatsApp v. NSO Group (case page, Ninth Circuit No. 25-7380). Read 8 November 2026. knightcolumbia.org
  16. Google Threat Analysis Group. Buying Spying: insights into commercial surveillance vendors. Google blog, 6 February 2024. blog.google
  17. CyberScoop. Meta accuses NSO Group of defying spyware injunction, files contempt of court complaint. 8 June 2026. cyberscoop.com
  18. U.S. Department of Commerce. Commerce Adds NSO Group and Other Foreign Companies to Entity List for Malicious Cyber Activities. Press release, 3 November 2021 (rule published in the Federal Register, 4 November 2021). commerce.gov
  19. TechCrunch. Critics pan spyware maker NSO's transparency claims amid its push to enter US market. 8 January 2026. techcrunch.com
  20. Executive Order 14093, Prohibition on Use by the United States Government of Commercial Spyware That Poses Risks to National Security. 27 March 2023; Federal Register 88 FR 18957, 30 March 2023. federalregister.gov
  21. UK Government. The Pall Mall Process: Code of Practice for States. Published 4 April 2025, last updated 23 October 2025. gov.uk
  22. Mobile Verification Toolkit (MVT), documentation, introduction. Amnesty International Security Lab and contributors. docs.mvt.re
  23. Apple Support. About Apple threat notifications and protecting against mercenary spyware. Page dated 13 August 2026. support.apple.com/en-us/102174

Pages were read on 8 November 2026, except three that the Lab's tools could not open and that are cited from search-result summaries only (references 2, 3 and 9: the New York Times, NPR and WIRED pages); treat their details with that in mind. Reference 18, the Commerce press release, was read in full on 9 November 2026. Details in the source material we could not verify were left out, including claims about the number of people infected over time, the age of the exploit inside the agency, and individual cases outside the cited reports.

Version history and corrections

Version history
VersionDateChange
1.02026-11-08First publication.

Corrections log

No corrections have been published for this article. Corrections to any article are listed on Corrections, with the version they apply to.