On June 5, 2026, a self replicating Miasma worm infiltrated Microsoft's Azure GitHub organizations, forcing GitHub to automatically disable 73 repositories in a 105 second emergency sweep. The attack traced back to a Red Hat employee's compromised GitHub account, used to poison 32 npm packages (@redhat cloud service...

Create a landscape editorial hero image for this Studio Global article: What happened in the June 5, 2026 Miasma worm attack on Microsoft's Azure GitHub organizations, how did it originate from the Red Hat npm co. Article summary: Here is the full breakdown of the June 2026 Miasma worm campaign across the Red Hat npm compromise and the Microsoft Azure GitHub attack.. Topic tags: general, general web. Reference image context from search candidates: Reference image 1: visual subject "**Impact**: At least 32 @redhat-cloud-services packages / 96 malicious versions were backdoored; multi-cloud credential theft (GitHub Actions, AWS, GCP, Azure, Kubernetes, HashiCor" source context "Miasma Supply Chain Attack Hits Red Hat @redhat-cloud-services ..." Reference image 2: visual subject "**Impact**: At least 32 @redhat-cloud-services packages / 96 malicious versions were backdoored; multi-cloud cre
In a dramatic escalation of an ongoing software supply chain attack, Microsoft's presence on GitHub was directly compromised on June 5, 2026. A malicious commit, planted by a contributor account hijacked days earlier, triggered GitHub's automated defenses to disable 73 repositories across four of Microsoft's most critical open-source organizations in a rapid 105-second sweep . This incident was the climax of a week-long campaign by the Miasma worm, which had already poisoned the npm registry and now demonstrated a frightening new capability: targeting AI coding agents.
The attack began on June 1, 2026, when security researchers at Aikido and OX Security discovered malicious code injected into the @redhat-cloud-services npm namespace, a set of packages powering the Red Hat Hybrid Cloud Console. In total, 32 packages across 96 malicious versions were compromised, which together accumulated roughly 117,000 weekly downloads .
The root cause was not a simple token leak but a full account takeover. Attackers compromised a Red Hat employee's GitHub account and used this access to inject malicious commits into the upstream RedHatInsights/javascript-clients CI/CD pipeline . This allowed them to abuse GitHub's trusted publishing mechanism, minting authentic SLSA provenance attestations for their backdoored package releases and pushing them directly to the npm registry
.
The compromised packages contained a preinstall script that executed automatically upon installation, downloading a 28 KB credential-stealing payload. This malware, identified as a new variant of the Mini Shai-Hulud family dubbed "Miasma" and attributed to the threat actor group TeamPCP (though copycats could not be ruled out), acted as a self-propagating worm .
The stolen credentials from the Red Hat phase were weaponized again on June 5, 2026. Using a previously compromised contributor account, attackers pushed a single malicious commit to the Azure/durabletask repository . This repository had already been the victim of a PyPI package compromise on May 19, and the same contributor account was used in both attacks, highlighting a failure to fully revoke all access after the initial breach
.
The malicious commit contained configuration files that acted as a trap for AI coding agents. When a developer opened the repository in AI-powered tools like Claude Code, Gemini CLI, Cursor, or VS Code, the files would be read automatically, injecting commands that executed a credential-harvesting payload .
GitHub's response was immediate and unprecedented. In an automated sweep, it disabled 73 repositories across four Microsoft GitHub organizations :
Affected repositories displayed a stark gray notice: "This repository has been disabled. Access to this repository has been disabled by GitHub Staff due to a violation of GitHub's terms of service" .
The Miasma campaign used a multi-pronged attack strategy that combined classic supply chain poisoning with novel self-propagation and AI-targeting techniques.
preinstall scripts that delivered its payload the moment a developer ran npm installThe remediation required a synchronized effort from multiple major tech and security organizations.
The Miasma attack did not happen in isolation. On June 5, researchers from Endor Labs and StepSecurity disclosed a separate but parallel campaign, dubbed IronWorm, which had compromised an even larger set of 57 npm packages across more than 286 malicious versions to deliver a new Miasma worm variant . This demonstrated that the threat actors were aggressively scaling their operations and experimenting with new techniques, such as abusing
binding.gyp files for code execution .
The Cloud Security Alliance (CSA) noted a critical long-term risk: while the campaign was attributed to TeamPCP, the underlying codebase was publicly released. This meant that copycat actors with the same or modified tools could not be ruled out, ensuring the Miasma attack pattern would continue to be a threat .
Studio Global AI
Use this topic as a starting point for a fresh source-backed answer, then compare citations before you share it.
On June 5, 2026, a self replicating Miasma worm infiltrated Microsoft's Azure GitHub organizations, forcing GitHub to automatically disable 73 repositories in a 105 second emergency sweep.
On June 5, 2026, a self replicating Miasma worm infiltrated Microsoft's Azure GitHub organizations, forcing GitHub to automatically disable 73 repositories in a 105 second emergency sweep. The attack traced back to a Red Hat employee's compromised GitHub account, used to poison 32 npm packages (@redhat cloud services) and steal credentials, which were then reused to push a malicious commit to the Azure/...
The campaign marked a dangerous evolution in supply chain attacks by targeting AI coding agents like Claude Code and Cursor, injecting malicious instructions into configuration files those tools would automatically ex...