At 04:21 UTC on November 16, the Optimizely snippet that the BBC loads on its pages changed. Nobody at the BBC touched it. The file still came from cdn.optimizely.com, still carried Optimizely’s certificate, and still ran the experiments it was supposed to run. It also carried a loader that an attacker had written into the project’s custom JavaScript field.
By the end of the day, Report URI had found that loader in 188 Optimizely snippets belonging to 178 organizations, including CNN, Zoom, Salesforce, GitLab, HSBC, Equifax and Ledger. Depending on the hour and the device, visitors got a crypto wallet swapper, a card skimmer, or an iOS exploit kit. None of those organizations had their own servers breached.
The same day, the Cloud Security Alliance published its analysis of how an access key Cursor had issued to its inference provider, Fireworks AI, ended in tampered builds of the Claude Code extension in Cursor’s marketplace. And all week, a campaign researchers named wfx-loot was using 4,837 hijacked GitHub accounts to plant a CI secret stealer in thousands of repositories.
Three incidents, three layers: the browser, the developer’s editor, the build pipeline. Same lesson in all three. You can patch every server you own, enforce MFA and pass every audit, and still serve malware to your users or hand your cloud keys to someone else, because the code that ran was code you had already decided to trust.
Table of contents
Open Table of contents
What a supply chain attack looks like now
For years, “supply chain attack” meant a poisoned package: a typosquat on npm, a hijacked maintainer account on PyPI. That still happens, but it’s the narrow definition, and it leaves out most of what hit this month.
The definition I use is broader: any path by which code or credentials you didn’t write end up running with privileges you did grant. By that measure, your supply chain includes:
- Client-side third-party scripts. Tag managers, analytics, A/B testing, chat widgets. They run in your origin, with access to your DOM, your forms and every cookie not marked
HttpOnly. - SaaS platforms with a write path into production. Optimizely’s Project JavaScript field is a deployment channel. Whoever can edit it ships code to your users without touching your repo, your code review or your change process.
- CI/CD pipelines. Every workflow holds whatever secrets and cloud roles you gave it, and anyone with write access can change what it does.
- Developer tooling, AI tools included. IDE extensions, coding agents, MCP servers, and the vendors those tools send your data to. An extension runs as the developer, with their SSH keys, cloud sessions and Git credentials.
What ties these together is transitive trust. You trust Optimizely, so you trust whoever can write to Optimizely’s platform. You trust Cursor, so you trust its marketplace cache, the credentials that write to it, and the subprocessors it shares data with. Each link looks reasonable on its own. Nobody signs off on the whole chain, because nobody sees it.
The Fireworks–Cursor incident is the cleanest example I’ve seen of that chain being walked. Based on Cursor’s account and the CSA’s analysis:
The attacker used the key to copy a bucket of coding-agent traces that Cursor had shared with Fireworks for training. Some traces held credentials that hadn’t been scrubbed. One led into Cursor’s SaaS tools, and from there to a credential that could write to the cache behind its extension marketplace. For roughly 11 hours on October 29, that cache served modified builds that added an attacker SSH key labeled svc-telemetry to authorized_keys, tried to open a reverse tunnel, and set up persistence. Cursor estimates at most 5,000 users pulled them.
Anthropic’s own releases weren’t altered, and the same versions on Open VSX were clean. The compromise lived entirely in the links between companies, and no step was exotic. An over-scoped vendor key, a dataset that wasn’t fully scrubbed, a SaaS credential that reached too far. I’ve written up each of those as a medium-severity finding at some point. Chained together, they reached developer laptops.
Why this week should change your threat model
The window is measured in hours
Look at the Optimizely timeline as The Hacker News reconstructed it. First injection at 04:21 UTC. Card skimmer added at 13:43. An iframe delivering the Coruna exploit kit to iOS 18.6 and earlier between 17:13 and 17:57. Mass cleanup at 20:40.
Less than 18 hours, and the attacker spent them iterating: adding payloads, adjusting targeting, watching what worked. They ran their own experiments on a platform built for running experiments.
wfx-loot was faster at covering its tracks. Where the stealer ran, the attacker usually reverted the commit within minutes and deleted the workflow run and its logs. If your detection depends on someone reading the Actions history, the evidence is gone before the next standup.
Developer velocity is the attack surface
Every automation we built to remove friction is a path in. Workflows that run on every push. Extensions that update themselves. Agents that keep session history.
The scale is what changed. In March, the prt-scan campaign was one actor cycling through six accounts and around 500 malicious pull requests. This month, wfx-loot opened probe pull requests in 61,764 repositories, 10,431 of them through collaborator or organization access. Each probe only tested whether the account could write. If it could, a malicious commit followed: a workflow change of about 1,500 lines, or a hidden script wired into an npm postinstall hook.
The accounts were recycled, too. The Hacker News reported that accounts hit in October’s GhostAction wave were about 1,000 times more likely to be used this time. Last month’s leaked credential is this month’s initial access.
On the AI side, agent traces are a new kind of data exhaust. They hold whatever developers paste into a session, and developers paste secrets. Share those traces with a subprocessor and there’s a copy of your credentials in a third company’s bucket.
Questionnaires measure the wrong moment
Vendor risk programs ask about SOC 2, encryption at rest and annual pentests. I’d bet every vendor in this post could answer yes to all three.
Meanwhile, per the CSA’s timeline, Fireworks identified unauthorized use of internal credentials on October 6 and a second intrusion on October 23–24. The tampered extension went live on October 29. A questionnaire filled out last spring says nothing about that sequence.
The questions that matter in that window are different. Which credentials have we issued to this vendor? What can they reach? What data have we sent them? How fast can we cut them off? Most organizations I’ve worked with can’t answer those within a day. And the attacker doesn’t stick to one vendor: the same Optimizely injector had been showing up through other third-party scripts since late the previous week.
Defense: verify what runs, limit what it can reach
You can’t make your vendors uncompromisable. What you control is what code may execute in your context, and what that code can reach once it does.
1. Govern third-party scripts like code deployments
The most useful data from the Optimizely incident is how Content Security Policy performed. Report URI graded the CSP of 159 affected organizations:
| Outcome | Organizations |
|---|---|
| No CSP at all | 68 |
| CSP present, payload ran and data left | 50 |
connect-src blocked the theft, but the payload ran | 17 |
Restrictive script-src blocked the payload | 24 |
Only 15% were protected outright. Three lessons:
- Allowlisting the vendor’s CDN did nothing. The malicious code came from
cdn.optimizely.com. A host allowlist controls where code comes from, and this attack lived inside an allowed host. 'strict-dynamic'and'unsafe-eval'undid strong policies.'strict-dynamic'lets anything a trusted script loads inherit that trust: transitive trust written into a header.'unsafe-eval'let the payload’s inline fallback run at HSBC even where the main file was blocked.connect-srcis your browser’s egress filter. It didn’t stop the payload, but it stopped the theft for 17 organizations.
A checkout or login page should look closer to this than to a list of every vendor’s domain:
Content-Security-Policy:
default-src 'self';
script-src 'self' 'sha256-<approved-inline-hash>';
frame-src https://payments.example;
connect-src 'self' https://api.payments.example;
object-src 'none';
base-uri 'none';
report-to csp-endpoint
About Subresource Integrity: it works for versioned, static files. It does nothing for a snippet that changes every time someone edits an experiment. If a vendor’s file can’t be pinned by hash, treat it as unpinned code and decide which pages it may run on.
The rest of the list:
- Keep third-party tags off checkout and login pages. The skimmer read card fields in sites’ own forms, but not inside the payment provider’s cross-origin iframe.
- Mark session cookies
HttpOnly. The payload stole cookies, but couldn’t read those. - Monitor at runtime. CSP violation reports and a script inventory tell you when something new appears. PCI DSS 4.0 requires this for payment pages (6.4.3 and 11.6.1); do the same for login pages.
- Treat SaaS write access as deploy access. The people and API tokens that can edit Optimizely projects or tag manager containers deserve the same MFA, least privilege and audit logging as your CI system.
2. Make CI/CD credentials short-lived, and narrow
“Use OIDC instead of static secrets” is good advice, and wfx-loot shows where it stops. The stealer exchanged GitHub OIDC tokens for AWS, GCP and Azure sessions. On AWS it created long-lived IAM access keys and could rewrite a role’s trust policy. On Azure it added federated credentials prefixed wfx-ci- that survive token rotation.
OIDC shortens how long a token lives. The role’s permissions stay the same. A CI role that can call iam:CreateAccessKey turns a one-hour token into permanent access.
What I’d check this week:
- Trust policies pinned to a protected environment with required reviewers, never to “any workflow in this repo” or a wildcard across the org.
- No identity permissions on deploy roles. Anything that can create keys or trust relationships lives in a role CI can’t assume.
- Secrets scoped to environments. A workflow on a throwaway branch shouldn’t see production secrets.
- Review gates on the files that define execution. CODEOWNERS and rulesets on
.github/workflows/and package manifests. Usenpm ci --ignore-scriptswhere the build allows; 771 repositories got the stealer as apostinstallhook. - Look past fork PR approvals. wfx-loot used accounts that already had write access. What matters is what a push to any branch can run, with which secrets.
- SBOMs and SLSA provenance for what you publish. Provenance won’t stop a stealer inside a runner, but it lets downstream consumers check where an artifact came from. wfx-loot reached published Packagist and Go packages.
3. Treat developer and AI tooling as an untrusted boundary
- Allowlist extensions by publisher and hash, pin versions, and install through an internal mirror. Know which marketplace each editor pulls from: the same version was clean on Open VSX and tampered in Cursor’s cache.
- Detect what the tampered extension did: new
authorized_keysentries, SSH enabled on a laptop, reverse tunnels, and LaunchAgents or scheduled tasks created by an editor process. - Ask your AI vendors direct questions. Are traces retained? Shared with subprocessors? Is there an org-level training opt-out, and are secrets removed first? Cursor found no evidence of impact for users with Privacy Mode enabled.
- Inventory the credentials you’ve issued to vendors. Scope each to the minimum and record who owns revocation. The key that started this chain was Cursor’s, sitting in someone else’s environment.
- Monitor nth parties continuously. Track subprocessor lists and put subprocessor incident notification into contracts.
4. Assume the upstream is already compromised
- Filter egress on CI runners. wfx-loot exfiltrated over HTTP to IP addresses on port 8080 or to a Telegram chat. A runner that can only reach your registry, cloud APIs and artifact store breaks that step.
- Rotate at the issuer, then hunt. Deleting a stored secret doesn’t invalidate it. And rotation doesn’t remove persistence: new IAM keys, rewritten trust policies and federated credentials all survive it. In AWS, look for
AssumeRoleWithWebIdentitysessions followed byCreateAccessKeyorUpdateAssumeRolePolicy. - Watch for gaps. Researchers found missing workflow run numbers were a more reliable sign the stealer ran than missing artifacts. A deleted record is still evidence.
- Write the “vendor X is compromised” runbook now. Credentials issued, owners, revocation steps, log queries. Run it as a drill and time it. If it takes longer than the Optimizely attacker needed to add a card skimmer, you know where to start.
Trust is a decision, so make it on purpose
None of the organizations on Report URI’s list did anything unusual. They used a mainstream vendor the way it was designed to be used. That’s the uncomfortable part: transitive trust is the default, and every integration, extension and workflow quietly extends it.
You’ll keep using vendors. The change is to stop granting trust you can’t verify. Pin what can be pinned, restrict what can’t, scope every credential to its job, and assume the next upstream breach is already in progress. The organizations that came through this week fine didn’t have better vendors. They had already decided what a vendor’s code was allowed to do on their pages and in their pipelines.
Want to know how exposed you are? I can help you find where third-party code runs with more access than it needs: CSP and security headers on your pages, whether your SIEM actually sees your CI runners, OAuth grants and new SSH keys on developer machines, and a tested runbook for the day a vendor tells you they’ve been breached. Details on how I work, and how to reach me, are on my services page.
Pablo Huertas is a security operations engineer and team lead with 19 years in enterprise security support. He writes about SIEM, incident response and hardening, and takes on a limited number of freelance projects. More about him.
References
Optimizely script compromise (November 16, 2026)
- Report URI: The world’s largest brands infected with malware via Optimizely
- Malwarebytes: CNN, BBC, Zoom, and other sites served malicious code in supply-chain attack
- The Hacker News: Hijacked Optimizely scripts served card skimmer and iOS exploit kits to CNN, BBC and Zoom visitors
- Krebs on Security: Attackers used Optimizely to A/B test malware on top websites
- SecurityWeek: Optimizely vulnerability exploited to serve malware on major websites
Fireworks AI → Cursor extension chain
- Cloud Security Alliance: From inference vendor to IDE backdoor: The Fireworks–Cursor chain
- SecurityWeek: Cursor supply chain attack started at Fireworks AI
- BleepingComputer: Cursor confirms security breach led to malicious Claude Code extension
wfx-loot GitHub CI secret-stealing campaign
- The Hacker News: 4,837 hijacked GitHub accounts ran CI secret stealer
- OX Security: Thousands of GitHub accounts hijacked with wfx-loot CI secret-stealing malware
- CSO Online: Thousands of GitHub repos hit with secret-stealing malware
- Cloud Security Alliance: prt-scan: GitHub Actions supply chain campaign
Frameworks and guidance