ghtier

These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.

← All incidents

GitHub's internal repositories taken through a VS Code extension

May 2026 · Contained

A token stolen through a poisoned TanStack package let the attacker publish a backdoored Nx Console extension, which ran on a GitHub employee's machine and led to about 3,800 of GitHub's internal repositories being copied.

Access held
T0repoT1workflowT3Contents: ReadVSCE_PATDeveloper tokens and keysAbout 3,800 internal repositories
Scale
About 3,800 GitHub-internal repositories
Full summary

It started a week earlier, with someone else's install. On 11 May 2026 an Nx contributor ran pnpm install and pulled one of the malicious TanStack versions, which took the GitHub CLI token off their machine. With that token the attacker pushed a workflow built to send out the organization's secrets, deleted workflow runs to hide it, and planted a payload in an orphan commit in nrwl/nx. On 18 May they published Nx Console 18.95.0, a backdoored release of a VS Code extension with more than 2.2 million installs and a verified publisher. It was on the Visual Studio Marketplace for about 18 minutes and on Open VSX for 36, and as soon as a workspace was opened it collected every credential it could find: GitHub tokens, npm, cloud, Vault and 1Password. One of the machines it ran on belonged to a GitHub employee. The attacker, the group known as TeamPCP, claimed about 3,800 of GitHub's internal repositories, which GitHub called directionally consistent with its own findings. GitHub found no impact on customer repositories, but rotated its secrets and the GitHub Enterprise Server signing key, so every GHES administrator had to install the new key before the next upgrade.

How it unfolded

Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.

Whole path

Compromised Action orpackageway inrepoContributor's gh tokenworkflowThe same tokenLeaked tokenway inChange a workflow, get itssecretsescalationVSCE_PATNx Console's secretDelete branches andworkflow runstechniqueDelete code or cover tracksHide the payload in acommit only its hashreachestechniquePoison the build orpublished packagePublish a malicious versionwith a stolen tokentechniqueCompromised developer toolor extensionway inDeveloper tokens and keysA GitHub employeeClone private repos with astolen tokentechniqueContents: ReadEmployee's accessAbout 3,800 internalrepositoriesGitHub

The whole attack, one row per step. Pick a step on the left, or click a box in its row.

Frameworks

Part of

Contained. First seen May 2026, last seen May 2026. About 3,800 GitHub-internal repositories (as of 26 May 2026, source). Mapping by ghtier, not yet reviewed. Threat landscape

Sources

Reported by: GitHub