Security researchers at Google have found evidence of a â€œsustained effortâ€ to hack iPhones over a period of at least two years.
The attack was said to be carried out using websites which would discreetly implant malicious software to gather contacts, images and other data.
Googleâ€™s analysis suggested the booby-trapped websites were said to have been visited thousands of times per week.
Apple told the BBC it did not wish to comment.
The attack was shared in great detail in a series of technical posts written by British cybersecurity expert Ian Beer, a member of Project Zero, Googleâ€™s taskforce for finding new security vulnerabilities, known as zero days.
“There was no target discrimination,â€ Mr Beer wrote.
â€œSimply visiting the hacked site was enough for the exploit server to attack your device, and if it was successful, install a monitoring implant.”
Mr Beer and his team said they discovered attackers were using 12 separate security flaws in order to compromise devices. Most were bugs within Safari, the default web browser on Apple products.
Once on a personâ€™s iPhone, the implant could access an enormous amount of data, including (though not limited to) contacts, images and GPS location data. It would relay this information back to an external server every 60 seconds, Mr Beer noted.
The implant also was able to scoop up data from apps a person was using, such as Instagram, WhatsApp and Telegram. Mr Beerâ€™s list of examples also included Google products such as Gmail and Hangouts, the firm’s group video chat app.
The attackers were able to exploit “almost every version from iOS 10 through to the latest version of iOS 12â€, Mr Beer added.
“This indicated a group making a sustained effort to hack the users of iPhones in certain communities over a period of at least two years.â€
Are you protected?
Apple issued a software fix to address the flaw back in February.
If you are an iPhone user, you should make sure your device is running the latest version of iOS, to make sure you are protected.
To do this, go to Settings and tap General. Under ‘Software Update’ you should be running iOS 12.4.1.
If you are not running iOS 12.4.1 you will be given the opportunity to update your device.
Googleâ€™s team notified Apple of the vulnerabilities on 1 February this year. A patch was subsequently released six days later to close the vulnerability. Appleâ€™s patch notes refer to fixing an issue whereby â€œan application may be able to gain elevated privilegesâ€ and â€œan application may be able to execute arbitrary code with kernel privilegesâ€.
iPhone users should update their device to the latest software to make sure they are adequately protected.
Unlike some security disclosures, which offer merely theoretical uses of vulnerabilities, Google discovered this attack â€œin the wild” – in other words, it was in use by cybercriminals.
Mr Beerâ€™s analysis did not speculate on who may be behind the attack, nor how lucrative the tool may have been on the black market. Some â€œzero dayâ€ attacks can be sold for several millions dollars – until theyâ€™re discovered and fixed.