Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/The optimizely compromise when trusted websites deliver malicious code
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

The Optimizely Compromise: When Trusted Websites Deliver Malicious Code

Source: Palo Alto Networks Blog•November 26, 2026 at 12:03 AM

The Optimizely Compromise: When Trusted Websites Deliver Malicious Code

On November 16, 2026, visitors to legitimate, trusted websites were exposed to code designed to steal sensitive information. The code was delivered through the CDN of Optimizely Web Experimentation, a widely used …

On November 16, 2026, visitors to legitimate, trusted websites were exposed to code designed to steal sensitive information. The code was delivered through the CDN of Optimizely Web Experimentation, a widely used website optimization service. According to Optimizely, attackers exploited a vulnerability in its service to inject code that targeted payment card information and cryptocurrency transactions on affected websites.

The incident highlights a critical security challenge. Even legitimate websites can expose visitors to malicious code when the third-party services they rely on are compromised. Visitors did not need to navigate to a suspicious website or click a malicious link.

This is precisely the kind of threat Prisma Browser's Advanced Web Protection is designed to address. By analyzing content and scripts delivered to the browser, rather than relying solely on source reputation, Prisma Browser can identify and block malicious activity even when it originates from trusted infrastructure.

And Optimizely is far from an isolated example. Palo Alto Networks Unit 42 researchers have uncovered similar attacks exploiting trusted websites and services, while Advanced Web Protection has already detected and blocked related threats in real-world environments.

What Happened in the Optimizely Attack?

Optimizely Web Experimentation enables organizations to optimize their websites by loading JavaScript from cdn.optimizely.com. Its scripts are routinely loaded and executed by websites using the service.

According to Optimizely's incident report, attackers exploited a vulnerability in its account signup process to impersonate users on targeted customer accounts and inject malicious JavaScript delivered to visitors of affected websites.

The injected script targeted two types of activity:

  • Payment card information: Card details entered directly into forms on affected pages.
  • Cryptocurrency transactions: Cryptocurrency transfer activity occurring on affected pages.

Optimizely reported detecting the activity the same day, closing the vulnerability within hours, and removing the injected code.

The incident demonstrates how third-party services can become a delivery mechanism for attacks, even when the websites using them have not been directly compromised.

The Security Blind Spot: When Trusted Sources Deliver Malicious Content

Traditional web security often uses URL categorization, domain reputation, and other indicators to determine whether a destination is trustworthy. These remain important layers of protection, but they are not sufficient on their own.

In the Optimizely attack, malicious JavaScript was delivered through a legitimate CDN to visitors of trusted websites. What had changed was the content being delivered.

This creates a challenge for security controls that rely heavily on reputation or lack visibility into scripts executing inside the browser. Even network security solutions that inspect web traffic may have limited visibility into dynamically assembled content or activity occurring after a page loads.

To address this risk, organizations need security that goes beyond determining whether a website is trusted. They need to evaluate the content and behavior delivered to the browser.

Optimizely Isn't an Isolated Incident: Unit 42 Has Uncovered Similar Threats

Unit 42 researchers have documented other attacks in which legitimate websites and services were used to deliver malicious content.

In May 2026, Unit 42 reported a campaign involving obfuscated WebSocket backdoors that injected credit card skimmers into hundreds of compromised websites. Like Optimizely, the attack targeted sensitive payment information from visitors to legitimate websites.

In another campaign, attackers compromised more than 350 websites running on a leading content management platform and used jsDelivr, a widely trusted open-source CDN, to stage malicious payloads. The campaign employed ClickFix techniques to manipulate users into executing malicious commands.

While these campaigns differ in technique and objective, they demonstrate the same security challenge. Legitimate websites and services can become vehicles for delivering malicious content.

Prisma Browser's Advanced Web Protection Changes the Equation

Prisma Browser addresses this challenge by extending threat protection into the browser, where web content is processed and executed.

Advanced Web Protection analyzes page content, scripts, and their components in real time, helping detect malicious activity regardless of whether it originates from an unfamiliar website, a compromised legitimate site, or a trusted third-party service.

This provides three important security advantages:

  • Protection based on content, not just reputation: Advanced Web Protection evaluates scripts and content rather than relying solely on domain reputation. A malicious script delivered through a trusted CDN can be evaluated for the same threats as one originating from an unknown domain, helping detect attacks delivered through legitimate websites.
  • Visibility into threats that emerge inside the browser: Some attacks involve scripts dynamically loaded, assembled, or executed after a page loads. By analyzing content within the browser, Advanced Web Protection can identify malicious components and behaviors that may not be apparent from network-level indicators alone.
  • Proven protection against related attacks in production environments: As detailed in our recent PHP2Shell blog, Advanced Web Protection has detected and blocked malicious activity on legitimate, compromised websites, including credit card skimmers, malicious script injections, and ClickFix attacks.

Protecting Users Beyond the Websites You Control

Organizations using Optimizely Web Experimentation should verify whether their websites were affected and assess potential exposure during the incident window.

But securing an organization's own websites is only part of the challenge. Employees access thousands of websites and applications their organizations do not control, any of which could become compromised.

The Optimizely compromise is a reminder that the next web threat may not come from a suspicious website. It may come from one your employees already trust.

← All articles

What this article says

More in Cybersecurity

All →
How modern identity attacks penetrate manufacturing environments (and how to stop them)
Okta

How modern identity attacks penetrate manufacturing environments (and how to stop them)

Goodbye static key: Okta Privileged Access now supports even more workload identities
Okta

Goodbye static key: Okta Privileged Access now supports even more workload identities

Rapid7 Named a Leader in the 2026 Gartner® Magic Quadrant™ for Integrated Security Operations Center Systems
Rapid7

Rapid7 Named a Leader in the 2026 Gartner® Magic Quadrant™ for Integrated Security Operations Center Systems

Finding Vulnerable Dependencies Got Easy. Fixing Them Without Breaking Your Build Didn’t.
Veracode

Finding Vulnerable Dependencies Got Easy. Fixing Them Without Breaking Your Build Didn’t.

NCC Group Monthly Threat Pulse – Review of October
NCC Group

NCC Group Monthly Threat Pulse – Review of October

How “don’t ask again” in Claude Code leaks secrets on GitHub: The click that keeps on giving
Sysdig

How “don’t ask again” in Claude Code leaks secrets on GitHub: The click that keeps on giving

More from Palo Alto Networks

Cortex Cloud Adds Agentless File Integrity Monitoring to Catch Malicious Drift and Tampering
Palo Alto Networks

Cortex Cloud Adds Agentless File Integrity Monitoring to Catch Malicious Drift and Tampering

Why AI Makes Identity Security Urgent
Palo Alto Networks

Why AI Makes Identity Security Urgent

Stocks making the biggest moves premarket: Palo Alto Networks, Take-Two Interactive, Everpure & moreПресса
Palo Alto Networks

Stocks making the biggest moves premarket: Palo Alto Networks, Take-Two Interactive, Everpure & more

Introducing the Palo Alto Networks Data Security MCP Server
Palo Alto Networks

Introducing the Palo Alto Networks Data Security MCP Server

Introducing the Cortex Cloud Sensor: Best-in-class Protection Purpose-Built for Cloud Workloads
Palo Alto Networks

Introducing the Cortex Cloud Sensor: Best-in-class Protection Purpose-Built for Cloud Workloads

Europe Is Setting the Global Standard for Sovereignty. Here Is Where We Stand.
Palo Alto Networks

Europe Is Setting the Global Standard for Sovereignty. Here Is Where We Stand.