Code snippet showing malicious JavaScript injected into cdn.optimizely.com with a valid TLS certificate

Hundreds of websites deliver potent malware cocktail to unsuspecting visitors

Hundreds of high‑traffic sites unknowingly served a coordinated malware payload through the Optimizely personalization platform, exposing visitors to crypto‑theft, payment‑card skimming, and iOS exploits; the breach demonstrates how a trusted third‑party script can become a conduit for large‑scale compromise, a risk any web‑user or operator must reckon with.

Supply‑chain breach of Optimizely’s JavaScript

Optimizely delivers JavaScript “snippets” that combine its own code with customer‑provided scripts, executing on every page a client serves. Attackers injected malicious modules into the portion of each affected snippet and hosted the altered code on cdn.optimizely.com, a domain protected by a valid TLS certificate, allowing the payload to bypass typical integrity checks.

The compromised script was digitally signed by Optimizely, meaning browsers treated it as authentic code from a reputable source. This signing gave the malware a veneer of legitimacy, reducing the likelihood of immediate detection by standard content‑security policies.

Multi‑payload architecture and targeted data theft

The injected JavaScript acted as a loader, deploying several independent payloads: a crypto‑wallet hijacker that swapped victim addresses, a payment‑card skimmer, a cookie and screenshot thief, and iOS exploit kits known as Coruna and DarkSword. Each component operated silently, harvesting value‑rich data before the user noticed any abnormal behavior.

By bundling diverse payloads, the attackers maximized return on a single compromise, exploiting both desktop browsers and mobile Safari on iPhones and iPads. The modular design also allowed future updates without re‑infecting the supply chain, a hallmark of sophisticated threat actors.

Scale of exposure across prominent domains

ReportURI identified 178 compromised websites, including major media and SaaS platforms such as CNN, Zoom, the BBC, and Salesforce. The breadth of the list underscores how a single third‑party integration can affect a wide cross‑section of internet traffic.

Visitors to any of these sites during the infection window were exposed to the full malware cocktail, regardless of the site’s own security posture. The incident therefore illustrates that even organizations with strong internal defenses remain vulnerable when they rely on external code delivery networks.

What This Actually Means For You

  1. Any site that incorporates third‑party scripts should assume those scripts could be altered without notice.
  2. Browsers’ trust in signed JavaScript does not guarantee safety; verification of the script’s source code remains essential.
  3. Users who transact on compromised sites risk loss of cryptocurrency assets, payment‑card details, and personal session data.
  4. Mobile users of iOS devices should be aware that drive‑by attacks can deliver exploit kits capable of bypassing Apple’s sandbox.
  5. Enterprises must monitor third‑party script integrity continuously, not just at deployment.

Immediate Action Steps

Web operators should audit all third‑party JavaScript providers, implement Subresource Integrity (SRI) hashes where possible, and enforce a strict Content‑Security‑Policy that restricts script execution to known origins. For users, enable two‑factor authentication on crypto wallets and monitor financial statements for unauthorized activity after visiting high‑traffic sites.

Security teams ought to deploy network‑level detection that flags anomalous outbound requests to known malicious domains such as cdn.optimizely.com during the infection period, and to review logs for unexpected JavaScript payloads.

Frequently Asked Questions

How did Optimizely’s JavaScript become infected?

Attackers wrote malicious code into the portion of each affected customer’s JavaScript snippet and served it from cdn.optimizely.com, a domain that held a valid certificate, making the altered script appear legitimate.

Which websites were compromised by the Optimizely malware?

ReportURI’s analysis listed 178 sites, notably high‑profile domains such as CNN, Zoom, the BBC, and Salesforce, indicating a wide‑reaching impact across news, communication, and enterprise services.

What types of data were stolen by the Optimizely‑delivered malware?

The payloads targeted cryptocurrency wallet addresses, payment‑card information, browser cookies, and screenshots, and also delivered iOS exploit kits (Coruna and DarkSword) to infect iPhones and iPads.

What Do You Think?

Given that a trusted script provider can become a vector for multi‑stage attacks, should organizations rethink their reliance on third‑party code in favor of self‑hosted alternatives?

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.