DEV Community

jesus manrique
jesus manrique

Posted on • Originally published at guayoyo.tech

Is It Time to Leave GitHub? The Hack No One Saw Coming

GitHub breached via VS Code extension


What Happened

On Monday, May 18, 2026, at 12:36 UTC, someone published version 18.95.0 of Nx Console — a VS Code extension with 2.2 million installs — with a little something extra inside: a 498 KB multi-stage malware payload that activated within seconds of opening any workspace.

Eleven minutes later, the Nx team detected the rogue publish and pulled it. By then, somewhere between 6,000 and 28,000 developers had received it. One of them worked at GitHub.

This wasn't a toy script. Upon activation, the extension:

  • Harvested credentials from 1Password, Claude Code, npm, GitHub, AWS, and SSH keys
  • Installed a backdoor on macOS that abused the GitHub Search API as a dead drop resolver to receive commands
  • Integrated Sigstore — yes, the cryptographic attestation tool — to sign malicious packages with valid SLSA provenance
  • Exfiltrated over three channels: HTTPS, GitHub API, and DNS tunneling
  • Avoided machines in Russian time zones to stay under the radar

The attacker is TeamPCP (UNC6780 for Google), the same group that previously compromised Trivy, Bitwarden CLI, OpenSearch, Mistral AI, UiPath, and the European Commission. The haul? 3,800 GitHub internal repositories. Sale price on criminal forums: offers starting at $50,000 USD.

The Irony That Burns

GitHub — the company that built Dependabot, champions SBOMs, implemented artifact attestation with Sigstore, audits npm packages, and alerts you when your dependencies have vulnerabilities — got breached because an employee trusted the official extension marketplace of their own parent company, Microsoft.

It wasn't a Kubernetes zero-day. It wasn't a network vulnerability. It wasn't sophisticated phishing. It was a VS Code extension. Installed from the marketplace. The digital equivalent of having your house burglarized with the key you left under the doormat.

What If This Happens to You?

Let's run the scenario in your organization:

A developer installs a legitimate extension. VS Code auto-updates it (yes, by default). The new version is poisoned. Within seconds, the malware has access to every token, every environment variable, every SSH key, every cloned repository.

Your CI/CD compromised. Your AWS secrets in the hands of a criminal group. Your npm packages backdoored and published with signed attestation — because the attacker has your OIDC tokens. And not a single CVE to track, because traditional scanners are blind to this vector.

This is exactly how every TeamPCP attack in 2026 has played out.

The Extension Marketplace: A Door Without a Lock

In October 2025, Wiz Research published a finding that should have caused widespread panic: over 550 valid secrets found inside published VS Code Marketplace extensions — including more than 100 publisher tokens. Translation: an attacker could hijack extensions with a combined 85,000-user install base and push malicious updates to all of them.

And it wasn't the first warning. In August 2025, the same Nx Console extension had already been attacked via its npm packages.

The pattern is clear: the tools we use to build software have become the preferred attack vector. And current defenses — vulnerability scanners, CVEs, firewalls — can't see it.

Is It Time to Leave GitHub?

It's an uncomfortable but necessary question. If GitHub — with all its budget, talent, and access to Microsoft's threat intelligence — couldn't prevent an employee from installing a malicious extension from its own ecosystem, what chance does your company have?

It's not just about GitHub. It's about the implicit trust model we've built around the modern development ecosystem: we trust the extension marketplace, we trust npm packages, we trust GitHub Actions, we trust that git push doesn't compromise our entire pipeline. TeamPCP proved every one of those links is fragile.

Alternatives to consider:

  • GitLab: SaaS or self-hosted, greater runner control and security policies
  • Bitbucket: SaaS or Data Center, deep Atlassian integration
  • Gitea / Forgejo: Self-hosted, lightweight, open source, you control everything
  • SourceHut: Minimalist, no JavaScript, reduced attack surface
  • AWS CodeCommit + CodePipeline: Native AWS integration if you're already in that ecosystem

This isn't "GitHub is bad." It's about not putting all your eggs in a basket that just proved it has a hole.

What You Must Do Today

While you decide whether to migrate or not, here are immediate actions that can't wait:

  1. Audit your team's VS Code extensions. Not just what's installed — check who publishes them, when they were last updated, whether the publisher changed recently.
  2. Disable extension auto-updates: "extensions.autoUpdate": false in settings.json.
  3. Set "task.allowAutomaticTasks": "off" — many recent malware campaigns abuse tasks.json.
  4. Rotate credentials regularly and use limited-scope tokens.
  5. Separate accounts: the account using VS Code shouldn't be the same one with write access to production.
  6. Self-host where possible: your own runners, your own package registry, an internal extension mirror.

Conclusion

The GitHub breach isn't an anomaly. It's the new playbook for organized digital crime: attack the development tools because that's where the keys to the kingdom are. And it works.

What happened to GitHub can happen to any company, with one difference: GitHub has an army of security engineers, Microsoft's budget, and the ability to rotate thousands of secrets overnight. Your company probably doesn't.

This isn't paranoia. It's digital hygiene.


Guayoyo Tech: Enterprise Security Without the Drama

At Guayoyo Tech, we help companies like yours harden their development infrastructure against attack vectors that traditional scanners miss.

What we do:

  • Development toolchain attack surface audit: extensions, CI/CD, pipelines, dependencies, package registries
  • Hardened CI/CD architecture: runner segregation, signing policies, real artifact attestation, properly configured OIDC
  • AI agents for security monitoring: anomaly detection in your software supply chain, without false positives
  • Migration and redundancy strategy: stop putting all your code and pipelines on a single platform

Can your toolchain survive a TeamPCP attack?

Let's talk — Free 30-minute security audit for the first 5 who respond.

Top comments (0)