# Optimizely Supply Chain Attack Delivers Malware via A/B Testing

> Attackers exploited an Optimizely vulnerability to inject malicious JavaScript into 178 major websites, serving multi-purpose malware and zero-click exploits.

- Published: 2026-12-01T13:05:02.000Z
- Severity: high
- Category: Supply Chain
- Tags: Supply Chain Attack, Malware, Optimizely, Zero-Day, Credential Theft
- Author: Runtime Rebel Intel
- Primary source: https://krebsonsecurity.com/2026/11/attackers-used-optimizely-to-a-b-test-malware-on-top-websites/
- Canonical: https://runtimerebel.com/blog/optimizely-supply-chain-attack-delivers-malware-via-a-b-testing

## Key points

- Immediate impact: 178 major organizations unwittingly served data-stealing malware and zero-click exploit kits to visitors via a compromised third-party platform.
- Affected systems: Websites utilizing Optimizely Experimentation snippets and visitors loading compromised web properties.
- Remediation: Implement strict Content Security Policies to restrict unauthorized third-party script execution and domains.

## Overview of the Optimizely Supply Chain Incident

On November 16, 2026, malicious actors leveraged a security [vulnerability](/glossary#vulnerability) in Optimizely Experimentation to inject unauthorized JavaScript into at least 178 high-profile web destinations, according to [Krebs on Security](https://krebsonsecurity.com/2026/11/attackers-used-optimizely-to-a-b-test-malware-on-top-websites/). The campaign affected prominent organizations including the BBC, CNN, Equifax, Ledger, and Zoom. Rather than compromising the target organizations directly, the attackers executed a [supply chain attack](/glossary#supply-chain-attack) by subverting a trusted third-party vendor embedded within their pages.

Security researchers from Report URI observed that the malicious [payload](/glossary#payload) was dynamically rebuilt 26 times throughout the day. The injected JavaScript delivered a multi-purpose [malware](/glossary#malware) kit designed to siphon payment card data, browser cookies, and screenshots, alongside functionality to swap cryptocurrency addresses. Furthermore, the incident incorporated [exploit](/glossary#exploit) code targeting vulnerabilities in older Apple iPhone and iPad devices, utilizing zero-click kits capable of seizing complete device control.

## Technical Analysis of the A/B Testing Vector

Optimizely provides tools for website personalization and A/B testing. Because these products must evaluate user experiences instantly upon arrival, the vendor's JavaScript snippets are traditionally placed near the top of the Document Object Model (DOM) to render before consent dialog boxes appear. This architecture meant that visitors triggered the malicious payload immediately upon loading an affected page, bypassing any user interaction requirement.

According to analysis by Infoblox researchers, third-party JavaScript execution presents an inherent risk when organizations lack strict isolation boundaries. The incident demonstrated how attackers can rapidly iterate and A/B test their malicious infrastructure, modifying payloads in real-time while hiding behind trusted domains that users and browsers assume are safe.

## Mitigation and Defense Strategies

To prevent third-party vendor compromises from escalating into full-scale client-side breaches, security professionals must enforce rigorous controls over external script loading.

### Deploying Effective Content Security Policies

The primary defense against this vector is the strict implementation of Content Security Policies (CSPs). A properly configured [CSP](/glossary#content-security-policy-csp) explicitly defines which domains are permitted to load and execute scripts on a web property. Research following the incident revealed concerning gaps in adoption:

* **68 affected sites** possessed no Content Security Policy whatsoever.
* **50 affected sites** utilized a CSP that remained permissive enough to allow the malicious payload and subsequent [data exfiltration](/glossary#data-exfiltration).
* **Only 24 sites** maintained a CSP configured tightly enough to block the unauthorized script injection completely.

Organizations must audit their third-party dependencies, restrict script sources to known cryptographic hashes or trusted hosts, and continuously monitor client-side script behavior to detect unauthorized modifications before they reach end users.

**Related:** [Trojanized Cursor IDE Extensions Target Devs via PyPI & npm](/blog/trojanized-cursor-ide-extensions-target-devs-via-pypi-npm), [ThreatsDay: Ransomware Affiliate Betrayal and Malicious VS Code Themes](/blog/threatsday-ransomware-affiliate-betrayal-and-malicious-vs-code-themes)

---

AI-generated analysis from the primary source above; not human-reviewed before publication — verify anything operational against the original (https://runtimerebel.com/editorial). Quote with attribution and a link to the canonical URL: https://runtimerebel.com/blog/optimizely-supply-chain-attack-delivers-malware-via-a-b-testing
