WhatsApp has rushed to roll out a security fix after concerns were raised that hackers could inject surveillance software on to phones via the call function.
The app discovered a vulnerability which allowed attackers to install malicious code on iPhones and Android phones by ringing up a target device.
The code could be transmitted even if users did not answer their phones and a log of the call often disappeared, according to a national newspaper report.
The company, which is owned by Facebook, said the attack bore a resemblance to spyware developed for intelligence agencies.
There are concerns the software was used in attempts to access the phones of human rights campaigners, including a UK-based lawyer. WhatsApp told the newspaper: “We believe a select number of users were targeted through this vulnerability by an advanced cyber actor.
“This attack has all the hallmarks of a private company known to work with governments to deliver spyware that reportedly takes over the functions of mobile phone operating systems.
“We have briefed a number of human rights organisations to share the information we can, and to work with them to notify civil society.”
The firm is said to have alerted officials at the US Department of Justice after discovering the vulnerability in early May.
WhatsApp claims to have 1.5 billion users and it released a software update on Monday.
According to the report, the spyware was developed by NSO Group, an Israeli cybersecurity and intelligence company. The company told the paper: “Under no circumstances would NSO be involved in the operating or identifying of targets of its technology, which is solely operated by intelligence and law enforcement agencies.
“NSO would not, or could not, use its technology in its own right to target any person or organisation, including this individual (the UK lawyer).”
The vulnerability and suspected attacks have been investigated by Citizen Lab, a research group at the University of Toronto.
“We believe an attacker tried (and was blocked by WhatsApp) to exploit it as recently as yesterday to target a human rights lawyer,” the lab said.