Skip to content
Submit incident
AII-1000-88101
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

Miasma worm compromises 73 Microsoft GitHub repositories via AI code editors

A self-replicating worm called Miasma compromised 73 Microsoft GitHub repositories by exploiting AI code editor tools like Claude Code and Cursor. The attack stole cloud and API credentials by executing when developers opened infected repositories, then self-propagated across accessible repositories using compromised credentials.

5 June 2026 Β· TeamPCP Β· Security and cyberattacks
5 June 2026
AII-1000-881013 sources ↓
Quick facts
Category
Security and cyberattacks
Country
United States
Source
The Next Web
Date
5 June 2026
Drafted by
Raidu Incident Detection

What happened

A supply chain attack compromised 73 GitHub repositories belonging to Microsoft organizations (Azure, Azure-Samples, Microsoft, and MicrosoftDocs) using a worm called Miasma, a variant of Mini Shai-Hulud published by TeamPCP in May 2026. The attack chain involved compromising a Red Hat employee's GitHub credentials detected in infosstealer logs since April 2026, then making malicious commits titled 'chore: update dependencies [skip ci]' containing a 4.3 MB runner payload.

The worm was uniquely designed to execute when developers opened repositories in AI code editors: Claude Code, Gemini CLI, Cursor, VS Code, and npm test scripts. GitHub disabled the affected repositories within 105 seconds of detecting the threat. The attack used a technique called 'Phantom Gyp,' abusing a 157-byte binding.gyp file to trigger code execution during installation, evading typical npm security scanners that monitor preinstall and postinstall scripts.

Reported impact

Once executed, the Miasma worm harvested credentials from multiple cloud providers including AWS, Azure, GCP, Kubernetes, npm, and GitHub, uploading stolen tokens to public repositories created on-the-fly. The worm then self-propagated by making malicious commits to all repositories accessible with the compromised developer's write permissions.

Affected repositories included critical Azure infrastructure projects such as azure-search-openai-demo, durabletask and its implementations in .NET, Go, JavaScript, and MSSQL, functions-container-action, and windows-driver-docs. The malware was specifically designed to steal credentials for Claude and Gemini AI assistants.

Index analysis

This was the first documented attack at scale using AI code editor agents as an execution vector, marking a significant shift in supply chain attack methodology. The campaign represented the third Miasma attack in one week, following compromise of 32 packages in the @redhat-cloud-services namespace on npm on June 1.

Classification

Category
Security and cyberattacks
Industry
Digital security
Country
United States
Harm status
Actual harm
Intent
Intentional
Timing
Unknown
Harm types
Economic or property
Harmed
Business
Failure modes
Agent misaction, Data leak
AI systems
Claude Code, Gemini CLI, Cursor, VS Code

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

The Next Web
Self-replicating Miasma worm hits 73 Microsoft GitHub repositories in supply chain attack
6 June 2026
librered.net
Microsoft cierra 70 repositorios oficiales en GitHub tras ataque que robΓ³ credenciales de Claude y Gemini
8 June 2026
WWWhat's new
El gusano Miasma golpea 73 repositorios de Microsoft en GitHub: malware autoexpandible que detona al abrir el cΓ³digo en Claude Code o Cursor
8 June 2026