github-breachteampcpsupply-chainvscode-extensionsource-code-theft

TeamPCP Breaches GitHub: 3,800 Internal Repos Exfiltrated via Poisoned VS Code Extension

The TeamPCP hacking group exfiltrated 3,800+ internal GitHub repositories after an employee installed a malicious VS Code extension, bypassing enterprise security.

Diego Diaz
7 min

What Happened

On May 20, 2026, GitHub confirmed that approximately 3,800 internal repositories were accessed and exfiltrated by the hacking group TeamPCP — not through a sophisticated zero-day or cloud misconfiguration, but through a single employee's installation of a poisoned Visual Studio Code extension. According to The Hacker News, the attacker gained access to the employee's device, harvested GitHub authentication tokens stored in the development environment, and used those tokens to clone internal repositories at scale. TeamPCP subsequently listed the stolen source code and internal organization data for sale on underground forums, forcing GitHub's hand in confirming the breach publicly.

Technical Analysis

The attack chain is a textbook example of supply chain compromise meeting insider access. BleepingComputer's investigation reconstructed the timeline: the malicious VS Code extension was installed on a GitHub employee's workstation, where it harvested stored credentials — including GitHub Personal Access Tokens (PATs) and SSH keys — from the local environment. Those tokens were then used to authenticate against GitHub's internal API and clone repositories the employee had access to, which numbered in the thousands given their role within the organization.

Phoenix Security's analysis identified this as "Wave Four" of the TeamPCP campaign, which has been active for nine weeks and previously targeted PyPI packages and the DurableTask framework. The group's playbook is consistent: compromise developer tooling, steal tokens from the development environment, and use legitimate access to exfiltrate at scale. The poisoned extension technique is identical to what was used in the Nx Console compromise just days earlier, suggesting either the same actors or a rapidly proliferating attack pattern.

Who's Affected

While GitHub has not disclosed the full scope of what was in the 3,800 repositories, the implications are significant. Internal repositories at a company like GitHub can contain source code, internal tooling, security configurations, API keys, and architectural documentation. SecurityWeek reported that GitHub stated customer data and production systems were not directly impacted, but the theft of internal source code creates long-term risk: attackers can analyze the code for undisclosed vulnerabilities, hardcoded credentials, or architectural weaknesses to plan future attacks. The breach also raises questions about GitHub's own internal security posture — if a single compromised employee device can expose 3,800 repos, the principle of least privilege may not have been adequately enforced.

This breach also has downstream implications for GitHub's customers. If internal CI/CD configurations or deployment scripts were among the exfiltrated data, attackers could identify weaknesses in how GitHub itself builds and ships software — knowledge that could be turned into future supply chain attacks against GitHub's own infrastructure or that of its enterprise customers.

How to Protect Your Organization

The GitHub breach is a wake-up call for any organization that stores code, credentials, or infrastructure secrets in developer environments. Here's what security teams should do now:

  • Audit VS Code extensions: Inventory all extensions installed across your development team. Remove any that aren't from verified publishers or that haven't been updated recently. Prefer extensions with open-source code that can be audited.
  • Enforce token scoping and rotation: Ensure all GitHub PATs and OAuth tokens follow the principle of least privilege. Rotate all tokens immediately if there's any chance they were exposed. Use fine-grained PATs instead of classic tokens wherever possible.
  • Implement device-level security for developers: Developer workstations are high-value targets. Enforce endpoint detection and response (EDR), application whitelisting, and browser/extension isolation on any machine with access to production code.
  • Monitor for anomalous repository access: Set up alerts for unusual cloning patterns, access from new IP addresses, or bulk repository operations — especially from service accounts or employee tokens.
  • Adopt a zero-trust model for internal repos: Not every employee needs access to every repository. Regularly audit repository permissions and remove access that's no longer needed. The blast radius of this breach was directly proportional to how many repos the compromised employee could reach.

The Sable Angle

The TeamPCP GitHub breach and the Nx Console compromise in the same week underscore a trend we've been tracking: the developer toolchain is the new attack surface. At Sable, our red team engagements consistently find that developer workstations, IDE extensions, and CI/CD pipelines are the weakest links in otherwise well-defended organizations. We wrote about this pattern in our research on vulnerabilities in startup development workflows, and it's only accelerating in 2026.

Our offensive security team simulates exactly these attack chains — from poisoned extensions to token harvesting to lateral movement through internal tooling. If your organization stores critical IP in GitHub, GitLab, or any code hosting platform, our penetration testing and red team services can identify where a single compromised developer could become the entry point for a breach affecting your entire codebase. The cost of finding that gap before TeamPCP does is a fraction of what 3,800 stolen repositories costs GitHub.