Pegasus. A computer built out of an image
On a phone, you don't need to click anything to lose control of the device. It's enough for the phone to receive a message. That's how Pegasus works, and one of its exploits was so sophisticated that Google researchers called it terrifying.
In September 2021, researchers at Citizen Lab, a laboratory at the University of Toronto, were analysing the iPhone of a Saudi activist infected with Pegasus, spyware made by the Israeli company NSO Group. Among the files that had reached the phone via iMessage, they found something strange: files with a .gif extension that were in fact PDF documents. The phone's owner never opened them. They did not have to.
The exploit was named FORCEDENTRY. On 13 September 2021 Apple released a fix for iPhones, Macs and Apple Watches, because the flaw affected all of these systems. According to Citizen Lab, the exploit had been in use since at least February 2021, among others against nine activists from Bahrain.
Zero clicks
Most attacks require at least one mistake by the victim: clicking a link, opening an attachment, installing an app. Zero-click attacks need none of that. They exploit the fact that a phone processes incoming data on its own, before the user even sees it: it generates an image preview, unpacks an attachment, checks a file's format. A single bug in that code is enough for an attacker to run their own instructions on the phone.
NSO Group sells Pegasus exclusively to governments and their agencies. Once a phone is infected, the program has access to almost everything: messages, including those in encrypted messengers, photos, location, microphone and camera. End-to-end encryption does not help here, because Pegasus reads the messages on the device, after they have been decrypted.
In 2019 NSO attacked about 1,400 WhatsApp users this way, using a previously unknown flaw in the messenger. WhatsApp sued the company. We will come back to that case.
A computer inside an image file
In December 2021, Ian Beer and Samuel Groß of Google Project Zero, a team that hunts for vulnerabilities in other companies' software, published an analysis of FORCEDENTRY. Their conclusion: it was one of the most technically sophisticated exploits they had ever seen.
The fake GIF was a PDF file containing an image encoded in JBIG2, an old compression format for black-and-white scans once used in fax machines and scanners. The CoreGraphics library, which Apple uses to display PDFs, had an overflow bug in its JBIG2 decoder. That in itself was nothing unusual. What was unusual was what the attackers did with it.
JBIG2 allows fragments of an image to be combined using logical operations such as AND or OR. The authors of the exploit used this mechanism to build logic circuits out of more than 70,000 segment commands, and from those circuits a small, working computer, with registers, a 64-bit adder and a comparator. This virtual processor, hidden inside a graphics decoder, carried out the next steps of the attack. "It's pretty incredible, and at the same time, pretty terrifying," wrote the Google researchers.
A race that never ends
Apple patched FORCEDENTRY, but NSO did not stop working. In April 2023 Citizen Lab described three more zero-click exploit chains the company had used in 2022. One of them, named PWNYOURHOME, first attacked the HomeKit service and then iMessage. Another, FINDMYPWN, started with the Find My feature. The victims included human rights defenders from Centro PRODH, a Mexican organisation investigating abuses by the army.
That report also contained good news. On phones with Lockdown Mode enabled, a feature Apple introduced in 2022, attempts at the PWNYOURHOME attack triggered warnings, and the researchers saw no successful infection of such a device.
In September 2023 Citizen Lab found another chain, BLASTPASS. This time the malicious images arrived as PassKit attachments, the format Apple uses for tickets and boarding passes in the Wallet app. The attack worked on the then latest version, iOS 16.6, and its target was an employee of a civil society organisation in Washington. Apple quickly released a fix (iOS 16.6.1) and confirmed to the researchers that Lockdown Mode blocks this attack.
Each of these stories ends the same way: the flaw is found, described and patched. But none of them begins with defenders finding it first. NSO's exploits were used for months before anyone noticed them. We wrote about a similar case, Operation Triangulation, which exploited an undocumented hardware feature of iPhones, in our articles on backdoors and on Apple chips.
Pegasus in Poland
In December 2021 Citizen Lab confirmed that the lawyer Roman Giertych and the prosecutor Ewa Wrzosek had been surveilled with Pegasus in Poland. A few days later the Associated Press reported a third case: the phone of Senator Krzysztof Brejza had been hacked 33 times between 26 April and 23 October 2019. At the time Brejza was head of the election campaign of the Civic Coalition. The then spokesman for the minister coordinating the special services claimed that operational surveillance requires the consent of the Prosecutor General and a court, and that suggestions of illegal surveillance for political purposes were untrue.
The money trail led to the Ministry of Justice. In September 2017 the ministry transferred 25 million zlotys to the Central Anti-Corruption Bureau (CBA) from the Justice Fund, which is intended to help victims of crime. The Supreme Audit Office (NIK) found that this transfer broke the law, because the CBA may be funded only from the state budget. According to the TV station TVN24, the bureau then spent more than 33 million zlotys, reportedly on Pegasus.
On 16 April 2024 Adam Bodnar, Minister of Justice and Prosecutor General, announced that between 2017 and 2022 Pegasus had been used against 578 people. The highest number, 162 cases, was in 2021.
It is worth remembering what these numbers are, though. They are official data, covering cases confirmed in prosecutors' documents or by independent researchers. We do not know the scope of the licences NSO Group sold to Poland or to other countries: how many devices could be targeted at the same time, for how long and against whom. Infections that nobody ever found out about do not appear in any statistics, and Pegasus is designed to leave as few traces as possible. The real number of victims, in Poland and worldwide, may have been many times higher than the official figure.
How to detect it
In July 2021 a consortium of journalists working as the Pegasus Project, coordinated by the organisation Forbidden Stories and by Amnesty International, revealed a leaked list of 50,000 phone numbers that may have been targets of NSO's clients. Together with the publication, Amnesty's Security Lab released a tool for checking devices yourself: the Mobile Verification Toolkit, or MVT.
MVT searches an iPhone backup, and on a jailbroken device also a full system image, for traces of infection: domain names NSO used to deliver its software, characteristic processes and files. It can also decrypt an encrypted backup. On Android its possibilities are more limited. The tool checks text messages with links to NSO domains and suspicious apps, but as Amnesty noted, an iPhone leaves far more forensic traces than an Android phone, so infection is easier to detect on it.
It is a tool for people who are not afraid of the command line, and the current indicators of compromise have to be downloaded regularly. The absence of traces is not proof that a phone is clean either. It only means that no known traces were found.
The verdict in California
WhatsApp's case against NSO dragged on for years. In December 2024 the court ruled that NSO was liable for the 2019 attack. In May 2025 a jury awarded WhatsApp more than 444,000 dollars in compensatory damages and 167 million dollars in punitive damages.
On 17 October 2025 Judge Phyllis Hamilton reduced the punitive damages to just over 4 million dollars, finding the original amount excessive. She did, however, issue a permanent injunction: NSO may no longer attack WhatsApp, must stop analysing its code and must delete the source code it holds. The ban covers only WhatsApp, not other services. NSO maintains that it is not responsible for how its customers use its products.
What really helps
Against a Pegasus-level zero-click attack, caution will not protect you, because there is nothing to click. What does help is reducing the attack surface and shortening the time during which a flaw remains open.
Updates are the first line of defence: each of the exploits described here stopped working after a fix. If NSO's chains worked even on the latest versions of the systems, they work all the more on versions that are months old. On an iPhone, people at particular risk should turn on Lockdown Mode. It blocks most attachment types in Messages, link previews and some of the services used by the exploits described here, and, as BLASTPASS showed, it can stop an attack before it is patched. The cost is convenience, but for a journalist working with sources, for example, it is a small price to pay.
Separation is also good practice: a separate phone for sensitive contacts, with a minimal number of apps and services, without messengers that accept messages from anyone. Every app that automatically processes data from outside is another parser that may contain a bug. The same principle of isolation is behind Qubes OS on computers.
Finally, a phone that has not received updates for years is not an "old but good" device. It is an open invitation.
FORCEDENTRY showed that a computer can be built out of a few tens of thousands of image compression commands. Nobody designed JBIG2 as a programming language. Someone simply discovered that it was one.