Amid uproar over allegations of an Israeli software being used to spy over activists and journalists, WhatsApp on Friday said it had worked quickly to resolve the privacy breach.

“Our highest priority is the privacy and security of WhatsApp users. In May we quickly resolved a security issue and notified relevant Indian and international government authorities,” a company spokesperson said in a statement.

“Since then we’ve worked to identify targeted users to ask the courts to hold the international spyware firm known as the NSO Group accountable,” the statement said.

The explanation comes after the Union government on Thursday asked WhatsApp for a report on allegations of breach of security after a senior executive of the social messaging platform said Indians were among those targeted for snooping by an Israeli company that works for governments around the world.

The government had asked the messaging platform to explain the matter and list out the measures that have been taken by it to safeguard the privacy of millions of Indians.

On being asked to explain, WhatsApp said that it agrees with the government of India’s strong statement about the need to safeguard the privacy of its citizens.

“We agree with the government of India’s strong statement about the need to safeguard the privacy of all Indian citizens. That is why we’ve taken this strong action to hold cyber attackers accountable and why WhatsApp is so committed to the protection of all user messages through the product we provide,” a WhatsApp spokesperson told PTI.

According to sources, the company has been asked to submit its response by November 4.

“Government of India is concerned at the breach of privacy of citizens of India on the messaging platform WhatsApp. We have asked WhatsApp to explain the kind of breach and what it is doing to safeguard the privacy of millions of Indian citizens,” electronics and information technology minister Ravi Shankar Prasad had said on Twitter.

WhatsApp had said it was suing NSO Group, an Israeli surveillance firm that is reportedly behind the technology that helped unnamed entities’ spies hack into phones of roughly 1,400 users spanning across four continents, including diplomats, political dissidents, journalists and senior government officials.

However, it did not say on whose behest the phones of journalists and activists across the world were targeted.

Refusing to divulge identities or the exact number of those targeted in India, WhatsApp had said in May, it had stopped a highly sophisticated cyberattack that exploited its video calling system to send malware to its users.

The mobile messaging giant said it had sent a special WhatsApp message to about 1,400 users that it has “reason to believe were impacted by this attack to directly inform them about what happened”.

While the messaging giant did not disclose the details or the number of people affected in India, the company confirmed that Indian users were among those contacted by the company.

WhatsApp has over 1.5 billion users globally, of which India alone accounts for about 400 million.

In the past too, WhatsApp has drawn flak from the Indian government on the platform being misused for spreading misinformation that led to incidents of mob lynching.

The government has categorically told WhatsApp that it wants the platform to bring in a mechanism to enable tracing of the originator of messages, a demand that WhatsApp has resisted citing privacy issues. The government is also working on tightening rules of social media companies in India that will increase the accountability of such platforms.

WhatsApp on Tuesday filed a lawsuit in a California federal court against NSO Group, which allegedly developed the spyware, saying an attempt was made to infect approximately 1,400 “target devices” globally with malicious software to steal valuable information from those using the messaging app.

WhatsApp had said it “believes the attack targeted at least 100 members of civil society… this number may grow higher as more victims come forward”.

NSO had denied the allegations and said it provides “technology to licensed government intelligence and law enforcement agencies to help them fight terrorism and serious crime” and is not “designed or licensed for use against human rights activists and journalists.”