On June 5, 2026, a self-replicating malware strain known as the Miasma worm forced GitHub to disable 73 Microsoft-owned repositories in a mere 105 seconds . This was not a minor code injection; it was a sophisticated supply chain attack that weaponized the very tools developers trust most—their AI coding assistants. The affected repositories spanned four core Microsoft organizations: Azure, Azure-Samples, Microsoft, and MicrosoftDocs
. The attack represents a pivotal moment in cybersecurity, where the act of simply opening a codebase in an AI-powered environment became a trigger for credential theft.
The attack's novelty lay in its execution path, bypassing traditional security checks by turning developer tools into attack vectors.
The Microsoft GitHub incident was the final act of a campaign that began days earlier in the open-source software supply chain.
On June 1, 2026, attackers used a stolen Red Hat employee's GitHub account to publish backdoored versions of 32 official @redhat-cloud-services npm packages, spanning over 90 versions . Microsoft Threat Intelligence traced the compromise back to the upstream
RedHatInsights/javascript-clients CI/CD pipeline, allowing the attackers to publish trojanized packages with legitimate-looking authentic provenance signatures . These malicious packages carried an obfuscated preinstall script that executed a credential stealer upon installation, laying the groundwork for the wider Miasma propagation
.
The response to the attack was swift and decisive, but the incident's implications run deep.
Miasma is a direct descendant of the Mini Shai-Hulud worm framework, a toolkit created by the threat group known as TeamPCP . TeamPCP’s earlier campaign, disclosed on May 12, 2026, had already compromised over 170 npm and PyPI packages, which had amassed more than 518 million cumulative downloads, targeting AI developer libraries directly
.
The situation is further complicated because TeamPCP open-sourced the Mini Shai-Hulud framework . This means an unknown number of copycat actors have access to the same codebase. While the techniques and code strongly link Miasma to TeamPCP's lineage, multiple security researchers caution that a definitive attribution to the original group cannot be made, as any actor with the open-source toolkit could have orchestrated part or all of this specific wave
.
The Miasma attack fundamentally redefines security boundaries. Opening a code repository is no longer a passive, safe action. Researchers have coalesced around several key recommendations:
Studio Global AI
Use this topic as a starting point for a fresh source-backed answer, then compare citations before you share it.
The Miasma worm, a self replicating malware, compromised 73 Microsoft GitHub repositories on June 5, 2026, exploiting AI coding tools like Claude Code and VS Code to execute a credential harvesting payload, and GitHub...
The Miasma worm, a self replicating malware, compromised 73 Microsoft GitHub repositories on June 5, 2026, exploiting AI coding tools like Claude Code and VS Code to execute a credential harvesting payload, and GitHub... The attack chain originated with backdoored Red Hat npm packages on June 1, highlighting a sophisticated, multi stage supply chain attack linked to the open sourced Mini Shai Hulud framework, with copycat actors being...
Incident response actions included an immediate repository disablement, full restoration by June 8, and a shift in security posture that now treats opening a repository in an AI tool as a critical security boundary.
Loading comments...
Comments
0 comments