> ## Content Index
> Fetch the complete content index at: https://barbarosozturk.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# The Optimizely Hack Shows Why Dynamic Websites Are Dangerous in the Age of AI
- URL: https://barbarosozturk.com/blog/the-optimizely-hack-shows-why-dynamic-websites-are-dangerous-in-the-age-of-ai/
- Published: 2026-11-18T18:03:43.000Z
- Updated: 2026-11-18T18:03:43.000Z
- Description: On November 16, attackers slipped a card skimmer and crypto stealer into Optimizely-hosted scripts on 178 company websites, including Zoom, GitLab and HSBC. Here's what it reveals about dynamic websites, marketing tags and AI agents, and what site owners should do now.
- Author: Barbaros
- Tags: Technology, Cyberwarfare, Artificial Intelligence

On November 16, visitors to some of the world's best-known websites were running malicious code without anyone noticing.

The code didn't come from the companies themselves.

It came from Optimizely, the experimentation platform those companies use to test and personalise their websites.

As a performance marketer, I think this is one of the most important security stories of the year, because the vulnerable part of the website was a marketing tool.

And AI is about to make this problem bigger.

![](https://storage.ghost.io/c/64/81/648165b7-979e-43dd-9c43-02101159f467/content/images/2026/11/image-200.png)

### What Happened

According to an analysis by [StepSecurity](https://www.stepsecurity.io/blog/optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer?ref=barbarosozturk.com), an attacker wrote malicious JavaScript into the custom code field of Optimizely Web customer projects.

Optimizely's own content delivery network then served that code to every visitor of the affected sites.

StepSecurity counted 178 affected organisations, including CNN, BBC, Zoom, Salesforce, GitLab, HSBC, KLM, IKEA, Equifax and Ledger.

Security researcher Scott Helme found the injected code in 188 of the 1,611 Optimizely snippets he checked.

The code did several things.

It swapped crypto wallet addresses that people copied for addresses controlled by the attacker, it captured card details from payment forms and it took screenshots and cookies.

On older iPhones and iPads, it loaded additional scripts that StepSecurity links to known exploit kits, although it didn't confirm that any device was compromised.

Optimizely says an unauthorised party exploited a flaw in its Experimentation product, and that it has fixed the flaw, removed the code, revoked tokens and notified affected customers.

It isn't the company's first incident this year.

In February, Optimizely confirmed a separate breach after a [voice phishing attack](https://www.upguard.com/news/optimizely-data-breach-2026-02-25?ref=barbarosozturk.com), which was believed to be the work of the ShinyHunters extortion group.

![](https://storage.ghost.io/c/64/81/648165b7-979e-43dd-9c43-02101159f467/content/images/2026/11/image-201.png)

### Why Dynamic Websites Are So Exposed

A modern website loads code from dozens of vendors every time someone visits: analytics, ad pixels, chat widgets, consent banners and testing tools like Optimizely.

Each one can change what visitors see, and each one can be changed without the website owner touching their own code.

That's why this attack was so hard to catch.

The malicious code lived in a vendor-hosted file, so the companies' own code reviews and repository scans never saw it.

The payload changed constantly, with StepSecurity reporting 26 different builds in a single day.

And tools like Subresource Integrity, which check that a script hasn't been altered, are impractical for snippets that are designed to change often.

This isn't a one-off.

In 2024, the [polyfill.io](https://cloudways.com/blog/polyfill-supply-chain-attack-affects-over-110000-websites?ref=barbarosozturk.com) script library was sold to a new owner and started redirecting visitors from a huge number of sites, with more than 380,000 hosts referencing the malicious endpoints.

Earlier this month, Report URI said it had identified [15,579 websites](https://braindetox.kr/en/posts/scott%5Fhelme%5F15579%5Finfected%5Fwebsites%5Fnotify.html?ref=barbarosozturk.com) currently infected with malicious JavaScript, receiving more than 135 million visits a month.

![](https://storage.ghost.io/c/64/81/648165b7-979e-43dd-9c43-02101159f467/content/images/2026/11/image-202.png)

### Why AI Makes It Worse

This is where I think the story connects to AI in three ways.

**More changes, less review.**

Optimizely now offers AI agents that let marketing teams [build experiment variations without writing code](https://www.optimizely.com/insights/blog/ai-in-experimentation/?ref=barbarosozturk.com).

It says teams using agents across the full process run 78.7% more experiments.

That's great for testing velocity.

But every new variation is new code running on a live website, and much of it never goes near a developer or a security review.

**Faster attackers.**

The Optimizely payload was rebuilt dozens of times in one day.

The sources don't say the attacker used AI, but this is exactly the kind of rapid iteration AI coding tools make cheap.

**AI agents are visitors too.**

More and more traffic to websites will come from AI agents shopping, booking and researching on people's behalf.

If a website can be quietly altered to steal card details from humans, it can also be altered to feed hidden instructions to an AI agent.

I've argued that brands will need to [earn the trust of AI agents](https://barbarosozturk.com/blog/in-the-age-of-ai-ad-giants-must-earn-trust-from-agents/), and a compromised website is the fastest way to lose it.

![](https://storage.ghost.io/c/64/81/648165b7-979e-43dd-9c43-02101159f467/content/images/2026/11/image-203.png)

### This Is A Marketing Problem

Marketing teams often own the scripts that get compromised in attacks like this.

We add pixels, tags, testing tools and chat widgets to grow conversion rates, often through a tag manager that the security team rarely reviews.

I've written about how [pixels and tags](https://barbarosozturk.com/blog/the-ai-moat-of-meta-and-google-pixel-and-tag/) became the backbone of digital advertising.

That same backbone is now one of the easiest ways into a company's customer relationships.

Regulators are already pushing in this direction.

PCI DSS 4.0, the card industry's security standard, now requires companies to [inventory and authorise every script](https://www.imperva.com/blog/how-to-comply-with-pci-dss-4-0-requirements-6-4-3-and-11-6-1/?ref=barbarosozturk.com) on their payment pages and to detect unauthorised changes.

![](https://storage.ghost.io/c/64/81/648165b7-979e-43dd-9c43-02101159f467/content/images/2026/11/image-204.png)

### What Site Owners Should Do Now

StepSecurity's recommendations are practical, and most of them apply to any third-party script.

- **Check your Optimizely projects** if you use the platform, including the custom JavaScript field, and ask Optimizely which of your projects were modified.
- **Review user accounts and API tokens** on every marketing platform and remove the ones you don't recognise.
- **Remove unnecessary third-party scripts from checkout pages**, and use your payment provider's hosted fields so card details never touch your own page.
- **Use a Content Security Policy and monitor its reports**, so you see when a page tries to send data somewhere unexpected.
- **Treat card details and copied wallet addresses** entered on affected sites during the attack window as compromised.

### Conclusion: The Website Is Only As Safe As Its Weakest Tag

The Optimizely attack reached the customers of Zoom, GitLab and HSBC without breaking into those companies' own systems.

It came through a tool their marketing teams trusted to change their websites on the fly.

As AI lets those changes happen faster and with less review, the attack surface keeps growing.

**My Take:** In the age of AI, every marketing tool that can change a live website should be treated as part of the security perimeter, because the fastest way to compromise a company's customers is now through the scripts its marketers add to grow them.

## Sources

Pages I opened for the facts in this post:

- [StepSecurity: OPTIMJACK, Optimizely-hosted scripts serve a crypto clipper and card skimmer](https://www.stepsecurity.io/blog/optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer?ref=barbarosozturk.com)
- [RootData: At least 186 websites infected, OPTIMJACK attacks ongoing](https://www.rootdata.com/news/832527?ref=barbarosozturk.com)
- [UpGuard: Optimizely data breach (February 2026)](https://www.upguard.com/news/optimizely-data-breach-2026-02-25?ref=barbarosozturk.com)
- [Cloudways: Polyfill supply chain attack](https://cloudways.com/blog/polyfill-supply-chain-attack-affects-over-110000-websites?ref=barbarosozturk.com)
- [Braindetox: Report URI's 15,579 infected websites](https://braindetox.kr/en/posts/scott%5Fhelme%5F15579%5Finfected%5Fwebsites%5Fnotify.html?ref=barbarosozturk.com)
- [Optimizely: AI in experimentation](https://www.optimizely.com/insights/blog/ai-in-experimentation/?ref=barbarosozturk.com)
- [Imperva: PCI DSS 4.0 requirements 6.4.3 and 11.6.1](https://www.imperva.com/blog/how-to-comply-with-pci-dss-4-0-requirements-6-4-3-and-11-6-1/?ref=barbarosozturk.com)