Optimizely Breach Turns Major Sites Into iPhone Exploit Launchpads

Attackers exploited a vulnerability in Optimizely's Web Experimentation platform to inject malicious JavaScript into websites of banks, airlines, retailers, and news organizations. Security firm Report URI discovered poisoned code on 178 widely visited websites, including 32 sites operating in the finance and banking sectors. The code acted as a multi-purpose toolkit; it skimmed payment card data, swapped cryptocurrency wallet addresses, and routed Apple mobile users toward iOS exploit kits.

Optimizely Breach Turns Major Sites Into iPhone Exploit Launchpads

Optimizely confirmed the breach in a brief statement on Monday evening, saying it had identified and contained an incident affecting some Web Experimentation customers. A technical advisory from the company acknowledged that a vulnerability in its Experimentation platform allowed threat actors to inject malicious code. Optimizely says it has blocked the vulnerable path, removed the injected code, and contacted affected customers directly about the incident.

Report URI first spotted the injected code on Turkish websites in September, suggesting the threat actor had been operating quietly for roughly two months. The attackers placed their loader in the Project JavaScript field, which Optimizely customers typically use to add custom code to websites. Report URI also traced at least $7,000 in stolen cryptocurrency through blockchain evidence, confirming that the campaign generated real financial losses for victims. Scott Helme of Report URI noted that while investigators can track the stolen crypto, nobody can measure the skimmed cards, stolen cookies, or infected devices.

Hudson Rock's InfoStealers team confirmed the findings and linked the poisoned scripts to several high-profile properties, including BBC, Zoom, HSBC UAE, and GitLab. The researchers also found that the problem extended beyond Optimizely, with Kissmetrics, StorifyMe, and minute-ly serving malicious code from their own script endpoints. Hudson Rock identified 21 named properties in total, but the researchers stressed that this list represents a documented subset rather than a full victim count. The documented properties include the following websites, sorted according to the third-party provider that delivered each poisoned script to visitors:

  • Optimizely: BBC, Zoom, GitLab's marketing site, HSBC UAE, Hootsuite, Talkwalker, Virgin Media O2, Stamps.com, Tricentis, Salesforce, CNN, Mutual of Omaha, and Fox News.
  • Kissmetrics: Security Bank, BuzzStream, and Chicago IT Support.
  • StorifyMe: Frankfurter Allgemeine Zeitung, The Sydney Morning Herald, the University of Basel, and vidaXL UK.
  • minute-ly: Fox Sports.

How the Malicious Payload Works

The main financial theft script, named track.js, scanned web pages every 50 milliseconds and replaced cryptocurrency wallet addresses with addresses controlled by the attackers. It targeted wallets for Bitcoin, Solana, TRON, TON, Litecoin, Dogecoin, and other chains, altering addresses in page text, form fields, and clipboard operations. The same script intercepted card numbers, expiration dates, and CVV codes from web forms and then sent the stolen details to a server under the attacker's control. Under certain conditions, the script also collected page URLs, readable cookies, and screenshots generated using the html2canvas library.

The BBC and HSBC UAE versions carried an embedded backup payload that runs automatically if the remote script fails to load within 2.5 seconds. Black Duck's Collin Hogue-Spears urged companies to determine which pages loaded the snippet, how long it ran, and which card payments occurred during that window. He added that hosted payment iframes remain beyond the skimmer's reach, but companies should treat any card form the skimmer could read as exposed.

The most alarming component was an iOS router that checked each visitor's operating system version and sent Apple devices toward matching exploit infrastructure. According to analysis by researcher Kirk of Ohey, the router directed iOS 13 through 17 devices to pages associated with the Coruna exploit kit. Devices running iOS 18 through 25 received pages labeled with the DarkSword name, while the iOS 26 branch remained untested and possibly disabled. Hudson Rock stressed that its scans showed what the router served, not whether any exploit successfully compromised a real Apple device.

DarkSword is a full-chain, JavaScript-based exploit kit that can infect an iPhone simply by visiting a compromised website, with no clicks required. Coruna spreads through similar web-based attacks that abuse WebKit and kernel vulnerabilities, and criminals have used it to drain cryptocurrency from over 42,000 devices. Both kits offer the same level of phone takeover as Pegasus, exposing messages, photos, and emails, and activating microphones and cameras.

A recent iVerify report found that criminal actors using Coruna or DarkSword accounted for roughly 75 percent of all spyware detections. Mercenary spyware such as Pegasus accounted for the remaining 25 percent, marking a major shift from the elite targeting seen in earlier years. Notably, owners of devices infected with DarkSword and Coruna did not receive threat notifications from Apple, leaving many victims unaware of the compromise.

iVerify co-founder Rocky Cole described the trend bluntly, stating, "This is the year that iOS spyware went mainstream and became everyone's problem." Cole argued that cybercriminals, not governments, now pose the top threat to iPhones, and he urged businesses to stop focusing solely on executives. Nic Adams, chief executive of 0rcus, said that mercenary spyware "was built as a scalpel," but criminals now use it as a net.

The Optimizely incident comes shortly after the French security firm Sekoia attributed a similar watering-hole campaign to APT29, also known as Cozy Bear. Between late August and early September, the attackers planted malicious code in a tracking script that the Ukrainian analytics service Plerdy distributed. This compromise potentially exposed visitors of hundreds of websites, including sites connected to the Ukrainian military, special forces, and drone manufacturers.

The hackers also built fake copies of the America250 website and the Raffles London hotel, which sits near several British government buildings. These spoofed pages displayed the genuine site's content while quietly running code that identified vulnerable visitors, potentially including diplomats and other high-profile guests. Sekoia found that the attacks deployed different techniques depending on the device and software version that each visitor's browser revealed to the malicious script:

  • Older iPhones running iOS 16: The attackers attempted to steal browser and app cookies, which could grant access to online accounts.
  • Vulnerable iPhones running iOS 18.5: The DarkSword toolkit could extract messages, emails, passwords, contacts, photos, location history, and WhatsApp and Telegram data.
  • Android devices: The hackers exploited flaws in older versions of Google Chrome to steal browsing data, cookies, and saved Wi-Fi passwords.

All three methods relied on vulnerabilities that Apple and Google had already patched, so the attacks would fail against fully updated smartphones. Sekoia could not determine how many devices the hackers compromised, and the firm is now working with national emergency response teams to identify victims. The overlap between state-sponsored espionage and financially motivated crime shows how quickly leaked exploit kits can spread across very different threat groups.

Share:

facebook
X (Twitter)
linkedin
copy link
Karolis Liucveikis

Karolis Liucveikis

Experienced software engineer, passionate about behavioral analysis of malicious apps

Author and general operator of PCrisk's News and Removal Guides section. Co-researcher working alongside Tomas to discover the latest threats and global trends in the cyber security world. Karolis has experience of over 8 years working in this branch. He attended Kaunas University of Technology and graduated with a degree in Software Development in 2017. Extremely passionate about technical aspects and behavior of various malicious applications.

▼ Show Discussion

PCrisk security portal is brought by a company RCS LT.

Joined forces of security researchers help educate computer users about the latest online security threats. More information about the company RCS LT.

Our malware removal guides are free. However, if you want to support us you can send us a donation.

Donate