On November 16 at 04:21 UTC, the BBC’s Optimizely snippet changed. By the afternoon the same malware ran on Zoom, CNN, HSBC, Equifax and IKEA. It swapped crypto wallet addresses and skimmed cards.
Optimizely found out at 13:34. A customer told them. In Optimizely’s own words: “This is how we found out.”
Report URI counted 188 infected snippets across 178 organisations. That was one of three breaches that week. All three had the same shape. Nobody broke into Zoom, or into your CI. The bad code arrived through a door they had already opened.
Three Front Doors
- Optimizely (Nov 16): An attacker abused a legacy free-trial sign-up flow and an old “impersonation” feature. Acting as real users, they edited customer JavaScript. Optimizely’s CDN served it from Optimizely’s own trusted domain. Optimizely says no credentials were stolen.
- Microsoft agent-framework (Nov 17): Two versions, 1.26.1 and 1.26.2, went up on PyPI under Microsoft’s name. Each added a
.pthfile, so the stealer ran every time Python started. You didn’t even have to import the package. It went after cloud tokens, CI tokens,.envfiles and GitHub Actions credentials. Microsoft says the repo was clean and the uploads were unauthorised. As of November 28, the repo is still offline. - 1Password (investigation began Nov 19): An attacker got into an employee’s corporate GitHub account. They pushed code to backend services that pulled customer names, emails and invite tokens. They copied private repos and reached CI/CD. 1Password says vaults were never touched.
The Same Shape
Nobody broke through a wall. Each attacker got a trusted name on their code, and everything downstream believed the name.
- The trusted host served it. The loader came from
cdn.optimizely.com, a host the sites already allowed. A CSP that allowed only that host didn’t help. - pip said yes. The package came from Microsoft’s PyPI project. JFrog saw Renovate opening upgrade PRs within six minutes of the bad release.
- A real account pushed it. The code came from a real employee’s GitHub account.
— Optimizely incident updateAllowing cdn.optimizely.com alone didn’t help, because the code came from our own host.
Allowlists, signatures and publisher names all answer one question: who sent this? None of them ask what it does. Attackers have stopped fighting the first question. They just make sure the answer is right.
This is the same lesson as the Vercel breach in April, one hop further out. Then it was an AI tool your engineer installed. Now it’s the vendors you already vetted.
Optimizely named its flaw. 1Password hasn’t said how the account was taken, and promises a root-cause report in the coming weeks. Microsoft hasn’t said how the uploads happened. Until they do, don’t assume a missing review rule or a leaked token. Nobody has said that.
Do the Basics
In The Haystack Tripled I said to let Renovate merge minor updates when tests pass. I still say that. Add a wait.
- Wait before you upgrade. Set Renovate’s
minimumReleaseAgeto a few days. The bad agent-framework versions lasted under an hour. A three-day wait would have skipped them. I built the same wait into Tether: global npm, pnpm, bun, uv and gem packages wait 7 days by default and pass an OSV malware check. That covers the tools on your machine, not your project lockfiles. Renovate still handles those. - Pin and lock. Lockfiles in every repo. Install with the frozen flag in CI.
- Enforce your CSP. A tight
script-srcblocked the outside script, and a tightconnect-srcstopped the card theft. Optimizely’s own login page ran report-only, so the code was served. CSP can’t stop code inside the vendor’s own script: the wallet swapping still worked. - Cut third-party scripts. A script tag from a vendor is their code running on your page. Keep them off login and payment pages.
- Two people before production. Protected branches, deploys only from main, no admin bypass. One stolen account shouldn’t be enough to ship.
- Use short-lived credentials. OIDC in CI instead of stored tokens. The stealer harvested whatever sat in env vars and files. A token that expires in an hour is worth less.
- If you installed 1.26.1 or 1.26.2: Microsoft says treat the machine or CI job as compromised. Rotate everything it could reach. Rebuild from a clean image.
The Bottom Line
Your defences check the name on the code. This week, attackers made sure the name was right.
The Optimizely malware ran for about nine hours before a customer noticed. The fixes above don’t need to know who to trust. They slow everything down a little, and that gives someone time to catch the bad release.



