According to Specter Beating monitoring, GitHub officially released a security incident report, confirming that an employee's device was infected with a tainted VS Code extension, leading to unauthorized access to its internal code repositories. The attacker claimed to have exfiltrated around 3800 internal repositories from GitHub, and the official investigation aligns with this claim.
The malicious extension in question is a well-known extension called Nx Console (version 18.95.0) that briefly appeared on the Microsoft Visual Studio Code marketplace on May 18. The attacker gained publishing rights by stealing a contributor's token and pushed out a malicious version containing a credential stealer to the marketplace.
Although the Nx team detected the anomaly and removed the malicious version within 11 minutes, some GitHub employees had already downloaded it and were affected. The malicious payload automatically harvested Git credentials, VS Code extension storage, AWS keys, and 1Password sensitive data in the background. These credentials allowed external threat actors to bypass perimeter security controls and effectively exfiltrate GitHub's internal code repositories.
GitHub stated that they detected and contained this device compromise on May 19. To mitigate risks, the security team urgently rotated all critical keys yesterday and overnight and prioritized handling high-value credentials. Currently, the team is actively analyzing logs and monitoring for any follow-up activities, with a comprehensive report set to be published after the investigation concludes.
