CareersClient PortalRemote Support
← Tech News & Alerts
Security

An add on that was poisoned for 18 minutes opens the door to GitHub's own code

A tainted version of a popular code editor add on was live for just 18 minutes on May 18. It was enough for a hacking crew to copy about 3,800 of GitHub's internal code repositories.

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.

What to do

If you employ developers, limit which editor extensions they may install and turn off automatic extension updates on machines that hold access to sensitive systems.

Questions about how this affects your business?