News

Did AI Write the Worm That Breached GitHub's Own House?

· Spiceworks

A sophisticated supply chain attack has shaken the cybersecurity world, with threat group TeamPCP claiming their malware was generated using Anthropic's Claude AI assistant. The breach compromised GitHub's internal repositories through a poisoned VS Code extension, raising critical questions about AI's role in offensive cybersecurity operations. On May 20, 2026, GitHub confirmed that attackers accessed approximately 3,800 internal repositories after compromising a single developer's machine. The attack vector was a malicious version of the Nx Console VS Code extension, which remained live on Microsoft's Visual Studio Marketplace for just 18 minutes but proved sufficient to establish a foothold. This extension, normally trusted by 2.2 million users, became the entry point for what security researchers describe as one of the most sophisticated supply chain attacks to date. TeamPCP, tracked by Google Threat Intelligence as UNC6780, operates a self-replicating tool called Mini Shai-Hulud that automates supply chain attacks by stealing CI/CD credentials and publishing infected package versions. The group has executed over 20 distinct attack waves in 2026 alone, targeting popular development tools including Trivy, Checkmarx KICS, LiteLLM, Bitwarden CLI, and Microsoft's Python SDK for Durable Task workflows. What makes this incident particularly concerning is TeamPCP's claim that Claude AI assisted in creating their malware components. While no independent security firm has verified this assertion, the Cloud Security Alliance noted that the claim aligns with the campaign's unusual sophistication and rapid operational tempo. The worm demonstrates remarkable adaptability, evolving through three distinct payload versions within hours of deployment and generating valid Sigstore certificates to appear legitimate. The attack's scope extended far beyond GitHub. Within a 48-hour window, TeamPCP compromised multiple surfaces: the Nx Console extension targeting developer credentials including Claude Code configuration files, 639 malicious npm packages in Alibaba's ecosystem representing 16 million weekly downloads, GitHub Actions workflows, and Microsoft's official Python client. This coordinated assault demonstrates how modern development toolchains create interconnected vulnerabilities. The stolen GitHub repositories contained more than source code—they included infrastructure configurations, deployment scripts, staging credentials, and internal API schemas. TeamPCP subsequently offered this data for sale on dark web forums, initially demanding $50,000 while criticizing GitHub's delayed disclosure. This incident highlights a troubling evolution in cybersecurity threats. Whether or not AI actually generated the malware, the attack's sophistication suggests that AI-assisted offensive tooling represents an emerging risk category. The rapid iteration cycles, automated propagation mechanisms, and ability to generate legitimate-appearing certificates indicate capabilities that could be enhanced by large language models. For the AI development community, this breach serves as a wake-up call about supply chain security. The fact that a single compromised extension could cascade into multiple platform breaches demonstrates how interconnected modern development environments have become. Organizations must reassess their trust models for development tools and implement more robust verification mechanisms for software updates and extensions.

A cybersecurity incident that began with a single poisoned browser extension has evolved into one of the most significant supply chain attacks in recent memory, with implications that extend far beyond traditional security concerns into the realm of AI-assisted offensive operations.

The attack, orchestrated by the financially motivated group TeamPCP (formally designated UNC6780 by Google Threat Intelligence), successfully compromised GitHub's internal infrastructure through what security experts describe as a masterclass in supply chain exploitation. The breach, confirmed by GitHub on May 20, 2026, resulted in unauthorized access to approximately 3,800 internal repositories containing sensitive infrastructure data, deployment configurations, and API schemas.

The attack vector was deceptively simple yet devastatingly effective. TeamPCP compromised the Nx Console VS Code extension, a legitimate development tool with 2.2 million installations. The malicious version remained available on Microsoft's Visual Studio Marketplace for merely 18 minutes, but this brief window proved sufficient for the attackers to establish their foothold. The compromised extension specifically targeted developer credentials across multiple platforms, including GitHub, npm, AWS, HashiCorp Vault, Kubernetes, and notably, Claude Code configuration files stored in ~/.claude/settings.json.

What distinguishes this attack from conventional cybersecurity incidents is TeamPCP's assertion that Anthropic's Claude AI assistant helped generate components of their malware toolkit. While this claim remains unverified by independent security researchers, the sophistication and rapid evolution of the attack tools lend credibility to the possibility of AI assistance. The Cloud Security Alliance's research note on the group acknowledged that while such claims should be interpreted cautiously, they align with the observed campaign sophistication and operational tempo.

The centerpiece of TeamPCP's arsenal is Mini Shai-Hulud, a self-replicating worm designed to automate supply chain attacks. This tool demonstrates remarkable adaptability, stealing CI/CD credentials and using them to publish infected versions of additional packages. Security researchers documented the worm evolving through three distinct payload versions within hours of deployment, with Palo Alto Networks Unit 42 noting that TeamPCP replaced their initial script just two hours after the first release.

The attack's scope extended far beyond the GitHub breach. Within a critical 48-hour period, TeamPCP executed a coordinated assault across multiple development platforms. On May 19, the group compromised 639 malicious npm package versions across 323 unique packages in Alibaba's @antv ecosystem, representing approximately 16 million weekly downloads. Simultaneously, they compromised GitHub Actions workflows and Microsoft's official Python client for Durable Task workflows, demonstrating their ability to operate across multiple attack surfaces concurrently.

Particularly concerning is the worm's ability to generate legitimate-appearing security attestations. The malware now calls Fulcio and Rekor at runtime to generate valid Sigstore signing certificates for every package it propagates, causing provenance badges to display as green and trusted. As Endor Labs noted, while the attestation proves where the package was built, it cannot prove the build was authorized, highlighting a fundamental weakness in current software supply chain verification systems.

The financial implications became apparent when TeamPCP listed the stolen GitHub data on dark web forums, initially demanding $50,000 for the repository contents. The group's public statements criticized GitHub's disclosure timeline, claiming the company delayed informing users about the breach.

This incident represents a potential inflection point in cybersecurity, where AI capabilities may be democratizing sophisticated attack development. The rapid iteration cycles, automated propagation mechanisms, and ability to generate convincing security certificates suggest operational capabilities that could be significantly enhanced by large language models. Whether or not Claude actually generated the malware, the attack demonstrates the type of sophisticated, adaptive threats that AI-assisted offensive tooling could enable.

For organizations relying on modern development toolchains, this breach underscores the interconnected nature of contemporary software ecosystems. A single compromised extension cascaded into breaches across multiple platforms, highlighting how trust relationships in development environments can become vectors for widespread compromise.

The incident also raises important questions about AI safety and responsible deployment. If AI systems are indeed being used to generate offensive security tools, it represents a concerning evolution in the threat landscape that the cybersecurity community must address through enhanced detection capabilities, improved supply chain verification, and more robust trust models for development tools.

Referenced links