AI Toolkit · For engineers

Nx Console attack: 18 minutes, 3,800 GitHub internal repos

A poisoned VS Code extension was live for 18 minutes on Microsoft’s marketplace (36 on Open VSX) in May 2026. GitHub calls an attacker’s claim of about 3,800 of its own internal repositories directionally consistent with its findings. What is confirmed, what is claimed, and what to check on your machines.

On 18 May 2026 a poisoned Nx Console update was live for 18 minutes on Microsoft’s extension marketplace and 36 on Open VSX, the open-source registry that VS Code forks such as Cursor can use. Anyone whose editor updated in that window received a version that stole their tokens, keys and cloud credentials. GitHub says an employee was among them. An attacker claims to have taken about 4,000 of GitHub’s internal repositories, and GitHub calls a claim of about 3,800 “directionally consistent” with its findings.

Nx is an open-source build tool for large code repositories. Nx Console is its add-on for VS Code, Microsoft’s code editor, and for forks of it such as Cursor. Editor extensions generally run with your own user’s permissions, and by default update themselves from a marketplace.

Headlines say the attack reached 3,800 GitHub repositories. Read that carefully: they are GitHub’s own internal repositories. GitHub says it has no evidence that customers’ own repositories, organisations or enterprises were affected, though some internal repositories hold customer information such as excerpts of support interactions. The question for you is smaller and sharper: was Nx Console 18.95.0 running on any of your machines on 18 May, and what could those machines reach? If yes, treat them as compromised; the checks are in the last section.

§1

What the 3,800 figure is, and who says so

GitHub said in a blog post on 20 May that it detected and contained a compromised employee device on 18 May, the day the bad version was published. The activity, it said, involved exfiltration of GitHub-internal repositories only, and the attacker’s claims of about 3,800 were “directionally consistent with our investigation so far”Source 1. GitHub promised a fuller report once its investigation ends; we found none by 30 October. The page was updated on 26 May, and its headline is now about rotating the signing key of GitHub Enterprise Server, its self-hosted product; that is a separate follow-up we do not cover.

The 3,800 is therefore GitHub’s confirmation of an attacker’s claim, not an independent count. TeamPCP, a group that The Record says has conducted other attacks on developer tools, advertised about 4,000 private repositories on a cybercrime forum for at least $50,000Source 2. We do not have the attacker’s original wording for 3,800. BleepingComputer says GitHub has not attributed the breach; The Record says TeamPCP conducted other attacks on developer tools, and its headline says GitHub confirmed a TeamPCP hackSource 3. GitHub’s post names no group, so treat the attribution as the outlets’ and the attacker’s, not GitHub’s.

Note also what is not named. GitHub’s post says only “a poisoned VS Code extension published by a third party”; the link to Nx Console comes from BleepingComputer’s 21 May update, which says GitHub later made it. Nx’s post-mortem says nothing about GitHub’s own breach or the 3,800 figureSource 4. Everything below about how the extension was poisoned comes from Nx’s post-mortem and the security advisory.

§2

Seven days from one stolen token to a poisoned update

The chain starts outside Nx. On 11 May 2026 an attacker published 84 malicious versions across 42 packages of TanStack, a widely used set of JavaScript libraries, as the TanStack advisory records, by chaining a flawed GitHub Actions workflow, a poisoned build cache and a short-lived publishing token pulled from the build runner’s memorySource 5. Each carried an install script that hunted for credentials.

At 20:43 UTC an Nx contributor ran pnpm install in an unrelated repository. pnpm, a JavaScript package manager, resolved a TanStack package about 77 minutes old and ran its script, which took the contributor’s login token for GitHub’s command-line tool (gh) from a file on diskSource 4. The token was used against the GitHub API within 74 seconds.

The attacker then pushed a commit with a spoofed author, added a workflow meant to leak secrets, and deleted workflow-run logs. After days of quiet, on 18 May they published Nx Console 18.95.0 to the marketplaces, signed in as that contributorSource 4.

Timeline of five steps from 11 to 20 May 2026: 84 malicious TanStack versions, a contributor install, a stolen GitHub token, a poisoned Nx Console 18.95.0 live 18 minutes on Visual Studio Marketplace and 36 on Open VSX, then GitHub says it detected the breach on 18 May and calls the attacker’s claim of about 3,800 internal repositories directionally consistent.
Image description

Title: Seven days from one stolen token to a poisoned editor extension. Five boxes left to right. 11 May, 19:20 UTC: attacker publishes 84 malicious versions across 42 TanStack npm packages. 11 May, 20:43 UTC: an Nx contributor runs pnpm install elsewhere and pulls one about 77 minutes old; the install script steals their GitHub CLI token. 11 to 16 May: the token is used to push commits and delete workflow runs in Nx repositories. 18 May, 12:30 UTC, highlighted: attacker publishes Nx Console 18.95.0 as the contributor; live about 18 minutes on Visual Studio Marketplace and about 36 minutes on Open VSX; 28 and 41 downloads counted, about 6,000 internal activations. 18 to 20 May: GitHub says it detected a compromised employee device on 18 May (its post does not name the extension) and said on 20 May that the attacker’s claim of about 3,800 internal repositories is directionally consistent with its findings; the attacker’s forum ad said about 4,000. Green box: What the number means: 3,800 is the attacker’s claim about GitHub’s own internal repositories. Some hold support excerpts; GitHub has no evidence customers’ own repositories were affected. Sources: Nx post-mortem (21 May 2026), GitHub blog (20 May 2026), GitHub advisories.

Fig. 1 — How one stolen token became a poisoned editor extension. The 3,800 figure counts GitHub’s own internal repositories; it is not a count of customer repositories. Sources: Nx post-mortem, 21 May 2026; GitHub blog, 20 May 2026; GitHub advisories GHSA-c9j4-9m59-847w and GHSA-g7cv-rxg3-hmpx.

The control that was set and did nothing

This is the detail worth taking to your own repositories. The repository the contributor worked in had a seven-day minimum release age, so a package 77 minutes old should have been refused. But it pinned pnpm 10.14, and per Nx, versions before 10.16 ignore that setting without any warningSource 4. pnpm’s 10.16.0 release notes confirm that is the version that introduced itSource 6. Nx’s post-mortem recommends pnpm 10.16 or later and a CI step that fails on an older version.

The second gap was a single actor. Nx Console releases needed no second approver, unlike other Nx publish workflows, so one stolen token was enoughSource 4.

§3

Eighteen minutes on Microsoft’s marketplace, 36 on Open VSX

The bad version was uploaded to the Visual Studio Marketplace at 12:30 UTC and unpublished at 12:48. On Open VSX, it was live from 12:33 to 13:09, about 36 minutesSource 7.

The marketplace counts look tiny: 28 installs on Microsoft’s side and 41 Open VSX downloads from 21 addresses. Nx’s own telemetry shows about 6,000 activations, and the advisory later added one from Cursor. Nx says real impact may be significantly higher; it suspects auto-updates are missing from the install counts but says it is unsureSource 4.

Detection was luck, in Nx’s telling. A maintainer received a routine publisher-notification email from the marketplace at 12:36 and flagged it as unexpected. Open VSX sends no such email, so the version stayed up 36 minutes there against 18 on Microsoft’s side. Nx’s post-mortem says “three times”: it counts about 11 minutes on Microsoft’s side, measured from the 12:36 email rather than the 12:30 upload. Same event, different startSource 4. A user had already filed an issue during the window, but nobody saw it until afterwards.

§4

What the payload went after

On start-up the extension fetched an obfuscated payload that searched the machine for secrets: GitHub tokens (including from process memory), npm tokens, AWS, Vault and Kubernetes credentials, SSH keys, .env files and active 1Password command-line sessions. It sent them out over HTTPS, the GitHub API and DNS, and set up persistence: a LaunchAgent on macOS, a sudoers edit attempt on Linux, a bundled runtime on WindowsSource 4.

That list explains how a breach like GitHub’s is possible. A developer’s laptop often holds a token that can read many private repositories. Whatever that employee’s token could clone, the attacker could clone. We do not know which credential was used; GitHub has not said.

§5

Check your own machines and pipelines

If 18.95.0 ran on a machine, Nx’s advice is: update to 18.100.0 or later, rotate every credential reachable from that machine, and audit the access logs of the accounts involved. Disconnect the machine from the network first, then do the steps in this order, because the cleanup destroys evidence and the machine may still be compromised.

  1. Keep evidence first. Copy cat.py, the LaunchAgent plist and /var/tmp/.gh_update_state to a locked folder and note their hashes. Then stop any process named cat.py or with __DAEMONIZED set. On macOS, run launchctl unload on the plist before deleting it, or it stays active. Rotate credentials from a different, clean machine, and treat the old one as possibly still persistent; Nx suggests considering a full rebuildSource 7.
  2. Do not trust the version number. Run code --list-extensions --show-versions | grep -i angular-console (use cursor for Cursor). A machine that updated after the window shows a clean version, and the old folder is gone too, so look for the persistence files Nx lists instead: ~/.local/share/kitty/cat.py, ~/Library/LaunchAgents/com.user.kitty-monitor.plist, /var/tmp/.gh_update_state and /tmp/kitty-* (Windows paths are in the post-mortem).
  3. Check the pnpm version as well as the setting. Run pnpm --version in each repository and in CI. Below 10.16 the release-age setting does nothing. The 10.16.0 release notes state no default, so set the value explicitly (it is in minutes) and fail the build on an older version.
  4. Find where your GitHub token lives. grep -c oauth_token ~/.config/gh/hosts.yml prints only a count. Above zero means the token sits in a readable file, where the TanStack script took it; a missing file only means it is not stored there. Zero does not mean safe: gh normally keeps the token in the operating system keyring, and Nx says a malicious process can still call gh auth token or read gh’s memory. gh auth status shows where the token is stored without printing it. Also check GH_TOKEN and GITHUB_TOKEN in your shell profile and ~/.git-credentials, which the payload also searched. Prefer short-lived tokens or a secret-manager wrapper; Nx’s post-mortem bans direct gh use on developer machinesSource 4.
  5. Put a second person in front of every publish. Marketplace, npm and container releases should need approval from someone who did not trigger the workflow, enforced through GitHub Actions environments. Nx added exactly this, plus Actions pinned to commit SHAs.
  6. Watch the audit log for the odd events. The attacker deleted workflow runs, and that sat in the log for a week. Nx notes streaming the log to a monitoring system is an enterprise feature that most teams, itself included, did not run.

One trade-off is yours to make. VS Code documents an extensions.autoUpdateDelay setting (a wait after an update is published; documented default 12 hours) and enterprise policies for extensions.autoUpdateSource 8. The documented default delay is 12 hours, and the docs do not say which release added the setting, so check your version. A delay delays fixes for real vulnerabilities too.

What we could not verify: how GitHub’s employee was exposed, which credential the attacker used, and what happened to the stolen code afterwards. Attackers’ claims on forums are claims; GitHub’s promised report is the thing to watch.

  1. Find out whether Nx Console 18.95.0 ran on 18 May Look for the persistence files as well as the current version. If yes, keep evidence, then rotate every credential from a clean machine.
  2. pnpm 10.16 or later everywhere, with a CI guard Older versions ignore a minimum-release-age setting without a warning.
  3. Know where every gh token lives A zero from the file check is not safe: the keyring and environment variables count too. Prefer short-lived tokens.
  4. Second-person approval on every publish workflow
  5. Alert on workflow-run deletions in the GitHub audit log
  6. Decide your extension update delay on purpose

Sources

  1. GitHub blog: Investigating unauthorized access to GitHub’s internal repositories (20 May 2026, updated 26 May). Retrieved . ↩
  2. BleepingComputer: GitHub confirms breach of 3,800 repos via malicious VSCode extension (20 May 2026, updated 21 May). Retrieved . ↩
  3. The Record: GitHub confirms TeamPCP hack, customers unaffected (20 May 2026). Retrieved . ↩
  4. Nx: Postmortem, Nx Console v18.95.0 supply-chain compromise (21 May 2026). Retrieved . ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩
  5. GitHub Security Advisory GHSA-g7cv-rxg3-hmpx / CVE-2026-45321: malware in 42 @tanstack/* packages (11 May 2026). Retrieved . ↩
  6. pnpm 10.16.0 release notes (introduces minimumReleaseAge). Retrieved . ↩
  7. GitHub Security Advisory GHSA-c9j4-9m59-847w / CVE-2026-48027: Nx Console 18.95.0 (18 May 2026, updated to 22 May). Retrieved . ↩ ↩
  8. VS Code documentation: Extension Marketplace (auto-update settings). Retrieved . ↩

Published · Updated Report an error (support@agentum.cloud)