Skip to content
Pablo Huertas
Go back

Transitive trust: When your vendor's vendor is your attack surface

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:

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:

OutcomeOrganizations
No CSP at all68
CSP present, payload ran and data left50
connect-src blocked the theft, but the payload ran17
Restrictive script-src blocked the payload24

Only 15% were protected outright. Three lessons:

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:

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:

3. Treat developer and AI tooling as an untrusted boundary

4. Assume the upstream is already compromised

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)

Fireworks AI → Cursor extension chain

wfx-loot GitHub CI secret-stealing campaign

Frameworks and guidance


Share this post:

Next Post
PHP2Shell: When the language itself is the vulnerability