On May 18, from 12:30 to 12:48 p.m. UTC, a booby trapped version of Nx Console sat in Microsoft's Visual Studio Marketplace. Nx Console is an extension, a small add on for the Visual Studio Code editor, with 2.2 million installs. On startup, the poisoned version quietly downloaded a hidden program that harvested passwords and access keys from the computer it ran on.
One of those computers belonged to a GitHub employee. On May 20, GitHub confirmed that attackers used the access to copy about 3,800 of its internal repositories, the folders where its code is kept. A cybercrime group called TeamPCP claimed the attack. GitHub said it found no evidence of impact to customer information stored outside those repositories, though some of them hold excerpts of support conversations.
The trail leads back to an earlier attack on TanStack, a set of widely used open source code packages. Credentials stolen there let attackers into the Nx project, and the same chain reached Grafana Labs, which refused to pay when attackers demanded money to keep its stolen code private. The malware went after keys for 1Password, cloud accounts and developer tools.
Nx maintainers advise anyone who installed the bad version to change every password and key that computer could reach.