Optimizely Scripts Compromise Plays on Trust, Leads to Global Website Hacks, Challenges Security to Recognize Code Changes
TL;DR — Key Takeaways
-
Trust weaponized: Compromised Optimizely scripts exposed 178 organizations to browser-based malware without directly breaching their infrastructure.
-
Silent exploitation: Malicious JavaScript enabled payment card skimming, cryptocurrency theft, cookie theft and attacks targeting vulnerable Apple devices.
-
Security blind spot: Organizations must move beyond domain-based trust and continuously monitor third-party scripts for unauthorized changes and malicious behavior.
If it seems like everything is broken, that’s probably because it is. But at least one mystery has been solved and reportedly fixed. Last month on the heels of banking disruptions, government hacks, and service outages, hundreds of global websites, including Zoom, the BBC, Air France and HSBC, were hacked through a systemic persistent flaw found in almost all customer-facing websites—code is executed in visitors’ browsers.
“AI tools have accelerated hackers’ ability to rapidly discover flaws in website design and exploit them at scale,” said Ross Hogan, CEO of Source Defense, whose researchers confirmed seven variants of the malicious code on sites after Scott Helme published research linking website tool Optimizely to the campaign.
The code was delivered through compromised Optimizely scripts, illustrating how an attack on a shared provider can expose brands and their visitors without a direct breach of the brands’ infrastructure.
“We found malicious JavaScript being served through Optimizely to some of the world’s largest websites. 178 organisations affected, with everything from crypto theft and card skimming to iOS exploits,” Helme wrote on X.
“The malware was a multi-purpose kit. It swapped cryptocurrency wallet addresses for the attacker’s, skimmed payment cards, stole cookies and screenshots, and on iPhones and iPads it delivered the Coruna and DarkSword iOS exploit kits,” he wrote in a blog post that noted Crypto had been stolen.
“Optimizely’s A/B testing snippet exists so a team can change a live website without a code release,” Collin Hogue-Spears, senior director of solution management at Black Duck, explains.
“On November 16, an attacker’s loader went into Project JavaScript, the field where a customer adds custom code to the Optimizely snippet,” he says, adding that “a change to Project JavaScript needs no pull request and no build on the customer’s side.”
In a late October analysis, Zimperium’s threat intelligence had already warned that poisoned Optimizely scripts were actively routing mobile visitors to iOS exploit kits (specifically the Coruna and DarkSword kits), aiming at vulnerable iPhones and iPads. Optimizely reported it had fixed the flaw relatively quickly and removed injected code as well as added protections.
“When will organizations wake up to the current cyber threat landscape? We’re still waiting,” says Darren Guccione, CEO at Keeper Security.
“The recent spate of high-impact, damaging cyberattacks fueled AI innovation is only accelerating, and now is the time for every organization to prioritize cybersecurity as a business imperative,” says Guccione, stressing that “from third-party supply chain dependencies to internal identity security controls, time is of the essence.”
In the Optimizely campaign, the important lesson “is that trusted JavaScript doesn’t always remain trustworthy,” wrote Helme, explaining that a “website can be compromised through a third-party dependency without its own code or infrastructure ever being breached.”
And Source Defense points out a content security policy wouldn’t have saved the day since even a compromised Optimizely would have been approved since permission is based on trust of the Optimizely domain.
Since those exploit kits don’t require a click and they also don’t give a warning, Zimperium’s warning said, network and DNS filters can’t block sites a businesses relies use every day. The kits also wipe out any traces of compromise. For enterprises, that combination is the core concern since any employee reading the news, opening a Zoom page or logging into Salesforce on an iPhone connected to corporate email, apps and data could serve as a point of entry, with companies potentially unable to confirm in the aftermath if a device was exposed.
“This attack shows that visiting a trusted website on a vulnerable iPhone can expose anyone, employees and customers alike, to mobile threats without any warning or additional action,” says Kern Smith, vice president of global solutions at Zimperium.
“Visitors assume safety when they see a trusted brand in the address bar, but modern websites don’t operate in a silo, says Guccione, but in reality, they’re dependent on dozens of external vendors.”
The incident “exposes the sheer danger of implicit trust in the digital supply chain. Organizations are aware of the problem – in recent global research 24% of respondents named limited oversight of third-party and vendor access among their biggest security gaps,” he says.
Simply acknowledging the risk isn’t good enough. “Security leaders must extend strict zero-trust access policies to every third-party integration,” says Guccione, which “means securing the underlying secrets that connect these services, enforcing least-privilege access for vendors and continuously monitoring for anomalous behavior in real time.”
Smith says organizations must protect mobile devices and within apps so that these attacks can be detected and employee and customer data safeguarded.
“The challenge is that security leaders must catch changes to the custom code in their Optimizely snippet within minutes and flag any that were explicitly approved by a person,” says Hogue-Spears, advising that “if your developers need a code review to change the checkout page and your A/B testing tool does not, whoever compromises the tool skips the review too.”
Since the Optimizely skimmer does not run on a company’s servers but rather in the visitor’s browser, so “when the visitor submits a card form, the skimmer copies the details and sends them straight to the attacker’s server,” he says.
A finding of no compromise in a company’s own systems then “leaves the question of skimmed cards open,” Hogue-Spears says.
Security leaders, he says, “must go past the weekly minimum and check payment page scripts for tampering every few minutes, as a real browser receives them” because if a payment page check runs weekly, “an eight-hour skimmer fits between two runs with days to spare.
For consumers “worried they might be impacted, it’s important to note that simply opening a page does not mean data was taken,” says Guccione.
But he recommends that anyone who visited an affected site on November 16 run a few quick checks. “Look through credit card and bank statements for payments you do not recognize, and report anything unusual to your bank straight away,” he says.
“If you sent cryptocurrency that day, confirm it reached the wallet you intended. Update your iPhone, iPad and other devices, as some of the code targeted older Apple software,” he says, urging consumers to “treat unexpected login alerts or messages that mention the incident with suspicion and secure your credit card details and passwords in a dedicated, zero-knowledge password manager.”
Frequently Asked Questions
What happened in the Optimizely supply chain attack?
Compromised Optimizely scripts delivered malicious JavaScript through trusted websites, exposing visitors to data theft and mobile exploits.
Why are third-party JavaScript attacks so dangerous?
They execute directly in visitors’ browsers, potentially bypassing traditional security controls and leaving corporate infrastructure untouched.
How can organizations prevent similar attacks?
Enforce zero-trust policies, continuously monitor client-side scripts, strengthen vendor access controls and protect mobile endpoints.

