Supply Chain Security

24 of 159 Content Security Policies Stopped the Optimizely Skimmer

Dark cyberpunk illustration of one amber data conduit branching into dozens of filaments that feed a grid of glass towers at night, where several filaments have turned red and translucent cyan barrier planes stop them in front of only a few of the towers.

Report URI swept 1,611 Optimizely snippets on the evening of November 16 and found 186 of them serving a card skimmer. The final tally was 188 compromised snippets across 178 organizations, the BBC, CNN, Zoom, Salesforce, GitLab and HSBC among them. A different number from that sweep is the one that should change what you do this week: of 159 affected hosts classified by policy outcome, 24 blocked the payload.

Those 24 had three specific things in their Content Security Policy. The other 135 were missing at least one. Nobody patched anything to earn that outcome, and nobody detected the attack in progress. The policy they had shipped months earlier either fit the attack or it did not, and the difference showed up as live card numbers in an attacker's database.

The injection landed in the field you control

The loader snippet was untouched. Report URI's analysis found the malicious code written into each customer's Project JavaScript, the per-project field that Optimizely Web Experimentation runs on every page before any experiment fires. The file kept its usual name, kept its usual integrity story, and kept being served from cdn.optimizely.com. Customers who proxy the snippet from their own hostname, such as opt.scheels.com, shipped the same compromised content from their own domain. Optimizely's own www.optimizely.com and login.optimizely.com snippets carried it too.

Three loader variants appeared. Most projects got a plain <script> tag pointing at https://1688360.cc/track.js. Some got the same host base64-encoded behind atob(), which defeats a plain-text grep for the domain. A third variant carried a complete inline copy of the payload and ran it through eval() if the external host was unreachable. At HSBC, that fallback executed even though the request to track.js was blocked.

The payload itself was rebuilt 26 times during the day, gaining capability and never losing any. It started as a cryptocurrency address swapper at 08:10 UTC, rewriting checksummed BTC, ETH, TRON, Solana, TON, LTC, BCH and DOGE addresses in page text, form fields, links, the clipboard, outbound fetch and XHR bodies, and the iOS share sheet. At 13:43 UTC a card skimmer went in: Luhn-valid card number, expiry and CVV read out of the site's own form fields and posted to 1688360.cc/card.php. Cross-origin hosted payment iframes, Stripe and Adyen among them, stayed out of reach. Near any wallet or payment content the payload also sent the page URL, every non-HttpOnly cookie, and an html2canvas screenshot to 1688360.cc/hit.php. Between 17:13 and 17:57 UTC it began loading the Coruna and DarkSword iOS exploit chains in a hidden iframe, versioned by the visitor's iOS build.

Optimizely published its notice at 01:02 UTC on November 17 and attributed the entry point to a flaw in the Web Experimentation account signup flow, which it says it has fixed along with removing the injected code. It has not published the code path. Beazley Security's advisory places Optimizely in a wider campaign that had already poisoned Kissmetrics, StorifyMe and minute-ly scripts between November 13 and 15. Sophos X-Ops detects the injected code as Troj/JSInj-H. No CVE was assigned, and nothing from this campaign is in the CISA Known Exploited Vulnerabilities catalog.

Who this reaches, and who can stop reading

The direct exposure window is narrow and it has closed. If you run Optimizely Web Experimentation, pull your project file and your change history, because roughly nineteen hours of your traffic on November 16 may have loaded the skimmer. If you take card numbers in form fields your own pages host rather than in a Stripe or Adyen iframe, treat that day as a card-data exposure and call your processor. If you do not use Optimizely, Kissmetrics, StorifyMe or minute-ly, that specific cleanup is not yours.

The durable exposure is wider, and it is the reason to keep reading. Every third-party tag on your site has the same write access to your pages that Optimizely had. Your analytics vendor, your chat widget, your tag manager, your consent banner, your session-replay tool: each one executes in your origin, reads your forms, and can be changed by someone who is not you, without a release on your side. A list of 178 brands with security teams is a demonstration that no amount of internal rigor covers that gap. What covers it is the policy you serve in a response header.

What separated the 24

Report URI classified 159 affected hosts by outcome. The split is the most useful data anyone published about this incident:

  • 68 hosts had no Content Security Policy at all. Everything ran.
  • 50 had a policy that allowed both the payload and the theft. A policy existed and changed nothing.
  • 17 ran the payload but lost no data, because connect-src blocked the posts to card.php and hit.php. Address swapping still worked, since that happens entirely in the page.
  • 24 blocked the payload outright.

Of the 91 hosts that had a policy, 24 stopped the attack. Three properties decided it.

An explicit script-src host list

The payload needed to fetch track.js from a domain registered at 05:23 UTC that morning. A script-src naming the hosts you actually load refuses that request, because no allowlist written before 05:23 UTC contains a domain that did not exist. This is the single directive that did the work.

No strict-dynamic

'strict-dynamic' says that any script you already trust may insert further scripts, and those inherit the trust. The Optimizely snippet was trusted. The Optimizely snippet is what inserted the loader. Sites running 'strict-dynamic' handed the attacker the same authority they had given their vendor, which was the whole authority of the page.

No unsafe-eval

This is why the HSBC case matters more than its size suggests. The external fetch was blocked and the inline fallback still ran, through eval(), because the policy permitted it. A script-src that stops the network request and an unsafe-eval that permits the local copy cancel each other out.

Audit your own policy before you audit the vendor

Your policy either has those three properties or it does not, and finding out takes one request per page template. Run it against the templates that matter, which are checkout, login, and any page with a form, rather than the homepage:

# What does this page template actually send?
for URL in https://www.example.com/ \
           https://www.example.com/login \
           https://www.example.com/checkout; do
  echo "== $URL"
  POLICY=$(curl -sSI "$URL" | tr -d '\r' \
           | grep -i '^content-security-policy:' | cut -d' ' -f2-)

  [ -z "$POLICY" ] && { echo "  NO POLICY - everything runs"; continue; }

  case "$POLICY" in
    *strict-dynamic*) echo "  strict-dynamic: a trusted tag can inject any script" ;;
  esac
  case "$POLICY" in
    *unsafe-eval*)    echo "  unsafe-eval: an inline fallback still executes" ;;
  esac
  case "$POLICY" in
    *connect-src*)    echo "  connect-src present" ;;
    *)                echo "  no connect-src: exfiltration is unrestricted" ;;
  esac

  # Every host your pages are currently willing to execute code from.
  echo "$POLICY" | tr ';' '\n' | grep -i 'script-src' | tr ' ' '\n' | sed '/^$/d'
done

Count the hosts in that last list. On most sites I review it runs past a dozen, and nobody present can name what two or three of them do. Each one is a company that can change what your checkout page executes tomorrow morning.

The two directives are a package. script-src decides whether the code runs; connect-src decides whether what it steals can leave. The 17 hosts that lost nothing had only the second, which is worth having on its own.

Roll it out in Content-Security-Policy-Report-Only with a reporting endpoint first. Report URI found this campaign because customers were sending it violation reports; the same configuration on your site is both the safe way to learn what you load and the fastest detection you will get for the next one.

What to search, and how far back

If you ran Optimizely Web Experimentation, go get the file as your visitors received it and read it yourself. The indicators below come from Ostorlab's OPTIMJACK writeup and Report URI.

# 1. Pull your project file from the CDN, exactly as a browser gets it.
PROJECT_ID=1234567
curl -sS "https://cdn.optimizely.com/js/${PROJECT_ID}.js" -o project.js

# 2. Plain-text indicators.
grep -nE '1688360|webshell\.lol|linkforge\.cc|ios-hack\.icu|\.icu' project.js
grep -nE 'window\._k7|window\.__k7b|BIGNIAO|data-channel-code' project.js

# 3. The encoded loader variant: decode what atob() is being handed.
grep -o "atob(['\"][^'\"]*['\"])" project.js \
  | sed -E "s/atob\(['\"]//; s/['\"]\)//" \
  | while read -r b; do echo "$b" | base64 -d 2>/dev/null; echo; done

# 4. Web, proxy, DNS and CSP-report logs from 04:00 UTC on 2026-11-16.
grep -hE '1688360\.cc|5vobauua3ojpklx\.icu|eil786npto9u5bq\.icu|l7bcsnwc7nzr3uo\.icu' \
     /var/log/nginx/access.log* /var/log/squid/access.log* 2>/dev/null

Check inherited and archived projects, not only the active one, and check every experiment's custom code rather than Project JavaScript alone. Then look at who could have written to it: Optimizely user accounts, API tokens, and any integration with write access. Rotate those credentials and require MFA on the accounts that remain.

Session hygiene closes the rest. The payload read every cookie not marked HttpOnly and screenshotted pages, so invalidate sessions that were active on November 16 and treat any non-HttpOnly secret as disclosed. Visitors on iOS 18.6 or earlier were served exploit chains; Report URI confirmed no device takeover, and the kit's own source marks iOS 18.7.3 and 26.3 as patched. Telling staff to check their build number is a one-line message worth sending.

Take the experimentation tag off your checkout page

A/B testing belongs on marketing pages. It does not need to run where cards and passwords are typed, and keeping it there is a choice you can reverse this afternoon without waiting for a vendor. Split your tag inventory by page template, move everything that is not strictly required off the pages that handle money and credentials, and put a script-src and connect-src in front of what is left. That sequence would have placed you in the 24 rather than the 135.

If you want the inventory done properly, this is the kind of review we run: every third-party origin your pages execute, mapped to the template it loads on and the data it can reach, with a policy written and shipped in report-only mode first. It takes an afternoon on a typical site and it holds for every vendor compromise after this one.

Want your third-party script surface mapped?

We inventory every third-party origin your pages execute, map each one to the templates and data it can reach, and ship a Content Security Policy in report-only mode before it enforces. Book a session to scope it for your site.