Back to articles

Poisoned extension updates: how to protect your browser extensions after the GitHub breach

The GitHub breach began with a poisoned VS Code extension update: 69 downloads, ~6,000 activations. What it means for your browser extensions and what to do.

Maxim Kosterin
11 min read
A single ink thread descends to one orange drop, then fans out into dozens of fine threads ending in small circles, an orange watercolor wash spreading along them.
A single ink thread descends to one orange drop, then fans out into dozens of fine threads ending in small circles, an orange watercolor wash spreading along them.

Sixty-nine. That's how many times a poisoned build of the Nx Console VS Code extension was installed or downloaded from its two marketplaces on May 18, 2026, before the maintainers pulled it: about 18 minutes on Microsoft's Visual Studio Marketplace, about 36 on Open VSX. That build is where the GitHub breach began.

It hardly mattered: two days later, Nx's analytics had counted roughly 6,000 activations of that version. One machine that ran it belonged to a GitHub employee. GitHub says the attackers took internal repositories, and calls their claim of about 3,800 "directionally consistent" with its findings. TeamPCP, the group that claimed the attack, offered the code for sale at no less than $50,000.

Six months on, the lesson is the useful part. Your browser extensions run on the same trust model: silent auto-updates, marketplace review, and a publisher credential that, if it leaks, turns every install into a delivery channel. Here is how the breach played out, and what to do in your own browser and editor.

What happened: from a poisoned npm package to the GitHub breach in one week

The breach didn't start in the marketplace. It started in npm.

On May 11, 2026, TeamPCP released a new wave of its self-spreading Mini Shai-Hulud worm. SecurityWeek counted more than 170 compromised npm and PyPI packages across TanStack, Mistral AI, UiPath and others.

CSO Online notes that counts of malicious versions ranged from 373 to 404, depending on the researcher. OX Security data cited by The Hacker News puts the affected packages at more than 518 million cumulative downloads. The TanStack compromise is tracked as CVE-2026-45321 (CVSS 9.6).

What made this wave stand out: the worm hijacked TanStack's own release pipeline, so the poisoned packages carried valid SLSA Build Level 3 provenance. StepSecurity called it the first documented npm worm to produce validly attested malicious packages. The malware also stole developer credentials and planted persistence hooks in VS Code and Claude Code.

One of the developers it hit worked on Nx. The Nx Console security advisory says the worm leaked that developer's GitHub credentials through the GitHub CLI. That let the attacker run workflows on Nx's repository as a contributor.

On May 18 at 12:30 UTC, a malicious Nx Console 18.95.0 went live. The extension had more than 2.2 million installs. It came off Microsoft's marketplace at 12:48 after 28 installs; Open VSX carried it until 13:09 and logged 41 downloads.

That same Monday, GitHub detected and contained a compromise of an employee device. In a post published May 20, CISO Alexis Wales wrote that the activity involved exfiltration of GitHub-internal repositories only. GitHub "rotated critical secrets Monday and into Tuesday with the highest-impact credentials prioritized first," and found no evidence of impact to customer information stored outside those repositories. It did note that some internal repos hold customer information, such as excerpts of support interactions.

GitHub then confirmed the extension was Nx Console, as reported by The Hacker News. TeamPCP had already advertised "~4,000 repos of private code" on a hacking forum, asking at least $50,000, according to BleepingComputer.

The follow-ups came within a week. On May 26, GitHub updated its post: it was rotating keys, including the GitHub Enterprise Server signing key, and GHES administrators had to rotate the GPG public keys on their instances. On May 27, The Hacker News reports, CISA added CVE-2026-45321 and the Nx Console flaw, CVE-2026-48027, to its Known Exploited Vulnerabilities catalog. As of November 2026, the May 26 update is still the latest on GitHub's post; the fuller report it promised hasn't appeared there.

Why 69 downloads became 6,000 activations

Here's the gap to remember: 69 installs and downloads, about 6,000 activations, and the two counters measure different things. The marketplaces count installs and downloads. Nx's telemetry counts each time the extension starts, and one machine can start it many times. In its postmortem, Nx says it is reconciling the figures with Microsoft, and that the marketplace numbers may not include updates.

Nx's advice didn't wait for that: anyone who had Nx Console with auto-update on during the exposure window should treat the machine as potentially compromised. The takedown removed the listing. It did nothing for the copies that had already updated themselves.

What the payload did

The StepSecurity analysis and Nx's advisory describe the same chain. The injected code ran as soon as a developer opened a workspace, disguised as a background task named install-mcp-extension. It fetched a 498 KB obfuscated payload from an orphan commit hidden in the official nrwl/nx repository. That payload ran six credential collectors:

  • GitHub: tokens with the ghp_, gho_ and ghs_ prefixes, plus GitHub Actions secrets
  • npm: .npmrc tokens and OIDC token exchange, the raw material for poisoning the next package
  • AWS: instance and container metadata (IMDS/ECS), Secrets Manager and SSM Parameter Store
  • HashiCorp Vault: token files, plus Kubernetes and AWS IAM auth
  • 1Password: vault contents through the op CLI, if a session was active
  • Filesystem: private keys, connection strings, GCP and Docker credentials, and Claude Code configuration

It also scanned process memory through /proc/*/mem, which pulls secrets out of applications that mask them on screen. Stolen data left over three channels: encrypted HTTPS POSTs, commits and artifacts pushed through the GitHub API with the stolen tokens, and DNS tunneling. On macOS it installed a Python backdoor with a LaunchAgent that polls the GitHub Search API every hour for signed commands. Traffic to api.github.com from a developer machine rarely looks unusual.

Two details deserve a closer look.

First, the payload went after ~/.claude/settings.json, the Claude Code settings file, which can hold API keys and MCP server configuration. It wasn't the first: StepSecurity's write-up of the TanStack wave lists ~/.claude.json and ~/.claude/mcp.json among the files that worm already took. AI tool configs now sit on the same target list as your SSH keys.

Second, the payload carried Sigstore tooling, including Fulcio certificate issuance and SLSA provenance generation. With stolen npm OIDC tokens, StepSecurity notes, the attacker could publish npm packages with valid, signed provenance. The TanStack wave had already shown the result: the provenance checks passed, and the packages were malware.

Aikido Security researcher Charlie Eriksen, speaking to Help Net Security when the window was first put at 11 minutes, named the timing problem: a catch that quick "sounds fast until you realise how many machines auto-update in that window."

Why this matters for your browser

"That's a VS Code story," you might say. Every mechanism that made it work has a browser equivalent.

Auto-update is the delivery channel. Chrome checks for extension updates automatically every few hours, as the runtime API reference notes. You didn't click "install" on the current version of most of your extensions. An update put it there while you weren't looking.

Review happens before the compromise, not during it. The Nx Console build raised no alarms because nothing about the listing changed: same extension, same publisher, a new version pushed with a stolen credential. I traced the browser version of this in the AI Sidebar case. An extension pulled from the Chrome Web Store came back with a clean release; about two weeks later, an update added code that opened affiliate links every time the extension updated.

Install counts measure popularity, not safety. A 2.2 million install badge says nothing about who holds the publishing credentials today. Sometimes those credentials are stolen. Sometimes the extension is bought: QuickLens changed owners on February 1, 2026 and shipped a malicious update 16 days later, as I covered in my breakdown of extension ownership transfers.

The IDE/browser wall doesn't exist. The GlassWorm campaign used the IDE supply chain to install a Chrome extension infostealer, the mirror image of this story. And a browser extension can be the way into a company too: leaked OAuth tokens from one were the pivot into Vercel, as I covered in how to audit extension OAuth grants.

How to protect yourself

1. Audit what's installed, in the browser and the editor. Every extension you keep is an auto-updating dependency with the permissions you once granted it. npx @extenshi/guard list prints your browser inventory locally, no account needed; npx @extenshi/guard scan (free account) checks the extensions you installed from a store against the Extenshi catalog and marks each one Remove, Disable or Review. In VS Code, run code --list-extensions --show-versions and ask of each line: do I use this, and do I trust its publisher?

2. Check an extension before you install it. Paste the store URL into the Extenshi checker and look at the permissions it requests and its safety score. Two minutes now beats a week of credential rotation later.

3. Decide what is allowed to update itself. VS Code lets you turn off extension auto-update globally or per extension, through the extensions.autoUpdate setting or the extension's context menu, and its documentation notes that disabled extensions don't update until you enable them again. Manual updates delay security fixes too, so this suits rarely used extensions on machines with valuable credentials. In the browser, store extensions update on the browser's schedule, so your lever is how many you keep.

4. Watch publisher signals, not popularity. Sudden ownership changes, a renamed publisher, a burst of updates after a long quiet period: all worth a second look. A stolen credential leaves no such trace, which is why steps 1 and 5 matter as much.

5. If you ship code, scope every credential as if it were already stolen. TeamPCP got from one contributor's GitHub token to GitHub's internal repos. Use fine-grained tokens with minimal scope.

If you publish to npm with OIDC trusted publishing, tie the trust to one protected branch and workflow file. Endor Labs researcher Peyton Kennedy, quoted by The Hacker News, traced the TanStack compromise to trust granted at the repository level. And require a second person for releases: after the incident, Nx made every Nx Console release need approval from two admins.

6. Treat AI assistant configs as secrets, and clean up deliberately. ~/.claude/settings.json, MCP server configs and CLI credentials are targets now. If you had Nx Console 18.95.0, Nx's advisory says to update to 18.100.0 or later, kill any __DAEMONIZED and cat.py processes, and delete the persistence files (unload the macOS LaunchAgent first). Then rotate every credential reachable from the machine.

One caveat from the TanStack wave: StepSecurity found the worm creates an npm token whose description threatens to wipe the computer if it's revoked, and revoking it does trigger rm -rf ~/. Isolate and image an infected machine before you revoke anything.

How Extenshi helps

This is the reason I build Extenshi. The catalog covers extensions across Chrome, Firefox and Edge, with permissions and a safety score you can check for any single extension at catalog.extenshi.io/check. For the extensions already in your browser, Guard scans what you installed from a store and tells you which ones deserve a closer look.

Scan the extensions you installed from a store with Guard →

My take

The short exposure window gets told as a success story, and I don't buy it. The listing came down after the payload had done its job: 69 downloads was never the number that mattered, 6,000 activations was. Signatures didn't help either, because the same campaign could produce valid provenance for its own packages.

What's left is blast-radius control: fewer extensions, scoped tokens, real inventories, and treating auto-updating software as a live dependency instead of furniture. The store is a distribution channel, not a security boundary. Treat it that way, and the next incident like this shrinks from a 3,800-repository breach to an 18-minute non-event.

Sources


This article is based on publicly available security research and news reporting. Extenshi does not independently verify all claims made by third-party researchers. References to specific companies or products reflect the findings of cited sources and do not constitute accusations of intentional wrongdoing. If you believe any information is inaccurate, please contact us at [email protected].

Related Articles